Contents of /trunk/initscripts/Makefile.inc
Parent Directory
|
Revision Log
Revision 2215 -
(show annotations)
(download)
Tue Oct 15 09:46:02 2013 UTC (10 years, 6 months ago) by niro
File size: 979 byte(s)
Tue Oct 15 09:46:02 2013 UTC (10 years, 6 months ago) by niro
File size: 979 byte(s)
-provide a sane CONFIG_PROTECT environment for all initscript types
1 | # $Id$ |
2 | |
3 | CC = gcc |
4 | CFLAGS = -Os -Wall |
5 | LDFLAGS = -s |
6 | |
7 | SYSCONFDIR = /etc |
8 | LIBDIR = /lib |
9 | SBINDIR = /sbin |
10 | RCDIR = $(SYSCONFDIR)/rc.d |
11 | INITDIR = $(RCDIR)/init.d |
12 | |
13 | general: |
14 | install -d -m 0755 $(DESTDIR)$(SYSCONFDIR) |
15 | for file in etc/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/; done |
16 | # fix shadow permissions |
17 | if [ -f $(DESTDIR)/$(SYSCONFDIR)/shadow ];then chmod 0400 $(DESTDIR)$(SYSCONFDIR)/shadow; fi |
18 | |
19 | install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/conf.d |
20 | for file in conf.d/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/conf.d/; done |
21 | |
22 | install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/env.d |
23 | for file in env.d/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/env.d/; done |
24 | |
25 | install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/modprobe.d |
26 | for file in modprobe.d/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/modprobe.d/; done |
27 | |
28 | install -d -m 0755 $(DESTDIR)$(SBINDIR) |
29 | for file in sbin/*; do install -m 0755 $${file} $(DESTDIR)$(SBINDIR); done |
30 | |
31 | .PHONY: general |