You are not logged in.

#1 2010-12-01 14:17:57

Fackamato
Member
Registered: 2006-03-31
Posts: 579

mdadm-git available in AUR

Hi, initial version based on mdadm from core:

# Contributor: Mathias Buren <mathias.buren@gmail.com>
pkgname=mdadm-git
pkgver=20101201
pkgrel=1
pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID. -git version"
arch=(i686 x86_64)
license=('GPL')
url="http://www.cse.unsw.edu.au/~neilb/source/mdadm/"
conflicts=('mkinitcpio<0.5.99' 'mdadm')
makedepends=('git')
depends=('glibc')
backup=('etc/mdadm.conf')
source=(mdadm-git
        mdadm.conf
        mdadm_install
        mdadm_hook)
install=mdadm.install
replaces=('raidtools')

build() {
        msg "Fetching sources..."
        cd $srcdir
        git clone git://neil.brown.name/mdadm ./mdadm
        cd mdadm
        make || return 1
        make INSTALL=/bin/install DESTDIR=$pkgdir install
        install -D -m644 ../mdadm.conf $pkgdir/etc/mdadm.conf
        install -D -m755 ../mdadm $pkgdir/etc/rc.d/mdadm
        install -D -m644 ../mdadm_install $pkgdir/lib/initcpio/install/mdadm
        install -D -m644 ../mdadm_hook $pkgdir/lib/initcpio/hooks/mdadm
        # symlink for backward compatibility
        ln -sf /lib/initcpio/hooks/mdadm  $pkgdir/lib/initcpio/hooks/raid
        # build static mdassemble for Arch's initramfs
        make MDASSEMBLE_AUTO=1 mdassemble
        install -D -m755 mdassemble $pkgdir/sbin/mdassemble
}
md5sums=('6df172c8f77b280018cf87eb3d313f29'
         '00cbed931db4f15b6ce49e3e7d433966'
         '865c3d39e5f5dae58388160b563981f1'
         '1a3eb63832cecd6550f5b0a21d58cfdb')

(just grab the pkg via ABS, rename the initscript mdadm to mdadm-git and replace PKGBUILD)

Small error:

nroff -man md.4 > md.man
nroff -man mdadm.conf.5 > mdadm.conf.man
nroff -man mdmon.8 > mdmon.man
gcc -Wl,--hash-style=gnu -Wl,--as-needed -o mdadm mdadm.o config.o mdstat.o  ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Grow.o Monitor.o dlink.o Kill.o Query.o Incremental.o mdopen.o super0.o super1.o super-ddf.o super-intel.o bitmap.o restripe.o sysfs.o sha1.o mapfile.o crc32.o sg_io.o msg.o platform-intel.o probe_roms.o
gcc -Wl,--hash-style=gnu -Wl,--as-needed -pthread -Wl,-z,now -o mdmon mdmon.o monitor.o managemon.o util.o mdstat.o sysfs.o config.o Kill.o sg_io.o dlink.o ReadMe.o super0.o super1.o super-intel.o super-ddf.o sha1.o crc32.o msg.o bitmap.o platform-intel.o probe_roms.o
nroff -man mdadm.8 > mdadm.man
/bin/install -D -m 644 mdadm.8 /raid5volume/aur/mdadm-git/pkg/usr/share/man/man8/mdadm.8
/bin/install -D -m 644 udev-md-raid.rules /raid5volume/aur/mdadm-git/pkg/lib/udev/rules.d/64-md-raid.rules
/bin/install -D -m 644 mdmon.8 /raid5volume/aur/mdadm-git/pkg/usr/share/man/man8/mdmon.8
/bin/install -D -m 644 md.4 /raid5volume/aur/mdadm-git/pkg/usr/share/man/man4/md.4
/bin/install -D -m 644 mdadm.conf.5 /raid5volume/aur/mdadm-git/pkg/usr/share/man/man5/mdadm.conf.5
/bin/install -D  -m 755 mdadm /raid5volume/aur/mdadm-git/pkg/sbin/mdadm
/bin/install -D  -m 755 mdmon /raid5volume/aur/mdadm-git/pkg/sbin/mdmon
install: omitting directory `../mdadm'
    Aborting...

real    0m52.200s
user    0m6.036s
sys     0m0.523s

Last edited by Fackamato (2010-12-01 15:45:22)

Offline

#2 2010-12-01 15:45:05

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: mdadm-git available in AUR

Offline

Board footer

Powered by FluxBB