summaryrefslogtreecommitdiffstats
path: root/sysvinit/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit/Pkgfile')
-rwxr-xr-xsysvinit/Pkgfile17
1 files changed, 10 insertions, 7 deletions
diff --git a/sysvinit/Pkgfile b/sysvinit/Pkgfile
index 6c9070a2a..732e97dd6 100755
--- a/sysvinit/Pkgfile
+++ b/sysvinit/Pkgfile
@@ -6,18 +6,21 @@
name=sysvinit
version=2.88dsf
-release=2
+release=3
source=(http://ftp.twaren.net/Unix/NonGNU/sysvinit/sysvinit-$version.tar.bz2)
build() {
-cd $name-$version
-
+ cd $name-$version
sed -i 's@Sending processes@& configured via /etc/inittab@g' src/init.c
- sed -i -e 's/utmpdump wall/utmpdump/' src/Makefile
+
+ sed "s|init halt shutdown runlevel killall5 fstab-decode|killall5 fstab-decode|" -i src/Makefile
+ sed "s|halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8|init.8 killall5.8 pidof.8|" -i src/Makefile
+ sed "s|shutdown.8 telinit.8 fstab-decode.8|fstab-decode.8|" -i src/Makefile
+ sed "s|mountpoint||" -i src/Makefile
+ sed "s|mountpoint.1||" -i src/Makefile
+
make
make ROOT=$PKG install
- # mountpoint fournis par util-linux
- rm $PKG/bin/mountpoint
- rm $PKG/usr/share/man/man1/mountpoint.1
+ rm $PKG/sbin/{poweroff,reboot,telinit}
}