# Copyright 2006-2009 by Purdue Research Foundation, West Lafayette, IN 47906.
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License, version 2.1 as published by the Free Software Foundation.

INSTDIR=$(DESTDIR)/usr/share
ETCDIR=$(DESTDIR)/etc
VARLIB=$(DESTDIR)/var/lib
VARLOG=$(DESTDIR)/var/log
OWNER=root
GROUP=root
WEBGROUP=www-data
WEBOWNER=www-data

clean:
	@true

install:
	install --owner $(OWNER) --group $(GROUP) --mode 0755 -d $(INSTDIR)/hubzero-mw-firewall
	install --owner $(OWNER) --group $(WEBGROUP) --mode 0750 -d $(ETCDIR)/hubzero
	install --owner $(WEBOWNER) --group $(WEBGROUP) --mode 0700 -d $(VARLIB)/hubzero
	install --owner $(WEBOWNER) --group $(WEBGROUP) --mode 0700 -d $(VARLOG)/hubzero
	install --owner $(WEBOWNER) --group $(WEBGROUP) --mode 0770 -d $(VARLOG)/hubzero/sessions
	install --owner $(OWNER) --group $(GROUP) --mode 0700 firewall_on -D $(ETCDIR)/hubzero
	install --owner $(OWNER) --group $(GROUP) --mode 0700 firewall_off -D $(ETCDIR)/hubzero
	install --owner $(OWNER) --group $(GROUP) --mode 0755 -d $(ETCDIR)/rc.boot
	#ln -s /etc/rc.boot/firewall_on /etc/mw/firewall_on
