pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/samba4 Import samba-4.2.1 as net/samba4.
details: https://anonhg.NetBSD.org/pkgsrc/rev/d38fd5a48d17
branches: trunk
changeset: 651778:d38fd5a48d17
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Tue May 12 12:19:52 2015 +0000
description:
Import samba-4.2.1 as net/samba4.
Samba is the standard Windows interoperability suite of programs
for Linux and Unix.
Samba is Free Software licensed under the GNU General Public License,
the Samba project is a member of the Software Freedom Conservancy.
Since 1992, Samba has provided secure, stable and fast file and
print services for all clients using the SMB/CIFS protocol, such
as all versions of DOS and Windows, OS/2, Linux and many others.
Samba is an important component to seamlessly integrate Linux/Unix
Servers and Desktops into Active Directory environments. It can
function both as a domain controller or as a regular domain member.
This package tracks 4.x branch release.
diffstat:
net/samba4/DESCR | 15 +
net/samba4/MESSAGE | 13 +
net/samba4/Makefile | 187 ++
net/samba4/PLIST | 796 ++++++++++
net/samba4/distinfo | 7 +
net/samba4/files/adduser.sh | 161 ++
net/samba4/files/deluser.sh | 68 +
net/samba4/files/nmbd.sh | 22 +
net/samba4/files/samba.sh | 18 +
net/samba4/files/smbd.sh | 33 +
net/samba4/files/smf/manifest.xml | 42 +
net/samba4/files/winbindd.sh | 18 +
net/samba4/hacks.mk | 3 +
net/samba4/options.mk | 84 +
net/samba4/patches/patch-source4_scripting_wsript_build | 17 +
net/samba4/patches/patch-testprogs_blackbox_dbcheck-oldrelease.sh | 29 +
16 files changed, 1513 insertions(+), 0 deletions(-)
diffs (truncated from 1577 to 300 lines):
diff -r d452b534d81b -r d38fd5a48d17 net/samba4/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba4/DESCR Tue May 12 12:19:52 2015 +0000
@@ -0,0 +1,15 @@
+Samba is the standard Windows interoperability suite of programs
+for Linux and Unix.
+
+Samba is Free Software licensed under the GNU General Public License,
+the Samba project is a member of the Software Freedom Conservancy.
+
+Since 1992, Samba has provided secure, stable and fast file and
+print services for all clients using the SMB/CIFS protocol, such
+as all versions of DOS and Windows, OS/2, Linux and many others.
+
+Samba is an important component to seamlessly integrate Linux/Unix
+Servers and Desktops into Active Directory environments. It can
+function both as a domain controller or as a regular domain member.
+
+This package tracks 4.x branch release.
diff -r d452b534d81b -r d38fd5a48d17 net/samba4/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba4/MESSAGE Tue May 12 12:19:52 2015 +0000
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2015/05/12 12:19:52 ryoon Exp $
+
+For ActiveDirectory/Domain Controller, use:
+
+ ${RCD_SCRIPTS_DIR}/samba start
+
+For traditional simple CIFS file sharing, use:
+
+ ${RCD_SCRIPTS_DIR}/nmbd start
+ ${RCD_SCRIPTS_DIR}/winbindd start
+ ${RCD_SCRIPTS_DIR}/smbd start
+===========================================================================
diff -r d452b534d81b -r d38fd5a48d17 net/samba4/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba4/Makefile Tue May 12 12:19:52 2015 +0000
@@ -0,0 +1,187 @@
+# $NetBSD: Makefile,v 1.1 2015/05/12 12:19:52 ryoon Exp $
+
+DISTNAME= samba-${VERSION}
+CATEGORIES= net
+MASTER_SITES= http://download.samba.org/pub/samba/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.samba.org/
+COMMENT= SMB/CIFS protocol server suite
+LICENSE= gnu-gpl-v3
+
+VERSION= 4.2.1
+CONFLICTS+= ja-samba-[0-9]* pam-smbpass-[0-9]* tdb-[0-9]* winbind-[0-9]*
+
+BUILD_DEFS+= VARBASE
+
+.include "../../mk/bsd.prefs.mk"
+
+SMB_LIB?= ${PREFIX}/lib
+
+PKG_SYSCONFSUBDIR= samba
+SMB_SHAREDSTATE?= ${PREFIX}/com
+SMB_LOCALSTATE?= ${VARBASE}
+SMB_INFO?= ${PREFIX}/info
+SMB_MAN?= ${PREFIX}/${PKGMANDIR}
+SMB_STATE?= ${VARBASE}/run
+SMB_PRIVATE?= ${SMB_LIB}/samba/private
+SMB_PID?= ${VARBASE}/run
+SMB_CACHE?= ${VARBASE}/cache
+SMB_LOCK?= ${VARBASE}/run
+SMB_LOGFILEBASE?= ${VARBASE}/log
+SMB_SOCKETS?= ${VARBASE}/run
+SMB_MODULES?= ${SMB_LIB}/samba
+SMB_PRIVATELIB?= ${SMB_LIB}/samba/private
+SMB_PRIVSOCKETS?= ${VARBASE}/run
+SMB_CONFIG?= ${PKG_SYSCONFDIR}
+SMB_DATAROOT?= ${PREFIX}/share/samba
+SMB_LOCALE?= ${PREFIX}/share/locale
+SMB_DOC?= ${PREFIX}/share/doc/samba
+SMB_PAMMODULES?= ${SMB_LIB}/samba/security
+
+FILES_SUBST+= SMB_CONFIG=${SMB_CONFIG}
+FILES_SUBST+= SMB_PID=${SMB_PID}
+
+# mktemp is useful for the replacement adduser script, but don't require
+# a full dependency since it's not actually needed by samba.
+USE_TOOLS+= gmake mktemp perl:run
+
+REPLACE_PERL= script/findsmb.in
+
+USE_GNU_ICONV= yes # FIXME: something doesn't work on NetBSD
+
+# Debugging
+#CONFIGURE_ARGS+= -vvv
+#CONFIGURE_ARGS+= --enable-developer
+#CONFIGURE_ARGS+= --fatal-errors
+
+HAS_CONFIGURE= yes
+CONFIGURE_ENV+= XSLTPROC=${FALSE} # suppress generation of man pages
+CONFIGURE_ARGS+= --libdir=${SAMBA_LIB}
+CONFIG_SHELL= ${PYTHONBIN}
+CONFIGURE_SCRIPT= ${WRKSRC}/buildtools/bin/waf
+CONFIGURE_ARGS+= configure
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --infodir=${SMB_INFO}
+CONFIGURE_ARGS+= --mandir=${SMB_MAN}
+CONFIGURE_ARGS+= --datarootdir=${SMB_DATAROOT}
+CONFIGURE_ARGS+= --localedir=${SMB_LOCALE}
+CONFIGURE_ARGS+= --docdir=${SMB_DOC}
+CONFIGURE_ARGS+= --with-statedir=${SMB_STATE}
+CONFIGURE_ARGS+= --with-privatedir=${SMB_PRIVATE}
+CONFIGURE_ARGS+= --with-piddir=${SMB_PID}
+CONFIGURE_ARGS+= --with-cachedir=${SMB_CACHE}
+CONFIGURE_ARGS+= --with-lockdir=${SMB_LOCK}
+CONFIGURE_ARGS+= --with-logfilebase=${SMB_LOGFILEBASE}
+CONFIGURE_ARGS+= --with-sockets-dir=${SMB_SOCKETS}
+CONFIGURE_ARGS+= --with-modulesdir=${SMB_MODULES}
+CONFIGURE_ARGS+= --with-privatelibdir=${SMB_PRIVATELIB}
+CONFIGURE_ARGS+= --with-privileged-socket-dir=${SMB_PRIVSOCKETS}
+CONFIGURE_ARGS+= --with-configdir=${SMB_CONFIG}
+CONFIGURE_ARGS+= --with-libiconv=${BUILDLINK_PREFIX.iconv}
+CONFIGURE_ARGS+= --with-gettext=${BUILDLINK_PREFIX.gettext}
+#CONFIGURE_ARGS+= --bundled-libraries=com_err
+CONFIGURE_ARGS+= --enable-gnutls
+CONFIGURE_ARGS+= --with-system-mitkrb5
+CONFIGURE_ARGS+= --abi-check-disable
+#CONFIGURE_ARGS+= --bundled-libraries=!crypto,ldb,ntdb,talloc,tdb,tevent
+.if defined(MAKE_JOBS_SAFE) && !empty(MAKE_JOBS_SAFE:M[nN][oO])
+CONFIGURE_ARGS+= --jobs=1
+.else
+CONFIGURE_ARGS+= --jobs=${MAKE_JOBS}
+.endif
+
+# for binbind option build.
+LDFLAGS+= -Wl,--allow-shlib-undefined
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${SMB_PRIVATELIB}
+
+.include "options.mk"
+
+PLIST_VARS+= macosx
+
+.if ${OPSYS} == "Darwin"
+PLIST.macosx= yes
+.endif
+
+.if ${_OPSYS_SHLIB_TYPE} == "dylib"
+PLIST_SUBST+= LIBEXT=dylib
+SAMBA_LIBEXT= dylib
+.else
+PLIST_SUBST+= LIBEXT=so
+SAMBA_LIBEXT= so
+.endif
+
+.if !defined(PWD_MKDB)
+PWD_MKDB!= ${TYPE} pwd_mkdb 2>&1 | \
+ ${AWK} '/not found/ { print "pwd_mkdb"; exit } { print $$3 }'
+MAKEFLAGS+= PWD_MKDB=${PWD_MKDB:Q}
+.endif
+FILES_SUBST+= MKTEMP=${MKTEMP:Q}
+FILES_SUBST+= PWD_MKDB=${PWD_MKDB:Q}
+
+INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR}
+
+DOCDIR= share/doc/${PKGBASE}
+EGDIR= share/examples/${PKGBASE}
+CONF_FILES= ${PREFIX}/${EGDIR}/smb.conf.default ${SMB_CONFIG}/smb.conf
+OWN_DIRS_PERMS= ${SMB_PRIVATE} ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
+RCD_SCRIPTS+= samba nmbd smbd ${WINBINDD_RCD_SCRIPT}
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Fixing paths.
+SUBST_FILES.paths= ${WRKDIR}/adduser.sh ${WRKDIR}/deluser.sh
+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_CLASSES+= logpath
+SUBST_MESSAGE.logpath= Fixing log path.
+SUBST_FILES.logpath= examples/smb.conf.default
+SUBST_STAGE.logpath= pre-configure
+SUBST_SED.logpath+= -e 's,/usr/local/samba/var/log.%m,${SMB_LOGFILEBASE}/log.%m,g'
+
+post-extract:
+ ${CP} ${FILESDIR}/adduser.sh ${FILESDIR}/deluser.sh ${WRKDIR}
+
+post-install:
+ set -e ; cd ${WRKSRC}/docs-xml/registry; for f in *.reg; do \
+ ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/${DOCDIR}/$${f}; \
+ done
+ ${INSTALL_SCRIPT} ${WRKDIR}/adduser.sh \
+ ${DESTDIR}${PREFIX}/${EGDIR}/adduser.sh
+ ${INSTALL_SCRIPT} ${WRKDIR}/deluser.sh \
+ ${DESTDIR}${PREFIX}/${EGDIR}/deluser.sh
+ ${INSTALL_DATA} ${WRKSRC}/examples/LDAP/samba.schema \
+ ${DESTDIR}${PREFIX}/${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/smb.conf.default \
+ ${DESTDIR}${PREFIX}/${EGDIR}
+
+REPLACE_PERL= pidl/pidl
+REPLACE_PYTHON= buildtools/bin/waf \
+ source4/setup/* \
+ source4/scripting/bin/* \
+ lib/subunit/python/subunit/run.py \
+ lib/subunit/python/subunit/tests/sample-script.py \
+ lib/subunit/python/subunit/tests/sample-two-script.py \
+ lib/tevent/tevent.py
+
+.include "../../lang/python/application.mk"
+
+PY_PATCHPLIST= yes
+.include "../../lang/python/extension.mk"
+
+.if ${OPSYS} == "Linux"
+.include "../../devel/libuuid/buildlink3.mk"
+.endif
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../security/mit-krb5/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d452b534d81b -r d38fd5a48d17 net/samba4/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba4/PLIST Tue May 12 12:19:52 2015 +0000
@@ -0,0 +1,796 @@
+@comment $NetBSD: PLIST,v 1.1 2015/05/12 12:19:52 ryoon Exp $
+bin/cifsdd
+bin/dbwrap_tool
+bin/eventlogadm
+bin/gentest
+bin/ldbadd
+bin/ldbdel
+bin/ldbedit
+bin/ldbmodify
+bin/ldbrename
+bin/ldbsearch
+bin/locktest
+bin/masktest
+bin/ndrdump
+bin/net
+bin/nmblookup
+bin/ntdbbackup
+bin/ntdbdump
+bin/ntdbrestore
+bin/ntdbtool
+bin/ntlm_auth
+bin/oLschema2ldif
+bin/pdbedit
+bin/pidl
+bin/profiles
+bin/regdiff
+bin/regpatch
+bin/regshell
+bin/regtree
+bin/rpcclient
+bin/sharesec
+bin/smbcacls
+bin/smbclient
+bin/smbcontrol
+bin/smbcquotas
+bin/smbget
+bin/smbpasswd
+bin/smbspool
+bin/smbstatus
+bin/smbta-util
+bin/smbtar
+bin/smbtorture
+bin/smbtree
+bin/tdbbackup
+bin/tdbdump
+bin/tdbrestore
+bin/tdbtool
+bin/testparm
+bin/wbinfo
+include/charset.h
+include/core/doserr.h
+include/core/error.h
+include/core/hresult.h
+include/core/ntstatus.h
+include/core/werror.h
+include/credentials.h
+include/dcerpc.h
+include/dlinklist.h
+include/domain_credentials.h
+include/gen_ndr/atsvc.h
+include/gen_ndr/auth.h
+include/gen_ndr/dcerpc.h
+include/gen_ndr/drsblobs.h
+include/gen_ndr/drsuapi.h
+include/gen_ndr/epmapper.h
+include/gen_ndr/krb5pac.h
+include/gen_ndr/lsa.h
+include/gen_ndr/mgmt.h
+include/gen_ndr/misc.h
Home |
Main Index |
Thread Index |
Old Index