aboutsummaryrefslogtreecommitdiff
path: root/portal-gui/Makefile.in
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2010-11-11 01:40:05 +0000
committerMichael Elkins <melkins@tislabs.com>2010-11-11 01:40:05 +0000
commitbae959994e1a943ab76257bfa7bb65a2efe3299a (patch)
tree73b771c91f7e36c87c3a6d0ab5019db2d554fe44 /portal-gui/Makefile.in
parenta005b458fece9b8a3b7b86e38fb477f9b7592b65 (diff)
move docs on configuring apache to README.apache
update README to detail use of the build.sh for installation instead of using the configure script directly. added USER= configuration variable to specify the user that the apache web server is running as. make install target sets file permissions so that apache user can read/write them adduser.py sets file permissions so that apacher user can read/write them svn path=/portal-gui/Makefile.in; revision=3548
Diffstat (limited to 'portal-gui/Makefile.in')
-rw-r--r--portal-gui/Makefile.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/portal-gui/Makefile.in b/portal-gui/Makefile.in
index d39ba869..dc05afc5 100644
--- a/portal-gui/Makefile.in
+++ b/portal-gui/Makefile.in
@@ -10,6 +10,8 @@ INSTDIR=@INSTDIR@
PYTHON=@PYTHON@
MYRPKIDIR=@MYRPKIDIR@
DATABASE_PATH=@DATABASE_PATH@
+USER=@USER@
+CONFDIR=@CONFDIR@
# automatically built sources
BUILD=$(srcdir)/configure Makefile config.status rpkigui/settings.py \
@@ -79,7 +81,14 @@ INSTALL_FILES=\
scripts/load_csv.py \
scripts/runserver
-install: $(BUILD)
+.PHONY: install-perms install-data install
+
+install-perms:
+ chown $(USER) `dirname $(DATABASE_PATH)`
+ chown $(USER) $(DATABASE_PATH)
+ chown -R $(USER) $(CONFDIR)
+
+install-data: $(BUILD)
mkdir -p `dirname $(DATABASE_PATH)`
mkdir -p $(INSTDIR)/apache
mkdir -p $(INSTDIR)/media/img
@@ -96,3 +105,4 @@ install: $(BUILD)
chmod 755 $(INSTDIR)/scripts/load_csv $(INSTDIR)/scripts/list_resources $(INSTDIR)/scripts/runserver $(INSTDIR)/scripts/adduser
cd $(INSTDIR)/rpkigui && $(PYTHON) manage.py syncdb --pythonpath=$(MYRPKIDIR)
+install: install-data install-perms