[pkg-kolab] r234 - trunk/kolabd/debian/patches

Noel Koethe noel at costa.debian.org
Thu Jan 26 12:21:38 UTC 2006


Author: noel
Date: 2006-01-26 12:21:38 +0000 (Thu, 26 Jan 2006)
New Revision: 234

Added:
   trunk/kolabd/debian/patches/50-kolabpasswd-slappasswd-path
Log:
correct slappasswd path

Added: trunk/kolabd/debian/patches/50-kolabpasswd-slappasswd-path
===================================================================
--- trunk/kolabd/debian/patches/50-kolabpasswd-slappasswd-path	2006-01-26 12:14:44 UTC (rev 233)
+++ trunk/kolabd/debian/patches/50-kolabpasswd-slappasswd-path	2006-01-26 12:21:38 UTC (rev 234)
@@ -0,0 +1,36 @@
+#!/bin/sh -e
+## 50-kolabpasswd-slappasswd-path by Noèl Köthe <noel at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: This is the patch to correct the slappasswd path
+
+if [ $# -lt 1 ]; then
+echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
+
+case "$1" in
+      -patch) patch $patch_opts -p1 < $0;;
+      -unpatch) patch $patch_opts -p1 -R < $0;;
+      *)
+      echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+      exit 1;;
+esac
+
+exit 0
+
+ at DPATCH@
+--- kolabd-1.9.4/kolabpasswd.orig	2006-01-26 13:18:12.000000000 +0100
++++ kolabd-1.9.4/kolabpasswd	2006-01-26 13:18:29.000000000 +0100
+@@ -37,7 +37,7 @@
+ # Hash a password
+ sub hashPassword {
+   my $pw = shift;
+-  my $hashcmd = $kolab_prefix."/sbin/slappasswd -s '".$pw."'";
++  my $hashcmd = "/usr/sbin/slappasswd -s '".$pw."'";
+   (my $hashpw = `$hashcmd`) or die $@;
+   chomp($hashpw);
+   return $hashpw;


Property changes on: trunk/kolabd/debian/patches/50-kolabpasswd-slappasswd-path
___________________________________________________________________
Name: svn:executable
   + *




More information about the pkg-kolab-devel mailing list