pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/meta-pkgs/opensmtpd-tables



Module Name:    pkgsrc
Committed By:   vins
Date:           Thu Dec  5 08:29:16 UTC 2024

Modified Files:
        pkgsrc/meta-pkgs/opensmtpd-tables: Makefile
Added Files:
        pkgsrc/meta-pkgs/opensmtpd-tables: options.mk

Log Message:
meta-pkgs/opensmtpd-tables: make some tables optional

Bump version to 1.1


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/meta-pkgs/opensmtpd-tables/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/meta-pkgs/opensmtpd-tables/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/meta-pkgs/opensmtpd-tables/Makefile
diff -u pkgsrc/meta-pkgs/opensmtpd-tables/Makefile:1.1 pkgsrc/meta-pkgs/opensmtpd-tables/Makefile:1.2
--- pkgsrc/meta-pkgs/opensmtpd-tables/Makefile:1.1      Thu Dec  5 00:58:05 2024
+++ pkgsrc/meta-pkgs/opensmtpd-tables/Makefile  Thu Dec  5 08:29:16 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2024/12/05 00:58:05 vins Exp $
+# $NetBSD: Makefile,v 1.2 2024/12/05 08:29:16 vins Exp $
 #
 
-DISTNAME=      opensmtpd-tables-1.0
+DISTNAME=      opensmtpd-tables-1.1
 CATEGORIES=    meta-pkgs mail
 MASTER_SITES=  # empty
 DISTFILES=     # empty
@@ -9,14 +9,11 @@ DISTFILES=    # empty
 MAINTAINER=    vins%NetBSD.org@localhost
 COMMENT=       OpenSMTPD extra tables collection
 
-DEPENDS+=      opensmtpd-table-ldap-[0-9]*:../../mail/opensmtpd-table-ldap
-DEPENDS+=      opensmtpd-table-mysql-[0-9]*:../../mail/opensmtpd-table-mysql
+META_PACKAGE=  yes
+
 DEPENDS+=      opensmtpd-table-passwd-[0-9]*:../../mail/opensmtpd-table-passwd
-DEPENDS+=      opensmtpd-table-postgres-[0-9]*:../../mail/opensmtpd-table-postgres
-DEPENDS+=      opensmtpd-table-redis-[0-9]*:../../mail/opensmtpd-table-redis
 DEPENDS+=      opensmtpd-table-socketmap-[0-9]*:../../mail/opensmtpd-table-socketmap
-DEPENDS+=      opensmtpd-table-sqlite-[0-9]*:../../mail/opensmtpd-table-sqlite
 
-META_PACKAGE=  yes
+.include "options.mk"
 
 .include "../../mk/bsd.pkg.mk"

Added files:

Index: pkgsrc/meta-pkgs/opensmtpd-tables/options.mk
diff -u /dev/null pkgsrc/meta-pkgs/opensmtpd-tables/options.mk:1.1
--- /dev/null   Thu Dec  5 08:29:16 2024
+++ pkgsrc/meta-pkgs/opensmtpd-tables/options.mk        Thu Dec  5 08:29:16 2024
@@ -0,0 +1,43 @@
+# $NetBSD: options.mk,v 1.1 2024/12/05 08:29:16 vins Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.opensmtpd-tables
+
+PKG_SUPPORTED_OPTIONS+=        ldap mysql pgsql redis sqlite
+PKG_SUGGESTED_OPTIONS= ldap sqlite
+
+.include "../../mk/bsd.options.mk"
+
+###
+### SQLite table
+###
+.if !empty(PKG_OPTIONS:Msqlite)
+DEPENDS+=      opensmtpd-table-sqlite-[0-9]*:../../mail/opensmtpd-table-sqlite
+.endif
+
+###
+### LDAP table
+###
+.if !empty(PKG_OPTIONS:Mldap)
+DEPENDS+=      opensmtpd-table-ldap-[0-9]*:../../mail/opensmtpd-table-ldap
+.endif
+
+###
+### MySQL table
+###
+.if !empty(PKG_OPTIONS:Mmysql)
+DEPENDS+=      opensmtpd-table-mysql-[0-9]*:../../mail/opensmtpd-table-mysql
+.endif
+
+###
+### PostgreSQL table
+###
+.if !empty(PKG_OPTIONS:Mpgsql)
+DEPENDS+=      opensmtpd-table-postgres-[0-9]*:../../mail/opensmtpd-table-postgres
+.endif
+
+###
+### Redis table
+###
+.if !empty(PKG_OPTIONS:Mredis)
+DEPENDS+=      opensmtpd-table-redis-[0-9]*:../../mail/opensmtpd-table-redis
+.endif



Home | Main Index | Thread Index | Old Index