aboutsummaryrefslogtreecommitdiff
path: root/net/freeradius2/files/patch-raddb-Makefile
blob: b8bf554bd14b71ab498d08bf96dc3b8c7c99c979 (plain) (blame)
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
--- raddb/Makefile.orig	Wed Jan 25 13:01:45 2006
+++ raddb/Makefile	Wed Jan 25 13:22:54 2006
@@ -15,26 +15,11 @@
 	$(INSTALL) -d -m 755	$(R)$(raddbdir)
 	@echo "Creating/updating files in $(R)$(raddbdir)"; \
 	for i in $(FILES); do \
-		[ ! -f $(R)$(raddbdir)/$$i ] && $(INSTALL) -m 644 $$i $(R)$(raddbdir); \
-		if [ "`find $$i -newer $(R)$(raddbdir)/$$i`" ]; then \
-			echo "** $(R)$(raddbdir)/$$i"; \
-			nt=1; \
-		fi; \
-	done; \
-	if [ "$$nt" ]; then \
-		echo "**";\
-		echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
-		echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
-		echo "**";\
-		echo "** The sample configuration files in `pwd`";\
-		echo "** are newer than those in $(R)$(raddbdir)";\
-		echo "**";\
-		echo "** Please investigate and manually copy (if appropriate) the files listed above.";\
-		echo "**";\
-		echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
-		echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
-	fi
-	chmod 640 $(R)$(raddbdir)/naspasswd $(R)$(raddbdir)/clients $(R)$(raddbdir)/clients.conf
+		$(INSTALL) -m 644 $$i $(R)$(raddbdir)/$$i.sample; \
+	done
+	chmod 640 $(R)$(raddbdir)/naspasswd.sample \
+		$(R)$(raddbdir)/clients.sample \
+		$(R)$(raddbdir)/clients.conf.sample
 	if [ ! -d $(R)$(raddbdir)/certs ]; then \
 		mkdir $(R)$(raddbdir)/certs; \
 		mkdir $(R)$(raddbdir)/certs/demoCA; \