diff --git a/awstats/Makefile b/awstats/Makefile index 8c958fc3..c08767b8 100755 --- a/awstats/Makefile +++ b/awstats/Makefile @@ -28,5 +28,6 @@ install: install -m 0644 -g 1999 -o root awstats.alternc.generic.conf $(DESTDIR)/etc/alternc/ install -m 0644 -g 1999 -o root bureau/class/m_aws.php $(DESTDIR)/usr/share/alternc/panel/class/ install -m 0644 -g 1999 -o root bureau/admin/* $(DESTDIR)/usr/share/alternc/panel/admin/ + install -m 750 awstats-install $(DESTDIR)/usr/lib/alternc/install.d/ #install -m 0444 lintian-override $(DESTDIR)/usr/share/lintian/overrides/alternc-awstats diff --git a/awstats/awstats-install b/awstats/awstats-install new file mode 100644 index 00000000..1f804cfc --- /dev/null +++ b/awstats/awstats-install @@ -0,0 +1,32 @@ +#!/bin/bash + +# ---------------------------------------------------------------------- +# AlternC - Web Hosting System +# Copyright (C) 2000-2012 by the AlternC Development Team. +# https://alternc.org/ +# ---------------------------------------------------------------------- +# LICENSE +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License (GPL) +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# To read the license please visit http://www.gnu.org/copyleft/gpl.html +# ---------------------------------------------------------------------- +# Purpose of file: Install awstat conf files. +# ---------------------------------------------------------------------- + +if [ "$1" = "before-reload" ] +then + if [ -f /usr/lib/alternc/awstats.cache.php ] + then + /usr/lib/alternc/awstats.cache.php + fi +fi + diff --git a/roundcube/Makefile b/roundcube/Makefile index b5bed00e..e058d97d 100644 --- a/roundcube/Makefile +++ b/roundcube/Makefile @@ -26,6 +26,7 @@ install: install -m 644 templates/roundcube/plugins/password/config.inc.php $(DESTDIR)/etc/alternc/templates/roundcube/plugins/password/ install -m 644 templates/roundcube/plugins/managesieve/config.inc.php $(DESTDIR)/etc/alternc/templates/roundcube/plugins/managesieve/ install -m 644 roundcube_alternc_logo.png $(DESTDIR)/usr/share/roundcube/skins/default/images/ + install -m 750 awstats.cache.php $(DESTDIR)/usr/lib/alternc/ install -m 750 roundcube-install $(DESTDIR)/usr/lib/alternc/install.d/ # domaintype template: install -m 644 templates/apache2/roundcube.conf $(DESTDIR)/etc/alternc/templates/apache2/