freebsd-ports/net/freeradius2/files/patch-raddb-Makefile
Pav Lucistnik b421b8094b - Update to 1.1.0
- No longer compiles on FreeBSD 4.X

PR:		ports/92598
Submitted by:	Alessandro Dellavedova
2006-02-01 18:38:14 +00:00

34 lines
1.5 KiB
Text

--- 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; \