summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-03-01 16:27:57 +0000
committerhans <hans@pkgsrc.org>2012-03-01 16:27:57 +0000
commit13c779bbc0fd89b1f694080d9fb5b4929a56edbb (patch)
tree3f8927e91a0cef8ad9b51a7ecacfd29274f86cb1 /security
parentc51bc32b5dace1a6cdc7d0c34995b604a4c78b37 (diff)
downloadpkgsrc-13c779bbc0fd89b1f694080d9fb5b4929a56edbb.tar.gz
Fix build on SunOS.
- uses fts functions - don't ignore pkgsrc-provided CFLAGS, CPPFLAGS, LDFLAGS and LIBS
Diffstat (limited to 'security')
-rw-r--r--security/destroy/Makefile6
-rw-r--r--security/destroy/distinfo3
-rw-r--r--security/destroy/patches/patch-Makefile10
3 files changed, 17 insertions, 2 deletions
diff --git a/security/destroy/Makefile b/security/destroy/Makefile
index dd3ddd566d0..725b20e270e 100644
--- a/security/destroy/Makefile
+++ b/security/destroy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2009/12/10 23:40:00 abs Exp $
+# $NetBSD: Makefile,v 1.10 2012/03/01 16:27:57 hans Exp $
#
DISTNAME= destroy-20040415
@@ -12,6 +12,10 @@ COMMENT= Program to securely destroy files on the hard disk
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
PKG_DESTDIR_SUPPORT= user-destdir
+USE_FEATURES+= fts_open
+
+MAKE_ENV+= CPPFLAGS=${CPPFLAGS:Q} LIBS=${LIBS:Q}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/destroy ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/destroy.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
diff --git a/security/destroy/distinfo b/security/destroy/distinfo
index df058b2bf16..bd11a6ec614 100644
--- a/security/destroy/distinfo
+++ b/security/destroy/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2005/11/01 18:52:45 tv Exp $
+$NetBSD: distinfo,v 1.9 2012/03/01 16:27:57 hans Exp $
SHA1 (destroy-20040415.tar.gz) = c2a24155858e9236c8cba2bb5f45687d778b1fde
RMD160 (destroy-20040415.tar.gz) = b1132ee8c226b6239c1da5591081d9fbccb9c284
Size (destroy-20040415.tar.gz) = 4261 bytes
+SHA1 (patch-Makefile) = 04d541387a969b2f96342699bb97ae9bb1148aca
SHA1 (patch-aa) = b7447b4c3abc553594b8dab779037086e1572c03
diff --git a/security/destroy/patches/patch-Makefile b/security/destroy/patches/patch-Makefile
new file mode 100644
index 00000000000..81bd97aa1ed
--- /dev/null
+++ b/security/destroy/patches/patch-Makefile
@@ -0,0 +1,10 @@
+$NetBSD: patch-Makefile,v 1.1 2012/03/01 16:27:57 hans Exp $
+
+--- Makefile.orig 2012-03-01 16:16:00.542669085 +0100
++++ Makefile 2004-04-15 17:19:49.000000000 +0200
+@@ -14,4 +14,4 @@ CFLAGS?= ${CFLAGS}
+ LDFLAGS?=
+
+ all:
+- ${CC} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} destroy.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} destroy.c ${LIBS}