source: systemd-units/Makefile@ 3a144df

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 3a144df was 407a1cf, checked in by Krejzi <krejzi@…>, 10 years ago

Add ISC DHCP and DHCPCD per interface units.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13773 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.0 KB
Line 
1SHELL=/bin/bash
2
3EXTDIR=${DESTDIR}/etc
4DEFAULTSDIR=${DESTDIR}/etc/default
5SERVICEDIR=${DESTDIR}/lib/services
6TMPFILESDIR=${DESTDIR}/usr/lib/tmpfiles.d
7UNITSDIR=${DESTDIR}/lib/systemd/system
8MODE=755
9DIRMODE=755
10CONFMODE=644
11
12all:
13 @grep "^install" Makefile.systemd | cut -d ":" -f 1
14 @echo "Select an appropriate install target from the above list"
15
16create-dirs:
17 install -d -m ${DIRMODE} ${DEFAULTSDIR}
18 install -d -m ${DIRMODE} ${TMPFILESDIR}
19 install -d -m ${DIRMODE} ${UNITSDIR}
20
21create-service-dir:
22 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig/network-devices/services
23 install -d -m ${DIRMODE} ${SERVICEDIR}
24
25install-service-dhclient: create-service-dir
26 install -m ${MODE} blfs/services/dhclient ${SERVICEDIR}
27
28install-service-dhcpcd: create-service-dir
29 install -m ${MODE} blfs/services/dhcpcd ${SERVICEDIR}
30
31install-service-bridge: create-service-dir
32 install -m ${MODE} blfs/services/bridge ${SERVICEDIR}
33
34install-service-wpa: create-service-dir
35 install -m ${MODE} blfs/services/wpa ${SERVICEDIR}
36
37install-acpid: create-dirs
38 install -m ${CONFMODE} blfs/units/acpid.service ${UNITSDIR}/
39 install -m ${CONFMODE} blfs/units/acpid.socket ${UNITSDIR}/
40 systemctl enable acpid.socket
41
42install-dhclient: create-dirs
43 install -m ${CONFMODE} blfs/units/dhclientat.service ${UNITSDIR}/dhclient@.service
44
45install-dhcpcd: create-dirs
46 install -m ${CONFMODE} blfs/units/dhcpcdat.service ${UNITSDIR}/dhcpcd@.service
47
48install-dhcpd: create-dirs
49 install -m ${CONFMODE} blfs/default/dhcpd ${DEFAULTSDIR}/
50 install -m ${CONFMODE} blfs/units/dhcpd.service ${UNITSDIR}/
51 systemctl enable dhcpd.service
52
53install-exim: create-dirs
54 install -m ${CONFMODE} blfs/units/exim.service ${UNITSDIR}/
55 systemctl enable exim.service
56
57install-git: create-dirs
58 install -m ${CONFMODE} blfs/units/git-daemonat.service ${UNITSDIR}/git-daemon@.service
59 install -m ${CONFMODE} blfs/units/git-daemon.socket ${UNITSDIR}/
60 systemctl enable git-daemon.socket
61
62install-gpm: create-dirs
63 install -m ${CONFMODE} blfs/units/gpm.service ${UNITSDIR}/
64 systemctl enable gpm.service
65
66install-haveged: create-dirs
67 install -m ${CONFMODE} blfs/units/haveged.service ${UNITSDIR}/
68 systemctl enable haveged.service
69
70install-httpd: create-dirs
71 install -m ${CONFMODE} blfs/tmpfiles/httpd.conf ${TMPFILESDIR}/
72 install -m ${CONFMODE} blfs/units/httpd.service ${UNITSDIR}/
73 systemd-tmpfiles --create httpd.conf
74 systemctl enable httpd.service
75
76install-iptables: create-dirs
77 install -m ${CONFMODE} blfs/units/iptables.service ${UNITSDIR}/
78 systemctl enable iptables.service
79
80install-kdm: create-dirs
81 install -m ${CONFMODE} blfs/units/kdm.service ${UNITSDIR}/
82 systemctl enable kdm.service
83
84install-krb5: create-dirs
85 install -m ${CONFMODE} blfs/units/krb5-kdc.service ${UNITSDIR}/
86 install -m ${CONFMODE} blfs/units/krb5-kpropd.service ${UNITSDIR}/
87 install -m ${CONFMODE} blfs/units/krb5-kadmind.service ${UNITSDIR}/
88 systemctl enable krb5-kdc.service
89 systemctl enable krb5-kpropd.service
90 systemctl enable krb5-kadmind.service
91
92install-mysqld: create-dirs
93 install -m ${CONFMODE} blfs/tmpfiles/mysqld.conf ${TMPFILESDIR}/
94 install -m ${CONFMODE} blfs/units/mysqld.service ${UNITSDIR}/
95 systemd-tmpfiles --create mysqld.conf
96 systemctl enable mysqld.service
97
98install-named: create-dirs
99 install -m ${CONFMODE} blfs/tmpfiles/named.conf ${TMPFILESDIR}/
100 install -m ${CONFMODE} blfs/units/named.service ${UNITSDIR}/
101 systemd-tmpfiles --create named.conf
102 systemctl enable named.service
103
104install-nfs-client: create-dirs
105 install -m ${CONFMODE} blfs/default/nfs-utils ${DEFAULTSDIR}/
106 install -m ${CONFMODE} blfs/units/rpc-statd.service ${UNITSDIR}/
107 install -m ${CONFMODE} blfs/units/nfs-client.target ${UNITSDIR}/
108 systemctl enable rpc-statd.service
109
110install-nfs-server: install-nfs-client
111 install -m ${CONFMODE} blfs/units/nfsd.service ${UNITSDIR}/
112 install -m ${CONFMODE} blfs/units/rpc-mountd.service ${UNITSDIR}/
113 install -m ${CONFMODE} blfs/units/nfs-server.target ${UNITSDIR}/
114 install -m ${CONFMODE} blfs/units/proc-fs-nfsd.mount ${UNITSDIR}/
115 systemctl enable nfsd.service
116 systemctl enable rpc-mountd.service
117
118install-ntpd: create-dirs
119 install -m ${CONFMODE} blfs/units/ntpd.service ${UNITSDIR}/
120 install -d -m ${DIRMODE} ${DESTDIR}/usr/lib/systemd/ntp-units.d
121 echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/ntp.list
122 systemctl enable ntpd.service
123
124install-php-fpm: create-dirs
125 install -m ${CONFMODE} blfs/units/php-fpm.service ${UNITSDIR}/
126 systemctl enable php-fpm.service
127
128install-postfix: create-dirs
129 install -m ${CONFMODE} blfs/units/postfix.service ${UNITSDIR}/
130 systemctl enable postfix.service
131
132install-postgresql: create-dirs
133 install -m ${CONFMODE} blfs/tmpfiles/postgresql.conf ${TMPFILESDIR}/
134 install -m ${CONFMODE} blfs/units/postgresql.service ${UNITSDIR}/
135 systemd-tmpfiles --create postgresql.conf
136 systemctl enable postgresql.service
137
138install-proftpd: create-dirs
139 install -m ${CONFMODE} blfs/units/proftpd.service ${UNITSDIR}/
140 systemctl enable proftpd.service
141
142install-rpcbind: create-dirs
143 install -m ${CONFMODE} blfs/units/rpcbind.service ${UNITSDIR}/
144 systemctl enable rpcbind.service
145
146install-rsyncd: create-dirs
147 install -m ${CONFMODE} blfs/units/rsyncd.service ${UNITSDIR}/
148 install -m ${CONFMODE} blfs/units/rsyncdat.service ${UNITSDIR}/rsyncd@.service
149 install -m ${CONFMODE} blfs/units/rsyncd.socket ${UNITSDIR}/
150 systemctl enable rsyncd.service
151
152install-samba: create-dirs
153 install -m ${CONFMODE} blfs/default/samba ${DEFAULTSDIR}/
154 install -m ${CONFMODE} blfs/tmpfiles/samba.conf ${TMPFILESDIR}/
155 install -m ${CONFMODE} blfs/units/nmbd.service ${UNITSDIR}/
156 install -m ${CONFMODE} blfs/units/smbd.service ${UNITSDIR}/
157 install -m ${CONFMODE} blfs/units/smbdat.service ${UNITSDIR}/smbd@.service
158 install -m ${CONFMODE} blfs/units/smbd.socket ${UNITSDIR}/
159 systemd-tmpfiles --create samba.conf
160 systemctl enable nmbd.service
161 systemctl enable smbd.service
162
163install-saslauthd: create-dirs
164 install -m ${CONFMODE} blfs/default/saslauthd ${DEFAULTSDIR}/
165 install -m ${CONFMODE} blfs/tmpfiles/saslauthd.conf ${TMPFILESDIR}/
166 install -m ${CONFMODE} blfs/units/saslauthd.service ${UNITSDIR}/
167 systemd-tmpfiles --create saslauthd.conf
168 systemctl enable saslauthd.service
169
170install-sendmail: create-dirs
171 install -m ${CONFMODE} blfs/default/sendmail ${DEFAULTSDIR}/
172 install -m ${CONFMODE} blfs/units/sm-client.service ${UNITSDIR}/
173 install -m ${CONFMODE} blfs/units/sendmail.service ${UNITSDIR}/
174 systemctl enable sendmail.service
175
176install-slapd: create-dirs
177 install -m ${CONFMODE} blfs/default/slapd ${DEFAULTSDIR}/
178 install -m ${CONFMODE} blfs/tmpfiles/slapd.conf ${TMPFILESDIR}/
179 install -m ${CONFMODE} blfs/units/slapd.service ${UNITSDIR}/
180 systemd-tmpfiles --create slapd.conf
181 systemctl enable slapd.service
182
183install-sshd: create-dirs
184 install -m ${CONFMODE} blfs/units/sshd.service ${UNITSDIR}/
185 install -m ${CONFMODE} blfs/units/sshdat.service ${UNITSDIR}/sshd@.service
186 install -m ${CONFMODE} blfs/units/sshd.socket ${UNITSDIR}/
187 systemctl enable sshd.service
188
189install-svnserve: create-dirs
190 install -m ${CONFMODE} blfs/default/svnserve ${DEFAULTSDIR}/
191 install -m ${CONFMODE} blfs/tmpfiles/svnserve.conf ${TMPFILESDIR}/
192 install -m ${CONFMODE} blfs/units/svnserve.service ${UNITSDIR}/
193 systemd-tmpfiles --create svnserve.conf
194 systemctl enable svnserve.service
195
196install-unbound: create-dirs
197 install -m ${CONFMODE} blfs/units/unbound.service ${UNITSDIR}/
198 systemctl enable unbound.service
199
200install-vsftpd: create-dirs
201 install -m ${CONFMODE} blfs/units/vsftpd.service ${UNITSDIR}/
202 systemctl enable vsftpd.service
203
204install-winbindd: install-samba
205 install -m ${CONFMODE} blfs/units/winbindd.service ${UNITSDIR}/
206 systemctl enable winbindd.service
207
208install-xinetd: create-dirs
209 install -m ${CONFMODE} blfs/units/xinetd.service ${UNITSDIR}/
210 systemctl enable xinetd.service
211
212uninstall-acpid:
213 systemctl stop acpid.service
214 systemctl disable acpid.socket
215 rm -f ${UNITSDIR}/acpid.service ${UNITSDIR}/acpid.socket
216
217uninstall-dhclient:
218 rm -f ${UNITSDIR}/dhclient@.service
219
220uninstall-dhcpcd:
221 rm -f ${UNITSDIR}/dhcpcd@.service
222
223uninstall-dhcpd:
224 systemctl stop dhcpd.service
225 systemctl disable dhcpd.service
226 rm -f ${DEFAULTSDIR}/dhcpd ${UNITSDIR}/dhcpd.service
227
228uninstall-exim:
229 systemctl stop exim.service
230 systemctl disable exim.service
231 rm -f ${UNITSDIR}/exim.service
232
233uninstall-git:
234 systemctl stop git-daemon.socket
235 systemctl disable git-daemon.socket
236 rm -f ${UNITSDIR}/git-daemon@.service ${UNITSDIR}/git-daemon.socket
237
238uninstall-gpm:
239 systemctl stop gpm.service
240 systemctl disable gpm.service
241 rm -f ${UNITSDIR}/gpm.service
242
243uninstall-haveged:
244 systemctl stop haveged.service
245 systemctl disable haveged.service
246 rm -f ${UNITSDIR}/haveged.service
247
248uninstall-httpd:
249 systemctl stop httpd.service
250 systemctl disable httpd.service
251 rm -f ${TMPFILESDIR}/httpd.conf ${UNITSDIR}/httpd.service
252
253uninstall-iptables:
254 systemctl disable iptables.service
255 rm -f ${UNITSDIR}/iptables.service
256
257uninstall-kdm:
258 systemctl stop kdm.service
259 systemctl disable kdm.service
260 rm -f ${UNITSDIR}/kdm.service
261
262uninstall-krb5:
263 systemctl stop krb5-kadmind.service
264 systemctl stop krb5-kpropd.service
265 systemctl stop krb5-kdc.service
266 systemctl disable krb5-kadmind.service
267 systemctl disable krb5-kpropd.service
268 systemctl disable krb5-kdc.service
269 rm -f ${UNITSDIR}/krb5-kadmind.service ${UNITSDIR}/krb5-kpropd.service ${UNITSDIR}/krb5-kdc.service
270
271uninstall-mysqld:
272 systemctl stop mysqld.service
273 systemctl disable mysqld.service
274 rm -f ${TMPFILESDIR}/mysqld.conf ${UNITSDIR}/mysqld.service
275
276uninstall-named:
277 systemctl stop named.service
278 systemctl disable named.service
279 rm -f ${TMPFILESDIR}/named.conf ${UNITSDIR}/named.service
280
281uninstall-nfs-client: uninstall-nfs-server
282 systemctl stop rpc-statd.service
283 systemctl disable rpc-statd.service
284 systemctl disable nfs-client.target
285 rm -f ${DEFAULTSDIR}/nfs-utils ${UNITSDIR}/rpc-statd.service
286 rm -f ${UNITSDIR}/nfs-client.target
287
288uninstall-nfs-server:
289 [ -e ${UNITSDIR}/rpc-mountd.service ] && systemctl stop rpc-mountd.service
290 [ -e ${UNITSDIR}/nfsd.service ] && systemctl stop nfsd.service
291 systemctl disable rpc-mountd.service
292 systemctl disable nfsd.service
293 systemctl disable nfs-server.target
294 rm -f ${UNITSDIR}/nfsd.service ${UNITSDIR}/rpc-mountd.service
295 rm -f ${UNITSDIR}/nfs-server.target ${UNITSDIR}/proc-fs-nfsd.mount
296
297uninstall-ntpd:
298 systemctl stop ntpd.service
299 systemctl disable ntpd.service
300 rm -f ${UNITSDIR}/ntpd.service ${DESTDIR}/usr/lib/systemd/ntp-units.d/ntp.list
301
302uninstall-php-fpm:
303 systemctl stop php-fpm.service
304 systemctl disable php-fpm.service
305 rm -f ${UNITSDIR}/php-fpm.service
306
307uninstall-postfix:
308 systemctl stop postfix.service
309 systemctl disable postfix.service
310 rm -f ${UNITSDIR}/postfix.service
311
312uninstall-postgresql:
313 systemctl stop postgresql.service
314 systemctl disable postgresql.service
315 rm -f ${TMPFILESDIR}/postgresql.conf ${UNITSDIR}/postgresql.service
316
317uninstall-proftpd:
318 systemctl stop proftpd.service
319 systemctl disable proftpd.service
320 rm -f ${UNITSDIR}/proftpd.service
321
322uninstall-rpcbind:
323 systemctl stop rpcbind.service
324 systemctl disable rpcbind.service
325 rm -f ${UNITSDIR}/rpcbind.service
326
327uninstall-rsyncd:
328 systemctl stop rsyncd.socket
329 systemctl stop rsyncd.service
330 rm -f ${UNITSDIR}/rsyncd.service ${UNITSDIR}/rsyncd@.service
331 rm -f ${UNITSDIR}/rsyncd.socket
332
333uninstall-samba: uninstall-winbindd
334 systemctl stop smbd.socket
335 systemctl stop smbd.service
336 systemctl stop nmbd.service
337 systemctl disable smbd.socket
338 systemctl disable smbd.service
339 systemctl disable nmbd.service
340 rm -f ${DEFAULTSDIR}/samba ${TMPFILESDIR}/samba.conf ${UNITSDIR}/nmbd.service
341 rm -f ${UNITSDIR}/smbd.service ${UNITSDIR}/smbd@.service ${UNITSDIR}/smbd.socket
342
343uninstall-saslauthd:
344 systemctl stop saslauthd.service
345 systemctl disable saslauthd.service
346 rm -f ${DEFAULTSDIR}/saslauthd ${TMPFILESDIR}/saslauthd.conf ${UNITSDIR}/saslauthd.service
347
348uninstall-sendmail:
349 systemctl stop sendmail.service
350 systemctl disable sendmail.service
351 rm -f ${DEFAULTSDIR}/sendmail ${UNITSDIR}/sm-client.service ${UNITSDIR}/sendmail.service
352
353uninstall-slapd:
354 systemctl stop slapd.service
355 systemctl disable slapd.service
356 rm -f ${DEFAULTSDIR}/slapd ${TMPFILESDIR}/slapd.conf ${UNITSDIR}/slapd.service
357
358uninstall-sshd:
359 systemctl stop sshd.socket
360 systemctl stop sshd.service
361 systemctl disable sshd.socket
362 systemctl disable sshd.service
363 rm -f ${UNITSDIR}/sshd.service ${UNITSDIR}/sshd@.service ${UNITSDIR}/sshd.socket
364
365uninstall-svnserve:
366 systemctl stop svnserve.service
367 systemctl disable svnserve.service
368 rm -f ${DEFAULTSDIR}/svnserve ${TMPFILESDIR}/svnserve.conf ${UNITSDIR}/svnserve.service
369
370uninstall-unbound:
371 systemctl stop unbound.service
372 systemctl disable unbound.service
373 rm -f ${UNITSDIR}/unbound.service
374
375uninstall-vsftpd:
376 systemctl stop vsftpd.service
377 systemctl disable vsftpd.service
378 rm -f ${UNITSDIR}/vsftpd.service
379
380uninstall-winbindd:
381 systemctl stop winbindd.service
382 systemctl disable winbindd.service
383 rm -f ${UNITSDIR}/winbindd.service
384
385uninstall-xinetd:
386 systemctl stop xinetd.service
387 systemctl disable xinetd.service
388 rm -f ${UNITSDIR}/xinetd.service
389
390.PHONY: all create-dirs create-service-dir \
391 install-acpid \
392 install-dhclient \
393 install-dhcpcd \
394 install-dhcpd \
395 install-exim \
396 install-git \
397 install-gpm \
398 install-httpd \
399 install-iptables \
400 install-kdm \
401 install-krb5 \
402 install-mysqld \
403 install-named \
404 install-nfs-client \
405 install-nfs-server \
406 install-ntp \
407 install-php-fpm \
408 install-postfix \
409 install-postgresql \
410 install-proftpd \
411 install-rpcbind \
412 install-rsyncd \
413 install-samba \
414 install-saslauthd \
415 install-sendmail \
416 install-slapd \
417 install-sshd \
418 install-svnserve \
419 install-unbound \
420 install-vsftpd \
421 install-winbindd \
422 install-xinetd \
423 uninstall-acpid \
424 uninstall-dhclient \
425 uninstall-dhcpcd \
426 uninstall-dhcpd \
427 uninstall-exim \
428 uninstall-git \
429 uninstall-gpm \
430 uninstall-httpd \
431 uninstall-iptables \
432 uninstall-kdm \
433 uninstall-krb5 \
434 uninstall-mysqld \
435 uninstall-named \
436 uninstall-nfs-client \
437 uninstall-nfs-server \
438 uninstall-ntpd \
439 uninstall-php-fpm \
440 uninstall-postfix \
441 uninstall-postgresql \
442 uninstall-proftpd \
443 uninstall-rpcbind \
444 uninstall-rsyncd \
445 uninstall-samba \
446 uninstall-saslauthd \
447 uninstall-sendmail \
448 uninstall-slapd \
449 uninstall-sshd \
450 uninstall-svnserve \
451 uninstall-unbound \
452 uninstall-vsftpd \
453 uninstall-winbindd \
454 uninstall-xinetd
Note: See TracBrowser for help on using the repository browser.