From 913359e14b4192a9d9bd0dfd39377588ccedd74f Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Fri, 23 Apr 2010 17:25:03 +0200 Subject: [PATCH] Dodan patch za podesavanje $min_pass_length vrijednosti. --- debian/control | 2 +- debian/patches/001config.patch | 11 +++++++++++ debian/patches/series | 1 + debian/rules | 7 +++++-- 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 debian/patches/001config.patch create mode 100644 debian/patches/series diff --git a/debian/control b/debian/control index 58b9212..78c61b9 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: squirrelmail-change-pass Section: web Priority: optional Maintainer: Dragan Dosen -Build-Depends: debhelper (>= 6) +Build-Depends: debhelper (>= 6), quilt (>= 0.40) Standards-Version: 3.8.0 Package: squirrelmail-change-pass diff --git a/debian/patches/001config.patch b/debian/patches/001config.patch new file mode 100644 index 0000000..19c7e2e --- /dev/null +++ b/debian/patches/001config.patch @@ -0,0 +1,11 @@ +Index: squirrelmail-change-pass/config_example.php +=================================================================== +--- squirrelmail-change-pass.orig/config_example.php 2010-04-23 16:57:15.000000000 +0200 ++++ squirrelmail-change-pass/config_example.php 2010-04-23 16:57:40.000000000 +0200 +@@ -5,5 +5,5 @@ + // The default port is 106 + #$poppass_port = 106; + +- $min_pass_length = 0; ++ $min_pass_length = 8; + $max_pass_length = 9999999; diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..298a3b4 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +001config.patch diff --git a/debian/rules b/debian/rules index e8ca15f..842b783 100755 --- a/debian/rules +++ b/debian/rules @@ -1,17 +1,19 @@ #!/usr/bin/make -f +include /usr/share/quilt/quilt.make + PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) build: -clean: +clean: unpatch dh_testdir dh_testroot dh_clean rm -f install-stamp -install: build install-stamp +install: patch build install-stamp install-stamp: dh_testdir dh_testroot @@ -21,6 +23,7 @@ install-stamp: -path '*/debian/*' -or \ -path '*/doc/*' -or \ -path '*/.git/*' -or \ + -path '*/.pc/*' -or \ -name 'README' -or \ -name 'config_example.php' \ \) -exec install -D --mode=644 {} $(TMP)/usr/share/squirrelmail/plugins/change_pass/{} \; -- 1.7.10.4