Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2017 11:16:58 +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: r448905 - head/net-mgmt/pftabled
Message-ID:  <201708291116.v7TBGw0X090530@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Aug 29 11:16:57 2017
New Revision: 448905
URL: https://svnweb.freebsd.org/changeset/ports/448905

Log:
  - Fix comment
  - Fix shebangs
  - Add missing run-depends
  - Switch to options helpers

Modified:
  head/net-mgmt/pftabled/Makefile

Modified: head/net-mgmt/pftabled/Makefile
==============================================================================
--- head/net-mgmt/pftabled/Makefile	Tue Aug 29 11:15:24 2017	(r448904)
+++ head/net-mgmt/pftabled/Makefile	Tue Aug 29 11:16:57 2017	(r448905)
@@ -3,42 +3,39 @@
 
 PORTNAME=	pftabled
 PORTVERSION=	1.09
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://www.wolfermann.org/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	The pftabled is a tool to manage your pf tables remotely
+COMMENT=	Tool to manage pf tables remotely
 
+LICENSE=	BSD2CLAUSE
+
+USES=		gmake shebangfix
+SHEBANG_FILES=	pftabled-client.pl \
+		pftabled-client.py
+GNU_CONFIGURE=	yes
+
 USE_RC_SUBR=	pftabled
 
 PLIST_FILES=	bin/pftabled-client man/man1/pftabled.1.gz sbin/pftabled
 
-GNU_CONFIGURE=	yes
-USES=		gmake shebangfix
-SHEBANG_FILES=	pftabled-client.pl
-
 OPTIONS_DEFINE=	PERLC PYTHONC
-OPTIONS_DEFAULT=	PERLC PYTHONC
-PERLC_DESC=	A Sample Perl Client
-PYTHONC_DESC=	A Sample Python Client
+OPTIONS_DEFAULT=PERLC PYTHONC
 
-.include <bsd.port.pre.mk>
+PERLC_DESC=		Install sample Perl client
+PERLC_PLIST_FILES=	bin/pftabled-client.pl
+PERLC_USES=		perl5
+PERLC_USE=		PERL5=run
+PYTHONC_DESC=		Install sample Python client
+PYTHONC_PLIST_FILES=	bin/pftabled-client.py
+PYTHONC_USES=		python:run
 
-.if ${PORT_OPTIONS:MPERLC}
-PLIST_FILES+=	bin/pftabled-client.pl
-.endif
-
-.if ${PORT_OPTIONS:MPYTHONC}
-PLIST_FILES+=	bin/pftabled-client.py
-.endif
-
-post-install:
-.if ${PORT_OPTIONS:MPERLC}
+post-install-PERLC-on:
 	${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.pl ${STAGEDIR}${PREFIX}/bin/
-.endif
-.if ${PORT_OPTIONS:MPYTHONC}
+
+post-install-PYTHONC-on:
 	${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.py ${STAGEDIR}${PREFIX}/bin/
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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