aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba3
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2006-04-05 11:14:27 +0800
committermnag <mnag@FreeBSD.org>2006-04-05 11:14:27 +0800
commitc7c9067575c9209deb038a9fa86f4eca7b210e76 (patch)
tree06a177c99810e43e4238596245d52decaaaf1ce0 /net/samba3
parent70a57403573aaa9950983a3aec63e72dfca41774 (diff)
downloadfreebsd-ports-gnome-c7c9067575c9209deb038a9fa86f4eca7b210e76.tar.gz
freebsd-ports-gnome-c7c9067575c9209deb038a9fa86f4eca7b210e76.tar.zst
freebsd-ports-gnome-c7c9067575c9209deb038a9fa86f4eca7b210e76.zip
- Update to 3.0.22
PR: 95325 Submitted by: maintainer Security: http://us5.samba.org/samba/security/CAN-2006-1059.html, CVE-2006-1059
Diffstat (limited to 'net/samba3')
-rw-r--r--net/samba3/Makefile35
-rw-r--r--net/samba3/distinfo6
-rw-r--r--net/samba3/files/patch-Makefile.in30
-rw-r--r--net/samba3/files/patch-configure.in28
-rw-r--r--net/samba3/files/samba.sh.sample2
-rw-r--r--net/samba3/pkg-plist2
6 files changed, 61 insertions, 42 deletions
diff --git a/net/samba3/Makefile b/net/samba3/Makefile
index 354d4ddca4d8..31695d7d3527 100644
--- a/net/samba3/Makefile
+++ b/net/samba3/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= samba
-PORTVERSION?= 3.0.21b
+PORTVERSION?= 3.0.22
PORTREVISION?= 0
PORTEPOCH?= 1
CATEGORIES?= net
@@ -70,10 +70,11 @@ OPTIONS= LDAP "With LDAP support" on \
SAM_XML "With XML smbpasswd backend" off \
SAM_MYSQL "With MYSQL smbpasswd backend" off \
SAM_PGSQL "With PostgreSQL smbpasswd backend" off \
- SAM_OLD_LDAP "With Samba2.x LDAP smbpasswd backend" off \
+ SAM_OLD_LDAP "With Samba2.x LDAP legacy smbpasswd backend" off \
+ SMBSH "With SMBSH wrapper for UNIX commands" off \
PAM_SMBPASS "With SMB PAM module" off \
EXP_MODULES "With experimental module(s)" off \
- POPT "With installed POPT library" on
+ POPT "With system-wide POPT library" on
.endif
.include <bsd.port.pre.mk>
@@ -82,7 +83,8 @@ OPTIONS= LDAP "With LDAP support" on \
# Switch off all extra functionality
CONFIGURE_ARGS+= --disable-cups --without-winbind --without-syslog \
--without-quotas --without-utmp --without-ldapsam \
- --without-pam --without-pam_smbpass --without-aio-support
+ --without-pam --without-pam_smbpass \
+ --without-aio-support
# Dirty hack to work around usage of OPTIONS in slave ports
.if exists(${.CURDIR}/Makefile.inc)
@@ -204,14 +206,22 @@ PLIST_SUB+= SMBPASS="@comment "
.if defined(WITH_ACL_SUPPORT)
.if ${OSVERSION} < 500018
-BROKEN= "ACL support requires FreeBSD 5.x at least after 20010326"
+BROKEN= ACL support requires FreeBSD 5.x at least after 20010326
.else
CONFIGURE_ARGS+= --with-acl-support
.endif
.endif
+.if defined(WITH_SMBSH)
+IGNORE= broken IPC and code
+CONFIGURE_ARGS+= --with-smbwrapper
+PLIST_SUB+= SMBSH=""
+.else
+PLIST_SUB+= SMBSH="@comment "
+.endif
+
.if defined(WITH_AIO_SUPPORT)
-# Yes, it doesn't work for now
+IGNORE= broken kernel API until now (7-CURRENT)
CONFIGURE_ARGS+= --without-aio-support
.endif
@@ -269,12 +279,14 @@ CONFIGURE_ARGS+= --without-ldap
# Samba server itself
MAN1= findsmb.1 log2pcap.1 nmblookup.1 ntlm_auth.1 profiles.1 \
rpcclient.1 smbcacls.1 smbclient.1 smbcontrol.1 smbcquotas.1 \
- smbget.1 smbsh.1 smbstatus.1 smbtar.1 smbtree.1 testparm.1 \
- vfstest.1
+ smbget.1 smbstatus.1 smbtar.1 smbtree.1 testparm.1 vfstest.1
MAN5= lmhosts.5 smb.conf.5 smbgetrc.5 smbpasswd.5
MAN7= samba.7
MAN8= net.8 nmbd.8 pdbedit.8 smbd.8 smbpasswd.8 smbspool.8 \
swat.8 tdbbackup.8 tdbdump.8
+.if defined(WITH_SMBSH)
+MAN1+= smbsh.1
+.endif
.if !defined(WITHOUT_WINBIND)
MAN1+= wbinfo.1
MAN7+= pam_winbind.7
@@ -351,9 +363,14 @@ post-install:
${ECHO_CMD} "${SAMBA_LIB}/pam_winbind.so" >> ${TMPPLIST};
.endif
.if defined(WITH_PAM_SMBPASS)
- @${INSTALL_PROGRAM} ${WRKSRC}/bin/pam_smbpass.so ${SAMBA_LIBDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/pam_smbpass.so ${SAMBA_LIBDIR}
${ECHO_CMD} "${SAMBA_LIB}/pam_smbpass.so" >> ${TMPPLIST};
.endif
+# smbwrapper.so
+.if defined(WITH_SMBSH)
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/smbsh ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/smbwrapper.so ${SAMBA_LIBDIR}/samba
+.endif
# Lib
@${FIND} ${SAMBA_LIBDIR}/samba -type f | ${SED} -E 's|^${PREFIX}/?||;' | ${EGREP} -F -v -f ${WRKDIR}/.PLIST.exclude | ${SORT} >> ${TMPPLIST}
@for d in `${FIND} ${SAMBA_LIBDIR}/samba -type d | ${SORT} -r`; do \
diff --git a/net/samba3/distinfo b/net/samba3/distinfo
index f93283b55c5b..2920a34317da 100644
--- a/net/samba3/distinfo
+++ b/net/samba3/distinfo
@@ -1,3 +1,3 @@
-MD5 (samba-3.0.21b.tar.gz) = bb73dffb33f4a39386ef9f3e07ae28ff
-SHA256 (samba-3.0.21b.tar.gz) = a5e6982024105276d347b3b521897d6937c727e273814e743ada8eddf972e7d0
-SIZE (samba-3.0.21b.tar.gz) = 17539079
+MD5 (samba-3.0.22.tar.gz) = 5c39505af17cf5caf3d6ed8bab135036
+SHA256 (samba-3.0.22.tar.gz) = 781466885804343248afb74dfdd57df0c7165b252ded06a71c0f24827b2a8e2d
+SIZE (samba-3.0.22.tar.gz) = 17542657
diff --git a/net/samba3/files/patch-Makefile.in b/net/samba3/files/patch-Makefile.in
index 009b68c5fc0a..b54c7080f851 100644
--- a/net/samba3/files/patch-Makefile.in
+++ b/net/samba3/files/patch-Makefile.in
@@ -1,30 +1,6 @@
---- Makefile.in.orig Wed Dec 14 13:45:49 2005
-+++ Makefile.in Sun Jan 1 03:35:30 2006
-@@ -676,6 +676,7 @@
-
- CAC_PICOBJS = $(CAC_OBJ:.o=.@PICSUFFIX@)
-
-+NSS_VERSION=1
-
- PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
- pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
-@@ -1172,13 +1173,13 @@
- @WINBIND_NSS@: $(WINBIND_NSS_PICOBJS)
- @echo "Linking $@"
- @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS) \
-- @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`
-+ @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`.$(NSS_VERSION)
-
- @WINBIND_WINS_NSS@: $(WINBIND_WINS_NSS_PICOBJS)
- @echo "Linking $@"
- @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_PICOBJS) \
- $(LDAP_LIBS) $(KRB5LIBS) -lc \
-- @SONAMEFLAG@`basename $@`
-+ @SONAMEFLAG@`basename $@`.$(NSS_VERSION)
-
- nsswitch/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_PICOBJ) bin/.dummy
- @echo "Linking $@"
-@@ -1389,7 +1390,7 @@
+--- Makefile.in.orig Mon Feb 20 21:33:23 2006
++++ Makefile.in Sat Feb 25 05:30:42 2006
+@@ -1390,7 +1390,7 @@
bin/t_snprintf@EXEEXT@: lib/snprintf.c
$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(DYNEXP) -DTEST_SNPRINTF lib/snprintf.c -lm
diff --git a/net/samba3/files/patch-configure.in b/net/samba3/files/patch-configure.in
index 952ff5f3d895..cfd1e4745069 100644
--- a/net/samba3/files/patch-configure.in
+++ b/net/samba3/files/patch-configure.in
@@ -1,6 +1,6 @@
---- configure.in.orig Mon Jan 30 15:45:07 2006
-+++ configure.in Sun Feb 19 07:00:42 2006
-@@ -967,6 +967,21 @@
+--- configure.in.orig Mon Feb 20 21:33:23 2006
++++ configure.in Sat Feb 25 05:34:56 2006
+@@ -968,6 +968,21 @@
AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type])
fi
@@ -22,3 +22,25 @@
AC_CACHE_CHECK([for struct timespec type],samba_cv_struct_timespec, [
AC_TRY_COMPILE([
#include <sys/types.h>
+@@ -1408,7 +1423,6 @@
+ DYNEXP="-Wl,--export-dynamic"
+ PICFLAGS="-fPIC"
+ SONAMEFLAG="-Wl,-soname="
+- SONAMEVERSIONSUFFIX=".2"
+ AC_DEFINE(STAT_ST_BLOCKSIZE,512)
+ ;;
+ *solaris*) AC_DEFINE(SUNOS5,1,[Whether the host os is solaris])
+@@ -4911,11 +4925,13 @@
+
+ case "$host_os" in
+ *linux*)
++ SONAMEVERSIONSUFFIX=".2"
+ WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
+ ;;
+ *freebsd[[5-9]]*)
+ # FreeBSD winbind client is implemented as a wrapper around
+ # the Linux version.
++ SONAMEVERSIONSUFFIX=".1"
+ WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \
+ nsswitch/winbind_nss_linux.o"
+ WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT"
diff --git a/net/samba3/files/samba.sh.sample b/net/samba3/files/samba.sh.sample
index ad4fc591fde1..df4490137893 100644
--- a/net/samba3/files/samba.sh.sample
+++ b/net/samba3/files/samba.sh.sample
@@ -88,6 +88,7 @@ command_args="-s ${samba_config}"
load_rc_config $name
run_rc_command "$1"
+_rc_restart_done=false
# smbd
name=smbd
@@ -103,6 +104,7 @@ command_args="-s ${samba_config}"
load_rc_config $name
run_rc_command "$1"
+%%WINBIND%%_rc_restart_done=false
%%WINBIND%%
%%WINBIND%%# winbindd
%%WINBIND%%name=winbindd
diff --git a/net/samba3/pkg-plist b/net/samba3/pkg-plist
index 160ba6bb0688..9a2799f28472 100644
--- a/net/samba3/pkg-plist
+++ b/net/samba3/pkg-plist
@@ -21,6 +21,7 @@ bin/tdbbackup
bin/tdbdump
bin/tdbtool
bin/testparm
+%%SMBSH%%bin/smbsh
%%WINBIND%%bin/wbinfo
@unexec %D/etc/rc.d/samba.sh forcestop 2>/dev/null || true
etc/rc.d/samba.sh
@@ -592,6 +593,7 @@ share/swat/help/using_samba/inx.html
share/swat/help/using_samba/samba2_s.gif
share/swat/help/using_samba/samba2_xs.gif
share/swat/help/using_samba/toc.html
+share/swat/help/welcome-no-samba-doc.html
share/swat/help/welcome.html
share/swat/images/globals.gif
share/swat/images/home.gif