ports/172059: security/secure_delete: Update MASTER_SITES
KATO Tsuguru
tkato432 at yahoo.com
Tue Sep 25 18:20:18 UTC 2012
>Number: 172059
>Category: ports
>Synopsis: security/secure_delete: Update MASTER_SITES
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 25 18:20:17 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES
- Support CC/CFLAGS properly
- Support PLIST_FILES/PORTDOCS
- Add MAKE_JOBS_UNSAFE
Remove file:
pkg-plist
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/security/secure_delete/Makefile security/secure_delete/Makefile
--- /usr/ports/security/secure_delete/Makefile 2008-07-31 12:38:45.000000000 +0900
+++ security/secure_delete/Makefile 2012-09-25 03:41:50.000000000 +0900
@@ -1,26 +1,54 @@
-# New ports collection makefile for: secure_delete
-# Date created: 24 Jul 2004
-# Whom: Vaida Bogdan <vaida.bogdan at gmail.com>
-#
+# Created by: Vaida Bogdan <vaida.bogdan at gmail.com>
# $FreeBSD: ports/security/secure_delete/Makefile,v 1.3 2008/07/31 03:38:45 vs Exp $
-#
PORTNAME= secure_delete
PORTVERSION= 3.1
+PORTREVISION= 1
CATEGORIES= security
-MASTER_SITES= http://packetstormsecurity.org/groups/thc/
+MASTER_SITES= PACKETSTORM/groups/thc
MAINTAINER= ports at FreeBSD.org
COMMENT= Secure data deletion toolkit
+OPTIONS_DEFINE= DOCS
+
CONFLICTS= srm-[0-9]*
-MANCOMPRESSED= no
-MAN1= srm.1 sfill.1 sswap.1 smem.1
+MAKE_JOBS_UNSAFE= yes
SUB_FILES= pkg-message
-post-install:
+MLINKS= srm.1 sdel.1
+MAN1= srm.1 sfill.1 sswap.1 smem.1
+PORTDOCS= CHANGES FILES README secure_delete.doc usenix6-gutmann.doc
+PLIST_FILES= ${BIN_PROGRAMS:S,^,bin/,} ${BIN_SCRIPTS:S,^,bin/,} bin/sdel
+
+BIN_PROGRAMS= srm sfill sswap smem
+BIN_SCRIPTS= the_cleaner.sh
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|^CC=|CC?=| ; \
+ s|-O2 |$$(CFLAGS) | ;\
+ /strip/s|^|#|' ${WRKSRC}/Makefile
+
+do-install:
+.for i in ${BIN_PROGRAMS}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${i}.1 ${MANPREFIX}/man/man1
+.endfor
+.for i in ${BIN_SCRIPTS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin
+.endfor
+ ${LN} -sf srm ${PREFIX}/bin/sdel
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff -urN /usr/ports/security/secure_delete/pkg-plist security/secure_delete/pkg-plist
--- /usr/ports/security/secure_delete/pkg-plist 2005-03-08 07:43:09.000000000 +0900
+++ security/secure_delete/pkg-plist 1970-01-01 09:00:00.000000000 +0900
@@ -1,12 +0,0 @@
-bin/sdel
-bin/srm
-bin/sfill
-bin/sswap
-bin/smem
-bin/the_cleaner.sh
-%%DOCSDIR%%/CHANGES
-%%DOCSDIR%%/FILES
-%%DOCSDIR%%/README
-%%DOCSDIR%%/secure_delete.doc
-%%DOCSDIR%%/usenix6-gutmann.doc
- at dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list