include ../Make.inc
DIALUP_PREFIX := /usr/local/dialup_admin
DIALUP_DOCDIR := $(DIALUP_PREFIX)/doc
DIALUP_CONFDIR := $(DIALUP_PREFIX)/conf
all:
install:
install -d -m 0755 $(R)/$(DIALUP_PREFIX)
install -d -m 0755 $(R)/$(DIALUP_DOCDIR)
install -d -m 0755 $(R)/$(DIALUP_CONFDIR)
install -d -m 0755 $(R)/$(DIALUP_PREFIX)/bin
find doc Changelog README -name CVS -prune -o -type f -print0 | \
xargs -0 install -m 0644 -t $(R)/$(DIALUP_DOCDIR)
find conf -name CVS -prune -o -type f -print0 | \
xargs -0 install -m 0644 -t $(R)/$(DIALUP_CONFDIR)
find htdocs html lib sql -name CVS -prune -o -print | \
while read file; do \
if [ -d "$$file" ]; then \
install -d -m 0755 "$(R)/$(DIALUP_PREFIX)/$$file"; \
else \
install -m 0644 "$$file" "$(R)/$(DIALUP_PREFIX)/$$file"; \
fi; \
done
sed -e 's -e 's -e 's -e 's -e 's -e 's conf/admin.conf > $(R)/$(DIALUP_CONFDIR)/admin.conf
sed -e 's htdocs/help/help.php3 > $(R)/$(DIALUP_PREFIX)/htdocs/help/help.php3
for binfile in backup_radacct clean_radacct clearsession log_badlogins monthly_tot_stats showmodem snmpfinger sqlrelay_query tot_stats truncate_radacct; do \
sed -e 's -e 's bin/$$binfile > $(R)/$(DIALUP_PREFIX)/bin/$$binfile ; \
chmod 0755 $(R)/$(DIALUP_PREFIX)/bin/$$binfile; \
done
sed -e 's bin/dialup_admin.cron > $(R)/$(DIALUP_PREFIX)/bin/dialup_admin.cron
.PHONY: all install