summaryrefslogtreecommitdiffstats
path: root/sysvinit/Pkgfile
blob: 732e97dd63715eb469838e7d89eea720e8264ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Description: Le système d'initialisation du système V de Linux
# URL: ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=sysvinit
version=2.88dsf
release=3
source=(http://ftp.twaren.net/Unix/NonGNU/sysvinit/sysvinit-$version.tar.bz2)

build() {
	cd $name-$version
	sed -i 's@Sending processes@& configured via /etc/inittab@g' src/init.c

	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

	rm $PKG/sbin/{poweroff,reboot,telinit}
}