]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - initscripts/initscripts.nm
libtalloc: Update to version 2.1.8
[people/amarx/ipfire-3.x.git] / initscripts / initscripts.nm
CommitLineData
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
6name = initscripts
7epoch = 1
8version = 2.99
c8b6f77f 9release = 19
ccbe9281 10
31f3f78e 11groups = System/Boot
802ea3af
MT
12url =
13license = GPLv3+
14summary = The set of scripts that initalize the system.
ccbe9281 15
802ea3af 16description
c8b6f77f 17 The initscripts package contains the basic system scripts used to boot
ccbe9281 18 your system and shut the system down cleanly.
802ea3af
MT
19end
20
21# Nothing to download.
22sources =
23
24build
25 requires
26 glib2-devel
27 popt-devel
620459d1
MT
28 shadow-utils
29 systemd-units
802ea3af
MT
30 end
31
32 DIR_APP = %{DIR_SOURCE}
33
34 prepare_cmds
35 cd src && make clean
36 end
37
38 build
39 cd src && make %{PARALLELISMFLAGS}
40 end
41
42 test
43 cd src && make test
44 end
45
46 install
47 cd src && make install clean DESTDIR=%{BUILDROOT}
48
1a011e61 49 # Install rc.local
c8b6f77f
SS
50 mkdir -pv %{BUILDROOT}%{sysconfdir}
51 install -v -m 755 %{DIR_SOURCE}/rc.local %{BUILDROOT}%{sysconfdir}/rc.local
1a011e61 52
802ea3af 53 # Install udev rules
620459d1
MT
54 mkdir -pv %{BUILDROOT}%{prefix}/lib/udev/rules.d/
55 cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}%{prefix}/lib/udev/rules.d/
802ea3af
MT
56 end
57end
58
59packages
60 package %{name}
31f3f78e
MT
61 groups += Base
62
802ea3af
MT
63 requires
64 bash
65 coreutils
66 e2fsprogs
67 grep
68 iproute2
69 module-init-tools
70 procps
71 sed
72 system-release
73 udev
74 util-linux
75 end
3f9e64bf
MT
76
77 provides
78 /bin/ipcalc
79 end
20173b6d 80
620459d1
MT
81 conflicts
82 filesystem < 002
83 end
84
c8b6f77f 85 datafiles
1a011e61
SS
86 /etc/rc.local
87 end
88
815db639
MT
89 prerequires
90 coreutils
91 shadow-utils
92 end
20173b6d
MT
93
94 script prein
95 groupadd -g 22 -r -f utmp
96 end
97
98 script postin
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
1a011e61
SS
103
104 # Just search for new unit files that were just installed.
105 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
106
107 # Enable rc.local as default.
108 /bin/systemctl --no-reload enable rc-local.service >/dev/null 2>&1 || :
109 end
110
111 # Disable the service that is to be removed and stop it if it is still running.
112 script preun
113 /bin/systemctl --no-reload disable rc-local.service >/dev/null 2>&1 || :
114 /bin/systemctl stop rc-local.service >/dev/null 2>&1 || :
115 end
116
117 # Just tell systemd that unitfiles have been removed.
118 script postun
119 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
20173b6d 120 end
802ea3af 121 end
1f9bc2f0
MT
122
123 package %{name}-debuginfo
124 template DEBUGINFO
125 end
802ea3af 126end