pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/safecat Improve DESTDIR support. Take MAINTAINER.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6f3a9b34fd8
branches:  trunk
changeset: 365819:e6f3a9b34fd8
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Jul 27 02:11:52 2017 +0000

description:
Improve DESTDIR support. Take MAINTAINER.

diffstat:

 mail/safecat/Makefile         |   8 ++----
 mail/safecat/distinfo         |   4 +-
 mail/safecat/patches/patch-ab |  46 ++++++++++++++++++++++++++++++++++--------
 3 files changed, 42 insertions(+), 16 deletions(-)

diffs (106 lines):

diff -r 4c4b35bd4972 -r e6f3a9b34fd8 mail/safecat/Makefile
--- a/mail/safecat/Makefile     Thu Jul 27 00:22:57 2017 +0000
+++ b/mail/safecat/Makefile     Thu Jul 27 02:11:52 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2017/07/26 02:27:20 schmonz Exp $
+# $NetBSD: Makefile,v 1.20 2017/07/27 02:11:52 schmonz Exp $
 #
 
 DISTNAME=              safecat-1.13
@@ -6,18 +6,16 @@
 CATEGORIES=            mail
 MASTER_SITES=          http://jeenyus.net/~budney/linux/software/safecat/
 
-MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+MAINTAINER=            schmonz%NetBSD.org@localhost
 HOMEPAGE=              http://www.jeenyus.net/linux/software/safecat.html
 COMMENT=               Write data safely to a maildir
 
 MAKE_JOBS_SAFE=                no
 
 DJB_RESTRICTED=                NO
-BUILD_TARGET=          install instcheck
+DJB_BUILD_TARGETS+=    install instcheck
 DJB_CONFIG_HOME=       conf-root
 
-MAKE_FLAGS+=           DESTDIR=${DESTDIR:Q}
-
 SUBST_CLASSES+=                pkgmandir
 SUBST_STAGE.pkgmandir= pre-configure
 SUBST_FILES.pkgmandir= hier.c
diff -r 4c4b35bd4972 -r e6f3a9b34fd8 mail/safecat/distinfo
--- a/mail/safecat/distinfo     Thu Jul 27 00:22:57 2017 +0000
+++ b/mail/safecat/distinfo     Thu Jul 27 02:11:52 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.10 2017/07/26 02:27:20 schmonz Exp $
+$NetBSD: distinfo,v 1.11 2017/07/27 02:11:52 schmonz Exp $
 
 SHA1 (safecat-1.13.tar.gz) = 07b42cb06490abeacefce9429a1dbf96caa1629b
 RMD160 (safecat-1.13.tar.gz) = 614df1d43d13a638ab30a2921b66d78f3fafc4c6
 SHA512 (safecat-1.13.tar.gz) = e6f7401b55a61f70715b3d222c8286c0125c5e7b3b132e5e8d3c8573a6c45dba75b29a459c7e93d7c0760300f0a62635d8ea4eacde9b0b1ff7637b3f6c63e210
 Size (safecat-1.13.tar.gz) = 33953 bytes
 SHA1 (patch-aa) = 269073a9aa0d0b4814a2a0dd889396a575f51c20
-SHA1 (patch-ab) = bfbbdfd34e1b97adccfd36709b5bdd69b6dbd615
+SHA1 (patch-ab) = f19e2acb2cb917277f01a5063ef01199d2338a3c
 SHA1 (patch-hier.c) = b4483673a6eb3a2c55da096a1b01a3a5a9a053a9
diff -r 4c4b35bd4972 -r e6f3a9b34fd8 mail/safecat/patches/patch-ab
--- a/mail/safecat/patches/patch-ab     Thu Jul 27 00:22:57 2017 +0000
+++ b/mail/safecat/patches/patch-ab     Thu Jul 27 02:11:52 2017 +0000
@@ -1,20 +1,48 @@
-$NetBSD: patch-ab,v 1.2 2017/07/26 02:27:20 schmonz Exp $
+$NetBSD: patch-ab,v 1.3 2017/07/27 02:11:52 schmonz Exp $
 
-  Allow installation to DESTDIR (taken from safecat-buildroot.patch in
-  the archive).
+DESTDIR support.
 
 --- Makefile.orig      2004-08-17 00:50:09.000000000 +0000
 +++ Makefile
-@@ -31,7 +31,7 @@ compile auto-str.c substdio.h readwrite.
+@@ -29,6 +29,14 @@ auto-str.o: \
+ compile auto-str.c substdio.h readwrite.h exit.h
+       ./compile auto-str.c
  
++auto_destdir.c: \
++auto-str conf-destdir
++      ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c
++
++auto_destdir.o: \
++compile auto_destdir.c
++      ./compile auto_destdir.c
++
  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-str auto_home `head -1 conf-root` > auto_home.c
+@@ -103,9 +111,9 @@ compile hier.c auto_home.h
+       ./compile hier.c
+ 
+ install: \
+-load install.o hier.o auto_home.o strerr.a substdio.a open.a error.a \
++load install.o hier.o auto_destdir.o strerr.a substdio.a open.a error.a \
+ str.a
+-      ./load install hier.o auto_home.o strerr.a substdio.a \
++      ./load install hier.o auto_destdir.o strerr.a substdio.a \
+       open.a error.a str.a
  
- auto_home.o: \
- compile auto_home.c
-@@ -123,7 +123,7 @@ compile instcheck.c strerr.h error_no.h 
+ install.o: \
+@@ -114,8 +122,8 @@ exit.h buffer.h
+       ./compile install.c
+ 
+ instcheck: \
+-load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a
+-      ./load instcheck hier.o auto_home.o strerr.a substdio.a \
++load instcheck.o hier.o auto_destdir.o strerr.a substdio.a error.a str.a
++      ./load instcheck hier.o auto_destdir.o strerr.a substdio.a \
+       error.a str.a
+ 
+ instcheck.o: \
+@@ -123,7 +131,7 @@ compile instcheck.c strerr.h error_no.h 
        ./compile instcheck.c
  
  it: \



Home | Main Index | Thread Index | Old Index