10 # The list of files to install.
12 FILES = acct_users attrs attrs.access_reject attrs.accounting_response \
13 attrs.pre-proxy clients.conf dictionary templates.conf \
14 experimental.conf hints huntgroups ldap.attrmap \
15 policy.txt preproxy_users proxy.conf radiusd.conf trigger.conf \
16 users policy.conf attrs.access_challenge
18 DEFAULT_SITES = default inner-tunnel control-socket
19 ifneq "${OPENSSL_INCLUDE}" ""
24 # This target is here for local debugging
27 @if [ ! -d sites-enabled ]; then \
28 mkdir sites-enabled; \
31 for x in $(DEFAULT_SITES); do \
32 if [ ! -f $$x ]; then \
33 ln -s ../sites-available/$$x; \
38 $(INSTALL) -d -m 750 $(R)$(raddbdir)
39 $(INSTALL) -d -m 750 $(R)$(raddbdir)/sites-available
40 $(INSTALL) -d -m 750 $(R)$(raddbdir)/sites-enabled
41 $(INSTALL) -d -m 750 $(R)$(raddbdir)/modules
42 @echo "Creating/updating files in $(R)$(raddbdir)"; \
43 for i in $(FILES) `find sites-available/ modules/ -type f -print | sed 's/.*CVS.*//;s/.*~//;s/.*#.*//' `; do \
44 [ ! -f $(R)$(raddbdir)/$$i ] && $(INSTALL) -m 640 $$i $(R)$(raddbdir)/$$i; \
45 if [ "`find $$i -newer $(R)$(raddbdir)/$$i`" ]; then \
46 echo "** $(R)$(raddbdir)/$$i"; \
52 echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
53 echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
55 echo "** The sample configuration files in `pwd`";\
56 echo "** are newer than those in $(R)$(raddbdir)";\
58 echo "** Please investigate and manually copy (if appropriate) the files listed above.";\
60 echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
61 echo "** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING ** WARNING **";\
63 chmod 640 $(R)$(raddbdir)/clients.conf
64 if [ ! -d $(R)$(raddbdir)/certs ]; then \
65 $(INSTALL) -d -m 750 $(R)$(raddbdir)/certs; \
66 $(INSTALL) -m 750 certs/bootstrap $(R)$(raddbdir)/certs; \
67 for i in Makefile README xpextensions ca.cnf server.cnf client.cnf; do \
68 $(INSTALL) -m 640 certs/$$i $(R)$(raddbdir)/certs; \
70 $(MAKE) -C $(R)$(raddbdir)/certs; \
72 if [ ! -d $(R)$(raddbdir)/sql ]; then \
73 find sql -name CVS -prune -o -print | \
75 if [ -d "$$file" ]; then \
76 $(INSTALL) -d -m 750 "$(R)$(raddbdir)/$$file"; \
78 $(INSTALL) -m 640 "$$file" "$(R)$(raddbdir)/$$file"; \
82 @cd $(R)$(raddbdir)sites-enabled/; \
83 for x in $(DEFAULT_SITES); do \
84 if [ ! -f $$x ]; then \
85 ln -s ../sites-available/$$x; \
90 @rm -rf *~ $(addprefix sites-enabled/,$(DEFAULT_SITES))
93 @grep exec_trigger `find ../src -name "*.c" -print` | grep '"' | sed -e 's/.*,//' -e 's/ *"//' -e 's/");.*//'