ports/184881: security/vlog: Support CC properly

KATO Tsuguru tkato432 at yahoo.com
Mon Dec 16 18:10:23 UTC 2013


>Number:         184881
>Category:       ports
>Synopsis:       security/vlog: Support CC properly
>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:   Mon Dec 16 18:10:22 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC properly
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/security/vlog/Makefile security/vlog/Makefile
--- /usr/ports/security/vlog/Makefile	2013-11-06 22:03:00.000000000 +0900
+++ security/vlog/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -6,24 +6,31 @@
 PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://inc2.com/download/
-DISTNAME=	vlog-${PORTVERSION}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A curses based real-time logfile viewer esp. useful for ipflog
+COMMENT=	Curses based real-time logfile viewer esp. useful for ipflog
+
+LICENSE=	GPLv2
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
 
-ALL_TARGET=	it
-MAKE_ARGS=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
-		LIBS="${PTHREAD_LIBS} -lcurses"
-WRKSRC=		${WRKDIR}/vlog
 USES=		perl5
+USE_PERL5=	build
+MAKE_ENV=	LIBS="-lcurses -pthread"
+ALL_TARGET=	it
 
-MAN1=		vlog.1
-MANCOMPRESSED=	no
-PLIST_FILES=	bin/vlog
+PLIST_FILES=	bin/vlog man/man1/vlog.1.gz
 
-NO_STAGE=	yes
 post-patch:
-	${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		'/^CC/s|\([[:space:]]\)=|\1?=| ; \
+		 /strip/s|^|#|' ${WRKSRC}/Makefile
+
+do-install:
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} vlog \
+		${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} vlog.1 \
+		${STAGEDIR}${MANPREFIX}/man/man1)
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list