Thu Mar 1 16:27:58 2012 UTC ()
Fix build on SunOS.
- uses fts functions
- don't ignore pkgsrc-provided CFLAGS, CPPFLAGS, LDFLAGS and LIBS


(hans)
diff -r1.9 -r1.10 pkgsrc/security/destroy/Makefile
diff -r1.8 -r1.9 pkgsrc/security/destroy/distinfo
diff -r0 -r1.1 pkgsrc/security/destroy/patches/patch-Makefile

cvs diff -r1.9 -r1.10 pkgsrc/security/destroy/Makefile (expand / switch to context diff)
--- pkgsrc/security/destroy/Makefile 2009/12/10 23:40:00 1.9
+++ pkgsrc/security/destroy/Makefile 2012/03/01 16:27:57 1.10
@@ -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
@@ -11,6 +11,10 @@
 
 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

cvs diff -r1.8 -r1.9 pkgsrc/security/destroy/distinfo (expand / switch to context diff)
--- pkgsrc/security/destroy/distinfo 2005/11/01 18:52:45 1.8
+++ pkgsrc/security/destroy/distinfo 2012/03/01 16:27:57 1.9
@@ -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

File Added: pkgsrc/security/destroy/patches/patch-Makefile
$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}