head	1.10;
access;
symbols
	HORDE_1_2_7:1.1.2.16
	HORDE_1_2_6:1.1.2.16
	HORDE_1_2_5:1.1.2.16
	HORDE_1_2_4:1.1.2.14
	HORDE_1_2_3:1.1.2.14
	HORDE_1_2_2:1.1.2.14
	HORDE_1_2_1:1.1.2.14
	HORDE_1_2_0:1.1.2.14
	HORDE_1_2_0_pre14:1.1.2.14
	HORDE_1_2_0_pre13:1.1.2.14
	HORDE_1_2_0_pre11:1.1.2.13
	HORDE_1_3_2:1.8
	HORDE_1_2_0_pre10:1.1.2.13
	HORDE_1_3_1:1.8
	HORDE_1_2_0_pre9:1.1.2.13
	HORDE_1_2_0_pre8:1.1.2.13
	HORDE_1_2_0_pre6:1.1.2.12
	horde-dev-20000104:1.8
	HORDE_1_2_0_pre5:1.1.2.8
	HORDE_1_2_0_pre4:1.1.2.6
	STABLE_1_2:1.1.0.2;
locks; strict;
comment	@# @;


1.10
date	2000.05.22.11.13.12;	author rkrusty;	state dead;
branches;
next	1.9;

1.9
date	2000.02.15.07.48.37;	author rkrusty;	state Exp;
branches;
next	1.8;

1.8
date	99.10.26.11.16.24;	author rkrusty;	state Exp;
branches;
next	1.7;

1.7
date	99.10.15.01.52.51;	author rkrusty;	state Exp;
branches;
next	1.6;

1.6
date	99.09.10.09.36.00;	author rkrusty;	state Exp;
branches;
next	1.5;

1.5
date	99.08.24.01.01.52;	author rkrusty;	state Exp;
branches;
next	1.4;

1.4
date	99.08.19.17.21.25;	author rkrusty;	state Exp;
branches;
next	1.3;

1.3
date	99.08.19.17.21.23;	author rkrusty;	state Exp;
branches;
next	1.2;

1.2
date	99.08.19.15.46.19;	author rkrusty;	state Exp;
branches;
next	1.1;

1.1
date	99.08.13.12.06.57;	author rkrusty;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	99.08.13.12.06.57;	author rkrusty;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	99.08.13.13.40.52;	author rkrusty;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	99.08.17.02.28.09;	author rkrusty;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	99.08.18.05.55.41;	author rkrusty;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	99.08.20.11.13.48;	author rkrusty;	state Exp;
branches;
next	1.1.2.6;

1.1.2.6
date	99.08.26.01.30.34;	author rkrusty;	state Exp;
branches;
next	1.1.2.7;

1.1.2.7
date	99.10.10.16.52.08;	author rkrusty;	state Exp;
branches;
next	1.1.2.8;

1.1.2.8
date	99.10.15.02.18.07;	author rkrusty;	state Exp;
branches;
next	1.1.2.9;

1.1.2.9
date	99.10.27.04.17.27;	author rkrusty;	state Exp;
branches;
next	1.1.2.10;

1.1.2.10
date	99.11.01.06.18.51;	author rkrusty;	state Exp;
branches;
next	1.1.2.11;

1.1.2.11
date	99.11.16.08.52.32;	author rkrusty;	state Exp;
branches;
next	1.1.2.12;

1.1.2.12
date	99.11.28.09.54.33;	author rkrusty;	state Exp;
branches;
next	1.1.2.13;

1.1.2.13
date	2000.01.16.18.56.21;	author rkrusty;	state Exp;
branches;
next	1.1.2.14;

1.1.2.14
date	2000.04.26.04.43.22;	author rkrusty;	state Exp;
branches;
next	1.1.2.15;

1.1.2.15
date	2001.02.26.20.12.59;	author opal;	state Exp;
branches;
next	1.1.2.16;

1.1.2.16
date	2001.03.27.09.29.03;	author opal;	state Exp;
branches;
next	;


desc
@@


1.10
log
@[IEM] cleaning out the debian dir to prepare for the new stuff...nice clean
start. :)
@
text
@#! /bin/sh -e

# Source debconf library
. /usr/share/debconf/confmodule || exit
db_version 2.0


case "$1" in
    install)
    ;;
    upgrade)
      if [ -d /etc/horde ]; then
        chmod ug+rwx -R /etc/horde /usr/share/horde/lib >/dev/null 2>&1
        if [ -x /etc/horde/horde.php3 ]; then
          cp /etc/horde/horde.php3 /etc/horde/horde.php3.bak >/dev/null 2>&1
        fi
      fi
      rm -f /usr/share/horde/lib/*.lib >/dev/null 2>&1
      if [ -f /etc/horde/session.inc ]; then
        rm -f /etc/horde/session.inc
      fi

    ;;
    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

#DEBHELPER#

exit 0
@


1.9
log
@[IEM] first round cleanup of debian package for -dev tree.  Bringing 1.2 stable
branch updates into 1.3-dev tree.
@
text
@@


1.8
log
@[IEM] migrating in changes from 2.2 tree
@
text
@d4 2
a5 1
. /usr/share/debconf/confmodule.sh
d13 1
a13 1
        chmod ug+rwx -R /etc/horde
d15 1
a15 1
          cp /etc/horde/horde.php3 /etc/horde/horde.php3.bak
d18 3
a20 2
      if [ -x /usr/share/horde/horde.lib ]; then
        rm -f /usr/share/horde/*.lib >/dev/null 2>&1
d22 1
a35 2


@


1.7
log
@[IEM] updating the -dev tree's debian stuff...(debconf, etc...)
@
text
@d11 5
a15 3
      chmod ug+rwx -R /etc/horde
      if [ -x /etc/horde/horde.php3 ]; then
        cp /etc/horde/horde.php3 /etc/horde/horde.php3.bak
@


1.6
log
@[IEM] updates for debian:  getting rid of individual phplib.inc files since
by this version all will be using the same settings. (user/pass/db)  Bringing
changes from stable into devel tree.  migrating for /usr/doc to /usr/share/doc
@
text
@d1 4
a4 4
#! /bin/sh
# preinst script for horde
#
# see: dh_installdeb(1)
a5 1
set -e
d11 7
a17 4
      chmod -R 644 /usr/share/horde/lib/*.lib >> /dev/null 2>&1
      chmod -R 644 /etc/horde/*.php3 /etc/horde/*.txt /etc/horde/*.html 
      cp /etc/horde/defaults.php3 /etc/horde/defaults.php3.bak
      echo "Making a backup of defaults.php3 to defaults.php3.bak just in case"
a18 1

a26 3

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
@


1.5
log
@[IEM] updating deb stuff for -dev so I can start playing
@
text
@d2 1
a2 1
# preinst script for horde-core
@


1.4
log
@[IEM] wow...I forgot to commt my deb stuff too... :)

    1>  Updated italian locales (sync'ng up from -pre)
    2>  Updates to the debian stuff so that it can pseudo like co-exist
        with current horde install.
@
text
@d2 1
a2 1
# preinst script for horde
d12 4
a15 3
chmod -R 644 /usr/share/horde-devel/lib/*.lib >> /dev/null 2>&1
chmod -R 644 /etc/horde-devel/*.php3 /etc/horde-devel/*.txt /etc/horde-devel/*.html >> /dev/null 2>&1

@


1.3
log
@[IEM] wow...I forgot to commt my deb stuff too... :)

    1>  Updated italian locales (sync'ng up from -pre)
    2>  Updates to the debian stuff so that it can pseudo like co-exist
        with current horde install.
@
text
@@


1.2
log
@[IEM] missed a few files for the debian stuff
@
text
@d1 5
a5 1
#!/bin/sh
d7 24
a30 2
chmod -R 644 /usr/share/horde/lib/*.lib >> /dev/null 2>&1
chmod -R 644 /etc/horde/*.php3 /etc/horde/*.txt /etc/horde/*.html >> /dev/null 2>&1  
d32 2
@


1.1
log
@file preinst was initially added on branch STABLE_1_2.
@
text
@d1 5
@


1.1.2.1
log
@[IEM] More updates and new stuff for debian packaging

     1>  New hordesetup script.  This script will be the core for building
anything horde related.  All module info stuff will be in there..currently
horde and imp.  Passing a module name to the setup script will cause
it to do all the configuration stuff for that module on a debian system.
Currently it handles configuring of the database, asking the user what
type of database they want if it doesn't know already (/etc/horde/build.opts),
verifying that php3 has teh proper modules loaded, verifying Alias settings
in apache.  It still needs 2 other things which I'll get to today. Apache
restart (just remembered that) and some small phplib tweaks to work with
the package in it's current state.

     2> updated changelog to reflect changes
     3> updated control to reflect new phplib package
     4> modified rules and postinst to take care of new hordesetup script
@
text
@a0 5
#!/bin/sh
chmod -R 644 /usr/share/horde/lib/*.lib >> /dev/null 2>&1
chmod -R 644 /etc/horde/*.php3 /etc/horde/*.txt /etc/horde/*.html >> /dev/null 2>&1  


@


1.1.2.2
log
@[IEM] fixed broken preinst script (:))
umm...individual local.inc's for now..removed unneeded db_pgsql.inc script
since I can add the missing Port variable into the local file and it's happy
@
text
@d5 1
a5 1
exit 0
@


1.1.2.3
log
@[IEM] Fixing build issue with mysql.  Adding in a links file for symlinking
the config dir from /etc/horde to horde/config.  Adding in support for
other web servers besides stock apache.
@
text
@d4 1
a4 1
rm -rf /usr/share/horde/config >> /dev/null 2>&1
@


1.1.2.4
log
@[IEM] Fixes the reported problem with mysql and not beign able to access
the db.  the username/password pair must be listed and correct in
horde_phplib.inc for mysql. (postgres doesn't seem to care)
@
text
@a1 1
set -e
@


1.1.2.5
log
@[IEM] Fixing post/pre inst scripts
@
text
@d1 1
a1 5
#! /bin/sh
# preinst script for horde-core
#
# see: dh_installdeb(1)

d3 3
a5 25

case "$1" in
    install)
    ;;
    upgrade)
      chmod -R 644 /usr/share/horde/lib/*.lib >> /dev/null 2>&1
      chmod -R 644 /etc/horde/*.php3 /etc/horde/*.txt /etc/horde/*.html 
      cp /etc/horde/defaults.php3 /etc/horde/defaults.php3.bak
      echo "Making a backup of defaults.php3 to defaults.php3.bak just in case"
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

a6 2


@


1.1.2.6
log
@[IEM] getting the version number back in line.  Adding in routines to verify
that .lib's are built. (removing existing libs before calling hordesetup)
@
text
@d12 4
a15 8
      chmod ug+rwx -R /etc/horde
      if [ -x /etc/horde/defaults.php3 ]; then
        cp /etc/horde/defaults.php3 /etc/horde/defaults.php3.bak
        echo "Making a backup of defaults.php3 to defaults.php3.bak just in case"
      fi
      if [ -x /usr/share/horde/horde.lib ]; then
        rm -f /usr/share/horde/*.lib >/dev/null 2>&1
      fi
d17 1
@


1.1.2.7
log
@[IEM] Preliminary changes for new configuration routines.  Trying to clean
up build process using new debconf option.  Getting rid of extra configuration
files for both postgres and mysql and will instead use a selection bit to
figure out what type of container the user will use and setup phplib and
horde related files on the fly based on choices.  (and upgrades after that
will use existing choices)  This sweep adds to files required by debconf
and specific to debconf working with horde.  horde.php3 and defaults.php3
will be build on the fly.  (really need to get rid of root_url and graphics_url
for the horde module and use the ones supplied in horde.php3 to cut down
on redundancy...adding to my todo)
@
text
@d1 4
a4 4
#! /bin/sh -e

# Source debconf library
. /usr/share/debconf/confmodule.sh
d6 1
d15 1
d29 3
@


1.1.2.8
log
@[IEM] a couple typo fixes
@
text
@d12 2
a13 2
      if [ -x /etc/horde/horde.php3 ]; then
        cp /etc/horde/horde.php3 /etc/horde/horde.php3.bak
@


1.1.2.9
log
@[IEM] committing final changes which fix all known issues with the debian
package (potato based)...should be happy for the freeze
@
text
@d11 3
a13 5
      if [ -d /etc/horde ]; then
        chmod ug+rwx -R /etc/horde
        if [ -x /etc/horde/horde.php3 ]; then
          cp /etc/horde/horde.php3 /etc/horde/horde.php3.bak
        fi
@


1.1.2.10
log
@[IEM] upgrading debconf pieces to use newer debconf routines.
@
text
@d4 1
a4 2
. /usr/share/debconf/confmodule   
db_version 2.0
@


1.1.2.11
log
@[IEM] some more updates to the debconf stuff for debian packages
@
text
@d4 1
a4 1
. /usr/share/debconf/confmodule || exit
d13 1
a13 1
        chmod ug+rwx -R /etc/horde >/dev/null 2>&1
d15 1
a15 1
          cp /etc/horde/horde.php3 /etc/horde/horde.php3.bak >/dev/null 2>&1
d34 2
@


1.1.2.12
log
@[IEM] fixing several problems with debian packaging.  Creating templates for
      manual configuration instead of using debconf for those vi users out
      there.
@
text
@a20 4
      if [ -f /etc/horde/session.inc ]; then
        rm -f /etc/horde/session.inc
      fi

@


1.1.2.13
log
@[IEM] more debian config pieces and fixes
@
text
@d13 1
a13 1
        chmod ug+rwx -R /etc/horde /usr/share/horde/lib >/dev/null 2>&1
d18 3
a20 1
      rm -f /usr/share/horde/lib/*.lib >/dev/null 2>&1
@


1.1.2.14
log
@[IEM] new hacks to debian install process:

    no longer hack apache's access.conf file to set php prepend and libdir
       settings
    no longer use ./config for conf files, instead point directly to
       /etc/horde which increases security since files in that dir will no
       longer be accessable via the web
@
text
@d18 4
@


1.1.2.15
log
@Major changes, next version of horde.
@
text
@d3 5
d12 7
a18 19
	###############################################################################
	################## Clean up permissions from old setup. #######################
	###############################################################################
	if [ -f /etc/horde/horde.php3.in -o -x /etc/horde/horde.php3.in ] ; then
	    echo "Fixing file permissions, cleaning up from old setup."
	    if [ -d /usr/share/horde ] ; then
		chown -Rf root.root /usr/share/horde >> /dev/null 2>&1
	    fi
	    chown -Rf root.root /etc/horde >> /dev/null 2>&1
	    chmod u+rw `find /etc/horde/ -type f -print ` >/dev/null 2>&1
	    chmod u-x `find /etc/horde/ -type f -print ` >/dev/null 2>&1
	    chmod u+rw `find /etc/horde/ -type f -print ` >/dev/null 2>&1
	    chmod og+r `find /etc/horde/ -type f -print ` >/dev/null 2>&1
	    chmod og-xw `find /etc/horde/ -type f -print ` >/dev/null 2>&1
	    if [ -f /etc/horde/pgsql_create.sql ] ; then
		chown root.root /etc/horde/pgsql_create.sql
	    fi
	    mv /etc/horde/horde.php3.in /etc/horde/horde.php3.in.backup
	fi
@


1.1.2.16
log
@Fixing bashism.
@
text
@d10 1
a10 1
	if [ -e /etc/horde/horde.php3.in ] ; then
@


