Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2015 01:17:13 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404888 - in head/net-mgmt/ipaudit: . files
Message-ID:  <201512310117.tBV1HD45091614@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Dec 31 01:17:13 2015
New Revision: 404888
URL: https://svnweb.freebsd.org/changeset/ports/404888

Log:
  - Add LICENSE
  - Switch to USES=tar
  - Switch to options helpers
  - Simplify installation
  - Simplify pkg-message handling

Added:
  head/net-mgmt/ipaudit/files/pkg-message.in
     - copied, changed from r404887, head/net-mgmt/ipaudit/pkg-message
Deleted:
  head/net-mgmt/ipaudit/pkg-message
Modified:
  head/net-mgmt/ipaudit/Makefile

Modified: head/net-mgmt/ipaudit/Makefile
==============================================================================
--- head/net-mgmt/ipaudit/Makefile	Thu Dec 31 01:17:02 2015	(r404887)
+++ head/net-mgmt/ipaudit/Makefile	Thu Dec 31 01:17:13 2015	(r404888)
@@ -5,30 +5,29 @@ PORTNAME=	ipaudit
 PORTVERSION=	0.95
 CATEGORIES=	net-mgmt sysutils
 MASTER_SITES=	http://ipaudit.sourceforge.net/download/
-EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	IP traffic summarizer
 
-MANPAGE=	ipaudit.1 ipstrings.1 total.1
+LICENSE=	GPLv2 # or later
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-BIN=		ipaudit ipstrings total
-
-MSG_FILE=	${PKGDIR}/pkg-message
-PKGMESSAGE=	${WRKDIR}/pkg-message
+USES=		tar:tgz
+SUB_FILES=	pkg-message
 
 OPTIONS_DEFINE=	DOCS
 
 do-install:
-.for f in ${BIN}
+.for f in ipaudit ipstrings total
 	${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${STAGEDIR}${PREFIX}/bin
 .endfor
-.for f in ${MANPAGE}
+.for f in ipaudit.1 ipstrings.1 total.1
 	${INSTALL_MAN} ${WRKSRC}/man/man1/${f} ${STAGEDIR}${PREFIX}/man/man1
 .endfor
 	${INSTALL_DATA} ${WRKSRC}/src/ipaudit.conf.sample ${STAGEDIR}${PREFIX}/etc
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
 
 .include <bsd.port.mk>

Copied and modified: head/net-mgmt/ipaudit/files/pkg-message.in (from r404887, head/net-mgmt/ipaudit/pkg-message)
==============================================================================
--- head/net-mgmt/ipaudit/pkg-message	Thu Dec 31 01:17:02 2015	(r404887, copy source)
+++ head/net-mgmt/ipaudit/files/pkg-message.in	Thu Dec 31 01:17:13 2015	(r404888)
@@ -1,11 +1,13 @@
 ***********************************************************
  
-	Please copy %%PREFIX%%/etc/ipaudit.conf.sample to
-	%%PREFIX%%/etc/ipaudit.conf by yourself and modify it,
-	then start ipaudit with
+Please copy %%PREFIX%%/etc/ipaudit.conf.sample to
+%%PREFIX%%/etc/ipaudit.conf by yourself and modify it,
+then start ipaudit with
 
-	'ipaudit -g %%PREFIX%%/etc/ipaudit.conf' command.
+    ipaudit -g %%PREFIX%%/etc/ipaudit.conf
 
-	Thanks.
+command.
+
+Thanks.
 
 ***********************************************************



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