Dodan patch za podesavanje $min_pass_length vrijednosti.
authorDragan Dosen <ddosen@ffzg.hr>
Fri, 23 Apr 2010 15:25:03 +0000 (17:25 +0200)
committerDragan Dosen <ddosen@ffzg.hr>
Fri, 23 Apr 2010 15:25:03 +0000 (17:25 +0200)
debian/control
debian/patches/001config.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules

index 58b9212..78c61b9 100644 (file)
@@ -2,7 +2,7 @@ Source: squirrelmail-change-pass
 Section: web
 Priority: optional
 Maintainer: Dragan Dosen <ddosen@ffzg.hr>
-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 (file)
index 0000000..19c7e2e
--- /dev/null
@@ -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 (file)
index 0000000..298a3b4
--- /dev/null
@@ -0,0 +1 @@
+001config.patch
index e8ca15f..842b783 100755 (executable)
@@ -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/{} \;