]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - initscripts/initscripts.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x into docbook
[people/stevee/ipfire-3.x.git] / initscripts / initscripts.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = initscripts
7 epoch = 1
8 version = 2.99
9 release = 8
10
11 groups = Base System/Boot
12 url =
13 license = GPLv3+
14 summary = The set of scripts that initalize the system.
15
16 description
17 The initscripts package contains the basic system scripts used to boot \
18 your system and shut the system down cleanly.
19 end
20
21 # Nothing to download.
22 sources =
23
24 build
25 requires
26 glib2-devel
27 popt-devel
28 end
29
30 DIR_APP = %{DIR_SOURCE}
31
32 prepare_cmds
33 cd src && make clean
34 end
35
36 build
37 cd src && make %{PARALLELISMFLAGS}
38 end
39
40 test
41 cd src && make test
42 end
43
44 install
45 cd src && make install clean DESTDIR=%{BUILDROOT}
46
47 mkdir -pv %{BUILDROOT}/etc/{init,sysconfig}
48
49 cp -vf %{DIR_SOURCE}/functions %{BUILDROOT}/etc/init/
50
51 for i in %{DIR_SOURCE}/sysconfig/*; do
52 install -v -m 644 $i %{BUILDROOT}/etc/sysconfig/
53 done
54 chmod -v 755 %{BUILDROOT}/etc/sysconfig/rc.local
55
56 cp -vf %{DIR_SOURCE}/sysctl.conf %{BUILDROOT}/etc
57
58 # Install udev rules
59 mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
60 cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}/lib/udev/rules.d/
61 end
62 end
63
64 packages
65 package %{name}
66 requires
67 bash
68 coreutils
69 e2fsprogs
70 grep
71 iproute2
72 module-init-tools
73 procps
74 sed
75 system-release
76 udev
77 util-linux
78 end
79
80 prerequires = coreutils shadow-utils
81
82 script prein
83 groupadd -g 22 -r -f utmp
84 end
85
86 script postin
87 touch /var/log/{b,w}tmp /var/run/utmp
88 chown root:utmp /var/log/{b,w}tmp /var/run/utmp
89 chmod 664 /var/log/wtmp /var/run/utmp
90 chmod 600 /var/log/btmp
91 end
92 end
93 end