blob: 842bfef07816370f3a70e7a3e2cce3ffdaa1f514 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Basic Makefile for compiling & installing the files.
#
# Supports standard GNU Makefile variables for specifying the paths:
# * prefix
# * exec_prefix
# * bindir
# * sbindir
# * libdir
# * datarootdir
# * datadir
# * mandir
# * sysconfdir
# * localstatedir
# * DESTDIR
#
SHELL = /bin/bash
# Normally /usr/local is used. However, it does not make sense for us to use it
# here, as it just complicates things even further.
prefix = /usr
exec_prefix = $(prefix)
bindir = $(prefix)/bin
sbindir = $(prefix)/sbin
libdir = $(prefix)/lib
libexecdir = $(exec_prefix)/libexec
datarootdir = $(prefix)/share
datadir = $(datarootdir)
mandir = $(datadir)/man
sysconfdir = /etc
localstatedir = /var
sharedstatedir = $(localstatedir)/lib
NAME = setup
VERSION = 2.7.24
LIST = csh.cshrc csh.login gshadow group host.conf hosts.allow hosts.deny inputrc \
motd passwd printcap protocols securetty services shadow shells profile \
filesystems fstab resolv.conf hosts subgid subuid
check:
@echo Sanity checking selected files....
bash -n profile
tcsh -f csh.cshrc
tcsh -f csh.login
./serviceslint ./services
clean:
rm -f *~ \#*\#
install:
install -d -m 755 $(DESTDIR)$(sysconfdir)
install -d -m 755 $(DESTDIR)$(localstatedir)/log/
for i in $(LIST); do \
cp -avf $$i $(DESTDIR)$(sysconfdir)/$$i; \
done
chmod 0600 $(DESTDIR)$(sysconfdir)/securetty
echo -n '' > $(DESTDIR)$(localstatedir)/log/lastlog
dist:
@git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz
@echo "The archive is at $(NAME)-$(VERSION).tar.xz"
|