blob: 78cc2105ba6b7fce3ef8493b95a2f8bac1b38919 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
source /usr/src/ports/Build/build.sh
NAME=sysvinit
VERSION=2.88dsf
BUILD=1
# Description
cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: sysvinit (init, the parent of all processes)
${NAME}:
${NAME}: System V style init programs by Miquel van Smoorenburg that control
${NAME}: the booting and shutdown of your system. These support a number of
${NAME}: system runlevels, each with a specific set of utilities spawned.
${NAME}: For example, the normal system runlevel is 3, which starts agetty
${NAME}: on virtual consoles tty1 - tty6. Runlevel 4 starts xdm.
${NAME}: Runlevel 0 shuts the system down.
${NAME}:
${NAME}:
${NAME}:
EOF
# Sources
SRCNAME[0]=${NAME}
SRCVERS[0]=${VERSION}
SRCPACK[0]=http://download.savannah.gnu.org/releases/sysvinit/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
SRCCOPY[0]="GPL2"
build0()
{
make ${JOBS} CFLAGS="${FLAGS}"
make install ROOT="${PKG}" MANDIR="${SYS_DIR[man]}"
doc src/initscript.sample
changelog doc/Changelog
install.dat doinst.sh ${PKG}/install
mv ${PKG}/usr/sbin/init ${PKG}/usr/sbin/init.new
#FIXME: compat
(
install.dir ${PKG}/sbin
cd ${PKG}/sbin
for program in bootlogd halt init killall5 shutdown runlevel; do
ln -sf /usr/sbin/${program}
done
ln -sf /usr/sbin/init telinit
ln -sf /usr/sbin/halt reboot
ln -sf /usr/sbin/halt poweroff
ln -sf /usr/sbin/killall5 pidof
)
}
|