Mon Jun 9 23:47:56 2014 UTC ()
Since qmqtool operates directly on a queue structure, it doesn't
depend on mail/qmail, so ${QMAILDIR} may not exist at build time.
Patch out overzealous configure checks.


(schmonz)
diff -r1.2 -r1.3 pkgsrc/mail/qmqtool/distinfo
diff -r0 -r1.1 pkgsrc/mail/qmqtool/patches/patch-configure

cvs diff -r1.2 -r1.3 pkgsrc/mail/qmqtool/distinfo (expand / switch to unified diff)

--- pkgsrc/mail/qmqtool/distinfo 2014/06/02 14:09:20 1.2
+++ pkgsrc/mail/qmqtool/distinfo 2014/06/09 23:47:56 1.3
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.2 2014/06/02 14:09:20 schmonz Exp $ 1$NetBSD: distinfo,v 1.3 2014/06/09 23:47:56 schmonz Exp $
2 2
3SHA1 (qmqtool-1.14.tgz) = a15ea167137697665d770574aae19f98c8caa44d 3SHA1 (qmqtool-1.14.tgz) = a15ea167137697665d770574aae19f98c8caa44d
4RMD160 (qmqtool-1.14.tgz) = 020abb26fe17f10448bb6a1619f408e4899845cf 4RMD160 (qmqtool-1.14.tgz) = 020abb26fe17f10448bb6a1619f408e4899845cf
5Size (qmqtool-1.14.tgz) = 25357 bytes 5Size (qmqtool-1.14.tgz) = 25357 bytes
6SHA1 (patch-aa) = e80d247f9637889ae4bc2d4fe19a918dbbf58205 6SHA1 (patch-aa) = e80d247f9637889ae4bc2d4fe19a918dbbf58205
 7SHA1 (patch-configure) = 01ae176043aa25107bf698c355132158885569e0

File Added: pkgsrc/mail/qmqtool/patches/patch-configure
$NetBSD: patch-configure,v 1.1 2014/06/09 23:47:56 schmonz Exp $

Since qmqtool operates directly on a queue structure, it doesn't
depend on mail/qmail, so ${QMAILDIR} may not exist at build time.
Patch out overzealous configure checks.

--- configure.orig	2009-01-24 04:20:49.000000000 +0000
+++ configure
@@ -77,12 +77,12 @@ EOM
 		;;
 	   --qmaildir*)
 			if [ "$arg" ]; then
-				if [ -d "$arg" ] ; then
+#				if [ -d "$arg" ] ; then
 					qmaildir=$arg
-				else
-					echo "*** QMAILDIR: $arg is not a directory"
-					sleep 1
-				fi
+#				else
+#					echo "*** QMAILDIR: $arg is not a directory"
+#					sleep 1
+#				fi
 			fi
 		;;
 		*)
@@ -106,14 +106,14 @@ if [ ! -x "$perl" ] ; then
 	fi
 fi
 
-if [ ! -d "$qmaildir" ] ; then
-	if test -d /var/qmail ; then
-		qmaildir=/var/qmail
-	else
-		echo "could not find qmail directory: specify --qmaildir="
-		exit 1
-	fi
-fi
+#if [ ! -d "$qmaildir" ] ; then
+#	if test -d /var/qmail ; then
+#		qmaildir=/var/qmail
+#	else
+#		echo "could not find qmail directory: specify --qmaildir="
+#		exit 1
+#	fi
+#fi
 
 if [ ! "$prefix" ] && [ ! "$scriptdir" ] && [ ! "$mandir" ] ; then
 	exscr="`which qmqtool`"