svn commit: r413409 - in head/mail: . opensmtpd-extras opensmtpd-extras-table-mysql opensmtpd-extras-table-passwd opensmtpd-extras-table-postgresql opensmtpd-extras-table-python opensmtpd-extras-ta...

Adam Weinberger adamw at FreeBSD.org
Sat Apr 16 01:37:55 UTC 2016


Author: adamw
Date: Sat Apr 16 01:37:52 2016
New Revision: 413409
URL: https://svnweb.freebsd.org/changeset/ports/413409

Log:
  Split opensmtpd-extras into a bunch of slave ports. Right now -extras
  only has the table stuff, but there are many more pieces. Having
  the default package install postgresql, redis, and mysql when all you
  wanted was passwd support, is overkill. Ports for filters will come
  soon.
  
  The -extras port retains its OPTIONS (and still installs everything
  possible, so there's no disruption for current users).
  
  Approved by:	gahr (maintainer)

Added:
  head/mail/opensmtpd-extras-table-mysql/
  head/mail/opensmtpd-extras-table-mysql/Makefile
     - copied, changed from r413404, head/mail/opensmtpd-extras/Makefile
  head/mail/opensmtpd-extras-table-passwd/
  head/mail/opensmtpd-extras-table-passwd/Makefile
     - copied, changed from r413404, head/mail/opensmtpd-extras/Makefile
  head/mail/opensmtpd-extras-table-postgresql/
  head/mail/opensmtpd-extras-table-postgresql/Makefile
     - copied, changed from r413404, head/mail/opensmtpd-extras/Makefile
  head/mail/opensmtpd-extras-table-python/
  head/mail/opensmtpd-extras-table-python/Makefile
     - copied, changed from r413404, head/mail/opensmtpd-extras/Makefile
  head/mail/opensmtpd-extras-table-redis/
  head/mail/opensmtpd-extras-table-redis/Makefile
     - copied, changed from r413404, head/mail/opensmtpd-extras/Makefile
  head/mail/opensmtpd-extras-table-socketmap/
  head/mail/opensmtpd-extras-table-socketmap/Makefile
     - copied, changed from r413404, head/mail/opensmtpd-extras/Makefile
  head/mail/opensmtpd-extras-table-sqlite/
  head/mail/opensmtpd-extras-table-sqlite/Makefile
     - copied, changed from r413404, head/mail/opensmtpd-extras/Makefile
Modified:
  head/mail/Makefile
  head/mail/opensmtpd-extras/Makefile

Modified: head/mail/Makefile
==============================================================================
--- head/mail/Makefile	Sat Apr 16 01:30:28 2016	(r413408)
+++ head/mail/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -293,6 +293,13 @@
     SUBDIR += opensmtpd
     SUBDIR += opensmtpd-devel
     SUBDIR += opensmtpd-extras
+    SUBDIR += opensmtpd-extras-table-mysql
+    SUBDIR += opensmtpd-extras-table-passwd
+    SUBDIR += opensmtpd-extras-table-postgresql
+    SUBDIR += opensmtpd-extras-table-python
+    SUBDIR += opensmtpd-extras-table-redis
+    SUBDIR += opensmtpd-extras-table-socketmap
+    SUBDIR += opensmtpd-extras-table-sqlite
     SUBDIR += openwebmail
     SUBDIR += osbf-lua
     SUBDIR += ovs

Copied and modified: head/mail/opensmtpd-extras-table-mysql/Makefile (from r413404, head/mail/opensmtpd-extras/Makefile)
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Fri Apr 15 23:13:15 2016	(r413404, copy source)
+++ head/mail/opensmtpd-extras-table-mysql/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -1,69 +1,18 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	opensmtpd-extras
-PORTVERSION=	201602042118
-CATEGORIES=	mail
-MASTER_SITES=	http://www.opensmtpd.org/archives/
-
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
-
-LICENSE=	ISCL
-
-OPTIONS_GROUP=		TABLE
-OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-
-PASSWD_DESC=	passwd(5) table support
-SMAP_DESC=	Socketmap protocol support
-
-OPTIONS_SUB=	yes
-
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
-PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
-
-#
-# Tables
-#
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+PKGNAMESUFFIX=	-table-mysql
 
-.include <bsd.port.mk>
+COMMENT=	MySQL table support for opensmtpd
+
+PLIST_FILES=	libexec/opensmtpd/table-mysql
+
+CONFIGURE_ARGS=	--with-table-mysql
+LDFLAGS+=	-L${LOCALBASE}/lib/mysql
+
+USE_MYSQL=	client
+
+MASTERDIR=	${.CURDIR}/../opensmtpd-extras
+SLAVE_PORT=	yes
+
+.include "${MASTERDIR}/Makefile"

Copied and modified: head/mail/opensmtpd-extras-table-passwd/Makefile (from r413404, head/mail/opensmtpd-extras/Makefile)
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Fri Apr 15 23:13:15 2016	(r413404, copy source)
+++ head/mail/opensmtpd-extras-table-passwd/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -1,69 +1,17 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	opensmtpd-extras
-PORTVERSION=	201602042118
-CATEGORIES=	mail
-MASTER_SITES=	http://www.opensmtpd.org/archives/
-
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
-
-LICENSE=	ISCL
-
-OPTIONS_GROUP=		TABLE
-OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-
-PASSWD_DESC=	passwd(5) table support
-SMAP_DESC=	Socketmap protocol support
-
-OPTIONS_SUB=	yes
-
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
-PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
-
-#
-# Tables
-#
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+PKGNAMESUFFIX=	-table-passwd
 
-.include <bsd.port.mk>
+COMMENT=	passwd(5) table support for opensmtpd
+
+PLIST_FILES=	libexec/opensmtpd/table-passwd \
+		man/man5/table-passwd.5.gz
+
+CONFIGURE_ARGS=	--with-table-passwd
+LDFLAGS+=	-L${LOCALBASE}/lib/mysql
+
+MASTERDIR=	${.CURDIR}/../opensmtpd-extras
+SLAVE_PORT=	yes
+
+.include "${MASTERDIR}/Makefile"

Copied and modified: head/mail/opensmtpd-extras-table-postgresql/Makefile (from r413404, head/mail/opensmtpd-extras/Makefile)
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Fri Apr 15 23:13:15 2016	(r413404, copy source)
+++ head/mail/opensmtpd-extras-table-postgresql/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -1,69 +1,17 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	opensmtpd-extras
-PORTVERSION=	201602042118
-CATEGORIES=	mail
-MASTER_SITES=	http://www.opensmtpd.org/archives/
-
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
-
-LICENSE=	ISCL
-
-OPTIONS_GROUP=		TABLE
-OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-
-PASSWD_DESC=	passwd(5) table support
-SMAP_DESC=	Socketmap protocol support
-
-OPTIONS_SUB=	yes
-
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
-PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
-
-#
-# Tables
-#
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+PKGNAMESUFFIX=	-table-postgresql
 
-.include <bsd.port.mk>
+COMMENT=	PostgreSQL table support for opensmtpd
+
+PLIST_FILES=	libexec/opensmtpd/table-postgres
+
+CONFIGURE_ARGS=	--with-table-postgres
+
+USES=		pgsql
+
+MASTERDIR=	${.CURDIR}/../opensmtpd-extras
+SLAVE_PORT=	yes
+
+.include "${MASTERDIR}/Makefile"

Copied and modified: head/mail/opensmtpd-extras-table-python/Makefile (from r413404, head/mail/opensmtpd-extras/Makefile)
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Fri Apr 15 23:13:15 2016	(r413404, copy source)
+++ head/mail/opensmtpd-extras-table-python/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -1,69 +1,17 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	opensmtpd-extras
-PORTVERSION=	201602042118
-CATEGORIES=	mail
-MASTER_SITES=	http://www.opensmtpd.org/archives/
-
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
-
-LICENSE=	ISCL
-
-OPTIONS_GROUP=		TABLE
-OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-
-PASSWD_DESC=	passwd(5) table support
-SMAP_DESC=	Socketmap protocol support
-
-OPTIONS_SUB=	yes
-
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
-PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
-
-#
-# Tables
-#
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+PKGNAMESUFFIX=	-table-python
 
-.include <bsd.port.mk>
+COMMENT=	Python table support for opensmtpd
+
+PLIST_FILES=	libexec/opensmtpd/table-python
+
+CONFIGURE_ARGS=	--with-table-python --with-python-type=${PYTHON_VERSION}
+
+USES=		python
+
+MASTERDIR=	${.CURDIR}/../opensmtpd-extras
+SLAVE_PORT=	yes
+
+.include "${MASTERDIR}/Makefile"

Copied and modified: head/mail/opensmtpd-extras-table-redis/Makefile (from r413404, head/mail/opensmtpd-extras/Makefile)
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Fri Apr 15 23:13:15 2016	(r413404, copy source)
+++ head/mail/opensmtpd-extras-table-redis/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -1,69 +1,20 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	opensmtpd-extras
-PORTVERSION=	201602042118
-CATEGORIES=	mail
-MASTER_SITES=	http://www.opensmtpd.org/archives/
-
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
-
-LICENSE=	ISCL
-
-OPTIONS_GROUP=		TABLE
-OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-
-PASSWD_DESC=	passwd(5) table support
-SMAP_DESC=	Socketmap protocol support
-
-OPTIONS_SUB=	yes
-
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
-PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
-
-#
-# Tables
-#
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+PKGNAMESUFFIX=	-table-redis
 
-.include <bsd.port.mk>
+COMMENT=	Redis table support for opensmtpd
+
+LIB_DEPENDS=	libhiredis.so:databases/hiredis
+
+PLIST_FILES=	libexec/opensmtpd/table-redis \
+			man/man5/table-redis.5.gz
+
+CONFIGURE_ARGS=	--with-table-redis
+CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
+CFLAGS+=	-I${LOCALBASE}/include/hiredis
+
+MASTERDIR=	${.CURDIR}/../opensmtpd-extras
+SLAVE_PORT=	yes
+
+.include "${MASTERDIR}/Makefile"

Copied and modified: head/mail/opensmtpd-extras-table-socketmap/Makefile (from r413404, head/mail/opensmtpd-extras/Makefile)
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Fri Apr 15 23:13:15 2016	(r413404, copy source)
+++ head/mail/opensmtpd-extras-table-socketmap/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -1,69 +1,16 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	opensmtpd-extras
-PORTVERSION=	201602042118
-CATEGORIES=	mail
-MASTER_SITES=	http://www.opensmtpd.org/archives/
-
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
-
-LICENSE=	ISCL
-
-OPTIONS_GROUP=		TABLE
-OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-
-PASSWD_DESC=	passwd(5) table support
-SMAP_DESC=	Socketmap protocol support
-
-OPTIONS_SUB=	yes
-
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
-PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
-
-#
-# Tables
-#
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+PKGNAMESUFFIX=	-table-socketmap
 
-.include <bsd.port.mk>
+COMMENT=	Socketmap table support for opensmtpd
+
+PLIST_FILES=	libexec/opensmtpd/table-socketmap \
+		man/man5/table-socketmap.5.gz
+
+CONFIGURE_ARGS=	--with-table-socketmap
+
+MASTERDIR=	${.CURDIR}/../opensmtpd-extras
+SLAVE_PORT=	yes
+
+.include "${MASTERDIR}/Makefile"

Copied and modified: head/mail/opensmtpd-extras-table-sqlite/Makefile (from r413404, head/mail/opensmtpd-extras/Makefile)
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Fri Apr 15 23:13:15 2016	(r413404, copy source)
+++ head/mail/opensmtpd-extras-table-sqlite/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -1,69 +1,18 @@
 # Created by: gahr
 # $FreeBSD$
 
-PORTNAME=	opensmtpd-extras
-PORTVERSION=	201602042118
-CATEGORIES=	mail
-MASTER_SITES=	http://www.opensmtpd.org/archives/
-
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
-
-LICENSE=	ISCL
-
-OPTIONS_GROUP=		TABLE
-OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
-
-PASSWD_DESC=	passwd(5) table support
-SMAP_DESC=	Socketmap protocol support
-
-OPTIONS_SUB=	yes
-
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
-PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
-
-#
-# Tables
-#
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+PKGNAMESUFFIX=	-table-sqlite
 
-.include <bsd.port.mk>
+COMMENT=	SQLite table support for opensmtpd
+
+PLIST_FILES=	libexec/opensmtpd/table-sqlite \
+		man/man5/table-sqlite.5.gz
+
+CONFIGURE_ARGS=	--with-table-sqlite
+
+USES=		sqlite
+
+MASTERDIR=	${.CURDIR}/../opensmtpd-extras
+SLAVE_PORT=	yes
+
+.include "${MASTERDIR}/Makefile"

Modified: head/mail/opensmtpd-extras/Makefile
==============================================================================
--- head/mail/opensmtpd-extras/Makefile	Sat Apr 16 01:30:28 2016	(r413408)
+++ head/mail/opensmtpd-extras/Makefile	Sat Apr 16 01:37:52 2016	(r413409)
@@ -3,14 +3,24 @@
 
 PORTNAME=	opensmtpd-extras
 PORTVERSION=	201602042118
-CATEGORIES=	mail
+PORTREVISION?=	1
+CATEGORIES+=	mail
 MASTER_SITES=	http://www.opensmtpd.org/archives/
 
-MAINTAINER=	gahr at FreeBSD.org
-COMMENT=	Addons for OpenSMTPD
+MAINTAINER?=	gahr at FreeBSD.org
+COMMENT?=	Addons for OpenSMTPD
 
-LICENSE=	ISCL
+LICENSE?=	ISCL
 
+LIB_DEPENDS+=	libevent.so:devel/libevent2
+RUN_DEPENDS+=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
+
+USES+=		autoreconf libtool pkgconfig
+USE_OPENSSL=	yes
+WITH_OPENSSL_PORT=	yes
+GNU_CONFIGURE=	yes
+
+.if empty(SLAVE_PORT)
 OPTIONS_GROUP=		TABLE
 OPTIONS_GROUP_TABLE=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
 OPTIONS_DEFAULT=	LDAP MYSQL PASSWD PGSQL PYTHON REDIS SMAP SQLITE
@@ -20,50 +30,41 @@ SMAP_DESC=	Socketmap protocol support
 
 OPTIONS_SUB=	yes
 
-LIB_DEPENDS=	libevent.so:devel/libevent2
-RUN_DEPENDS=	${LOCALBASE}/sbin/smtpctl:mail/opensmtpd
-
-USES=		autoreconf libtool pkgconfig
-USE_OPENSSL=	yes
-WITH_OPENSSL_PORT=	yes
-GNU_CONFIGURE=	yes
 PLIST_FILES=	man/man3/filter_api.3.gz
-INSTALL_DIR=	libexec/opensmtpd
+INSTALL_DIR=	${LOCALBASE}/libexec/opensmtpd
+
+NO_ARCH=	yes
 
 #
 # Tables
 #
-MYSQL_CONFIGURE_WITH=	table-mysql
-MYSQL_VARS=		USE_MYSQL=client \
-			LDFLAGS+=-L${LOCALBASE}/lib/mysql \
-			PLIST_FILES+=${INSTALL_DIR}/table-mysql
-
-PASSWD_CONFIGURE_WITH=	table-passwd
-PASSWD_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-passwd \
-			PLIST_FILES+=man/man5/table-passwd.5.gz
-
-PGSQL_CONFIGURE_WITH= 	table-postgres
-PGSQL_USES=		pgsql
-PGSQL_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-postgres
-
-PYTHON_CONFIGURE_WITH=	table-python python-type=${PYTHON_VERSION}
-PYTHON_USES=		python
-PYTHON_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-python
-
-REDIS_CONFIGURE_WITH=	table-redis
-REDIS_CONFIGURE_ENV=	REDIS_CONFIG=${LOCALBASE}/bin/pkgconf
-REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
-REDIS_VARS=		CFLAGS+=-I${LOCALBASE}/include/hiredis \
-			PLIST_FILES+=${INSTALL_DIR}/table-redis \
-			PLIST_FILES+=man/man5/table-redis.5.gz
-
-SMAP_CONFIGURE_WITH=	table-socketmap
-SMAP_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-socketmap \
-			PLIST_FILES+=man/man5/table-socketmap.5.gz
-
-SQLITE_CONFIGURE_WITH=	table-sqlite
-SQLITE_USES=		sqlite
-SQLITE_VARS=		PLIST_FILES+=${INSTALL_DIR}/table-sqlite \
-			PLIST_FILES+=man/man5/table-sqlite.5.gz
+
+MYSQL_BUILD_DEPENDS=	${INSTALL_DIR}/table-mysql:mail/opensmtpd-extras-table-mysql
+MYSQL_RUN_DEPENDS=	${MYSQL_BUILD_DEPENDS}
+
+PASSWD_BUILD_DEPENDS=	${INSTALL_DIR}/table-passwd:mail/opensmtpd-extras-table-passwd
+PASSWD_RUN_DEPENDS=	${PASSWD_BUILD_DEPENDS}
+
+PGSQL_BUILD_DEPENDS=	${INSTALL_DIR}/table-postgres:mail/opensmtpd-extras-table-postgresql
+PGSQL_RUN_DEPENDS=	${PGSQL_BUILD_DEPENDS}
+
+PYTHON_BUILD_DEPENDS=	${INSTALL_DIR}/table-python:mail/opensmtpd-extras-table-python
+PYTHON_RUN_DEPENDS=	${PYTHON_BUILD_DEPENDS}
+
+REDIS_BUILD_DEPENDS=	${INSTALL_DIR}/table-redis:mail/opensmtpd-extras-table-redis
+REDIS_RUN_DEPENDS=	${REDIS_BUILD_DEPENDS}
+
+SMAP_BUILD_DEPENDS=	${INSTALL_DIR}/table-socketmap:mail/opensmtpd-extras-table-socketmap
+SMAP_RUN_DEPENDS=	${SMAP_BUILD_DEPENDS}
+
+SQLITE_BUILD_DEPENDS=	${INSTALL_DIR}/table-sqlite:mail/opensmtpd-extras-table-sqlite
+SQLITE_RUN_DEPENDS=	${SQLITE_BUILD_DEPENDS}
+.else
+
+# Only install this for the opensmtpd-extras master port
+post-install:
+	@${RM} ${STAGEDIR}${MAN3PREFIX}/man/man3/filter_api.3
+
+.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list