1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Samba 4 is the ambitious next version of the Samba suite that is being

developed in parallel to the stable 3.0 series. The main emphasis in
this branch is support for the Active Directory logon protocols used
by Windows 2000 and above.
This commit is contained in:
Timur I. Bakeyev 2009-07-12 19:40:37 +00:00
parent 986242b42a
commit ccb6ec69e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=237646
23 changed files with 1008 additions and 0 deletions

218
net/samba4-devel/Makefile Normal file
View File

@ -0,0 +1,218 @@
# New ports collection makefile for: samba4
# Date created: 28 Jun 2006
# Whom: timur@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME?= ${SAMBA_PORTNAME}
PORTVERSION?= ${SAMBA_VERSION}
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SAMBA}
MASTER_SITE_SUBDIR= samba4
PKGNAMESUFFIX?= -devel
DISTNAME= ${SAMBA_DISTNAME}
MAINTAINER?= timur@FreeBSD.org
COMMENT?= A free SMB and CIFS client and server for UNIX
CONFLICTS?=
SAMBA_PORTNAME= samba4
SAMBA_VERSION= 4.0.0.a8
SAMBA_DISTNAME= ${SAMBA_PORTNAME:S|4$||}-${SAMBA_VERSION:S|.p|pre|:S|.r|rc|:S|.t|tp|:S|.a|alpha|}
LATEST_LINK?= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
#PATCHDIR= ${.CURDIR}/../samba34/files
#MD5_FILE= ${.CURDIR}/../samba34/distinfo
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
WRKSRC?= ${WRKDIR}/${DISTNAME}/source4
IPATHS= -I${WRKDIR}/${DISTNAME}/lib/replace
AUTOHEADER_ARGS= ${IPATHS}
AUTOCONF_ARGS= ${IPATHS}
.if !defined(SAMBA_SUBPORT)
CONFLICTS?= ja-samba-[23].* samba-[2-9].* sharity-light-1.*
IPATHS+= -I${WRKDIR}/${DISTNAME}/source4
USE_PERL5= yes
USE_PYTHON= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig
USE_AUTOTOOLS= autoconf:262 autoheader:262
# directories
VARDIR= /var
SAMBA_LOGDIR= ${VARDIR}/log/${PORTNAME}
SAMBA_RUNDIR= ${VARDIR}/run/${PORTNAME}
SAMBA_LOCKDIR= ${VARDIR}/db/${PORTNAME}
SAMBA_PRIVATEDIR?= ${SAMBA_LOCKDIR}/private
SAMBA_CONFDIR?= ${PREFIX}/etc
SAMBA_LIBDIR= ${PREFIX}/lib/${PORTNAME}
SAMBA_INCLUDEDIR= ${PREFIX}/include/${PORTNAME}
RC_DIR= ${PREFIX}/etc/rc.d
SAMBA_CONFIG= smb.conf
CONFIGURE_ARGS+= --exec-prefix="${PREFIX}" \
--sysconfdir="${SAMBA_CONFDIR}" \
--includedir="${SAMBA_INCLUDEDIR}" \
--datadir="${DATADIR}" \
--libdir="${SAMBA_LIBDIR}" \
--with-modulesdir="${SAMBA_LIBDIR}/modules" \
--localstatedir="${VARDIR}" \
--with-piddir="${SAMBA_RUNDIR}" \
--with-winbindd-socket-dir="${SAMBA_RUNDIR}/winbindd" \
--with-winbindd-privileged-socket-dir="${SAMBA_RUNDIR}/winbindd_privileged" \
--with-ntp-signd-socket-dir="${SAMBA_RUNDIR}/ntp_signd" \
--with-lockdir="${SAMBA_LOCKDIR}" \
--with-privatedir="${SAMBA_PRIVATEDIR}" \
--with-logfilebase="${SAMBA_LOGDIR}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
OPTIONS= \
DEBUG "With debug info" off \
THREADS "With pthreads" on \
GNUTLS "With SSL (via GnuTLS) for SWAT support" off \
EXT_TDB "With external libtdb" on \
EXT_TALLOC "With external libtalloc" on \
EXT_TEVENT "With external libtevent" on \
POPT "With system-wide POPT library" on \
PCH "With precompiled headers" off
.endif
.include <bsd.port.pre.mk>
.if !defined(SAMBA_SUBPORT)
#
USE_RC_SUBR= ${SAMBA_PORTNAME}
SUB_FILES= pkg-message
CONFIGURE_ARGS+= \
--disable-external-heimdal \
--with-setproctitle \
--with-readline=/usr \
--with-libiconv=${LOCALBASE}
# backtrace
LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo
# BLKID
LIB_DEPENDS+= blkid.1:${PORTSDIR}/misc/e2fsprogs-libblkid
# SASL
LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
.if defined(WITH_DSO)
CONFIGURE_ARGS+= --enable-dso
.else
CONFIGURE_ARGS+= --disable-dso
.endif
.if !defined(WITHOUT_DEBUG)
CONFIGURE_ARGS+= --enable-debug --enable-developer \
--enable-socket-wrapper --enable-nss-wrapper
.else
CONFIGURE_ARGS+= --disable-debug --disable-developer \
--disable-socket-wrapper --disable-nss-wrapper
.endif
.if !defined(WITHOUT_THREADS)
CPPFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS}
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS+= --with-pthreads
.else
CONFIGURE_ARGS+= --without-pthreads
.endif
.if defined(WITH_GNUTLS)
LIB_DEPENDS+= gnutls.26:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+= --enable-gnutls
.else
CONFIGURE_ARGS+= --disable-gnutls
.endif
.if !defined(WITHOUT_POPT)
LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt
CONFIGURE_ARGS+= --without-included-popt
.else
CONFIGURE_ARGS+= --with-included-popt
.endif
.if defined(WITH_SQLITE3)
USE_SQLITE= 3
CONFIGURE_ARGS+= --with-sqlite3
.else
CONFIGURE_ARGS+= --without-sqlite3
.endif
.if defined(WITH_EXT_TDB)
LIB_DEPENDS+= tdb.1:${PORTSDIR}/databases/tdb
CONFIGURE_ARGS+= --enable-external-libtdb
PLIST_SUB+= TDB="@comment "
.else
CONFLICTS+= tdb-1*
CONFIGURE_ARGS+= --disable-external-libtdb
PLIST_SUB+= TDB=""
.endif
.if defined(WITH_EXT_TALLOC)
LIB_DEPENDS+= talloc.1:${PORTSDIR}/devel/talloc
CONFIGURE_ARGS+= --enable-external-libtalloc
.else
CONFLICTS+= talloc-1*
CONFIGURE_ARGS+= --disable-external-libtalloc
.endif
.if defined(WITH_EXT_TEVENT)
LIB_DEPENDS+= tevent.0:${PORTSDIR}/devel/tevent
CONFIGURE_ARGS+= --enable-external-libtevent
PLIST_SUB+= TEVENT="@comment "
.else
CONFLICTS+= tevent-0*
CONFIGURE_ARGS+= --disable-external-libtevent
PLIST_SUB+= TEVENT=""
.endif
.if defined(SAMBA_DISABLE_EXT) && !empty(SAMBA_DISABLE_EXT)
CONFIGURE_ARGS+= --with-disable-ext-lib="${SAMBA_DISABLE_EXT:Q:C/(\\\\ )+/,/g}"
.endif
SAMBA_SUB= SAMBA_LOGDIR="${SAMBA_LOGDIR}" \
SAMBA_LOCKDIR="${SAMBA_LOCKDIR}" \
SAMBA_CONFDIR="${SAMBA_CONFDIR}" \
SAMBA_CONFIG="${SAMBA_CONFIG}" \
SAMBA_RUNDIR="${SAMBA_RUNDIR}" \
SAMBA_PRIVATEDIR="${SAMBA_PRIVATEDIR}"
PLIST_SUB+= ${SAMBA_SUB}
SUB_LIST+= ${SAMBA_SUB}
.if defined(WITH_PCH)
pre-build:
(cd ${BUILD_WRKSRC} && ${GMAKE} pch)
.endif
post-build:
.for f in autoidl epdump fullschema get-descriptors minschema mymachinepw rpcclient samba3dump smbstatus subunitrun
@${REINPLACE_CMD} -i '' -e '1,1 s|#!.*python.*|#!${PYTHON_CMD}|' \
${WRKSRC}/scripting/bin/${f}
.endfor
.for f in enableaccount newuser provision provision-backend setexpiry setpassword upgrade
@${REINPLACE_CMD} -i '' -e '1,1 s|#!.*python.*|#!${PYTHON_CMD}|' \
${WRKSRC}/setup/${f}
.endfor
post-install:
@${CAT} ${PKGMESSAGE}
# !SAMBA_SUBPORT
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (samba-4.0.0alpha8.tar.gz) = 9ed6588e1e77f7a3f1a6c9fe3ebcefa3
SHA256 (samba-4.0.0alpha8.tar.gz) = b907d249c57f75ab7959d987dd9bd59b6865e6bd7ec33e719e0a5660aa53e3bd
SIZE (samba-4.0.0alpha8.tar.gz) = 12119314

View File

@ -0,0 +1,44 @@
--- ./lib/replace/system/filesys.h.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./lib/replace/system/filesys.h 2009-07-12 02:39:36.000000000 +0000
@@ -53,23 +53,23 @@
#include <acl/libacl.h>
#endif
-#ifdef HAVE_SYS_FS_S5PARAM_H
+#ifdef HAVE_SYS_FS_S5PARAM_H
#include <sys/fs/s5param.h>
#endif
#if defined (HAVE_SYS_FILSYS_H) && !defined (_CRAY)
-#include <sys/filsys.h>
+#include <sys/filsys.h>
#endif
#ifdef HAVE_SYS_STATFS_H
# include <sys/statfs.h>
#endif
-#ifdef HAVE_DUSTAT_H
+#ifdef HAVE_DUSTAT_H
#include <sys/dustat.h>
#endif
-#ifdef HAVE_SYS_STATVFS_H
+#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#endif
@@ -117,6 +117,13 @@
#include <sys/xattr.h>
#endif
+#if HAVE_SYS_EXTATTR_H
+#include <sys/extattr.h>
+#endif
+
+#if HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>

View File

@ -0,0 +1,29 @@
--- ./lib/talloc/talloc.mk.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./lib/talloc/talloc.mk 2009-07-12 02:39:36.000000000 +0000
@@ -1,6 +1,6 @@
TALLOC_OBJ = $(tallocdir)/talloc.o
-TALLOC_SOLIB = libtalloc.$(SHLIBEXT).$(PACKAGE_VERSION)
+TALLOC_SOLIB = libtalloc.$(SHLIBEXT).1
TALLOC_SONAME = libtalloc.$(SHLIBEXT).1
TALLOC_STLIB = libtalloc.a
@@ -15,16 +15,14 @@
install:: all
${INSTALLCMD} -d $(DESTDIR)$(libdir)
- ${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
+ ${INSTALLCMD} -d $(DESTDIR)$(prefix)/libdata/pkgconfig
${INSTALLCMD} -m 755 $(TALLOC_STLIB) $(DESTDIR)$(libdir)
${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(DESTDIR)$(libdir)
${INSTALLCMD} -d $(DESTDIR)${includedir}
${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
- ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
+ ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(prefix)/libdata/pkgconfig
if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
- which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true
- which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
doc:: talloc.3 talloc.3.html

View File

@ -0,0 +1,55 @@
--- ./lib/tdb/config.mk.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./lib/tdb/config.mk 2009-07-12 02:39:36.000000000 +0000
@@ -14,44 +14,44 @@
################################################
# Start BINARY tdbtool
-[BINARY::tdbtool]
+[BINARY::tdbtool4]
INSTALLDIR = BINDIR
PRIVATE_DEPENDENCIES = \
LIBTDB
# End BINARY tdbtool
################################################
-tdbtool_OBJ_FILES = $(tdbsrcdir)/tools/tdbtool.o
+tdbtool4_OBJ_FILES = $(tdbsrcdir)/tools/tdbtool.o
################################################
# Start BINARY tdbtorture
-[BINARY::tdbtorture]
+[BINARY::tdbtorture4]
INSTALLDIR = BINDIR
PRIVATE_DEPENDENCIES = \
LIBTDB
# End BINARY tdbtorture
################################################
-tdbtorture_OBJ_FILES = $(tdbsrcdir)/tools/tdbtorture.o
+tdbtorture4_OBJ_FILES = $(tdbsrcdir)/tools/tdbtorture.o
################################################
# Start BINARY tdbdump
-[BINARY::tdbdump]
+[BINARY::tdbdump4]
INSTALLDIR = BINDIR
PRIVATE_DEPENDENCIES = \
LIBTDB
# End BINARY tdbdump
################################################
-tdbdump_OBJ_FILES = $(tdbsrcdir)/tools/tdbdump.o
+tdbdump4_OBJ_FILES = $(tdbsrcdir)/tools/tdbdump.o
################################################
# Start BINARY tdbbackup
-[BINARY::tdbbackup]
+[BINARY::tdbbackup4]
INSTALLDIR = BINDIR
PRIVATE_DEPENDENCIES = \
LIBTDB
# End BINARY tdbbackup
################################################
-tdbbackup_OBJ_FILES = $(tdbsrcdir)/tools/tdbbackup.o
+tdbbackup4_OBJ_FILES = $(tdbsrcdir)/tools/tdbbackup.o

View File

@ -0,0 +1,36 @@
--- ./lib/tdb/tdb.mk.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./lib/tdb/tdb.mk 2009-07-12 02:39:36.000000000 +0000
@@ -6,7 +6,7 @@
ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL)
TDB_SONAME = libtdb.$(SHLIBEXT).1
-TDB_SOLIB = libtdb.$(SHLIBEXT).$(PACKAGE_VERSION)
+TDB_SOLIB = libtdb.$(SHLIBEXT).1
TDB_STLIB = libtdb.a
TDB_LIB = $(TDB_STLIB)
@@ -58,8 +58,6 @@
installdirs::
mkdir -p $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(includedir)
- mkdir -p $(DESTDIR)$(libdir)
- mkdir -p $(DESTDIR)$(libdir)/pkgconfig
installbin:: all installdirs
cp $(PROGS) $(DESTDIR)$(bindir)
@@ -68,7 +66,7 @@
cp $(srcdir)/include/tdb.h $(DESTDIR)$(includedir)
installlibs:: all installdirs
- cp tdb.pc $(DESTDIR)$(libdir)/pkgconfig
+ cp tdb.pc $(DESTDIR)$(prefix)/libdata/pkgconfig
cp $(TDB_STLIB) $(TDB_SOLIB) $(DESTDIR)$(libdir)
$(TDB_STLIB): $(TDB_OBJ)
@@ -76,6 +74,3 @@
libtdb.$(SHLIBEXT): $(TDB_SOLIB)
ln -fs $< $@
-
-$(TDB_SONAME): $(TDB_SOLIB)
- ln -fs $< $@

View File

@ -0,0 +1,37 @@
--- ./lib/tevent/tevent.mk.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./lib/tevent/tevent.mk 2009-07-12 02:39:36.000000000 +0000
@@ -1,6 +1,6 @@
TEVENT_SOBASE = libtevent.$(SHLIBEXT)
TEVENT_SONAME = $(TEVENT_SOBASE).0
-TEVENT_SOLIB = $(TEVENT_SOBASE).$(PACKAGE_VERSION)
+TEVENT_SOLIB = $(TEVENT_SOBASE).0
TEVENT_STLIB = libtevent.a
$(TEVENT_STLIB): $(TEVENT_OBJ)
@@ -9,23 +9,20 @@
$(TEVENT_SOBASE): $(TEVENT_SOLIB)
ln -fs $< $@
-$(TEVENT_SONAME): $(TEVENT_SOLIB)
- ln -fs $< $@
-
dirs::
@mkdir -p lib
installdirs::
mkdir -p $(DESTDIR)$(includedir)
- mkdir -p $(DESTDIR)$(libdir)
- mkdir -p $(DESTDIR)$(libdir)/pkgconfig
+ mkdir -p $(DESTDIR)$(prefix)/libdata
+ mkdir -p $(DESTDIR)$(prefix)/libdata/pkgconfig
installheaders:: installdirs
cp $(srcdir)/tevent.h $(DESTDIR)$(includedir)
cp $(srcdir)/tevent_internal.h $(DESTDIR)$(includedir)
installlibs:: installdirs
- cp tevent.pc $(DESTDIR)$(libdir)/pkgconfig
+ cp tevent.pc $(DESTDIR)$(prefix)/libdata/pkgconfig
cp $(TEVENT_STLIB) $(TEVENT_SOLIB) $(DESTDIR)$(libdir)
install:: all installdirs installheaders installlibs $(PYTHON_INSTALL_TARGET)

View File

@ -0,0 +1,44 @@
--- ./lib/util/xattr.m4.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./lib/util/xattr.m4 2009-07-12 02:39:36.000000000 +0000
@@ -1,14 +1,30 @@
dnl ############################################
dnl use flistxattr as the key function for having
dnl sufficient xattr support for posix xattr backend
-AC_CHECK_HEADERS(sys/attributes.h attr/xattr.h sys/xattr.h)
+AC_CHECK_HEADERS([ \
+ sys/attributes.h \
+ attr/xattr.h \
+ sys/xattr.h \
+ sys/extattr.h \
+ sys/uio.h \
+])
AC_SEARCH_LIBS_EXT(flistxattr, [attr], XATTR_LIBS)
AC_CHECK_FUNC_EXT(flistxattr, $XATTR_LIBS)
+# Check if we have extattr API
+case "$host_os" in
+ *freebsd4* | *dragonfly* )
+ AC_DEFINE(BROKEN_EXTATTR,1,[Have broken extattr API])
+ ;;
+ *)
+ AC_CHECK_FUNC_EXT(extattr_list_file, $XATTR_LIBS)
+ ;;
+esac
+
SMB_EXT_LIB(XATTR,[${XATTR_LIBS}],[${XATTR_CFLAGS}],[${XATTR_CPPFLAGS}],[${XATTR_LDFLAGS}])
if test x"$ac_cv_func_ext_flistxattr" = x"yes"; then
AC_CACHE_CHECK([whether xattr interface takes additional options], smb_attr_cv_xattr_add_opt,
[old_LIBS=$LIBS
- LIBS="$LIBS $XATTRLIBS"
+ LIBS="$LIBS $XATTR_LIBS"
AC_TRY_COMPILE([
#include <sys/types.h>
#if HAVE_ATTR_XATTR_H
@@ -28,5 +44,7 @@
fi
AC_DEFINE(HAVE_XATTR_SUPPORT,1,[Whether we have xattr support])
SMB_ENABLE(XATTR,YES)
+elif test x"$ac_cv_func_ext_extattr_list_file" = x"yes"; then
+ AC_DEFINE(HAVE_EXTATTR_SUPPORT,1,[Whether we have extattr support])
+ SMB_ENABLE(XATTR,YES)
fi
-

View File

@ -0,0 +1,11 @@
--- ./librpc/ndr/libndr.h.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./librpc/ndr/libndr.h 2009-07-12 03:24:17.000000000 +0000
@@ -419,7 +419,7 @@
struct ndr_token_list **list,
const void *key,
uint32_t value);
-enum ndr_err_code ndr_token_retrieve_cmp_fn(struct ndr_token_list **list, const void *key, uint32_t *v, comparison_fn_t _cmp_fn, bool _remove_tok);
+enum ndr_err_code ndr_token_retrieve_cmp_fn(struct ndr_token_list **list, const void *key, uint32_t *v, int (*_cmp_fn)(const void *, const void *), bool _remove_tok);
enum ndr_err_code ndr_token_retrieve(struct ndr_token_list **list, const void *key, uint32_t *v);
uint32_t ndr_token_peek(struct ndr_token_list **list, const void *key);
enum ndr_err_code ndr_pull_array_size(struct ndr_pull *ndr, const void *p);

View File

@ -0,0 +1,21 @@
--- ./pidl/config.mk.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./pidl/config.mk 2009-07-12 02:39:36.000000000 +0000
@@ -6,18 +6,6 @@
pidl-testcov: $(pidldir)/Makefile
cd $(pidldir) && cover -test
-installpidl:: $(pidldir)/Makefile
- @$(MAKE) -C $(pidldir) install_vendor VENDORPREFIX=$(prefix) \
- INSTALLVENDORLIB=$(datarootdir)/perl5 \
- INSTALLVENDORBIN=$(bindir) \
- INSTALLVENDORSCRIPT=$(bindir) \
- INSTALLVENDORMAN1DIR=$(mandir)/man1 \
- INSTALLVENDORMAN3DIR=$(mandir)/man3
-
-ifeq ($(HAVE_PERL_EXTUTILS_MAKEMAKER),1)
-install:: installpidl
-endif
-
$(pidldir)/lib/Parse/Pidl/IDL.pm: $(pidldir)/idl.yp
-$(YAPP) -m 'Parse::Pidl::IDL' -o $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/idl.yp ||\
touch $(pidldir)/lib/Parse/Pidl/IDL.pm

View File

@ -0,0 +1,14 @@
--- ./source4/build/m4/check_path.m4.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/build/m4/check_path.m4 2009-07-12 02:39:36.000000000 +0000
@@ -41,11 +41,6 @@
ntp_signd_socket_dir="${localstatedir}/run/samba/ntp_signd"
winbindd_socket_dir="${localstatedir}/run/samba/winbindd"
winbindd_privileged_socket_dir="${localstatedir}/lib/samba/winbindd_privileged"
-else
- # Check to prevent installing directly under /usr without the FHS
- AS_IF([test $prefix = /usr || test $prefix = /usr/local],[
- AC_MSG_ERROR([Don't install directly under "/usr" or "/usr/local" without using the FHS option (--enable-fhs). This could lead to file loss!])
- ])
fi
#################################################

View File

@ -0,0 +1,11 @@
--- ./source4/build/smb_build/output.pm.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/build/smb_build/output.pm 2009-07-12 02:39:36.000000000 +0000
@@ -48,7 +48,7 @@
$lib->{LIBRARY_DEBUGNAME} = $lib->{LIBRARY_REALNAME};
$lib->{LIBRARY_SONAME} = "\$(if \$($lib->{NAME}_SOVERSION),$lib->{LIBRARY_REALNAME}.\$($lib->{NAME}_SOVERSION),$lib->{LIBRARY_REALNAME})";
- $lib->{LIBRARY_REALNAME} = "\$(if \$($lib->{NAME}_VERSION),$lib->{LIBRARY_REALNAME}.\$($lib->{NAME}_VERSION),$lib->{LIBRARY_REALNAME})";
+ $lib->{LIBRARY_REALNAME} = "\$(if \$($lib->{NAME}_SOVERSION),$lib->{LIBRARY_REALNAME}.\$($lib->{NAME}_SOVERSION),$lib->{LIBRARY_REALNAME})";
$lib->{RESULT_SHARED_LIBRARY} = "$lib->{SHAREDDIR}/$lib->{LIBRARY_REALNAME}";
$lib->{OUTPUT_SHARED_LIBRARY} = "-l$link_name";

View File

@ -0,0 +1,11 @@
--- ./source4/dynconfig/config.mk.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/dynconfig/config.mk 2009-07-12 02:39:36.000000000 +0000
@@ -6,7 +6,7 @@
# These can be overridden by command line switches (see samba(8))
# or in smb.conf (see smb.conf(5))
CONFIG4FILE = $(sysconfdir)/smb.conf
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(prefix)/libdata/pkgconfig
LMHOSTSFILE4 = $(sysconfdir)/lmhosts
$(dynconfigsrcdir)/dynconfig.o: CFLAGS+=-DCONFIGFILE=\"$(CONFIG4FILE)\" -DBINDIR=\"$(bindir)\" \

View File

@ -0,0 +1,25 @@
--- ./source4/heimdal_build/internal.m4.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/heimdal_build/internal.m4 2009-07-12 02:39:36.000000000 +0000
@@ -68,8 +68,7 @@
ttyname.h \
netinet/in.h \
netinet/in6.h \
- netinet6/in6.h \
- libintl.h
+ netinet6/in6.h
])
AC_CHECK_FUNCS([ \
@@ -171,12 +170,6 @@
SMB_EXT_LIB(OPENPTY,[${OPENPTY_LIBS}],[${OPENPTY_CFLAGS}],[${OPENPTY_CPPFLAGS}],[${OPENPTY_LDFLAGS}])
-AC_CHECK_LIB_EXT(intl, INTL_LIBS, gettext)
-
-SMB_ENABLE(INTL,YES)
-
-SMB_EXT_LIB(INTL, $INTL_LIBS)
-
smb_save_LIBS=$LIBS
RESOLV_LIBS=""
LIBS=""

View File

@ -0,0 +1,13 @@
--- ./source4/heimdal_build/roken.h.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/heimdal_build/roken.h 2009-07-12 02:39:36.000000000 +0000
@@ -41,6 +41,10 @@
#define HAVE_STRNDUP
#endif
+#ifndef HAVE_STRNLEN
+#define HAVE_STRNLEN
+#endif
+
#ifndef HAVE_STRLCPY
#define HAVE_STRLCPY
#endif

View File

@ -0,0 +1,13 @@
--- ./source4/lib/tls/config.m4.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/lib/tls/config.m4 2009-07-12 02:39:36.000000000 +0000
@@ -10,8 +10,8 @@
fi])
-if test x$use_gnutls = xauto && pkg-config --exists gnutls; then
- SMB_EXT_LIB_FROM_PKGCONFIG(GNUTLS, gnutls < 2.6.0,
+if test x$use_gnutls = xauto && $PKG_CONFIG --exists gnutls; then
+ SMB_EXT_LIB_FROM_PKGCONFIG(GNUTLS, gnutls,
[use_gnutls=yes],
[use_gnutls=no])
fi

View File

@ -0,0 +1,20 @@
--- ./source4/script/installmisc.sh.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/script/installmisc.sh 2009-07-12 02:39:36.000000000 +0000
@@ -8,11 +8,14 @@
echo "Installing setup templates"
mkdir -p $SETUPDIR || exit 1
+for p in enableaccount newuser provision provision-backend setexpiry setpassword upgrade
+do
+ chmod 055 setup/$p
+ cp setup/$p $SETUPDIR || exit 1
+done
+cp -R setup/ad-schema $SETUPDIR || exit 1
cp setup/schema-map-* $SETUPDIR || exit 1
cp setup/DB_CONFIG $SETUPDIR || exit 1
-cp setup/provision-backend $SETUPDIR || exit 1
-cp setup/provision $SETUPDIR || exit 1
-cp setup/newuser $SETUPDIR || exit 1
cp setup/*.inf $SETUPDIR || exit 1
cp setup/*.ldif $SETUPDIR || exit 1
cp setup/*.reg $SETUPDIR || exit 1

View File

@ -0,0 +1,11 @@
--- ./source4/scripting/python/samba/provision.py.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/scripting/python/samba/provision.py 2009-07-12 02:39:36.000000000 +0000
@@ -54,7 +54,7 @@
dirname = os.path.dirname(__file__)
if "/site-packages/" in dirname:
prefix = "/".join(dirname[:dirname.index("/site-packages/")].split("/")[:-2])
- for suffix in ["share/setup", "share/samba/setup", "setup"]:
+ for suffix in ["share/setup", "share/samba4/setup", "setup"]:
ret = os.path.join(prefix, suffix)
if os.path.isdir(ret):
return ret

View File

@ -0,0 +1,22 @@
--- ./source4/smbd/config.mk.orig 2009-06-19 04:36:48.000000000 +0000
+++ ./source4/smbd/config.mk 2009-07-12 02:39:36.000000000 +0000
@@ -18,7 +18,7 @@
$(eval $(call proto_header_template,$(smbdsrcdir)/pidfile.h,$(PIDFILE_OBJ_FILES:.o=.c)))
-[BINARY::samba]
+[BINARY::samba4]
INSTALLDIR = SBINDIR
PRIVATE_DEPENDENCIES = \
LIBEVENTS \
@@ -36,7 +36,7 @@
share \
CLUSTER
-samba_OBJ_FILES = $(smbdsrcdir)/server.o
-$(samba_OBJ_FILES): CFLAGS+=-DSTATIC_service_MODULES="$(service_INIT_FUNCTIONS)NULL"
+samba4_OBJ_FILES = $(smbdsrcdir)/server.o
+$(samba4_OBJ_FILES): CFLAGS+=-DSTATIC_service_MODULES="$(service_INIT_FUNCTIONS)NULL"
-MANPAGES += $(smbdsrcdir)/samba.8
+MANPAGES += $(smbdsrcdir)/samba4.8

View File

@ -0,0 +1,17 @@
===============================================================================
This port is *HIGHLY* experimental, lacks documentation and, in general,
unsupported. It solely purpose is to give you a grasp of upcoming Samba4
and try it.
This *IS NOT* production ready code. Use at your own risk.
How to start: http://wiki.samba.org/index.php/Samba4/HOWTO
Provisioning script: %%DATADIR%%/setup/provision
For additional documentation check: http://wiki.samba.org/index.php/Samba4
Bug reports should go to: https://bugzilla.samba.org/
===============================================================================

View File

@ -0,0 +1,54 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: samba4
# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
#samba4_enable="YES"
#
# Configuration file can be set with:
#samba4_config="%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%"
#
. %%RC_SUBR%%
name="samba4"
rcvar=$(set_rcvar)
load_rc_config "${name}"
# Defaults
samba4_enable=${samba4_enable:=NO}
samba4_flags=${samba4_flags=--daemon}
samba4_config_default="%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%"
samba4_config=${samba4_config=${samba4_config_default}}
samba4_configfile_arg=${samba4_config:+--configfile="${samba4_config}"} #"
testparm_command="%%PREFIX%%/bin/testparm --suppress-prompt --verbose ${samba4_configfile_arg}"
# Fetch parameters from configuration file
samba4_lockdir=$(${testparm_command} --parameter-name='lock directory' 2>/dev/null)
# Runtime options
restart_precmd="samba4_checkconfig"
command="%%PREFIX%%/sbin/${name}"
command_args=${samba4_configfile_arg}
# Requirements
required_files="${samba4_config}"
required_dirs="${samba4_lockdir}"
samba4_checkconfig() {
echo -n "Performing sanity check on Samba configuration: "
if ${testparm_command} >/dev/null 2>&1; then
echo "OK"
else
echo "FAILED"
return 1
fi
}
run_rc_command "$1"

View File

@ -0,0 +1,8 @@
Samba4 is an attempt to implement an Active Directory compatible Domain
Controller.
In short, you can join a WinNT, Win2000, WinXP or Win2003 member server
to a Samba4 domain, and it will behave much as it does in AD, including
Kerberos domain logins where applicable.
WWW: http://www.samba.org/

291
net/samba4-devel/pkg-plist Normal file
View File

@ -0,0 +1,291 @@
bin/autoidl
bin/cifsdd
bin/epdump
bin/gentest
bin/getntacl
bin/ldbadd
bin/ldbdel
bin/ldbedit
bin/ldbmodify
bin/ldbrename
bin/ldbsearch
bin/locktest
bin/masktest
bin/ndrdump
bin/net
bin/nmblookup
bin/ntlm_auth
bin/oLschema2ldif
bin/regdiff
bin/regpatch
bin/regshell
bin/regtree
bin/rpcclient
bin/samba3dump
bin/setnttoken
bin/smbclient
bin/smbstatus
bin/smbtorture
bin/testparm
bin/wbinfo
%%TDB%%bin/tdbbackup4
%%TDB%%bin/tdbdump4
%%TDB%%bin/tdbtool4
%%TDB%%bin/tdbtorture4
sbin/samba4
include/samba4/charset.h
include/samba4/core/doserr.h
include/samba4/core/error.h
include/samba4/core/ntstatus.h
include/samba4/core/werror.h
include/samba4/credentials.h
include/samba4/dcerpc.h
include/samba4/dcerpc_server.h
include/samba4/dcerpc_server/common.h
include/samba4/dlinklist.h
include/samba4/domain_credentials.h
include/samba4/gen_ndr/atsvc.h
include/samba4/gen_ndr/dcerpc.h
include/samba4/gen_ndr/epmapper.h
include/samba4/gen_ndr/lsa.h
include/samba4/gen_ndr/mgmt.h
include/samba4/gen_ndr/misc.h
include/samba4/gen_ndr/nbt.h
include/samba4/gen_ndr/ndr_atsvc.h
include/samba4/gen_ndr/ndr_atsvc_c.h
include/samba4/gen_ndr/ndr_dcerpc.h
include/samba4/gen_ndr/ndr_epmapper.h
include/samba4/gen_ndr/ndr_epmapper_c.h
include/samba4/gen_ndr/ndr_mgmt.h
include/samba4/gen_ndr/ndr_mgmt_c.h
include/samba4/gen_ndr/ndr_misc.h
include/samba4/gen_ndr/ndr_samr.h
include/samba4/gen_ndr/ndr_samr_c.h
include/samba4/gen_ndr/ndr_svcctl.h
include/samba4/gen_ndr/ndr_svcctl_c.h
include/samba4/gen_ndr/netlogon.h
include/samba4/gen_ndr/samr.h
include/samba4/gen_ndr/security.h
include/samba4/gen_ndr/server_id.h
include/samba4/gen_ndr/svcctl.h
include/samba4/gensec.h
include/samba4/ldap-util.h
include/samba4/ldap_errors.h
include/samba4/ldap_message.h
include/samba4/ldap_ndr.h
include/samba4/ldb.h
include/samba4/ldb_errors.h
include/samba4/ldb_wrap.h
include/samba4/ndr.h
include/samba4/param.h
include/samba4/registry.h
include/samba4/samba/popt.h
include/samba4/samba/session.h
include/samba4/samba/version.h
include/samba4/share.h
include/samba4/smbtorture.h
include/samba4/tdb_wrap.h
include/samba4/tdr.h
include/samba4/torture.h
include/samba4/tsocket.h
include/samba4/tsocket_internal.h
include/samba4/util.h
include/samba4/util/attr.h
include/samba4/util/byteorder.h
include/samba4/util/data_blob.h
include/samba4/util/debug.h
include/samba4/util/memory.h
include/samba4/util/mutex.h
include/samba4/util/safe_string.h
include/samba4/util/talloc_stack.h
include/samba4/util/time.h
include/samba4/util/xfile.h
include/samba4/util_ldb.h
%%TDB%%%%PYTHON_SITELIBDIR%%/tdb.so
%%PYTHON_SITELIBDIR%%/ldb.so
%%PYTHON_SITELIBDIR%%/samba/__init__.py
%%PYTHON_SITELIBDIR%%/samba/auth.so
%%PYTHON_SITELIBDIR%%/samba/com.so
%%PYTHON_SITELIBDIR%%/samba/credentials.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/__init__.py
%%PYTHON_SITELIBDIR%%/samba/dcerpc/atsvc.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/base.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/dfs.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/drsuapi.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/echo.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/epmapper.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/initshutdown.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/irpc.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/lsa.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/mgmt.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/misc.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/nbt.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/samr.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/security.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/svcctl.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/unixinfo.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/winreg.so
%%PYTHON_SITELIBDIR%%/samba/dcerpc/wkssvc.so
%%PYTHON_SITELIBDIR%%/samba/getopt.py
%%PYTHON_SITELIBDIR%%/samba/glue.so
%%PYTHON_SITELIBDIR%%/samba/hostconfig.py
%%PYTHON_SITELIBDIR%%/samba/idmap.py
%%PYTHON_SITELIBDIR%%/samba/messaging.so
%%PYTHON_SITELIBDIR%%/samba/ms_schema.py
%%PYTHON_SITELIBDIR%%/samba/ndr.py
%%PYTHON_SITELIBDIR%%/samba/net.so
%%PYTHON_SITELIBDIR%%/samba/netbios.so
%%PYTHON_SITELIBDIR%%/samba/param.so
%%PYTHON_SITELIBDIR%%/samba/provision.py
%%PYTHON_SITELIBDIR%%/samba/registry.so
%%PYTHON_SITELIBDIR%%/samba/samba3.py
%%PYTHON_SITELIBDIR%%/samba/samdb.py
%%PYTHON_SITELIBDIR%%/samba/shares.py
%%PYTHON_SITELIBDIR%%/samba/tests/__init__.py
%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/__init__.py
%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/bare.py
%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/misc.py
%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/registry.py
%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/rpcecho.py
%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/sam.py
%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/unix.py
%%PYTHON_SITELIBDIR%%/samba/tests/provision.py
%%PYTHON_SITELIBDIR%%/samba/tests/samba3.py
%%PYTHON_SITELIBDIR%%/samba/tests/samdb.py
%%PYTHON_SITELIBDIR%%/samba/tests/upgrade.py
%%PYTHON_SITELIBDIR%%/samba/torture/spoolss.py
%%PYTHON_SITELIBDIR%%/samba/torture/torture_samr.py
%%PYTHON_SITELIBDIR%%/samba/torture/torture_tdb.py
%%PYTHON_SITELIBDIR%%/samba/torture/winreg.py
%%PYTHON_SITELIBDIR%%/samba/upgrade.py
%%PYTHON_SITELIBDIR%%/subunit/__init__.py
%%PYTHON_SITELIBDIR%%/subunit/tests/TestUtil.py
%%PYTHON_SITELIBDIR%%/subunit/tests/__init__.py
%%PYTHON_SITELIBDIR%%/subunit/tests/sample-script.py
%%PYTHON_SITELIBDIR%%/subunit/tests/sample-two-script.py
%%PYTHON_SITELIBDIR%%/subunit/tests/test_test_protocol.py
%%PYTHON_SITELIBDIR%%/uuid.so
lib/samba4/libdcerpc.so
lib/samba4/libdcerpc.so.0
lib/samba4/libdcerpc_atsvc.so
lib/samba4/libdcerpc_atsvc.so.0
lib/samba4/libdcerpc_samr.so
lib/samba4/libdcerpc_samr.so.0
lib/samba4/libgensec.so
lib/samba4/libgensec.so.0
lib/samba4/libldb.so
lib/samba4/libldb.so.0
lib/samba4/libndr.so
lib/samba4/libndr.so.0
lib/samba4/libregistry.so
lib/samba4/libregistry.so.0
lib/samba4/libsamba-hostconfig.so
lib/samba4/libsamba-hostconfig.so.0
lib/samba4/libsamba-util.so
lib/samba4/libsamba-util.so.0
lib/samba4/libtorture.so
lib/samba4/libtorture.so.0
libdata/pkgconfig/dcerpc.pc
libdata/pkgconfig/dcerpc_atsvc.pc
libdata/pkgconfig/dcerpc_samr.pc
libdata/pkgconfig/gensec.pc
libdata/pkgconfig/ldb.pc
libdata/pkgconfig/ndr.pc
libdata/pkgconfig/registry.pc
libdata/pkgconfig/samba-hostconfig.pc
libdata/pkgconfig/torture.pc
%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Attributes.txt
%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Classes.txt
%%DATADIR%%/setup/ad-schema/licence.txt
%%DATADIR%%/setup/DB_CONFIG
%%DATADIR%%/setup/aggregate_schema.ldif
%%DATADIR%%/setup/cn=replicator.ldif
%%DATADIR%%/setup/cn=samba-admin.ldif
%%DATADIR%%/setup/cn=samba.ldif
%%DATADIR%%/setup/display_specifiers.ldif
%%DATADIR%%/setup/enableaccount
%%DATADIR%%/setup/fedora-ds-init.ldif
%%DATADIR%%/setup/fedorads-partitions.ldif
%%DATADIR%%/setup/fedorads.inf
%%DATADIR%%/setup/idmap_init.ldif
%%DATADIR%%/setup/krb5.conf
%%DATADIR%%/setup/memberof.conf
%%DATADIR%%/setup/mmr_serverids.conf
%%DATADIR%%/setup/mmr_syncrepl.conf
%%DATADIR%%/setup/modules.conf
%%DATADIR%%/setup/named.conf
%%DATADIR%%/setup/named.txt
%%DATADIR%%/setup/newuser
%%DATADIR%%/setup/olc_acl.conf
%%DATADIR%%/setup/olc_mmr.conf
%%DATADIR%%/setup/olc_pass.conf
%%DATADIR%%/setup/olc_seed.ldif
%%DATADIR%%/setup/olc_serverid.conf
%%DATADIR%%/setup/olc_syncrepl.conf
%%DATADIR%%/setup/olc_syncrepl_seed.conf
%%DATADIR%%/setup/phpldapadmin-config.php
%%DATADIR%%/setup/prefixMap.txt
%%DATADIR%%/setup/provision
%%DATADIR%%/setup/provision-backend
%%DATADIR%%/setup/provision.ldif
%%DATADIR%%/setup/provision.reg
%%DATADIR%%/setup/provision.smb.conf.dc
%%DATADIR%%/setup/provision.smb.conf.member
%%DATADIR%%/setup/provision.smb.conf.standalone
%%DATADIR%%/setup/provision.zone
%%DATADIR%%/setup/provision_basedn.ldif
%%DATADIR%%/setup/provision_basedn_modify.ldif
%%DATADIR%%/setup/provision_computers_add.ldif
%%DATADIR%%/setup/provision_computers_modify.ldif
%%DATADIR%%/setup/provision_configuration.ldif
%%DATADIR%%/setup/provision_configuration_basedn.ldif
%%DATADIR%%/setup/provision_configuration_basedn_modify.ldif
%%DATADIR%%/setup/provision_group_policy.ldif
%%DATADIR%%/setup/provision_init.ldif
%%DATADIR%%/setup/provision_partitions.ldif
%%DATADIR%%/setup/provision_rootdse_add.ldif
%%DATADIR%%/setup/provision_rootdse_modify.ldif
%%DATADIR%%/setup/provision_schema_basedn.ldif
%%DATADIR%%/setup/provision_schema_basedn_modify.ldif
%%DATADIR%%/setup/provision_self_join.ldif
%%DATADIR%%/setup/provision_templates.ldif
%%DATADIR%%/setup/provision_templates_init.ldif
%%DATADIR%%/setup/provision_users.ldif
%%DATADIR%%/setup/provision_users_add.ldif
%%DATADIR%%/setup/provision_users_modify.ldif
%%DATADIR%%/setup/refint.conf
%%DATADIR%%/setup/schema-map-fedora-ds-1.0
%%DATADIR%%/setup/schema-map-openldap-2.3
%%DATADIR%%/setup/schema_samba4.ldif
%%DATADIR%%/setup/secrets.ldif
%%DATADIR%%/setup/secrets_dc.ldif
%%DATADIR%%/setup/secrets_init.ldif
%%DATADIR%%/setup/secrets_sasl_ldap.ldif
%%DATADIR%%/setup/secrets_simple_ldap.ldif
%%DATADIR%%/setup/setexpiry
%%DATADIR%%/setup/setpassword
%%DATADIR%%/setup/share.ldif
%%DATADIR%%/setup/slapd.conf
%%DATADIR%%/setup/upgrade
%%DATADIR%%/lowcase.dat
%%DATADIR%%/upcase.dat
%%DATADIR%%/valid.dat
@dirrm %%DATADIR%%/setup/ad-schema
@dirrm %%DATADIR%%/setup
@dirrm %%DATADIR%%
@dirrm lib/samba4/modules
@dirrm lib/samba4
@dirrm %%PYTHON_SITELIBDIR%%/subunit/tests
@dirrm %%PYTHON_SITELIBDIR%%/subunit
@dirrm %%PYTHON_SITELIBDIR%%/samba/torture
@dirrm %%PYTHON_SITELIBDIR%%/samba/tests/dcerpc
@dirrm %%PYTHON_SITELIBDIR%%/samba/tests
@dirrm %%PYTHON_SITELIBDIR%%/samba/dcerpc
@dirrm %%PYTHON_SITELIBDIR%%/samba
@dirrmtry %%PYTHON_SITELIBDIR%%
@dirrm include/samba4/util
@dirrm include/samba4/samba
@dirrm include/samba4/gen_ndr
@dirrm include/samba4/dcerpc_server
@dirrm include/samba4/core
@dirrm include/samba4