Bug 184881 - security/vlog: Support CC properly
Summary: security/vlog: Support CC properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-20 19:30 UTC (History)
0 users

See Also:


Attachments
file.diff (1.26 KB, patch)
2013-12-16 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-16 18:10:22 UTC
- Support CC properly
- Add LICENSE
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 19:20:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 19:25:57 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-12-20 19:25:57 UTC
Author: pawel
Date: Fri Dec 20 19:25:49 2013
New Revision: 337081
URL: http://svnweb.freebsd.org/changeset/ports/337081

Log:
  - Respect CC
  - Add LICENSE
  - Support staging
  
  PR:		ports/184881
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/security/vlog/Makefile

Modified: head/security/vlog/Makefile
==============================================================================
--- head/security/vlog/Makefile	Fri Dec 20 19:18:18 2013	(r337080)
+++ head/security/vlog/Makefile	Fri Dec 20 19:25:49 2013	(r337081)
@@ -6,24 +6,31 @@ PORTVERSION=	1.1f
 PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://inc2.com/download/
-DISTNAME=	vlog-${PORTVERSION}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"