summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 72a72aef6262205c700041d53c967ee785a44c95 (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
NAME    = setup
VERSION = 2.7.23
SVNPATH = svn+ssh://svn.mageia.org/svn/soft/$(PACKAGE)

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

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)/etc/
	install -d -m 755 $(DESTDIR)/var/log/
	for i in $(LIST); do \
		cp -avf $$i $(DESTDIR)/etc/$$i; \
	done
	chmod 0600 $(DESTDIR)/etc/securetty
	echo -n '' > $(DESTDIR)/var/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"