CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed major update for Arch-Maintainer's email (all ports)
[crossrootfs.git] / sysvinit / Pkgfile
1 # Description: The Linux System V Init
2 # URL: ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on:
6
7 name=sysvinit
8 version=2.86
9 release=5
10 source=(ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/$name-$version.tar.gz \
11 http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-sysroot/patches/$name-$version-fixes-1.patch)
12
13 build() {
14 cd $name-$version
15 patch -p1 -i $SRC/$name-$version-fixes-1.patch
16 sed -e 's|/dev/initctl|$(ROOT)&|g' \
17 -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
18 -e '/^ifeq/s/$(ROOT)//' \
19 -e 's|/usr/lib|$(ROOT)&|' \
20 -i src/Makefile
21
22 make -C src CC="$CC"
23 mkdir -p $PKG/{bin,sbin,dev,usr/{bin,sbin,include,share/man/{man1,man5,man8}}}
24 make -C src ROOT=$PKG install
25 mv $PKG/usr/share/man $PKG/usr
26 rm -rf $PKG/usr/share
27 mkdir -p $PKG/var/log
28 touch $PKG/var/log/wtmp
29 touch $PKG/var/log/btmp
30 chmod 0600 $PKG/var/log/btmp
31 }