pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/netatalk22 Install afp_ldap.conf based on LDAP sup...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f075c08892b
branches:  trunk
changeset: 449607:4f075c08892b
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Fri Apr 02 09:54:26 2021 +0000

description:
Install afp_ldap.conf based on LDAP support, not availability of ACLs.

Have the CNID_DB repair tool warn about unsupported file-system
encoding, but not error out.

Correct some pkglint fallout.

diffstat:

 net/netatalk22/Makefile                                     |   7 +---
 net/netatalk22/distinfo                                     |  13 ++++---
 net/netatalk22/options.mk                                   |   4 +-
 net/netatalk22/patches/patch-config_Makefile.in             |  19 +++++++++--
 net/netatalk22/patches/patch-etc_cnid_dbd_cmd_dbd_scanvol.c |  21 +++++++++++++
 net/netatalk22/patches/patch-etc_uams_uams__dhx__pam.c      |   4 +-
 net/netatalk22/patches/patch-etc_uams_uams__dhx__passwd.c   |   4 +-
 net/netatalk22/patches/patch-etc_uams_uams__randnum.c       |   4 +-
 net/netatalk22/patches/patch-include_atalk_ldapconfig.h     |   4 +-
 9 files changed, 58 insertions(+), 22 deletions(-)

diffs (174 lines):

diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/Makefile
--- a/net/netatalk22/Makefile   Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/Makefile   Fri Apr 02 09:54:26 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.36 2020/12/04 04:56:08 riastradh Exp $
+# $NetBSD: Makefile,v 1.37 2021/04/02 09:54:26 hauke Exp $
 
 DISTNAME=      netatalk-2.2.6
 PKGNAME=       ${DISTNAME:C/-/22-/}
-PKGREVISION=   22
+PKGREVISION=   23
 CATEGORIES=    net print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=netatalk/}
 EXTRACT_SUFX=  .tar.bz2
@@ -80,9 +80,6 @@
 INSTALLATION_DIRS=     libexec/psffilters
 
 post-install:
-.if !empty(PKG_OPTIONS:Mldap)
-       ${INSTALL_DATA} ${WRKSRC}/config/afp_ldap.conf ${DESTDIR}${EGDIR}
-.endif
 .if !empty(PKG_OPTIONS:Mpam)
        ${INSTALL_DATA} ${WRKSRC}/config/pam/netatalk.pam ${DESTDIR}${EGDIR}
 .endif
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/distinfo
--- a/net/netatalk22/distinfo   Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/distinfo   Fri Apr 02 09:54:26 2021 +0000
@@ -1,15 +1,16 @@
-$NetBSD: distinfo,v 1.8 2019/11/23 17:55:01 hauke Exp $
+$NetBSD: distinfo,v 1.9 2021/04/02 09:54:26 hauke Exp $
 
 SHA1 (netatalk-2.2.6.tar.bz2) = 98a2d33f2e240e49caec32b83bca579723ce87f7
 RMD160 (netatalk-2.2.6.tar.bz2) = c7b051cf89d30c9bf1d491d9e04ceee2f39b897d
 SHA512 (netatalk-2.2.6.tar.bz2) = 74aa3415a43293a8804b00b0eda564d6536310e59c3f0d067d634db89f4d612a1dfd932df18607c32b948922ae032bc25471e21635ab149a78629ff95c341f47
 Size (netatalk-2.2.6.tar.bz2) = 1301887 bytes
-SHA1 (patch-config_Makefile.in) = 6b9f545e5ddb178e9a310cec4de300c02557e685
+SHA1 (patch-config_Makefile.in) = e6b020cf4cf11572a648bee7de0937add1948ea8
 SHA1 (patch-configure) = 9919625c3cd54e34ab45c6606094e12215630d33
 SHA1 (patch-distrib_initscripts_Makefile.in) = 706890f9e0aacab4d523cc1900048b7fab96f5d4
+SHA1 (patch-etc_cnid_dbd_cmd_dbd_scanvol.c) = df844b4047e614a3fd44cbcea252627f6fe43b65
 SHA1 (patch-etc_papd_print_cups.c) = 8dada275f9525b9229a85492050de982b1e54295
-SHA1 (patch-etc_uams_uams__dhx__pam.c) = 9c75c8562271204c6be974af189e48a9a1b35e11
-SHA1 (patch-etc_uams_uams__dhx__passwd.c) = eb950f16b8d9c00ff45e40769f01850138e76176
-SHA1 (patch-etc_uams_uams__randnum.c) = ff9f698156e0954000e95ac0fbd9b9604d15b8d1
-SHA1 (patch-include_atalk_ldapconfig.h) = 05aa673fce4c670af252b298b1a9e820b1fc7adb
+SHA1 (patch-etc_uams_uams__dhx__pam.c) = 8ed99ff32ca932367c5df7af6889db1abbde7a2e
+SHA1 (patch-etc_uams_uams__dhx__passwd.c) = 52e2862aa55268349dfc64a7d71ebc17e1b8830b
+SHA1 (patch-etc_uams_uams__randnum.c) = 0608eb6a7b43b0cc360879849c9ca0b38ffdc684
+SHA1 (patch-include_atalk_ldapconfig.h) = e69d212f45ace23773d15c122ca2e550b025f845
 SHA1 (patch-libatalk_bstring_bstrlib.c) = f43818328237b908166f956de464f532d578d2c4
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/options.mk
--- a/net/netatalk22/options.mk Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/options.mk Fri Apr 02 09:54:26 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.5 2017/11/12 15:36:58 khorben Exp $
+# $NetBSD: options.mk,v 1.6 2021/04/02 09:54:26 hauke Exp $
 #
 PKG_OPTIONS_VAR=       PKG_OPTIONS.netatalk
 PKG_SUPPORTED_OPTIONS= cups debug dnssd kerberos ldap pam slp
@@ -53,7 +53,7 @@
 PLIST_VARS+=           pam
 .if !empty(PKG_OPTIONS:Mpam)
 .include "../../mk/pam.buildlink3.mk"
-CONFIGURE_ARGS+=       --with-pam
+CONFIGURE_ARGS+=       --with-pam=yes
 PLIST.pam=             yes
 MESSAGE_SRC+=          MESSAGE MESSAGE.pam
 .else
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/patches/patch-config_Makefile.in
--- a/net/netatalk22/patches/patch-config_Makefile.in   Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/patches/patch-config_Makefile.in   Fri Apr 02 09:54:26 2021 +0000
@@ -1,13 +1,24 @@
-$NetBSD: patch-config_Makefile.in,v 1.1 2017/07/12 13:56:00 hauke Exp $
+$NetBSD: patch-config_Makefile.in,v 1.2 2021/04/02 09:54:26 hauke Exp $
+
+Install afp_ldap.conf based on LDAP support, not ACL support.
 
 Install config files to examples/netatalk, and leave installation to
 the pkginstall framerwork.
 
 Renamed from patch-ah
 
---- config/Makefile.in.orig    2011-09-06 07:41:20.000000000 -0400
-+++ config/Makefile.in 2011-09-21 09:34:21.000000000 -0400
-@@ -614,13 +614,14 @@
+--- config/Makefile.in.orig    2017-07-09 11:27:05.000000000 +0000
++++ config/Makefile.in
+@@ -88,7 +88,7 @@ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+ target_triplet = @target@
+-@HAVE_ACLS_TRUE@am__append_1 = afp_ldap.conf
++@HAVE_LDAP_TRUE@am__append_1 = afp_ldap.conf
+ @USE_APPLETALK_TRUE@am__append_2 = atalkd.conf papd.conf
+ subdir = config
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+@@ -759,13 +759,14 @@ uninstall-local:
                rm -f $(DESTDIR)$(pkgconfdir)/$$f; \
        done
  @USE_DEBIAN_TRUE@     rm -f $(DESTDIR)/etc/default/netatalk
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/patches/patch-etc_cnid_dbd_cmd_dbd_scanvol.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/netatalk22/patches/patch-etc_cnid_dbd_cmd_dbd_scanvol.c       Fri Apr 02 09:54:26 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-etc_cnid_dbd_cmd_dbd_scanvol.c,v 1.1 2021/04/02 09:54:26 hauke Exp $
+
+While upstream "officially" only supports unicode volumes, other
+encodings have always worked. So, starting to enforce unicode volumes
+in the repair tool is a funny approach.
+
+--- etc/cnid_dbd/cmd_dbd_scanvol.c.orig        2014-03-16 11:17:48.000000000 +0000
++++ etc/cnid_dbd/cmd_dbd_scanvol.c
+@@ -1204,10 +1204,10 @@ int cmd_dbd_scanvol(DBD *dbd_ref, struct
+     /* Make it accessible for all funcs */
+     dbd = dbd_ref;
+ 
+-    /* We only support unicode volumes ! */
++    /* Officially, we only support unicode volumes */
+     if ( vi->v_volcharset != CH_UTF8) {
+         dbd_log( LOGSTD, "Not a Unicode volume: %s, %u != %u", vi->v_volcodepage, vi->v_volcharset, CH_UTF8);
+-        return -1;
++        /* return -1; */
+     }
+ 
+     /* Get volume stamp */
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/patches/patch-etc_uams_uams__dhx__pam.c
--- a/net/netatalk22/patches/patch-etc_uams_uams__dhx__pam.c    Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/patches/patch-etc_uams_uams__dhx__pam.c    Fri Apr 02 09:54:26 2021 +0000
@@ -1,4 +1,6 @@
-$NetBSD: patch-etc_uams_uams__dhx__pam.c,v 1.1 2019/06/02 20:03:32 rjs Exp $
+$NetBSD: patch-etc_uams_uams__dhx__pam.c,v 1.2 2021/04/02 09:54:26 hauke Exp $
+
+Adapt for new OpenSSL API.
 
 --- etc/uams/uams_dhx_pam.c.orig       2014-03-16 11:17:48.000000000 +0000
 +++ etc/uams/uams_dhx_pam.c
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/patches/patch-etc_uams_uams__dhx__passwd.c
--- a/net/netatalk22/patches/patch-etc_uams_uams__dhx__passwd.c Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/patches/patch-etc_uams_uams__dhx__passwd.c Fri Apr 02 09:54:26 2021 +0000
@@ -1,4 +1,6 @@
-$NetBSD: patch-etc_uams_uams__dhx__passwd.c,v 1.1 2019/06/02 20:03:32 rjs Exp $
+$NetBSD: patch-etc_uams_uams__dhx__passwd.c,v 1.2 2021/04/02 09:54:26 hauke Exp $
+
+Adapt for new OpenSSL API.
 
 --- etc/uams/uams_dhx_passwd.c.orig    2014-03-16 11:17:48.000000000 +0000
 +++ etc/uams/uams_dhx_passwd.c
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/patches/patch-etc_uams_uams__randnum.c
--- a/net/netatalk22/patches/patch-etc_uams_uams__randnum.c     Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/patches/patch-etc_uams_uams__randnum.c     Fri Apr 02 09:54:26 2021 +0000
@@ -1,4 +1,6 @@
-$NetBSD: patch-etc_uams_uams__randnum.c,v 1.1 2019/06/02 20:03:32 rjs Exp $
+$NetBSD: patch-etc_uams_uams__randnum.c,v 1.2 2021/04/02 09:54:26 hauke Exp $
+
+Adapt for new OpenSSL API.
 
 --- etc/uams/uams_randnum.c.orig       2017-07-09 11:03:31.000000000 +0000
 +++ etc/uams/uams_randnum.c
diff -r d48fa08ba528 -r 4f075c08892b net/netatalk22/patches/patch-include_atalk_ldapconfig.h
--- a/net/netatalk22/patches/patch-include_atalk_ldapconfig.h   Fri Apr 02 09:50:58 2021 +0000
+++ b/net/netatalk22/patches/patch-include_atalk_ldapconfig.h   Fri Apr 02 09:54:26 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-include_atalk_ldapconfig.h,v 1.2 2017/07/12 13:56:00 hauke Exp $
+$NetBSD: patch-include_atalk_ldapconfig.h,v 1.3 2021/04/02 09:54:26 hauke Exp $
 
 Correct an erroneous patch that was unfortunately submitted upstream.
 
 Providing an empty header because we do not support ACLs only serves
 to break ldap support.
-                                                            
+
 --- include/atalk/ldapconfig.h.orig    2017-07-09 11:03:31.000000000 +0000
 +++ include/atalk/ldapconfig.h
 @@ -1,5 +1,4 @@



Home | Main Index | Thread Index | Old Index