2013-08-16 00:24:02 +08:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
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 \
|
|
|
|
scripts \
|
2011-04-27 19:04:06 +08:00
|
|
|
db \
|
|
|
|
misc
|
2004-02-19 21:14:09 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2011-01-07 19:10:18 +08:00
|
|
|
zm.conf.in \
|
|
|
|
zmconfgen.pl.in
|
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) )
|
2013-09-13 02:00:10 +08:00
|
|
|
( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(DESTDIR)$(ZM_RUNDIR); fi; if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR); fi )
|
|
|
|
( if ! test -e $(DESTDIR)$(ZM_TMPDIR); then mkdir -m 700 -p $(DESTDIR)$(ZM_TMPDIR); fi; if test "$(DESTDIR)$(ZM_TMPDIR)" != "/tmp"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_TMPDIR); chmod u+w $(DESTDIR)$(ZM_TMPDIR); fi )
|
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 )
|
2013-09-13 02:00:10 +08:00
|
|
|
@-( if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(DESTDIR)$(ZM_RUNDIR); fi )
|
|
|
|
@-( if test "$(DESTDIR)$(ZM_TMPDIR)" != "/tmp"; then rm -rf $(DESTDIR)$(ZM_TMPDIR); fi )
|
|
|
|
@-( if test "$(DESTDIR)$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(DESTDIR)$(ZM_LOGDIR); fi )
|