From owner-svn-ports-all@freebsd.org Sun Nov 15 12:31:02 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D56BF2E779F; Sun, 15 Nov 2020 12:31:02 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CYs4k5hSTz3pmn; Sun, 15 Nov 2020 12:31:02 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B609F1BE30; Sun, 15 Nov 2020 12:31:02 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AFCV2Ww095933; Sun, 15 Nov 2020 12:31:02 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0AFCV141095907; Sun, 15 Nov 2020 12:31:01 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <202011151231.0AFCV141095907@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Sun, 15 Nov 2020 12:31:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r555203 - in head: databases databases/courier-authlib-sqlite security/courier-authlib security/courier-authlib/files X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head: databases databases/courier-authlib-sqlite security/courier-authlib security/courier-authlib/files X-SVN-Commit-Revision: 555203 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2020 12:31:02 -0000 Author: madpilot Date: Sun Nov 15 12:31:00 2020 New Revision: 555203 URL: https://svnweb.freebsd.org/changeset/ports/555203 Log: Add databases/courier-authlib-sqlite port to install sqlite support for courier-authlib Suggested by: Ewout Boks Added: head/databases/courier-authlib-sqlite/ head/databases/courier-authlib-sqlite/Makefile (contents, props changed) head/security/courier-authlib/pkg-descr-sqlite (contents, props changed) head/security/courier-authlib/pkg-plist-sqlite (contents, props changed) Modified: head/databases/Makefile head/security/courier-authlib/Makefile head/security/courier-authlib/Makefile.dep head/security/courier-authlib/Makefile.opt head/security/courier-authlib/files/patch-configure Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Sun Nov 15 12:31:00 2020 (r555202) +++ head/databases/Makefile Sun Nov 15 12:31:00 2020 (r555203) @@ -46,6 +46,7 @@ SUBDIR += couchdb3 SUBDIR += courier-authlib-mysql SUBDIR += courier-authlib-pgsql + SUBDIR += courier-authlib-sqlite SUBDIR += courier-authlib-userdb SUBDIR += courier-authlib-usergdbm SUBDIR += cppdb Added: head/databases/courier-authlib-sqlite/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/courier-authlib-sqlite/Makefile Sun Nov 15 12:31:00 2020 (r555203) @@ -0,0 +1,12 @@ +# Created by: Yarema +# $FreeBSD$ + +PORTREVISION= 0 +PKGNAMESUFFIX= -sqlite + +COMMENT= SQLite support for the Courier authentication library +CATEGORIES= databases mail + +MASTERDIR= ${.CURDIR}/../../security/courier-authlib + +.include "${MASTERDIR}/Makefile" Modified: head/security/courier-authlib/Makefile ============================================================================== --- head/security/courier-authlib/Makefile Sun Nov 15 12:31:00 2020 (r555202) +++ head/security/courier-authlib/Makefile Sun Nov 15 12:31:00 2020 (r555203) @@ -54,8 +54,7 @@ CONFIGURE_ARGS= --enable-unicode \ --with-mailgroup=${MAILGRP} \ --localstatedir=${LOCALSTATEDIR} \ --with-authdaemonvar=${AUTHDAEMONVAR} \ - --cache-file=${WRKDIR}/courier-authlib.cache \ - --without-authsqlite + --cache-file=${WRKDIR}/courier-authlib.cache INSTALL_TARGET= install-strip @@ -140,6 +139,17 @@ USES+= pgsql CONFIGURE_ARGS+=--with-authpgsql .else CONFIGURE_ARGS+=--without-authpgsql +.endif + +.if ${AUTHMOD} == authsqlite +RUN_DEPENDS+= ${LOCALBASE}/share/sysconftool/sysconftool:devel/sysconftool +OPTIONS_DEFINE+= DOCS + +DOCS= README.authsqlite.html +USES+= pkgconfig sqlite +CONFIGURE_ARGS+=--with-authsqlite +.else +CONFIGURE_ARGS+=--without-authsqlite .endif .if ${AUTHMOD} == authvchkpw Modified: head/security/courier-authlib/Makefile.dep ============================================================================== --- head/security/courier-authlib/Makefile.dep Sun Nov 15 12:31:00 2020 (r555202) +++ head/security/courier-authlib/Makefile.dep Sun Nov 15 12:31:00 2020 (r555203) @@ -19,6 +19,9 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/courier-authlib/libau .if ${PORT_OPTIONS:MAUTH_PGSQL} BUILD_DEPENDS+= ${LOCALBASE}/lib/courier-authlib/libauthpgsql.so:databases/courier-authlib-pgsql .endif +.if ${PORT_OPTIONS:MAUTH_SQLITE} +BUILD_DEPENDS+= ${LOCALBASE}/lib/courier-authlib/libauthsqlite.so:databases/courier-authlib-sqlite +.endif .if ${PORT_OPTIONS:MAUTH_USERDB} .if ${PORT_OPTIONS:MGDBM} BUILD_DEPENDS+= ${LOCALBASE}/lib/courier-authlib/libauthuserdb.so:databases/courier-authlib-usergdbm Modified: head/security/courier-authlib/Makefile.opt ============================================================================== --- head/security/courier-authlib/Makefile.opt Sun Nov 15 12:31:00 2020 (r555202) +++ head/security/courier-authlib/Makefile.opt Sun Nov 15 12:31:00 2020 (r555203) @@ -10,9 +10,11 @@ # in your Makefile *after* any #.include -OPTIONS_DEFINE+= AUTH_LDAP AUTH_MYSQL AUTH_PGSQL AUTH_USERDB AUTH_VCHKPW DOCS +OPTIONS_DEFINE+= AUTH_LDAP AUTH_MYSQL AUTH_PGSQL AUTH_SQLITE \ + AUTH_USERDB AUTH_VCHKPW DOCS AUTH_LDAP_DESC= LDAP support AUTH_MYSQL_DESC= MySQL support AUTH_PGSQL_DESC= PostgreSQL support +AUTH_SQLITE_DESC= SQLite support AUTH_USERDB_DESC= Userdb support AUTH_VCHKPW_DESC= popmail/vchkpw support Modified: head/security/courier-authlib/files/patch-configure ============================================================================== --- head/security/courier-authlib/files/patch-configure Sun Nov 15 12:31:00 2020 (r555202) +++ head/security/courier-authlib/files/patch-configure Sun Nov 15 12:31:00 2020 (r555203) @@ -1,4 +1,4 @@ ---- configure.orig 2017-07-02 14:41:39 UTC +--- configure.orig 2020-06-18 01:05:21 UTC +++ configure @@ -642,6 +642,10 @@ ltdl_LIBOBJS am__EXEEXT_FALSE @@ -9,9 +9,9 @@ +HAVE_USERDB_TRUE +HAVE_USERDB_FALSE LIBOBJS - HAVE_SGML_FALSE - HAVE_SGML_TRUE -@@ -676,6 +680,9 @@ LIBAUTHPGSQL + VERSION_INFO + courierauth_ldflags +@@ -678,6 +682,9 @@ LIBAUTHPGSQL PGSQL_LIBS PG_CONFIG authpgsqlrc @@ -21,7 +21,7 @@ LIBAUTHPWD LIBAUTHSHADOW SHADOWLIBS -@@ -1563,6 +1570,7 @@ Optional Packages: +@@ -1565,6 +1572,7 @@ Optional Packages: --with-authldaprc=filename Expect to find authldaprc here --without-authpwd Do not include the authpwd module --without-authshadow Do not include the authshadow module @@ -29,7 +29,7 @@ --with-authpgsqlrc=filename Expect to find authpgsql here --without-authpgsql Do not include the authpgsql module --with-pgsql-libs=DIR Look for pgsql libs in this dir -@@ -2938,7 +2946,7 @@ else +@@ -2940,7 +2948,7 @@ else fi fi @@ -38,7 +38,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -@@ -18097,8 +18105,12 @@ fi +@@ -18276,8 +18284,12 @@ fi if test "$doauthuserdb" = "no" then @@ -51,7 +51,7 @@ AUTHUSERDB="authuserdb" LIBAUTHUSERDB="libauthuserdb.la" -@@ -18556,7 +18568,21 @@ else +@@ -18735,7 +18747,21 @@ else fi @@ -73,17 +73,11 @@ if test "$HAVE_LDAP" = 1; then HAVE_LDAP_TRUE= HAVE_LDAP_FALSE='#' -@@ -18768,6 +18794,256 @@ if test "$HAVE_PWD" = 1 - then - LIBAUTHPWD="libauthpwd.la" - fi +@@ -18953,6 +18979,256 @@ fi + + + + -+ -+ -+ -+ -+ -+ +vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'` + + @@ -327,6 +321,45 @@ + LIBS=$_SAVE_LIBS +fi + ++ ++ ++ ++ ++ ++ + # Check whether --with-authpgsqlrc was given. + if test "${with_authpgsqlrc+set}" = set; then : + withval=$with_authpgsqlrc; authpgsqlrc="$withval" +@@ -19278,8 +19554,9 @@ then + SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`" + saveLIBS="$LIBS" + LIBS="$SQLITE_LIBS $LIBS" +- ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" +-if test "x$ac_cv_func_sqlite3_version" = xyes; then : ++echo $LIBS ++# ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" ++if test -n $SQLITE_LIBS; then : + doauthsqlite="yes" + fi +@@ -19296,13 +19573,13 @@ then + else + saveLIBS="$LIBS" + LIBS="$SQLITE_LIBS $LIBS" +- ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" +-if test "x$ac_cv_func_sqlite3_version" = xyes; then : +- : +-else +- as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5 +- +-fi ++# ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" ++#if test "x$ac_cv_func_sqlite3_version" = xyes; then : ++# : ++#else ++# as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5 ++# ++#fi - + LIBS="$saveLIBS" + HAVE_AUTHSQLITE=1 Added: head/security/courier-authlib/pkg-descr-sqlite ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/courier-authlib/pkg-descr-sqlite Sun Nov 15 12:31:00 2020 (r555203) @@ -0,0 +1,5 @@ +This package installs SQLite support for the Courier authentication library +to read the list of mail accounts and passwords from a table in a SQLite +database. + +WWW: http://www.Courier-MTA.org/authlib/ Added: head/security/courier-authlib/pkg-plist-sqlite ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/courier-authlib/pkg-plist-sqlite Sun Nov 15 12:31:00 2020 (r555203) @@ -0,0 +1,7 @@ +@preunexec if cmp -s %D/etc/authlib/authsqliterc.dist %D/etc/authlib/authsqliterc; then rm -f %D/etc/authlib/authsqliterc; fi +@(%%MAILOWN%%,%%MAILGRP%%,660) etc/authlib/authsqliterc.dist +@postexec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authsqliterc +lib/courier-authlib/libauthsqlite.so +lib/courier-authlib/libauthsqlite.so.0 +lib/courier-authlib/libauthsqlite.so.0.0.0 +%%PORTDOCS%%%%DOCSDIR%%/README.authsqlite.html