]> git.ipfire.org Git - ipfire-3.x.git/blob - initscripts/initscripts.nm
initscript: Cleanup package.
[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 = 9
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 cp -vf %{DIR_SOURCE}/sysctl.conf %{BUILDROOT}/etc
48
49 # Install udev rules
50 mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
51 cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}/lib/udev/rules.d/
52 end
53 end
54
55 packages
56 package %{name}
57 requires
58 bash
59 coreutils
60 e2fsprogs
61 grep
62 iproute2
63 module-init-tools
64 procps
65 sed
66 system-release
67 udev
68 util-linux
69 end
70
71 prerequires = coreutils shadow-utils
72
73 script prein
74 groupadd -g 22 -r -f utmp
75 end
76
77 script postin
78 touch /var/log/{b,w}tmp /var/run/utmp
79 chown root:utmp /var/log/{b,w}tmp /var/run/utmp
80 chmod 664 /var/log/wtmp /var/run/utmp
81 chmod 600 /var/log/btmp
82 end
83 end
84 end