# Copyright 2004-2010 by Purdue University.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.

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

clean:
	rm -f configure-stamp build-stamp

install:
	install --owner $(OWNER) --group $(WEBGROUP) --mode 0770 -d $(INSTDIR)/hubzero/
	install --owner $(OWNER) --group $(WEBGROUP) --mode 0770 -d $(INSTDIR)/hubzero/bin
	install --owner $(WEBOWNER) --group $(WEBGROUP) --mode 0755 -d $(LOGDIR)/hubzero

	install --owner $(OWNER) --group $(GROUP) --mode 0700 -D expire-sessions.py $(INSTDIR)/hubzero/bin/expire-sessions.py
	install --owner $(OWNER) --group $(GROUP) --mode 0700 -D expire-sessions $(ETCDIR)/init.d/expire-sessions
