1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
14 summary = The set of scripts that initalize the system.
17 The initscripts package contains the basic system scripts used to boot \
18 your system and shut the system down cleanly.
21 # Nothing to download.
32 DIR_APP = %{DIR_SOURCE}
39 cd src && make %{PARALLELISMFLAGS}
47 cd src && make install clean DESTDIR=%{BUILDROOT}
50 install -v -m 755 %{DIR_SOURCE}/rc.local %{BUILDROT}/etc/rc.local
53 mkdir -pv %{BUILDROOT}%{prefix}/lib/udev/rules.d/
54 cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}%{prefix}/lib/udev/rules.d/
94 groupadd -g 22 -r -f utmp
98 touch /var/log/{b,w}tmp /var/run/utmp
99 chown root:utmp /var/log/{b,w}tmp /var/run/utmp
100 chmod 664 /var/log/wtmp /var/run/utmp
101 chmod 600 /var/log/btmp
103 # Just search for new unit files that were just installed.
104 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
106 # Enable rc.local as default.
107 /bin/systemctl --no-reload enable rc-local.service >/dev/null 2>&1 || :
110 # Disable the service that is to be removed and stop it if it is still running.
112 /bin/systemctl --no-reload disable rc-local.service >/dev/null 2>&1 || :
113 /bin/systemctl stop rc-local.service >/dev/null 2>&1 || :
116 # Just tell systemd that unitfiles have been removed.
118 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
122 package %{name}-debuginfo