@cd mods-enabled/; \
for x in $(DEFAULT_MODULES); do \
if [ ! -f $$x ]; then \
- ln -s ../modules/$$x; \
+ ln -s ../mods-available/$$x; \
fi; \
done
$(INSTALL) -d -m 750 $(R)$(raddbdir)
$(INSTALL) -d -m 750 $(R)$(raddbdir)/sites-available
$(INSTALL) -d -m 750 $(R)$(raddbdir)/sites-enabled
- $(INSTALL) -d -m 750 $(R)$(raddbdir)/modules
+ $(INSTALL) -d -m 750 $(R)$(raddbdir)/mods-available
+ $(INSTALL) -d -m 750 $(R)$(raddbdir)/mods-enabled
@echo "Creating/updating files in $(R)$(raddbdir)"; \
- for i in $(FILES) `find sites-available/ modules/ -type f -print | sed 's/.*CVS.*//;s/.*~//;s/.*#.*//' `; do \
+ for i in $(FILES) `find sites-available/ mods-available/ -type f -print | sed 's/.*~//;s/.*#.*//' `; do \
[ ! -f $(R)$(raddbdir)/$$i ] && $(INSTALL) -m 640 $$i $(R)$(raddbdir)/$$i; \
if [ "`find $$i -newer $(R)$(raddbdir)/$$i`" ]; then \
echo "** $(R)$(raddbdir)/$$i"; \
ln -s ../sites-available/$$x; \
fi; \
done
+ @cd $(R)$(raddbdir)/mods-enabled/; \
+ for x in $(DEFAULT_MODULES); do \
+ if [ ! -f $$x ]; then \
+ ln -s ../mods-available/$$x; \
+ fi; \
+ done
clean:
@rm -rf *~ $(addprefix sites-enabled/,$(DEFAULT_SITES)) \
#
#
- # As of 2.0.5, most of the module configurations are in a
- # sub-directory. Files matching the regex /[a-zA-Z0-9_.]+/
- # are loaded. The modules are initialized ONLY if they are
- # referenced in a processing section, such as authorize,
- # authenticate, accounting, pre/post-proxy, etc.
+ # As of 3.0, modules are in mods-enabled/. Files matching
+ # the regex /[a-zA-Z0-9_.]+/ are loaded. The modules are
+ # initialized ONLY if they are referenced in a processing
+ # section, such as authorize, authenticate, accounting,
+ # pre/post-proxy, etc.
#
- $INCLUDE ${confdir}/modules/
+ $INCLUDE ${confdir}/mods-enabled/
}
# Instantiation