Magellan Linux

Contents of /tags/init-0_8_1/Makefile.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1669 - (show annotations) (download)
Sun Feb 5 16:09:48 2012 UTC (12 years, 2 months ago) by niro
Original Path: trunk/initscripts/Makefile.inc
File size: 908 byte(s)
-upstream moved systemdunitdir /lib/systemd -> /usr/lib/systemd
1 # $Id$
2
3 CC = gcc
4 CFLAGS = -Os -Wall
5 LDFLAGS = -s
6
7 SYSCONFDIR = /etc
8 LIBDIR = /usr/lib
9 SBINDIR = /sbin
10 RCDIR = $(SYSCONFDIR)/rc.d
11 INITDIR = $(RCDIR)/init.d
12 SYSTEMDDIR = $(LIBDIR)/systemd
13 UNITSDIR = $(SYSTEMDDIR)/system
14
15 general:
16 install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)
17 for file in etc/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/; done
18 # fix shadow permissions
19 if [ -f $(DESTDIR)/$(SYSCONFDIR)/shadow ];then chmod 0400 $(DESTDIR)$(SYSCONFDIR)/shadow; fi
20
21 install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/conf.d
22 for file in conf.d/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/conf.d/; done
23
24 install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/modprobe.d
25 for file in modprobe.d/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/modprobe.d/; done
26
27 install -d -m 0755 $(DESTDIR)$(SBINDIR)
28 for file in sbin/*; do install -m 0755 $${file} $(DESTDIR)$(SBINDIR); done
29
30 .PHONY: general