aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-17 23:07:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-17 23:07:12 +0000
commit0c0225d6ea812ee8e8fb293737a8c7004969724e (patch)
tree7db2b17c4dc07574293a5a8af1c2ab25c4f9ad8b
parentf3ade15c2f92880b89767f84cd944773a7140d08 (diff)
downloadmgatres-0c0225d6ea812ee8e8fb293737a8c7004969724e.tar
mgatres-0c0225d6ea812ee8e8fb293737a8c7004969724e.tar.gz
mgatres-0c0225d6ea812ee8e8fb293737a8c7004969724e.tar.bz2
mgatres-0c0225d6ea812ee8e8fb293737a8c7004969724e.tar.xz
mgatres-0c0225d6ea812ee8e8fb293737a8c7004969724e.zip
Add static/ directory for static files
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8320 5b7c3c08-40e5-403b-9995-ace06908e4af
-rw-r--r--Makefile6
-rw-r--r--README7
-rw-r--r--config_default1
3 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ecfe29e..cb1a14e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,21 +4,25 @@ PROJECTNAME=mga-treasurer
BINFILES=mktreasurer
CFGFILES=mga-treasurer.conf
TMPLFILES=tmpl/*.html tmpl/*.rss
+STATICFILES=static/*
sysconfdir=/etc
bindir=/usr/bin
sharedir=/usr/share
projectdir=$(sharedir)/$(PROJECTNAME)
tmpldir=$(projectdir)/tmpl
+staticdir=$(projectdir)/static
all:
install:
install -d $(DESTDIR)$(projectdir) $(DESTDIR)$(tmpldir) \
- $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
+ $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir) \
+ $(DESTDIR)$(staticdir)
install -m 755 $(BINFILES) $(DESTDIR)$(bindir)
install -m 644 $(CFGFILES) $(DESTDIR)$(sysconfdir)
install -m 644 $(TMPLFILES) $(DESTDIR)$(tmpldir)
+ install -m 644 $(STATICFILES) $(DESTDIR)$(staticdir)
install -m 644 config_default $(DESTDIR)$(projectdir)/config
tar:
diff --git a/README b/README
index 93af484..b9e4e2b 100644
--- a/README
+++ b/README
@@ -22,6 +22,13 @@ The following files and directories exist in the source tree :
all the pages.
- tmpl/: directory containing template for all the pages. Installed as
/usr/share/mga-treasurer/tmpl.
+ - static/: directory containing static files. Installed as
+ /usr/share/mga-treasurer/static. The web server should be configured to
+ make the files from this directory available at some URL. With apache
+ you can use something like this in your vhost configuration :
+ Alias /static /usr/share/mga-treasurer/static
+ The URL where it is available should be set in the configuration in the
+ staticdir_url variable.
- config_default: default configuration file, installed as
/usr/share/mga-treasurer/config.
- mga-treasurer.conf: example configuration file, installed as
diff --git a/config_default b/config_default
index 3bc615b..82db5c0 100644
--- a/config_default
+++ b/config_default
@@ -6,3 +6,4 @@ output_format:
out_dir: /var/www/mga-treasurer
sitename: Mageia.Org
siteurl: http://treasurer.mageia.org
+staticdir_url: http://treasurer.mageia.org/static