2002-12-10 20:13:55 +08:00
|
|
|
AUTOMAKE_OPTIONS = gnu
|
2003-01-12 02:31:16 +08:00
|
|
|
|
2004-12-29 00:46:48 +08:00
|
|
|
# And these to the user and group of your webserver
|
|
|
|
webuser = @WEB_USER@
|
|
|
|
webgroup = @WEB_GROUP@
|
|
|
|
|
|
|
|
sysconf_DATA = \
|
|
|
|
zm.conf
|
|
|
|
|
2004-02-19 21:14:09 +08:00
|
|
|
SUBDIRS = \
|
|
|
|
src \
|
|
|
|
web \
|
|
|
|
scripts \
|
|
|
|
db
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2005-12-16 18:12:40 +08:00
|
|
|
zm.conf.in \
|
2006-01-16 01:41:21 +08:00
|
|
|
README.txt \
|
2004-02-19 21:14:09 +08:00
|
|
|
README.html \
|
2004-05-20 20:59:36 +08:00
|
|
|
README.pdf \
|
2004-02-19 21:14:09 +08:00
|
|
|
README.rtf
|
2004-12-29 00:46:48 +08:00
|
|
|
|
|
|
|
# Yes, you are correct. This is a HACK!
|
|
|
|
install-data-hook:
|
|
|
|
( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
|
2005-12-22 22:40:18 +08:00
|
|
|
-( if ! test -e $(RUNDIR); then mkdir $(RUNDIR); fi )
|
|
|
|
( if ! test -e $(ZM_RUNDIR); then mkdir $(ZM_RUNDIR); fi; chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR) )
|
2004-12-29 00:46:48 +08:00
|
|
|
|
2005-12-22 22:40:18 +08:00
|
|
|
uninstall-hook:
|
|
|
|
@-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
|
|
|
|
@-( rm -rf $(ZM_RUNDIR) )
|