diff options
author | Andrew Pantyukhin <sat@FreeBSD.org> | 2007-03-13 08:26:01 +0000 |
---|---|---|
committer | Andrew Pantyukhin <sat@FreeBSD.org> | 2007-03-13 08:26:01 +0000 |
commit | fc532a135f81e549832e4fee31819547a463f884 (patch) | |
tree | 0b96159754f327c31acd3fdbed9c448c1999eaf7 /mail/horde-vacation | |
parent | f5458aa68be724cfce048fb713ace9e07841bdb7 (diff) | |
download | ports-fc532a135f81e549832e4fee31819547a463f884.tar.gz ports-fc532a135f81e549832e4fee31819547a463f884.zip |
Notes
Diffstat (limited to 'mail/horde-vacation')
-rw-r--r-- | mail/horde-vacation/files/httpd.conf.vacation | 31 | ||||
-rw-r--r-- | mail/horde-vacation/files/pkg-deinstall.in | 23 | ||||
-rw-r--r-- | mail/horde-vacation/files/pkg-install.in | 23 | ||||
-rw-r--r-- | mail/horde-vacation/files/pkg-message.in | 12 |
4 files changed, 89 insertions, 0 deletions
diff --git a/mail/horde-vacation/files/httpd.conf.vacation b/mail/horde-vacation/files/httpd.conf.vacation new file mode 100644 index 000000000000..8c5c87914088 --- /dev/null +++ b/mail/horde-vacation/files/httpd.conf.vacation @@ -0,0 +1,31 @@ +# This is included in Apache's httpd.conf for VACATION +# +# For security, don't serve pages from the VACATION configuration and +# library directories. +# +<Directory "/home/httpd/html/horde/vacation/config"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/vacation/lib"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/vacation/locale"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/vacation/po"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/vacation/scripts"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/vacation/templates"> + order deny,allow + deny from all +</Directory> +# End of VACATION configuration ================ + diff --git a/mail/horde-vacation/files/pkg-deinstall.in b/mail/horde-vacation/files/pkg-deinstall.in new file mode 100644 index 000000000000..b0935973dcea --- /dev/null +++ b/mail/horde-vacation/files/pkg-deinstall.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD: +# + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -z "${PACKAGE_BUILDING}" ]; then + for cf in `ls %%VACDIR%%/config/*.xml %%VACDIR%%/config/*xml`; do + diff -bBqw $cf $cf.xml >/dev/null 2>&1 + case $? in + 0) # original config file, delete it + rm -f $cf + ;; + 1) # config file has been updated, leave it alone + ;; + *) # not found? + ;; + esac + done +fi diff --git a/mail/horde-vacation/files/pkg-install.in b/mail/horde-vacation/files/pkg-install.in new file mode 100644 index 000000000000..317b307c0b70 --- /dev/null +++ b/mail/horde-vacation/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD: +# + +PATH=/usr/sbin:/usr/bin:/bin ; export PATH + +case $2 in + PRE-INSTALL) + ;; + + POST-INSTALL) + if [ -z "${PACKAGE_BUILDING}" ]; then + # Copy over sample config files unless they already exist + + for cf in `ls %%VACDIR%%/config/*.xml | sed -e 's/\.dist//g'`; do + if [ ! -f $cf ]; then + cp -p $cf.xml $cf + fi + done + fi + ;; +esac diff --git a/mail/horde-vacation/files/pkg-message.in b/mail/horde-vacation/files/pkg-message.in new file mode 100644 index 000000000000..788efd39a59c --- /dev/null +++ b/mail/horde-vacation/files/pkg-message.in @@ -0,0 +1,12 @@ +************************************************************************ +VACATION has been installed in %%VACDIR%% with your blank +configuration files. + +Horde must be configured and the tables created; if not, see +`pkg_info -D -x horde'. + +Then, you must login to Horde as a Horde Administrator to finish the +configuration. Please read %%DOCSDIR%%/INSTALL. + +To protect your configuration files, you have to restart your webserver. +************************************************************************ |