Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2015 17:15:10 +0000 (UTC)
From:      "Timur I. Bakeyev" <timur@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r386869 - in head/net/samba41: . files
Message-ID:  <201505201715.t4KHFAHc086843@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: timur
Date: Wed May 20 17:15:10 2015
New Revision: 386869
URL: https://svnweb.freebsd.org/changeset/ports/386869

Log:
  Upgrade Samba41 port to 4.1.18.

Modified:
  head/net/samba41/Makefile
  head/net/samba41/distinfo
  head/net/samba41/files/samba_server.in
  head/net/samba41/pkg-plist

Modified: head/net/samba41/Makefile
==============================================================================
--- head/net/samba41/Makefile	Wed May 20 17:10:03 2015	(r386868)
+++ head/net/samba41/Makefile	Wed May 20 17:15:10 2015	(r386869)
@@ -17,7 +17,7 @@ CONFLICTS?=		*samba3[2-6]-3.* samba4-4.0
 
 SAMBA4_BASENAME=	samba
 SAMBA4_PORTNAME=	${SAMBA4_BASENAME}4
-SAMBA4_VERSION=		4.1.17
+SAMBA4_VERSION=		4.1.18
 SAMBA4_DISTNAME=	${SAMBA4_BASENAME}-${SAMBA4_VERSION:S|.p|pre|:S|.r|rc|:S|.t|tp|:S|.a|alpha|}
 
 WRKSRC?=		${WRKDIR}/${DISTNAME}
@@ -59,8 +59,8 @@ CONFIGURE_ARGS+=	--exec-prefix="${PREFIX
 # Flags
 CONFIGURE_ENV+=		PTHREAD_LDFLAGS="-lpthread"
 
-USES=			compiler cpe execinfo iconv perl5 pkgconfig \
-			python:2 readline shebangfix waf
+USES=			cpe compiler waf fakeroot pkgconfig perl5 python:2 \
+			execinfo readline iconv shebangfix
 USE_PERL5=		build
 USE_LDCONFIG=		${SAMBA4_LIBDIR}
 WAF_CMD=		buildtools/bin/waf
@@ -89,8 +89,8 @@ BUILD_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}
 RUN_DEPENDS+=		${PYTHON_PKGNAMEPREFIX}dnspython>=1.9.4:${PORTSDIR}/dns/py-dnspython
 PLIST_SUB+=		PY_DNSPYTHON="@comment "
 # talloc
-BUILD_DEPENDS+=		talloc>=2.1.0:${PORTSDIR}/devel/talloc
-RUN_DEPENDS+=		talloc>=2.1.0:${PORTSDIR}/devel/talloc
+BUILD_DEPENDS+=		talloc>=2.1.2:${PORTSDIR}/devel/talloc
+RUN_DEPENDS+=		talloc>=2.1.2:${PORTSDIR}/devel/talloc
 SAMBA4_BUNDLED_LIBS+=	!talloc
 # tevent
 BUILD_DEPENDS+=		tevent>=0.9.18:${PORTSDIR}/devel/tevent
@@ -176,13 +176,16 @@ SUB_LIST+=		NSUPDATE=""
 .if ${PORT_OPTIONS:MDEBUG}
 WITH_DEBUG=		yes
 CONFIGURE_ARGS+=	--verbose
-_MAKE_JOBS+=		--verbose
+MAKE_ARGS+=		--verbose
 CONFIGURE_ARGS+=	--enable-debug
 .endif
 
 # https://bugzilla.samba.org/show_bug.cgi?id=8969
 .if ${PORT_OPTIONS:MDEVELOPER}
-GDB_CMD?=		gdb78
+#GDB_CMD?=		gdb79
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194046
+# XXX: Still may break, if the link isn't installed - blame devel/gdb maintainer then.
+GDB_CMD?=		${LOCALBASE}/bin/gdb
 BUILD_DEPENDS+=		${GDB_CMD}:${PORTSDIR}/devel/gdb
 RUN_DEPENDS+=		${GDB_CMD}:${PORTSDIR}/devel/gdb
 SAMBA4_MODULES+=	auth_skel perfcount_test pdb_test vfs_shadow_copy_test vfs_skel_opaque vfs_skel_transparent vfs_fake_acls
@@ -217,7 +220,7 @@ WANT_EXP_MODULES=	auth_samba4 auth_scrip
 
 .if ${PORT_OPTIONS:MEXP_MODULES}
 .	if !defined(WANT_EXP_MODULES) || empty(WANT_EXP_MODULES)
-WANT_EXP_MODULES=	idmap_ad vfs_cacheprime gpext_scripts gpext_security gpext_registry
+WANT_EXP_MODULES=	vfs_cacheprime gpext_scripts gpext_security gpext_registry
 .	endif
 .endif
 
@@ -240,6 +243,9 @@ PLIST_SUB+=		AD_DC=""
 .if ${PORT_OPTIONS:MADS}
 SAMBA4_WANT_ADS=	yes
 SAMBA4_WANT_LDAP=	yes
+# List of extra modules taken from RHEL build
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197320
+SAMBA4_MODULES+=	idmap_rid idmap_ad idmap_hash idmap_adex idmap_tdb2
 .endif
 
 .if ${PORT_OPTIONS:MAIO_SUPPORT}
@@ -353,9 +359,11 @@ CONFIGURE_ARGS+=	--bundled-libraries="${
 
 .if defined(WANT_EXP_MODULES) && !empty(WANT_EXP_MODULES)
 SAMBA4_MODULES+=	${WANT_EXP_MODULES}
-CONFIGURE_ARGS+=	--with-shared-modules="${WANT_EXP_MODULES:Q:C|(\\\\ )+|,|g:S|\\||g}"
 .endif
 
+.if defined(SAMBA4_MODULES) && !empty(SAMBA4_MODULES)
+CONFIGURE_ARGS+=	--with-shared-modules="${SAMBA4_MODULES:Q:C|(\\\\ )+|,|g:S|\\||g}"
+.endif
 # XXX: Dirty
 .for module in	auth_samba4 auth_skel auth_unix auth_wbc gpext_registry gpext_scripts \
 		gpext_security idmap_ad idmap_ldap idmap_nss idmap_passdb idmap_tdb \
@@ -425,7 +433,7 @@ SAMBA_MAN8+=		eventlogadm.8 idmap_ad.8 i
 			vfs_audit.8 vfs_cacheprime.8 vfs_cap.8 vfs_catia.8 \
 			vfs_commit.8 vfs_crossrename.8 vfs_default_quota.8 \
 			vfs_dirsort.8 vfs_extd_audit.8 vfs_fake_perms.8 vfs_fileid.8 \
-			vfs_full_audit.8 vfs_gpfs.8 vfs_media_harmony.8 \
+			vfs_full_audit.8 vfs_glusterfs.8 vfs_gpfs.8 vfs_media_harmony.8 \
 			vfs_netatalk.8 vfs_notify_fam.8 vfs_prealloc.8 \
 			vfs_preopen.8 vfs_readahead.8 vfs_readonly.8 \
 			vfs_recycle.8 vfs_scannedonly.8 vfs_shadow_copy.8 \
@@ -500,9 +508,10 @@ post-install:
 .	endfor
 .endif
 # Run post-install script
-.for dir in ${SAMBA4_LOGDIR} ${SAMBA4_RUNDIR} ${SAMBA4_LOCKDIR} ${SAMBA4_MODULEDIR} ${SAMBA4_PRIVATEDIR}
-			@${MKDIR} "${STAGEDIR}${dir}"
+.for dir in ${SAMBA4_LOGDIR} ${SAMBA4_RUNDIR} ${SAMBA4_LOCKDIR} ${SAMBA4_MODULEDIR}
+			@${INSTALL} -d -m 0755 "${STAGEDIR}${dir}"
 .endfor
+			@${INSTALL} -d -m 0700 "${STAGEDIR}${SAMBA4_PRIVATEDIR}"
 .for dir in auth bind9 gensec gpext idmap ldb nss_info pdb perfcount process_model service vfs
 			@${MKDIR} "${STAGEDIR}${SAMBA4_MODULEDIR}/${dir}"
 .endfor

Modified: head/net/samba41/distinfo
==============================================================================
--- head/net/samba41/distinfo	Wed May 20 17:10:03 2015	(r386868)
+++ head/net/samba41/distinfo	Wed May 20 17:15:10 2015	(r386869)
@@ -1,2 +1,2 @@
-SHA256 (samba-4.1.17.tar.gz) = 7aeb5d09e9c84bbeeb4b98d33404e9dbc4d99c54e64a447cc9c4d57e9255cb1d
-SIZE (samba-4.1.17.tar.gz) = 19536407
+SHA256 (samba-4.1.18.tar.gz) = 5bd302355c82195271de41d4f1e0c6353bde652a23886940b310b7734256f156
+SIZE (samba-4.1.18.tar.gz) = 19550894

Modified: head/net/samba41/files/samba_server.in
==============================================================================
--- head/net/samba41/files/samba_server.in	Wed May 20 17:10:03 2015	(r386868)
+++ head/net/samba41/files/samba_server.in	Wed May 20 17:15:10 2015	(r386869)
@@ -54,8 +54,12 @@ samba_server_checkconfig() {
 
 samba_server_prestart() {
     # Make sure we have our RUNDIR, even if it's on a tmpfs
-    if [ ! -d "${samba_server_piddir}" -a ! -e "${samba_server_piddir}" ]; then
-	install -m 0755 -d "${samba_server_piddir}"
+    if [ -d "${samba_server_piddir}" -o ! -e "${samba_server_piddir}" ]; then
+	install -d -m 0755 "${samba_server_piddir}"
+    fi
+    # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200186
+    if [ -d "${samba_server_privatedir}" -o ! -e "${samba_server_privatedir}" ]; then
+	install -d -m 0700 "${samba_server_privatedir}"
     fi
 #    # Remove smbd.pid before starting up samba(needed for s3fs)
 #    if [ -e "${samba_server_piddir}/smbd.pid" ] ; then
@@ -179,6 +183,8 @@ samba_server_config_init() {
     samba_server_lockdir=${samba_server_lockdir:=%%SAMBA4_LOCKDIR%%}
     samba_server_piddir="$(${testparm_command} --parameter-name='pid directory' 2>/dev/null)"
     samba_server_piddir=${samba_server_piddir:=%%SAMBA4_RUNDIR%%}
+    samba_server_privatedir="$(${testparm_command} --parameter-name='private dir' 2>/dev/null)"
+    samba_server_privatedir=${samba_server_privatedir:=%%SAMBA4_PRIVATEDIR%%}
 }
 
 # Load configuration variables

Modified: head/net/samba41/pkg-plist
==============================================================================
--- head/net/samba41/pkg-plist	Wed May 20 17:10:03 2015	(r386868)
+++ head/net/samba41/pkg-plist	Wed May 20 17:15:10 2015	(r386869)
@@ -1002,6 +1002,7 @@ man/man8/vfs_extd_audit.8.gz
 man/man8/vfs_fake_perms.8.gz
 man/man8/vfs_fileid.8.gz
 man/man8/vfs_full_audit.8.gz
+man/man8/vfs_glusterfs.8.gz
 man/man8/vfs_gpfs.8.gz
 man/man8/vfs_linux_xfs_sgid.8.gz
 man/man8/vfs_media_harmony.8.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505201715.t4KHFAHc086843>