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
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)
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)&|' \
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
28 touch $PKG/var/log/wtmp
29 touch $PKG/var/log/btmp
30 chmod 0600 $PKG/var/log/btmp