svn commit: r446583 - head/comms/atslog

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Jul 25 13:36:27 UTC 2017


Author: amdmi3
Date: Tue Jul 25 13:36:26 2017
New Revision: 446583
URL: https://svnweb.freebsd.org/changeset/ports/446583

Log:
  - Switch to options helpers
  - Add LICENSE

Modified:
  head/comms/atslog/Makefile

Modified: head/comms/atslog/Makefile
==============================================================================
--- head/comms/atslog/Makefile	Tue Jul 25 13:21:55 2017	(r446582)
+++ head/comms/atslog/Makefile	Tue Jul 25 13:36:26 2017	(r446583)
@@ -10,26 +10,42 @@ MASTER_SITES=	BERLIOS
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Software for collecting and analyzing calls from different PBX models
 
-OPTIONS_DEFINE=	EXAMPLES LIBWRAP WWW WWWGD DOCS
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		perl5 shebangfix
+SHEBANG_FILES=	data/sql/install-sql.pl \
+		include/atslogcleardb.pl.in include/atslogdb.pl.in
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--localstatedir=/var
+
+USE_RC_SUBR=	${PORTNAME}d
+PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
+
+SUB_FILES=	pkg-message
+
+PORTDOCS=	CHANGES ChangeLog DEINSTALL INSTALL TODO UPDATING USAGE
+
+OPTIONS_DEFINE=		EXAMPLES LIBWRAP WWW WWWGD DOCS
 OPTIONS_DEFAULT=	LIBWRAP MYSQL WWW WWWGD
-OPTIONS_MULTI=	DB
+OPTIONS_MULTI=		DB
 OPTIONS_MULTI_DB=	PGSQL MYSQL
+OPTIONS_SUB=		yes
+
 LIBWRAP_DESC=	Enable TCP wrapper support
 WWW_DESC=	Install web interface
 WWWGD_DESC=	Graphic reports
 
-GNU_CONFIGURE=	yes
-USES=		perl5 shebangfix
-USE_RC_SUBR=	${PORTNAME}d
-SHEBANG_FILES=	data/sql/install-sql.pl \
-		include/atslogcleardb.pl.in include/atslogdb.pl.in
-PORTDOCS=	CHANGES ChangeLog DEINSTALL INSTALL LICENSE TODO UPDATING USAGE
-SUB_FILES=	pkg-message
-CONFIGS=	${PORTNAME}.conf.default ${PORTNAME}.conf.default.rus
-CONFIGURE_ARGS+=--localstatedir=/var
-PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
-OPTIONS_SUB=yes
+MYSQL_USES=		mysql
+MYSQL_BUILD_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
+MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
 
+PGSQL_USES=		pgsql
+PGSQL_BUILD_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
+PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
+
+LIBWRAP_CONFIGURE_OFF=	--disable-libwrap
+
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MWWW}
@@ -44,22 +60,6 @@ USE_PHP+=	mysqli
 .if ${PORT_OPTIONS:MPGSQL}
 USE_PHP+=	pgsql
 .endif
-.endif
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL=	yes
-BUILD_DEPENDS+=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
-RUN_DEPENDS+=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USES+=		pgsql
-BUILD_DEPENDS+=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
-RUN_DEPENDS+=	p5-DBD-Pg>=0:databases/p5-DBD-Pg
-.endif
-
-.if ! ${PORT_OPTIONS:MLIBWRAP}
-CONFIGURE_ARGS+=--disable-libwrap
 .endif
 
 post-patch:


More information about the svn-ports-all mailing list