pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/safecat Added support for installation to DESTDIR...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f486f018bd2
branches:  trunk
changeset: 538688:7f486f018bd2
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sat Feb 16 15:21:40 2008 +0000

description:
Added support for installation to DESTDIR, similar to the way RPM
packages get built.

diffstat:

 mail/safecat/Makefile         |   6 +++++-
 mail/safecat/distinfo         |   3 ++-
 mail/safecat/patches/patch-ab |  16 ++++++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs (57 lines):

diff -r 80dae041b4cf -r 7f486f018bd2 mail/safecat/Makefile
--- a/mail/safecat/Makefile     Sat Feb 16 14:26:37 2008 +0000
+++ b/mail/safecat/Makefile     Sat Feb 16 15:21:40 2008 +0000
@@ -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 @@
 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 -r 80dae041b4cf -r 7f486f018bd2 mail/safecat/distinfo
--- a/mail/safecat/distinfo     Sat Feb 16 14:26:37 2008 +0000
+++ b/mail/safecat/distinfo     Sat Feb 16 15:21:40 2008 +0000
@@ -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 -r 80dae041b4cf -r 7f486f018bd2 mail/safecat/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/safecat/patches/patch-ab     Sat Feb 16 15:21:40 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index