]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - initscripts/initscripts.nm
autoconf: updated to 2.69.
[people/arne_f/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 = 12
10
11 groups = 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 # Install rc.local
48 install -v -m 755 %{DIR_SOURCE}/rc.local %{BUILDROT}/etc/rc.local
49
50 # Install udev rules
51 mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
52 cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}/lib/udev/rules.d/
53 end
54 end
55
56 packages
57 package %{name}
58 groups += Base
59
60 requires
61 bash
62 coreutils
63 e2fsprogs
64 grep
65 iproute2
66 module-init-tools
67 procps
68 sed
69 system-release
70 udev
71 util-linux
72 end
73
74 configfiles
75 /etc/rc.local
76 end
77
78 prerequires = coreutils shadow-utils
79
80 script prein
81 groupadd -g 22 -r -f utmp
82 end
83
84 script postin
85 touch /var/log/{b,w}tmp /var/run/utmp
86 chown root:utmp /var/log/{b,w}tmp /var/run/utmp
87 chmod 664 /var/log/wtmp /var/run/utmp
88 chmod 600 /var/log/btmp
89
90 # Just search for new unit files that were just installed.
91 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
92
93 # Enable rc.local as default.
94 /bin/systemctl --no-reload enable rc-local.service >/dev/null 2>&1 || :
95 end
96
97 # Disable the service that is to be removed and stop it if it is still running.
98 script preun
99 /bin/systemctl --no-reload disable rc-local.service >/dev/null 2>&1 || :
100 /bin/systemctl stop rc-local.service >/dev/null 2>&1 || :
101 end
102
103 # Just tell systemd that unitfiles have been removed.
104 script postun
105 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
106 end
107 end
108
109 package %{name}-debuginfo
110 template DEBUGINFO
111 end
112 end