]>
Commit | Line | Data |
---|---|---|
ccbe9281 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
ccbe9281 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = initscripts |
7 | epoch = 1 | |
8 | version = 2.99 | |
1a011e61 | 9 | release = 11 |
ccbe9281 | 10 | |
802ea3af MT |
11 | groups = Base System/Boot |
12 | url = | |
13 | license = GPLv3+ | |
14 | summary = The set of scripts that initalize the system. | |
ccbe9281 | 15 | |
802ea3af | 16 | description |
ccbe9281 MT |
17 | The initscripts package contains the basic system scripts used to boot \ |
18 | your system and shut the system down cleanly. | |
802ea3af MT |
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 | ||
1a011e61 SS |
47 | # Install rc.local |
48 | install -v -m 755 %{DIR_SOURCE}/rc.local %{BUILDROT}/etc/rc.local | |
49 | ||
802ea3af MT |
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 | requires | |
59 | bash | |
60 | coreutils | |
61 | e2fsprogs | |
62 | grep | |
63 | iproute2 | |
64 | module-init-tools | |
65 | procps | |
66 | sed | |
67 | system-release | |
68 | udev | |
69 | util-linux | |
70 | end | |
20173b6d | 71 | |
1a011e61 SS |
72 | configfiles |
73 | /etc/rc.local | |
74 | end | |
75 | ||
20173b6d MT |
76 | prerequires = coreutils shadow-utils |
77 | ||
78 | script prein | |
79 | groupadd -g 22 -r -f utmp | |
80 | end | |
81 | ||
82 | script postin | |
83 | touch /var/log/{b,w}tmp /var/run/utmp | |
84 | chown root:utmp /var/log/{b,w}tmp /var/run/utmp | |
85 | chmod 664 /var/log/wtmp /var/run/utmp | |
86 | chmod 600 /var/log/btmp | |
1a011e61 SS |
87 | |
88 | # Just search for new unit files that were just installed. | |
89 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
90 | ||
91 | # Enable rc.local as default. | |
92 | /bin/systemctl --no-reload enable rc-local.service >/dev/null 2>&1 || : | |
93 | end | |
94 | ||
95 | # Disable the service that is to be removed and stop it if it is still running. | |
96 | script preun | |
97 | /bin/systemctl --no-reload disable rc-local.service >/dev/null 2>&1 || : | |
98 | /bin/systemctl stop rc-local.service >/dev/null 2>&1 || : | |
99 | end | |
100 | ||
101 | # Just tell systemd that unitfiles have been removed. | |
102 | script postun | |
103 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
20173b6d | 104 | end |
802ea3af MT |
105 | end |
106 | end |