gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/debian rules, 1.85, 1.86 gforge-shell-postgresql


From: lo-lan-do
Subject: [Gforge-commits] gforge/debian rules, 1.85, 1.86 gforge-shell-postgresql.templates.dsfh-in, NONE, 1.1 gforge-shell-postgresql.prerm.dsfh-in, NONE, 1.1 gforge-shell-postgresql.postinst.dsfh-in, NONE, 1.1 gforge-shell-postgresql.docs, NONE, 1.1 gforge-shell-postgresql.dirs, NONE, 1.1 gforge-shell-postgresql.cron.d, NONE, 1.1 gforge-shell-postgresql.config.dsfh-in, NONE, 1.1 control, 1.62, 1.63
Date: Sun, 03 Oct 2004 12:01:40 -0500

Update of /cvsroot/gforge/gforge/debian
In directory db.perdue.net:/tmp/cvs-serv18265/debian

Modified Files:
        rules control 
Added Files:
        gforge-shell-postgresql.templates.dsfh-in 
        gforge-shell-postgresql.prerm.dsfh-in 
        gforge-shell-postgresql.postinst.dsfh-in 
        gforge-shell-postgresql.docs gforge-shell-postgresql.dirs 
        gforge-shell-postgresql.cron.d 
        gforge-shell-postgresql.config.dsfh-in 
Log Message:
New backend for NSS using NSS-PGSQL.
Creates views, configures NSS, adds a new gforge-shell-pgsql pachage.


Index: rules
===================================================================
RCS file: /cvsroot/gforge/gforge/debian/rules,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- rules       23 Sep 2004 21:46:10 -0000      1.85
+++ rules       3 Oct 2004 17:01:37 -0000       1.86
@@ -157,6 +157,9 @@
        # gforge-shell-ldap
        cd 
$(CURDIR)/debian/gforge-shell-ldap/var/lib/gforge/chroot/var/lib/gforge/chroot 
&& ln -s ../../../../home .
 
+       # gforge-shellpostgresql
+       install -m 755 deb-specific/install-nsspgsql.sh 
$(CURDIR)/debian/gforge-shell-postgresql/usr/lib/gforge/bin/
+
        # gforge-ftp-proftpd
        install -m 755 deb-specific/install-ftp.sh 
$(CURDIR)/debian/gforge-ftp-proftpd/usr/lib/gforge/bin/
        install -m 644 deb-specific/sf-proftpd.conf 
$(CURDIR)/debian/gforge-ftp-proftpd/etc/gforge/

--- NEW FILE: gforge-shell-postgresql.templates.dsfh-in ---
#DSFHELPER:ldap-variables#

--- NEW FILE: gforge-shell-postgresql.prerm.dsfh-in ---
#! /bin/sh
# prerm script for gforge
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <prerm> `remove'
#        * <old-prerm> `upgrade' <new-version>
#        * <new-prerm> `failed-upgrade' <old-version>
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
#          <package-being-installed> <version> `removing'
#          <conflicting-package> <version>
# for details, see /usr/share/doc/packaging-manual/

. /usr/share/debconf/confmodule

#DSFHELPER:replace-files#
case "$1" in
    remove)
        db_title "Unconfiguring Gforge"

        # Unpatch Slapd configuration files
        /usr/lib/gforge/bin/install-nsspgsql.sh purge-files
        propose_update_remove /etc/libnss-pgsql.conf
        propose_update_remove /etc/nsswitch.conf

        # Clean debconf after ourselves
        db_stop

        # LDAP config removal
        /usr/lib/gforge/bin/install-nsspgsql.sh purge
        ;;
    upgrade|deconfigure|failed-upgrade)
        ;;
    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

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

#DEBHELPER#

exit 0

--- NEW FILE: gforge-shell-postgresql.postinst.dsfh-in ---
#! /bin/sh
# postinst script for gforge
#
# see: dh_installdeb(1)

set -e
# set -x                                # Be verbose, be very verbose.

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see /usr/share/doc/packaging-manual/
#
# quoting from the policy:
#     Any necessary prompting should almost always be confined to the
#     post-installation script, and should be protected with a conditional
#     so that unnecessary prompting doesn't happen if a package's
#     installation fails and the `postinst' is called with `abort-upgrade',
#     `abort-remove' or `abort-deconfigure'.

. /usr/share/debconf/confmodule

#DSFHELPER:replace-files#
case "$1" in
    configure)
        /usr/sbin/gforge-config

        # Patch Slapd configuration files
        /usr/lib/gforge/bin/install-nsspgsql.sh configure-files
        propose_update_install /etc/nss-pgsql.conf
        propose_update_install /etc/nsswitch.conf

        # Clean debconf after ourselves
        db_stop

        # Install the chroot environment
        /usr/lib/gforge/bin/install-chroot.sh configure
        
        # Setup our LDAP
        /usr/lib/gforge/bin/install-nsspgsql.sh configure
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

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

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

#DEBHELPER#

exit 0

--- NEW FILE: gforge-shell-postgresql.docs ---
debian/README.Debian

--- NEW FILE: gforge-shell-postgresql.dirs ---
bin
etc/gforge
etc/gforge/templates
usr/bin
usr/lib/gforge/bin
usr/lib/gforge/lib
usr/sbin
var
var/lib
var/lib/gforge
var/lib/gforge/chroot
var/lib/gforge/chroot/var
var/lib/gforge/chroot/var/lib
var/lib/gforge/chroot/var/lib/gforge
var/lib/gforge/chroot/var/lib/gforge/chroot
var/lib/gforge/etc

--- NEW FILE: gforge-shell-postgresql.cron.d ---
#
# Regular cron jobs for the gforge-shell-ldap package
#

# CVS/user/group update
0 * * * * root [ -x /usr/lib/gforge/bin/home-dirs.sh ] && 
/usr/lib/gforge/bin/home-dirs.sh > /dev/null 2>&1

--- NEW FILE: gforge-shell-postgresql.config.dsfh-in ---
#!/bin/sh -e

# Source debconf library.
. /usr/share/debconf/confmodule

#DSFHELPER:handle-mainconffile#

create_mainconffile
init_debconf_from_mainconffile

#DSFHELPER:get-pw-from-debconf#

Index: control
===================================================================
RCS file: /cvsroot/gforge/gforge/debian/control,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- control     23 Sep 2004 21:45:28 -0000      1.62
+++ control     3 Oct 2004 17:01:37 -0000       1.63
@@ -120,7 +120,7 @@
 Depends: gforge-common, gforge-ldap-openldap | gforge-ldap, perl, debianutils 
(>= 1.7), debconf (>= 1.0.32), ssh, libnss-ldap (>=184-1), libpam-ldap
 Replaces: sourceforge-shell-ldap (>> 2.6-0+11)
 Provides: gforge-shell
-Conflicts: sourceforge-shell
+Conflicts: sourceforge-shell, gforge-shell
 Description: Collaborative development tool - shell accounts (using LDAP)
  GForge provides many tools to help collaboration in a
  development project, such as bug-tracking, task management,
@@ -131,6 +131,22 @@
  This package provides shell accounts authenticated via LDAP to
  GForge users.
 
+Package: gforge-shell-postgresql
+Architecture: all
+Depends: gforge-common, gforge-db-postgresql, perl, debianutils (>= 1.7), 
debconf (>= 1.0.32), ssh, libnss-pgsql1
+Replaces: sourceforge-shell-ldap (>> 2.6-0+11)
+Provides: gforge-shell
+Conflicts: sourceforge-shell, gforge-shell
+Description: Collaborative development tool - shell accounts (using PostgreSQL)
+ GForge provides many tools to help collaboration in a
+ development project, such as bug-tracking, task management,
+ mailing-lists, CVS repository, forums, support request helper, web
+ page / FTP hosting, release management, etc.  All these services are
+ integrated into one web site and managed via a nice web interface.
+ .
+ This package provides shell accounts authenticated via the PostgreSQL
+ database to GForge users.
+
 Package: gforge-cvs
 Architecture: all
 Depends: gforge-common, gforge-ldap-openldap | gforge-ldap, cvs, rcs, apache 
(>= 1.3.9) | apache-ssl (>= 1.3.9) | apache-perl (>= 1.3.9), libapache-mod-ssl 
| apache-ssl, perl, debianutils (>= 1.7), debconf (>= 1.0.32), ssh, libnss-ldap 
(>=184-1), libpam-ldap, gforge-plugin-scmcvs





reply via email to

[Prev in Thread] Current Thread [Next in Thread]