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 mkdir -pv %{BUILDROOT}%{sysconfdir}
51 install -v -m 755 %{DIR_SOURCE}/rc.local %{BUILDROOT}%{sysconfdir}/rc.local
54 mkdir -pv %{BUILDROOT}%{prefix}/lib/udev/rules.d/
55 cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}%{prefix}/lib/udev/rules.d/
95 groupadd -g 22 -r -f utmp
99 touch /var/log/{b,w}tmp /var/run/utmp
100 chown root:utmp /var/log/{b,w}tmp /var/run/utmp
101 chmod 664 /var/log/wtmp /var/run/utmp
102 chmod 600 /var/log/btmp
104 # Just search for new unit files that were just installed.
105 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
107 # Enable rc.local as default.
108 /bin/systemctl --no-reload enable rc-local.service >/dev/null 2>&1 || :
111 # Disable the service that is to be removed and stop it if it is still running.
113 /bin/systemctl --no-reload disable rc-local.service >/dev/null 2>&1 || :
114 /bin/systemctl stop rc-local.service >/dev/null 2>&1 || :
117 # Just tell systemd that unitfiles have been removed.
119 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
123 package %{name}-debuginfo