From 390ef2c9d99414e878231de9817c09443d38eb43 Mon Sep 17 00:00:00 2001 From: heinz Date: Sat, 16 Feb 2008 15:21:40 +0000 Subject: Added support for installation to DESTDIR, similar to the way RPM packages get built. --- mail/safecat/Makefile | 6 +++++- mail/safecat/distinfo | 3 ++- mail/safecat/patches/patch-ab | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 mail/safecat/patches/patch-ab (limited to 'mail/safecat') 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 -- cgit v1.2.3