diff options
Diffstat (limited to 'www/horde-base/files')
-rw-r--r-- | www/horde-base/files/httpd.conf.horde | 57 | ||||
-rw-r--r-- | www/horde-base/files/patch-config_conf.xml | 20 | ||||
-rw-r--r-- | www/horde-base/files/patch-config_mime_drivers.php.dist | 251 | ||||
-rw-r--r-- | www/horde-base/files/patch-config_registry.php.dist | 17 | ||||
-rw-r--r-- | www/horde-base/files/patch-po_translation.php | 8 | ||||
-rw-r--r-- | www/horde-base/files/patch-scripts_sql_README | 11 | ||||
-rw-r--r-- | www/horde-base/files/pkg-deinstall.in | 61 | ||||
-rw-r--r-- | www/horde-base/files/pkg-install.in | 117 | ||||
-rw-r--r-- | www/horde-base/files/pkg-message.in | 39 |
9 files changed, 0 insertions, 581 deletions
diff --git a/www/horde-base/files/httpd.conf.horde b/www/horde-base/files/httpd.conf.horde deleted file mode 100644 index 0bd4b621c52b..000000000000 --- a/www/horde-base/files/httpd.conf.horde +++ /dev/null @@ -1,57 +0,0 @@ -# This is included in Apache's httpd.conf for Horde - -<Directory /home/httpd/html/horde> - Options Indexes FollowSymLinks - AllowOverride None - order allow,deny - allow from all - <IfModule mod_php4.c> - php_value include_path '/home/httpd/phplib:.' - php_flag register_globals On - php_flag magic_quotes_gpc Off - php_flag track_vars On - php_value memory_limit 16M - </IfModule> -</Directory> - -<IfModule mod_alias.c> - Alias /horde/ "/home/httpd/html/horde/" -</IfModule> -# -# For security, don't serve pages from the Horde configuration and library -# directories. -# -#<Directory "/home/httpd/html/horde/admin"> -# Order deny,allow -# Deny from all -#</Directory> -<Directory "/home/httpd/html/horde/config"> - Order deny,allow - Deny from all -</Directory> -<Directory "/home/httpd/html/horde/lib"> - Order deny,allow - Deny from all -</Directory> -<Directory "/home/httpd/html/horde/locale"> - Order deny,allow - Deny from all -</Directory> -<Directory "/home/httpd/html/horde/po"> - Order deny,allow - Deny from all -</Directory> -<Directory "/home/httpd/html/horde/scripts"> - Order deny,allow - Deny from all -</Directory> -<Directory "/home/httpd/html/horde/templates"> - Order deny,allow - Deny from all -</Directory> -<Directory "/home/httpd/html/horde/util"> - Order deny,allow - Deny from all -</Directory> -# End of Horde configuration ================ - diff --git a/www/horde-base/files/patch-config_conf.xml b/www/horde-base/files/patch-config_conf.xml deleted file mode 100644 index 56f6f6a346f7..000000000000 --- a/www/horde-base/files/patch-config_conf.xml +++ /dev/null @@ -1,20 +0,0 @@ ---- config/conf.xml.orig Fri Nov 5 10:54:09 2004 -+++ config/conf.xml Sat Nov 27 23:20:31 2004 -@@ -276,7 +276,7 @@ - - <case name="login" desc="Login (su) authentication"> - <configsection name="params"> -- <configstring name="location" desc="Location of the su binary">/bin/su</configstring> -+ <configstring name="location" desc="Location of the su binary">/usr/bin/su</configstring> - </configsection> - </case> - -@@ -932,7 +932,7 @@ - <configsection name="params"> - <configstring name="sendmail_path" required="false" desc="The location - of the sendmail binary on the filesystem -- [/usr/sbin/sendmail]">/usr/lib/sendmail</configstring> -+ [/usr/sbin/sendmail]">/usr/sbin/sendmail</configstring> - <configstring name="sendmail_args" required="false" desc="Any extra - parameters to pass to the sendmail or sendmail wrapper - binary">-oi</configstring> diff --git a/www/horde-base/files/patch-config_mime_drivers.php.dist b/www/horde-base/files/patch-config_mime_drivers.php.dist deleted file mode 100644 index 9b32d41ebb5e..000000000000 --- a/www/horde-base/files/patch-config_mime_drivers.php.dist +++ /dev/null @@ -1,251 +0,0 @@ ---- config/mime_drivers.php.dist.orig Fri Sep 30 22:52:16 2005 -+++ config/mime_drivers.php.dist Fri Oct 28 23:01:17 2005 -@@ -37,10 +37,21 @@ - * zip Zip files - */ - $mime_drivers_map['horde']['registered'] = array( -- 'css', 'deb', 'enriched', 'enscript', 'html', 'images', 'msword', -- 'msexcel', 'mspowerpoint', 'ooo', 'pdf', 'php', 'plain', 'rar', 'report', -- 'rfc822', 'richtext', 'rpm', 'security', 'simple', 'srchighlite', 'tgz', -- 'tnef', 'vcard', 'webcpp', 'zip'); -+ 'css' -+//UNCOMMENTIFDEB , 'deb' -+ , 'enriched' -+//UNCOMMENTIFES , 'enscript' -+ , 'html', 'images' -+//UNCOMMENTIFWV , 'msword' -+//UNCOMMENTIFXL , 'msexcel', 'mspowerpoint' -+ , 'ooo', 'pdf', 'php', 'plain', 'rar', 'report', -+ 'rfc822', 'richtext' -+//UNCOMMENTIFRPM , 'rpm' -+ , 'security', 'simple' -+//UNCOMMENTIFSRCHIGH , 'srchighlite' -+ , 'tgz', 'tnef', 'vcard' -+//UNCOMMENTIFWCPP , 'webcpp' -+ , 'zip'); - - - /** -@@ -161,66 +172,66 @@ - * Web C Plus Plus driver settings - * http://webcpp.sourceforge.net/ - */ --$mime_drivers['horde']['webcpp']['location'] = '/usr/bin/webcpp'; --$mime_drivers['horde']['webcpp']['inline'] = true; --$mime_drivers['horde']['webcpp']['handles'] = array( -- 'text/xml', 'text/sgml', 'application/xml', -- 'application/x-sh', 'application/x-javascript', 'application/x-tcl', -- 'x-extension/asm', 'application/x-asp', 'x-extension/bas', -- 'x-extension/cs', 'text/x-csrc', 'x-extension/rc', -- 'text/x-c++src', 'text/x-c++src', 'text/x-c++src', -- 'text/x-chdr', 'x-extension/bat', 'text/x-fortran', -- 'x-extension/f77', 'x-extension/f90', 'x-extension/for', -- 'x-extension/ftn', 'text/x-java', 'application/x-javascript', -- 'text/sgml', 'text/xml', 'text/x-pascal', -- 'application/x-cgi', 'application/x-perl', 'application/x-python', -- 'text/x-sql', 'text/x-tcl', -- 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl'); --$mime_drivers['horde']['webcpp']['icons'] = array( -- 'default' => 'text.png', -- 'text/xml' => 'xml.png', -- 'text/x-csrc' => 'source-c.png', -- 'text/x-chdr' => 'source-h.png', -- 'text/x-java' => 'source-java.png', -- 'application/x-javascript' => 'script-js.png'); -+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['location'] = '%%LOCALBASE%%/bin/webcpp'; -+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['inline'] = true; -+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['handles'] = array( -+//UNCOMMENTIFWCPP 'text/xml', 'text/sgml', 'application/xml', -+//UNCOMMENTIFWCPP 'application/x-sh', 'application/x-javascript', 'application/x-tcl', -+//UNCOMMENTIFWCPP 'x-extension/asm', 'application/x-asp', 'x-extension/bas', -+//UNCOMMENTIFWCPP 'x-extension/cs', 'text/x-csrc', 'x-extension/rc', -+//UNCOMMENTIFWCPP 'text/x-c++src', 'text/x-c++src', 'text/x-c++src', -+//UNCOMMENTIFWCPP 'text/x-chdr', 'x-extension/bat', 'text/x-fortran', -+//UNCOMMENTIFWCPP 'x-extension/f77', 'x-extension/f90', 'x-extension/for', -+//UNCOMMENTIFWCPP 'x-extension/ftn', 'text/x-java', 'application/x-javascript', -+//UNCOMMENTIFWCPP 'text/sgml', 'text/xml', 'text/x-pascal', -+//UNCOMMENTIFWCPP 'application/x-cgi', 'application/x-perl', 'application/x-python', -+//UNCOMMENTIFWCPP 'text/x-sql', 'text/x-tcl', -+//UNCOMMENTIFWCPP 'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl'); -+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['icons'] = array( -+//UNCOMMENTIFWCPP 'default' => 'text.png', -+//UNCOMMENTIFWCPP 'text/xml' => 'xml.png', -+//UNCOMMENTIFWCPP 'text/x-csrc' => 'source-c.png', -+//UNCOMMENTIFWCPP 'text/x-chdr' => 'source-h.png', -+//UNCOMMENTIFWCPP 'text/x-java' => 'source-java.png', -+//UNCOMMENTIFWCPP 'application/x-javascript' => 'script-js.png'); - - /** - * Source-Highlight driver settings - * http://www.gnu.org/software/src-highlite/ - */ --$mime_drivers['horde']['srchighlite']['location'] = '/usr/bin/source-highlight'; --$mime_drivers['horde']['srchighlite']['inline'] = true; --$mime_drivers['horde']['srchighlite']['handles'] = array( -- 'text/x-csrc', 'text/x-c++src', 'text/x-java', -- 'application/x-perl', 'application/x-python', 'text/x-c++src', -- 'text/cpp'); --$mime_drivers['horde']['srchighlite']['icons'] = array( -- 'default' => 'text.png', -- 'text/x-csrc' => 'source-c.png', -- 'text/x-c++src' => 'source-c.png', -- 'text/cpp' => 'source-c.png', -- 'text/x-java' => 'source-java.png'); -+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['location'] = '%%LOCALBASE%%/bin/source-highlight'; -+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['inline'] = true; -+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['handles'] = array( -+//UNCOMMENTIFSRCHIGH 'text/x-csrc', 'text/x-c++src', 'text/x-java', -+//UNCOMMENTIFSRCHIGH 'application/x-perl', 'application/x-python', 'text/x-c++src', -+//UNCOMMENTIFSRCHIGH 'text/cpp'); -+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['icons'] = array( -+//UNCOMMENTIFSRCHIGH 'default' => 'text.png', -+//UNCOMMENTIFSRCHIGH 'text/x-csrc' => 'source-c.png', -+//UNCOMMENTIFSRCHIGH 'text/x-c++src' => 'source-c.png', -+//UNCOMMENTIFSRCHIGH 'text/cpp' => 'source-c.png', -+//UNCOMMENTIFSRCHIGH 'text/x-java' => 'source-java.png'); - - /** - * GNU Enscript driver settings - */ --$mime_drivers['horde']['enscript']['location'] = '/usr/bin/enscript'; --$mime_drivers['horde']['enscript']['inline'] = true; --$mime_drivers['horde']['enscript']['handles'] = array( -- 'application/x-cgi', 'application/x-shellscript', 'application/x-javascript', -- 'application/x-perl', 'application/xml', 'text/xml', -- 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc', -- 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src', -- 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql', -- 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp', 'text/x-tex'); --$mime_drivers['horde']['enscript']['icons'] = array( -- 'default' => 'text.png', -- 'text/xml' => 'xml.png', -- 'application/xml' => 'xml.png', -- 'text/x-csrc' => 'source-c.png', -- 'text/x-chdr' => 'source-h.png', -- 'text/x-java' => 'source-java.png', -- 'application/x-javascript' => 'script-js.png'); -+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['location'] = '%%LOCALBASE%%/bin/enscript'; -+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['inline'] = true; -+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['handles'] = array( -+//UNCOMMENTIFES 'application/x-cgi', 'application/x-shellscript', 'application/x-javascript', -+//UNCOMMENTIFES 'application/x-perl', 'application/xml', 'text/xml', -+//UNCOMMENTIFES 'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc', -+//UNCOMMENTIFES 'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src', -+//UNCOMMENTIFES 'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql', -+//UNCOMMENTIFES 'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp', 'text/x-tex'); -+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['icons'] = array( -+//UNCOMMENTIFES 'default' => 'text.png', -+//UNCOMMENTIFES 'text/xml' => 'xml.png', -+//UNCOMMENTIFES 'application/xml' => 'xml.png', -+//UNCOMMENTIFES 'text/x-csrc' => 'source-c.png', -+//UNCOMMENTIFES 'text/x-chdr' => 'source-h.png', -+//UNCOMMENTIFES 'text/x-java' => 'source-java.png', -+//UNCOMMENTIFES 'application/x-javascript' => 'script-js.png'); - - - /** -@@ -272,14 +283,14 @@ - * The 'location' entry should point to the 'wvHtml' program, NOT the - * 'wvWare' program. - */ --$mime_drivers['horde']['msword']['location'] = '/usr/bin/wvHtml'; --$mime_drivers['horde']['msword']['inline'] = false; --$mime_drivers['horde']['msword']['handles'] = array( -- 'application/vnd.ms-word', -- 'application/msword', --); --$mime_drivers['horde']['msword']['icons'] = array( -- 'default' => 'msword.png'); -+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['location'] = '%%LOCALBASE%%/bin/wvHtml'; -+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['inline'] = false; -+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['handles'] = array( -+//UNCOMMENTIFWV 'application/vnd.ms-word', -+//UNCOMMENTIFWV 'application/msword', -+//UNCOMMENTIFWV); -+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['icons'] = array( -+//UNCOMMENTIFWV 'default' => 'msword.png'); - - - /** -@@ -287,14 +298,14 @@ - * This driver requires xlhtml to be installed. - * xlhtml homepage: http://chicago.sourceforge.net/xlhtml/ - */ --$mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml'; --$mime_drivers['horde']['msexcel']['inline'] = false; --$mime_drivers['horde']['msexcel']['handles'] = array( -- 'application/vnd.ms-excel', -- 'application/msexcel', -- 'application/x-msexcel'); --$mime_drivers['horde']['msexcel']['icons'] = array( -- 'default' => 'msexcel.png'); -+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['location'] = '%%LOCALBASE%%/bin/xlhtml'; -+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['inline'] = false; -+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['handles'] = array( -+//UNCOMMENTIFXL 'application/vnd.ms-excel', -+//UNCOMMENTIFXL 'application/msexcel', -+//UNCOMMENTIFXL 'application/x-msexcel'); -+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['icons'] = array( -+//UNCOMMENTIFXL 'default' => 'msexcel.png'); - - - /** -@@ -302,13 +313,13 @@ - * This driver requires ppthtml, included with xlhtml, to be installed. - * xlhtml homepage: http://chicago.sourceforge.net/xlhtml/ - */ --$mime_drivers['horde']['mspowerpoint']['location'] = '/usr/local/bin/ppthtml'; --$mime_drivers['horde']['mspowerpoint']['inline'] = false; --$mime_drivers['horde']['mspowerpoint']['handles'] = array( -- 'application/vnd.ms-powerpoint', -- 'application/mspowerpoint'); --$mime_drivers['horde']['mspowerpoint']['icons'] = array( -- 'default' => 'mspowerpoint.png'); -+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['location'] = '%%LOCALBASE%%/bin/ppthtml'; -+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['inline'] = false; -+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['handles'] = array( -+//UNCOMMENTIFXL 'application/vnd.ms-powerpoint', -+//UNCOMMENTIFXL 'application/mspowerpoint'); -+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['icons'] = array( -+//UNCOMMENTIFXL 'default' => 'mspowerpoint.png'); - - - /** -@@ -324,24 +335,24 @@ - /** - * RPM driver settings - */ --$mime_drivers['horde']['rpm']['location'] = '/usr/bin/rpm'; --$mime_drivers['horde']['rpm']['inline'] = false; --$mime_drivers['horde']['rpm']['handles'] = array( -- 'application/x-rpm'); --$mime_drivers['horde']['rpm']['icons'] = array( -- 'default' => 'rpm.png'); -+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['location'] = '%%LOCALBASE%%/bin/rpm'; -+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['inline'] = false; -+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['handles'] = array( -+//UNCOMMENTIFRPM 'application/x-rpm'); -+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['icons'] = array( -+//UNCOMMENTIFRPM 'default' => 'rpm.png'); - - - /** - * Debian package driver settings - */ --$mime_drivers['horde']['deb']['location'] = '/usr/bin/dpkg'; --$mime_drivers['horde']['deb']['inline'] = false; --$mime_drivers['horde']['deb']['handles'] = array( -- 'application/x-deb', -- 'application/x-debian-package'); --$mime_drivers['horde']['deb']['icons'] = array( -- 'default' => 'deb.png'); -+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['location'] = '%%LOCALBASE%%/bin/dpkg'; -+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['inline'] = false; -+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['handles'] = array( -+//UNCOMMENTIFDEB 'application/x-deb', -+//UNCOMMENTIFDEB 'application/x-debian-package'); -+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['icons'] = array( -+//UNCOMMENTIFDEB 'default' => 'deb.png'); - - - /** diff --git a/www/horde-base/files/patch-config_registry.php.dist b/www/horde-base/files/patch-config_registry.php.dist deleted file mode 100644 index ae787a92685a..000000000000 --- a/www/horde-base/files/patch-config_registry.php.dist +++ /dev/null @@ -1,17 +0,0 @@ ---- config/registry.php.dist.orig Wed Aug 3 16:27:41 2005 -+++ config/registry.php.dist Wed Aug 17 22:33:03 2005 -@@ -347,6 +347,14 @@ - 'provides' => 'files', - ); - -+// r1.255.2.9 -+$this->applications['gollem-menu'] = array( -+ 'status' => 'block', -+ 'app' => 'gollem', -+ 'blockname' => 'tree_menu', -+ 'menu_parent' => 'gollem', -+); -+ - $this->applications['passwd'] = array( - 'fileroot' => dirname(__FILE__) . '/../passwd', - 'webroot' => $this->applications['horde']['webroot'] . '/passwd', diff --git a/www/horde-base/files/patch-po_translation.php b/www/horde-base/files/patch-po_translation.php deleted file mode 100644 index 045891903631..000000000000 --- a/www/horde-base/files/patch-po_translation.php +++ /dev/null @@ -1,8 +0,0 @@ ---- po/translation.php.orig Tue Jan 21 16:05:36 2003 -+++ po/translation.php Wed Jan 29 23:00:27 2003 -@@ -1,4 +1,4 @@ --#!/usr/bin/php -q -+#!/usr/local/bin/php -q - <?php - /** - * Translation helper application for the Horde framework. diff --git a/www/horde-base/files/patch-scripts_sql_README b/www/horde-base/files/patch-scripts_sql_README deleted file mode 100644 index 4e727f834c0a..000000000000 --- a/www/horde-base/files/patch-scripts_sql_README +++ /dev/null @@ -1,11 +0,0 @@ ---- scripts/sql/README.orig Wed Apr 27 10:56:42 2005 -+++ scripts/sql/README Tue Jul 12 21:30:49 2005 -@@ -84,7 +84,7 @@ - PostgreSQL - ~~~~~~~~~~ - -- # su - postgres (or whatever your database runs as... usually postgres) -+ # su - pgsql (or whatever your database runs as... usually pgsql) - $ psql -d template1 -f create.pgsql.sql - - This script will create a ``horde`` database and a ``horde`` user. You should diff --git a/www/horde-base/files/pkg-deinstall.in b/www/horde-base/files/pkg-deinstall.in deleted file mode 100644 index 47cbca9552a2..000000000000 --- a/www/horde-base/files/pkg-deinstall.in +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -PATH=/usr/sbin:/usr/bin:/bin ; export PATH - -handle_config() { - # Try to restore httpd.conf when deinstalling Horde - - if [ -f %%APACHE_CONF%%.beforeHorde ] ; then - echo "Restoring httpd.conf..." - cp %%APACHE_CONF%% %%APACHE_CONF%%.deinstHorde - sed -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \ - %%APACHE_CONF%% - rm %%APACHE_CONF%%.tmp - fi - - # Backup Horde config files, if needed. - - if [ -z "${PACKAGE_BUILDING}" ]; then - for cf in `ls %%HORDEDIR%%/config/*php`; do - diff -bBqw $cf $cf.dist >/dev/null 2>&1 - case $? in - 0) # original config file, will be deleted by pkg-plist - ;; - 1) # config file has been updated, must be backuped - cp -p $cf $cf.previous - echo "===> Backing-up..." - echo "---> $cf has been saved ***" - echo "---> as $cf.previous ***" - ;; - *) # not found? - ;; - esac - done - fi -} - -case $2 in - DEINSTALL) - handle_config - ;; - POST-DEINSTALL) - if [ x%%HORDEADMUSR%% != x ]; then - cat <<EOMSG -The horde port has been deleted. -If you are not upgrading and don't intend to use -Horde any more then you may wish to delete -the %%HORDEADMUSR%% account, which can be done with -the following command: - - # pw userdel %%HORDEADMUSR%% -EOMSG - if [ -d %%PREFIX%%/%%MYADMDIR%% ] ; then - echo " # rm -rf %%PREFIX%%/%%HORDEDIR%%/" - fi - echo - fi - ;; -esac diff --git a/www/horde-base/files/pkg-install.in b/www/horde-base/files/pkg-install.in deleted file mode 100644 index 28db88333734..000000000000 --- a/www/horde-base/files/pkg-install.in +++ /dev/null @@ -1,117 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Copied from databases/phpmyadmin. -# Used if WITH_SUPHP has been defined. - -PATH=/usr/sbin:/usr/bin:/bin ; export PATH - -WITH_SUPHP=%%WITH_SUPHP%% - -hordedir=%%HORDEDIR%% -hordeusr=%%HORDEADMUSR%% -hordegrp=%%HORDEGRP%% - -hordegcos="Horde Owner" -hordehome=/nonexistent -hordeshell=/sbin/nologin - -create_group() { - local user group gcos home shell - - user=$1 - group=$2 - gcos=$3 - home=$4 - shell=$5 - - if pw groupadd -n $group ; then - echo "===> Group $group created" - else - cat <<-EOERRORMSG - *** Failed to create the $group group. - - Please add the $user user and $group group - manually with the commands: - - pw groupadd -n $group - pw useradd -n $user -g $group -c "$gcos" \\ - -d $home -s $shell -h - - - and retry installing this package. - EOERRORMSG - exit 1 - fi -} - - -create_user() { - local user group gcos home shell - - user=$1 - group=$2 - gcos=$3 - home=$4 - shell=$5 - - if pw useradd -n $user -g $group -c "$gcos" -d $home -s $shell -h - ; then - echo "===> Created $user user" - else - cat <<-EOERRORMSG - *** Failed to create the $user user. - - Please add the $user user manually with the command: - - pw useradd -n $user -g $group -c "$gcos" \\ - -d $home -s $shell -h - - - and retry installing this package. - EOERRORMSG - exit 1 - fi -} - - -case $2 in - PRE-INSTALL) - - if [ $WITH_SUPHP != "yes" ]; then - exit 0 - fi - - # Create the horde user and group if they do not already exist - - if pw user show -n $hordeusr >/dev/null 2>&1 ; then - echo "===> Using pre-existing user $hordeusr" - else - if ! pw group show -n $hordegrp >/dev/null 2>&1 ; then - create_group $hordeusr $hordegrp "$hordegcos" $hordehome \ - $hordeshell - fi - create_user $hordeusr $hordegrp "$hordegcos" $hordehome $hordeshell - fi - ;; - POST-INSTALL) - - if [ $WITH_SUPHP = "yes" ]; then - # Change ownership of the Horde directory - - echo "===> Adjusting file ownership in $hordedir" - chown -R $hordeusr:$hordegrp $hordedir || exit 1 - fi - - if [ -z "${PACKAGE_BUILDING}" ]; then - # Don't reset the config to default (PR ports/88621) - - for cf in `ls %%HORDEDIR%%/config/*php`; do - if [ -f $cf.previous ]; then - mv $cf $cf.new - echo "---> $cf not installed ***" - echo "---> please copy from $cf.previous ***" - echo "---> or from $cf.new ***" - fi - done - fi - ;; -esac diff --git a/www/horde-base/files/pkg-message.in b/www/horde-base/files/pkg-message.in deleted file mode 100644 index 20dc02d0e715..000000000000 --- a/www/horde-base/files/pkg-message.in +++ /dev/null @@ -1,39 +0,0 @@ -************************************************************************ -Horde has been installed in %%HORDEDIR%% with your blank -configuration files. After a reinstallation, you have to explicitely -merge your files %%HORDEDIR%%/config/conf.php.new -and %%HORDEDIR%%/config/conf.php.previous -into %%HORDEDIR%%/config/conf.php . - -If you want Horde to access a database, you have to run the -appropriate scripts located in %%HORDEDIR%%/scripts/sql. -It is recommended that you change the password of the 'hordemgr' -user used to connect to the horde database. -Horde is setup by default to access MySQL. - -WARNING! if you are upgrading from Horde v. 2.2.x, you have to alter your -******** database schemas. Please read the doc UPGRADING. - -You can now access Horde without a password at <http://localhost/horde/>, -and you will be logged in as an administrator. You should first configure -a real authentication backend. Click on "Setup" in the "Administration" -menu and configure Horde. Start in the "Authentication" tab. -See the doc in %%DOCSDIR%% for details. -(tip: if you plan to install IMP, just keep "Automatic authentication as -a certain user", add your login to be treated as administrator, and once -IMP will be installed, switch to "Let a Horde application handle auth"). -Select a log driver; if you keep 'file', do not forget to add a line -in /etc/newsyslog.conf. -Then select and configure a preferences driver. - -Your %%APACHE_CONF%% has been updated, -you have to restart Apache. - -When everything is OK, you should be able to access Horde from -<http://localhost/horde/>. -(If <http://localhost/horde/> does not run, but - <http://localhost/horde/index.php> is OK, then you have - to define index.php as a DirectoryIndex in %%APACHE_CONF%%.) - -There is a testing script at <http://localhost/horde/test.php>. -************************************************************************ |