squirrelmail-change-pass-cn
----------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ovaj paket sadrzi dodatne CARNetove postavke za SquirrelMail
change_pass dodatak (plugin).
Trenutno odrzava: Dragan Dosen <ddosen@ffzg.hr>.
- -- Dragan Dosen <ddosen@ffzg.hr> Fri, 26 Mar 2010 19:50:12 +0100
+ -- Dragan Dosen <ddosen@ffzg.hr> Fri, 22 Apr 2011 18:01:42 +0200
+++ /dev/null
-changelog.Debian
\ No newline at end of file
+squirrelmail-change-pass-cn (3.1.0) stable; urgency=low
+
+ * Prilagodba paketa za Debian squeeze.
+ * Nova debian/rules datoteka.
+ * Azurirane ovisnosti unutar debian/control.
+ * Razni Lintian popravci.
+
+ -- Dragan Dosen <ddosen@ffzg.hr> Fri, 22 Apr 2011 18:01:42 +0200
+
squirrelmail-change-pass-cn (3.0.2) stable; urgency=low
* Dio paketa koji sadrzi sam change_pass dodatak odvojen je
Section: web
Priority: optional
Maintainer: Dragan Dosen <ddosen@ffzg.hr>
-Build-Depends: debhelper (>= 6)
-Standards-Version: 3.8.0
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.9.1
Package: squirrelmail-change-pass-cn
Architecture: all
-Depends: squirrelmail-cn (>= 2:1.4.15-2lenny1), squirrelmail-change-pass (>= 3.0-1), xinetd-cn (>= 1:2.3.14-3lenny1), poppassd (>= 1.8.5-3.2), carnet-tools-cn (>= 2.8.1)
+Depends: squirrelmail-cn (>= 2:1.4.21+1), squirrelmail-change-pass (>= 3.1-1), xinetd-cn (>= 1:2.3.14+1), poppassd (>= 1.8.5-4), carnet-tools-cn (>= 3.0.0), ${misc:Depends}
Description: SquirrelMail plugin: Change Password
Change passwords using a poppass daemon.
.
squirrelmail-change-pass-cn
Copyright: © 2004 Zoran Dzelajlija <jelly+paketi@srce.hr>
-Copyright: © 2007-2010 Dragan Dosen <ddosen@ffzg.hr>
+Copyright: © 2007-2011 Dragan Dosen <ddosen@ffzg.hr>
License: GPL-2+
This package is free software; you can redistribute it and/or modify it under
README.CARNet
-changelog.CARNet
. /usr/share/carnet-tools/functions.sh
PKG="squirrelmail-change-pass-cn"
-VERSION="3.0.2"
+VERSION="3.1.0"
SQCONFDIR="/etc/squirrelmail"
SQCONF="$SQCONFDIR/config.php"
need_restart=0
# Enable change_pass plugin in SquirrelMail config.php.
#
if ! egrep -q '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then
- /usr/sbin/squirrelmail-configure --install-plugin change_pass
+ squirrelmail-configure --install-plugin change_pass
fi
# Service configuration is saved in /etc/xinetd.d/ directory.
#
if [ -x /etc/init.d/xinetd -a -d /etc/xinetd.d -a -x /usr/sbin/itox ]; then
-
if egrep -q '^poppassd' /etc/inetd.conf && \
[ ! -f /etc/xinetd.d/poppassd ]; then
# Restart xinetd if needed.
#
if [ $need_restart -eq 1 ]; then
-
if [ -x "/etc/init.d/xinetd" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d xinetd restart || exit $?
case "$1" in
remove|deconfigure)
- # Include CARNet functions
- . /usr/share/carnet-tools/functions.sh
-
- PKG="squirrelmail-change-pass-cn"
- SQCONFDIR="/etc/squirrelmail"
- SQCONF="$SQCONFDIR/config.php"
- need_restart=0
-
- # Remove CARNet configuration from /etc/hosts.allow and
- # /etc/hosts.deny.
- #
- if [ -f /etc/hosts.allow ]; then
- cp-update -r "$PKG" /etc/hosts.allow
- fi
- if [ -f /etc/hosts.deny ]; then
- cp-update -r "$PKG" /etc/hosts.deny
- fi
+ # Include CARNet functions
+ . /usr/share/carnet-tools/functions.sh
- # Remove SquirrelMail change_pass plugin from SquirrelMail
- # configuration.
- #
- if egrep -q '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then
- /usr/sbin/squirrelmail-configure --remove-plugin change_pass
- fi
+ PKG="squirrelmail-change-pass-cn"
+ SQCONFDIR="/etc/squirrelmail"
+ SQCONF="$SQCONFDIR/config.php"
+ need_restart=0
- # Remove poppassd service from xinetd.
- #
- if [ -f /etc/xinetd.d/poppassd ]; then
-
- if egrep -q "^# Begin update by CARNet package " /etc/xinetd.d/poppassd; then
-
- cp_echo "CN: Removing poppassd service from xinetd configuration"
- rm -f /etc/xinetd.d/poppassd
- need_restart=1
- fi
- fi
+ # Remove CARNet configuration from /etc/hosts.allow and
+ # /etc/hosts.deny.
+ #
+ if [ -f /etc/hosts.allow ]; then
+ cp-update -r "$PKG" /etc/hosts.allow
+ fi
+ if [ -f /etc/hosts.deny ]; then
+ cp-update -r "$PKG" /etc/hosts.deny
+ fi
- # Restart xinetd if needed.
- #
- if [ $need_restart -eq 1 ]; then
+ # Remove SquirrelMail change_pass plugin from SquirrelMail
+ # configuration.
+ #
+ if egrep -q '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then
+ squirrelmail-configure --remove-plugin change_pass
+ fi
- if [ -x "/etc/init.d/xinetd" ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d xinetd restart || exit $?
- else
- /etc/init.d/xinetd restart || exit $?
- fi
+ # Remove poppassd service from xinetd.
+ #
+ if [ -f /etc/xinetd.d/poppassd ]; then
+ if egrep -q "^# Begin update by CARNet package " /etc/xinetd.d/poppassd; then
+ cp_echo "CN: Removing poppassd service from xinetd configuration"
+ rm -f /etc/xinetd.d/poppassd
+ need_restart=1
+ fi
+ fi
+
+ # Restart xinetd if needed.
+ #
+ if [ $need_restart -eq 1 ]; then
+ if [ -x "/etc/init.d/xinetd" ]; then
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d xinetd restart || exit $?
+ else
+ /etc/init.d/xinetd restart || exit $?
fi
- fi
-
- # Mail root.
- #
- cp_mail "$PKG"
+ fi
+ fi
+
+ # Mail root.
+ #
+ cp_mail "$PKG"
- break
- ;;
+ break
+ ;;
upgrade)
- :
- ;;
+ :
+ ;;
failed-upgrade)
- ;;
+ ;;
*)
- echo "prerm called with unknown argument \$1'" >&2
- exit 0
- ;;
+ echo "prerm called with unknown argument \$1'" >&2
+ exit 0
+ ;;
esac
#DEBHELPER#
#!/usr/bin/make -f
-
-PACKAGE = $(shell dh_listpackages)
-TMP = $(CURDIR)/debian/$(PACKAGE)
-
-build:
-
-clean:
- dh_testdir
- dh_testroot
- dh_clean
- rm -f install-stamp
-
-install: build install-stamp
-install-stamp:
- dh_testdir
- dh_testroot
- dh_clean
- touch install-stamp
-
-binary-arch: build install
-
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installchangelogs
- dh_link
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
+%:
+ dh $@