summaryrefslogtreecommitdiff
path: root/mail/safecat
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2008-02-16 15:21:40 +0000
committerheinz <heinz@pkgsrc.org>2008-02-16 15:21:40 +0000
commit6c55d3b99f555f82f7c0ca587a9b85c37c38514c (patch)
tree6a473e9e778ff913abd5250c267374033688e1b8 /mail/safecat
parent3e67d4bb324168e197295a0bb360bf4e4db0257a (diff)
downloadpkgsrc-6c55d3b99f555f82f7c0ca587a9b85c37c38514c.tar.gz
Added support for installation to DESTDIR, similar to the way RPM
packages get built.
Diffstat (limited to 'mail/safecat')
-rw-r--r--mail/safecat/Makefile6
-rw-r--r--mail/safecat/distinfo3
-rw-r--r--mail/safecat/patches/patch-ab16
3 files changed, 23 insertions, 2 deletions
diff --git a/mail/safecat/Makefile b/mail/safecat/Makefile
index 0484dff7c98..6aa5d9e04c8 100644
--- a/mail/safecat/Makefile
+++ b/mail/safecat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/01/15 11:01:24 schmonz Exp $
+# $NetBSD: Makefile,v 1.12 2008/02/16 15:21:40 heinz Exp $
#
DISTNAME= safecat-1.13
@@ -9,11 +9,15 @@ MAINTAINER= zuntum@NetBSD.org
HOMEPAGE= http://jeenyus.net/~budney/linux/software/safecat.html
COMMENT= Write data safely to a maildir
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= nroff
DJB_RESTRICTED= NO
DJB_BUILD_TARGETS= install instcheck
DJB_CONFIG_HOME= conf-root
+MAKE_FLAGS+= DESTDIR=${DESTDIR:Q}
+
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mail/safecat/distinfo b/mail/safecat/distinfo
index 4a9c3fea3a6..66d8647e81c 100644
--- a/mail/safecat/distinfo
+++ b/mail/safecat/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2007/01/15 11:01:24 schmonz Exp $
+$NetBSD: distinfo,v 1.6 2008/02/16 15:21:40 heinz Exp $
SHA1 (safecat-1.13.tar.gz) = 07b42cb06490abeacefce9429a1dbf96caa1629b
RMD160 (safecat-1.13.tar.gz) = 614df1d43d13a638ab30a2921b66d78f3fafc4c6
Size (safecat-1.13.tar.gz) = 33953 bytes
SHA1 (patch-aa) = 2e06a02df248b91e2b1fda9f783c53a10081b196
+SHA1 (patch-ab) = 59b4876e127ebffdbd3cad83a37e3971d9736e8f
diff --git a/mail/safecat/patches/patch-ab b/mail/safecat/patches/patch-ab
new file mode 100644
index 00000000000..0d3248c7db4
--- /dev/null
+++ b/mail/safecat/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1 2008/02/16 15:21:40 heinz Exp $
+
+ Allow installation to DESTDIR (taken from safecat-buildroot.patch in
+ the archive).
+
+--- Makefile.orig 2004-08-17 02:50:09.000000000 +0200
++++ Makefile
+@@ -31,7 +31,7 @@ compile auto-str.c substdio.h readwrite.
+
+ auto_home.c: \
+ auto-str conf-root
+- ./auto-str auto_home `head -1 conf-root` > auto_home.c
++ ./auto-str auto_home $(DESTDIR)`head -1 conf-root` > auto_home.c
+
+ auto_home.o: \
+ compile auto_home.c