#
# $Id: Makefile,v 1.2 1999/12/16 03:54:29 del Exp $
#
WEBDIR	=	/home/httpd/html/phpchains
VARDIR	=	/var/lib/phpchains

FILES	=	*.php3 *.inc fwscript
CONF	=	interfaces netobjects rulesets redirectors

all:	$(CONF)

interfaces:
	ifconfig | grep 'Link encap:' | cut -f1 -d' ' > interfaces

netobjects:	interfaces make-netobjects
	./make-netobjects

rulesets:
	touch rulesets

redirectors:
	touch redirectors
	touch fwscript
	echo "Now go into the sudo directory and build that.."

install:	all
	mkdir -p $(WEBDIR) $(VARDIR)
	install -m 444 $(FILES) $(WEBDIR)
	install -m 600 $(CONF) $(VARDIR)
	ln -s /sbin/fwscript /home/httpd/html/phpchains/fwscript
	echo "Now make sure sudo is also installed!!"
clean:
	$(RM) $(CONF)
