Date: Wed, 20 Feb 2013 17:52:46 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312636 - head/comms/atslog Message-ID: <201302201752.r1KHqkuh068118@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Wed Feb 20 17:52:45 2013 New Revision: 312636 URL: http://svnweb.freebsd.org/changeset/ports/312636 Log: Convert to new options framework Modified: head/comms/atslog/Makefile Modified: head/comms/atslog/Makefile ============================================================================== --- head/comms/atslog/Makefile Wed Feb 20 17:49:00 2013 (r312635) +++ head/comms/atslog/Makefile Wed Feb 20 17:52:45 2013 (r312636) @@ -1,9 +1,5 @@ -# New ports collection makefile for: atslog -# Date created: 27 November 2006 -# Whom: Alexander Logvinov <ports@logvinov.com> -# +# Created by: Alexander Logvinov <ports@logvinov.com> # $FreeBSD$ -# PORTNAME= atslog PORTVERSION= 2.1.1 @@ -14,11 +10,13 @@ MASTER_SITES= BERLIOS MAINTAINER= ports@FreeBSD.org COMMENT= Software for collecting and analyzing calls from different PBX models -OPTIONS= LIBWRAP "Enable TCP wrapper support" on \ - MYSQL "Enable MySQL support" on \ - PGSQL "Enable PostgreSQL support" off \ - WWW "Install web interface" on \ - WWWGD "Graphic reports" on +OPTIONS_DEFINE= LIBWRAP WWW WWWGD DOCS +OPTIONS_DEFAULT= LIBWRAP MYSQL WWW WWWGF +OPTIONS_MULTI= DB +OPTIONS_MULTI_DB= PGSQL MYSQL +LIBWRAP_DESC= Enable TCP wrapper support +WWW_DESC= Install web interface +WWWGD_DESC= Graphic reports GNU_CONFIGURE= yes USE_PERL5= yes @@ -30,42 +28,38 @@ MAN8= ${USE_RC_SUBR}.8 ${PORTNAME}maste CONFIGS= ${PORTNAME}.conf.default ${PORTNAME}.conf.default.rus CONFIGURE_ARGS+=--localstatedir=/var -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) -IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL -.endif - -.if !defined(WITHOUT_WWW) +.if ${PORT_OPTIONS:MWWW} USE_PHP= pcre WANT_PHP_WEB= yes PLIST_SUB+= WWW="" -.if !defined(WITHOUT_WWWGD) +.if ${PORT_OPTIONS:MWWWGD} USE_PHP+= gd .endif -.if !defined(WITHOUT_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_PHP+= mysql .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pgsql .endif .else PLIST_SUB+= WWW="@comment " .endif -.if !defined(WITHOUT_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes BUILD_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes BUILD_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg .endif -.if defined(WITHOUT_LIBWRAP) +.if ! ${PORT_OPTIONS:MLIBWRAP} CONFIGURE_ARGS+=--disable-libwrap .endif @@ -112,7 +106,7 @@ do-install: ${FIND} -E . -type f ! -iregex ".*\.(sh|orig)" -exec \ ${INSTALL_DATA} "{}" "${PREFIX}/libexec/${PORTNAME}/{}" \; ${INSTALL_SCRIPT} ${WRKSRC}/libexec/genindex.sh ${PREFIX}/libexec/${PORTNAME}/ -.if !defined(WITHOUT_WWW) +.if ${PORT_OPTIONS:MWWW} ${MKDIR} ${PREFIX}/www/${PORTNAME} cd ${WRKSRC}/www && \ ${FIND} . -type d ! -empty -exec \ @@ -125,7 +119,7 @@ do-install: .endif ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/${PORTNAME} .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} @@ -135,4 +129,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.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?201302201752.r1KHqkuh068118>