pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/samba4 Substitute SYSCONFDIR assumed by the embedd...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/78112eceb3ee
branches:  trunk
changeset: 364513:78112eceb3ee
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Tue Jun 27 13:37:16 2017 +0000

description:
Substitute SYSCONFDIR assumed by the embedded Heimdal code properly.
Fixes calls to e.g. krb5.keytab that were hardcoded to /etc. PKGREVISION++

diffstat:

 net/samba4/Makefile                                     |  12 ++++--------
 net/samba4/distinfo                                     |   3 ++-
 net/samba4/patches/patch-source4_heimdal__build_roken.h |  15 +++++++++++++++
 3 files changed, 21 insertions(+), 9 deletions(-)

diffs (65 lines):

diff -r 1075ec1bbf38 -r 78112eceb3ee net/samba4/Makefile
--- a/net/samba4/Makefile       Tue Jun 27 13:01:56 2017 +0000
+++ b/net/samba4/Makefile       Tue Jun 27 13:37:16 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2017/06/01 13:30:26 jlam Exp $
+# $NetBSD: Makefile,v 1.33 2017/06/27 13:37:16 fhajny Exp $
 
 DISTNAME=      samba-${VERSION}
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  http://download.samba.org/pub/samba/stable/
 
@@ -146,15 +147,10 @@
 SUBST_CLASSES+=                paths
 SUBST_MESSAGE.paths=   Fixing paths.
 SUBST_FILES.paths=     ${WRKDIR}/adduser.sh ${WRKDIR}/deluser.sh scripts/findsmb.in
-SUBST_FILES.paths+=    source3/script/findsmb.in
+SUBST_FILES.paths+=    source3/script/findsmb.in source4/heimdal_build/roken.h
 SUBST_STAGE.paths=     post-patch
-SUBST_SED.paths+=      -e 's,@AWK@,${AWK},g'
-SUBST_SED.paths+=      -e 's,@CAT@,${CAT},g'
-SUBST_SED.paths+=      -e 's,@MKTEMP@,${MKTEMP},g'
-SUBST_SED.paths+=      -e 's,@RM@,${RM},g'
-SUBST_SED.paths+=      -e 's,@PWD_MKDB@,${PWD_MKDB},g'
-SUBST_SED.paths+=      -e 's,@SH@,${SH},g'
 SUBST_SED.paths+=      -e 's,@PERL@,${PERL5},g'
+SUBST_VARS.paths=      AWK CAT MKTEMP RM PWD_MKDB SH PERL PKG_SYSCONFBASE
 
 SUBST_CLASSES+=                logpath
 SUBST_MESSAGE.logpath= Fixing log path.
diff -r 1075ec1bbf38 -r 78112eceb3ee net/samba4/distinfo
--- a/net/samba4/distinfo       Tue Jun 27 13:01:56 2017 +0000
+++ b/net/samba4/distinfo       Tue Jun 27 13:37:16 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2017/05/24 15:51:32 he Exp $
+$NetBSD: distinfo,v 1.14 2017/06/27 13:37:16 fhajny Exp $
 
 SHA1 (samba-4.6.4.tar.gz) = eabfbb4d4ed17e25feb1aec81187011fca0f5f8a
 RMD160 (samba-4.6.4.tar.gz) = 91b77289adb41b1570e82411795fd8e7bb9a7543
@@ -11,5 +11,6 @@
 SHA1 (patch-lib_tevent_wscript) = 9617b9e40d2ffc8d6297390a20ba9bd44147d669
 SHA1 (patch-nsswitch_wscript__build) = e8a6251e031ffa13d6347fade8891f7afd65d3eb
 SHA1 (patch-source3_script_tests_test__smbclient__s3.sh) = 4b4be0691322afc70769602069c8a1bbd81ab639
+SHA1 (patch-source4_heimdal__build_roken.h) = ee535f8e7cc46a3487d95bc859438c476a88fe60
 SHA1 (patch-source4_scripting_wsript_build) = 6053076427835ac4fe97d93b2ff67d2caccc71f4
 SHA1 (patch-testprogs_blackbox_dbcheck-oldrelease.sh) = 0bd2067b77a1db93e3cb5d80964a7be2b06802ff
diff -r 1075ec1bbf38 -r 78112eceb3ee net/samba4/patches/patch-source4_heimdal__build_roken.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba4/patches/patch-source4_heimdal__build_roken.h   Tue Jun 27 13:37:16 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-source4_heimdal__build_roken.h,v 1.1 2017/06/27 13:37:16 fhajny Exp $
+
+Substitute SYSCONFDIR in embedded Heimdal too.
+
+--- source4/heimdal_build/roken.h.orig 2017-01-11 07:55:15.000000000 +0000
++++ source4/heimdal_build/roken.h
+@@ -10,7 +10,7 @@
+ #define HEIM_WEAK_CRYPTO 1
+ 
+ /* path to sysconf - should we force this to samba LIBDIR ? */
+-#define SYSCONFDIR "/etc"
++#define SYSCONFDIR "@PKG_SYSCONFBASE@"
+ 
+ #define rk_PATH_DELIM '/'
+ 



Home | Main Index | Thread Index | Old Index