Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 02:26:31 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172057: security/manipulate_data: Update MASTER_SITES
Message-ID:  <20120926022631.f057e55b038dcf8f9c103562@yahoo.com>
Resent-Message-ID: <201209251820.q8PIKH7s034980@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172057
>Category:       ports
>Synopsis:       security/manipulate_data: 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:16 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
- Support CC/CFLAGS properly

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/security/manipulate_data/Makefile security/manipulate_data/Makefile
--- /usr/ports/security/manipulate_data/Makefile	2008-07-31 12:38:45.000000000 +0900
+++ security/manipulate_data/Makefile	2012-09-25 03:41:26.000000000 +0900
@@ -1,32 +1,39 @@
-# New ports collection makefile for:	manipulate_data
-# Date created:				24 Jul 2004
-# Whom:					Vaida Bogdan <vaida.bogdan@gmail.com>
-#
+# Created by: Vaida Bogdan <vaida.bogdan@gmail.com>
 # $FreeBSD: ports/security/manipulate_data/Makefile,v 1.3 2008/07/31 03:38:45 vs Exp $
-#
 
 PORTNAME=	manipulate_data
 PORTVERSION=	1.3
+PORTREVISION=	1
 CATEGORIES=	security
-MASTER_SITES=	http://packetstormsecurity.org/groups/thc/
+MASTER_SITES=	PACKETSTORM/groups/thc
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Search/extract/write raw data
 
-PLIST_FILES=	sbin/read_data sbin/replace_data sbin/search_data sbin/write_data
+OPTIONS_DEFINE=	DOCS
+
 PORTDOCS=	CHANGES README
+PLIST_FILES=	${SBIN_PROGRAMS:S,^,sbin/,}
+
+SBIN_PROGRAMS=	read_data replace_data search_data write_data
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^CC=|CC?=| ; \
+		 s| -O2 | $$(CFLAGS) | ; \
+		 /strip/s|^|#|' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/read_data ${PREFIX}/sbin
-	${INSTALL_PROGRAM} ${WRKSRC}/write_data ${PREFIX}/sbin
-	${INSTALL_PROGRAM} ${WRKSRC}/search_data ${PREFIX}/sbin
-	${INSTALL_PROGRAM} ${WRKSRC}/replace_data ${PREFIX}/sbin
-
-post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.for i in ${SBIN_PROGRAMS}
+	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/sbin
+.endfor
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
 .endif
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120926022631.f057e55b038dcf8f9c103562>