pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/pkgsrc-2004Q3]: pkgsrc/net/samba Pullup ticket 137 - requested by Jua...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9cb22b8a6d01
branches: pkgsrc-2004Q3
changeset: 480745:9cb22b8a6d01
user: salo <salo%pkgsrc.org@localhost>
date: Thu Nov 18 22:25:13 2004 +0000
description:
Pullup ticket 137 - requested by Juan Romero Pardines
security, build and usability fixes for samba
Module Name: pkgsrc
Committed By: jmmv
Date: Sat Nov 6 11:07:17 UTC 2004
Modified Files:
pkgsrc/net/samba: Makefile PLIST options.mk
Log Message:
When cups support is enabled, link smbspool into cups' backend directory
as smb (as the manual says). This enables samba printing through cups
(at least, the option appears in the web configuration form).
Bump PKGREVISION to 2.
---
Module Name: pkgsrc
Committed By: grant
Date: Tue Nov 9 08:21:27 UTC 2004
Modified Files:
pkgsrc/net/samba: Makefile PLIST distinfo
Log Message:
update to samba-3.0.8.
Common bugs fixed in 3.0.8 include:
o Compile fixes for HP-UX
o Fixes for the printer publishing code used when joined to
an AD domain.
o Incompatibilities with file system quotas.
o Several bugs in the spoolss printing code and print system
backends.
o Inconsistencies in the username map functionality when
configured on domain member servers.
o Various compile warnings and errors on various platforms.
o Fixes for kerberos interoperability with Windows 200x
domains when using DES keys.
o Fix for CAN-2004-0930 -- smbd remote DoS vulnerability.
New features included in the 3.0.8 release are:
o New migration functionality added the the net tool
for files/directories, printers, and shares.
o New experimental idmap backend for assigning uids/gids
directly based on the user/group RID when acting as a
member of single domain without any trusts.
o Additional printer migration support for XP/2003 platforms.
---
Module Name: pkgsrc
Committed By: sketch
Date: Fri Nov 12 08:42:58 UTC 2004
Modified Files:
pkgsrc/net/samba: Makefile
Log Message:
Use ${VARBASE} instead of hardcoding /var.
---
Module Name: pkgsrc
Committed By: kim
Date: Sat Nov 13 21:48:11 UTC 2004
Modified Files:
pkgsrc/net/samba: Makefile distinfo
Added Files:
pkgsrc/net/samba/patches: patch-ag
Log Message:
Fix full name expansion (again).
diffstat:
net/samba/Makefile | 10 +++++--
net/samba/PLIST | 9 ++-----
net/samba/distinfo | 7 +++--
net/samba/options.mk | 4 ++-
net/samba/patches/patch-ag | 54 ++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 71 insertions(+), 13 deletions(-)
diffs (170 lines):
diff -r 462c3766a488 -r 9cb22b8a6d01 net/samba/Makefile
--- a/net/samba/Makefile Mon Nov 15 21:28:21 2004 +0000
+++ b/net/samba/Makefile Thu Nov 18 22:25:13 2004 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.129 2004/09/14 17:18:05 jlam Exp $
+# $NetBSD: Makefile,v 1.129.2.1 2004/11/18 22:25:13 salo Exp $
-DISTNAME= samba-3.0.7
+DISTNAME= samba-3.0.8
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.samba.org/pub/samba/old-versions/ \
ftp://ring.asahi-net.or.jp/pub/net/samba/old-versions/ \
@@ -35,7 +36,7 @@
SAMBA_LOGDIR?= ${SAMBA_VARDIR}/log
SAMBA_PIDDIR?= ${SAMBA_VARDIR}/run
SAMBA_PRIVATE?= ${SAMBA_ETCDIR}/private
-SAMBA_VARDIR?= /var
+SAMBA_VARDIR?= ${VARBASE}
FILES_SUBST= SAMBA_ETCDIR=${SAMBA_ETCDIR}
FILES_SUBST+= SAMBA_LOCKDIR=${SAMBA_LOCKDIR}
@@ -145,5 +146,8 @@
${INSTALL_DATA} $${file} ${EGDIR}/pam_smbpass/$${file}; \
done
.endif
+.if !empty(PKG_OPTIONS:Mcups)
+ cd ${PREFIX}/libexec/cups/backend && ${LN} -s ../../../bin/smbspool smb
+.endif
.include "../../mk/bsd.pkg.mk"
diff -r 462c3766a488 -r 9cb22b8a6d01 net/samba/PLIST
--- a/net/samba/PLIST Mon Nov 15 21:28:21 2004 +0000
+++ b/net/samba/PLIST Thu Nov 18 22:25:13 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.24 2004/09/14 17:18:06 jlam Exp $
+@comment $NetBSD: PLIST,v 1.24.2.1 2004/11/18 22:25:13 salo Exp $
bin/findsmb
bin/net
bin/nmblookup
@@ -20,6 +20,7 @@
${SMBMOUNT}bin/smbumount
bin/tdbbackup
bin/tdbdump
+bin/tdbtool
bin/testparm
bin/testprns
bin/wbinfo
@@ -55,6 +56,7 @@
lib/samba/vfs/shadow_copy.so
${PAM}lib/security/pam_smbpass.so
${PAM}lib/security/pam_winbind.so
+${CUPS}libexec/cups/backend/smb
man/man1/editreg.1
man/man1/findsmb.1
man/man1/log2pcap.1
@@ -370,10 +372,6 @@
share/samba/swat/include/footer.html
share/samba/swat/include/header.html
share/samba/swat/lang/ja/help/welcome.html
-share/samba/swat/lang/ja/include/footer.html
-share/samba/swat/lang/ja/include/header.html
-share/samba/swat/lang/ja/include/header.nocss.html
-share/samba/swat/lang/ja/include/header_css.html
share/samba/swat/lang/tr/help/welcome.html
share/samba/swat/lang/tr/images/globals.gif
share/samba/swat/lang/tr/images/home.gif
@@ -383,7 +381,6 @@
share/samba/swat/lang/tr/images/shares.gif
share/samba/swat/lang/tr/images/status.gif
share/samba/swat/lang/tr/images/viewconfig.gif
-share/samba/swat/lang/tr/include/header.html
share/samba/swat/using_samba/appa.html
share/samba/swat/using_samba/appb.html
share/samba/swat/using_samba/appc.html
diff -r 462c3766a488 -r 9cb22b8a6d01 net/samba/distinfo
--- a/net/samba/distinfo Mon Nov 15 21:28:21 2004 +0000
+++ b/net/samba/distinfo Thu Nov 18 22:25:13 2004 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.36 2004/09/15 08:51:29 adam Exp $
+$NetBSD: distinfo,v 1.36.2.1 2004/11/18 22:25:13 salo Exp $
-SHA1 (samba-3.0.7.tar.gz) = 7eff8b831e49bbed2cebfc368af55715c7abf635
-Size (samba-3.0.7.tar.gz) = 15012667 bytes
+SHA1 (samba-3.0.8.tar.gz) = 63b6264a3cd3117c8b820e0bf8c8b2c59c8cb820
+Size (samba-3.0.8.tar.gz) = 15101353 bytes
SHA1 (patch-ab) = c5f352a07774b8e2873c2ac3b3de3ba4cb12bf5e
SHA1 (patch-ac) = fc0d15f371a9c3544499f6a6cd830b52b34ff644
SHA1 (patch-ad) = b75770eb6fc7ff5d26764fced83e26fd6cf153af
SHA1 (patch-ae) = cf3a040f04142df534abe54b66156a48697b665d
SHA1 (patch-af) = bc0cead8f8350001e5291443821e875bab540fc3
+SHA1 (patch-ag) = cce908577cf4007bb00b15f6dd7eee7d549ac5b0
diff -r 462c3766a488 -r 9cb22b8a6d01 net/samba/options.mk
--- a/net/samba/options.mk Mon Nov 15 21:28:21 2004 +0000
+++ b/net/samba/options.mk Thu Nov 18 22:25:13 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.3 2004/09/12 05:00:53 jlam Exp $
+# $NetBSD: options.mk,v 1.3.2.1 2004/11/18 22:25:13 salo Exp $
# Global and legacy options
.if defined(USE_CUPS) && !empty(USE_CUPS:M[yY][eE][sS])
@@ -53,8 +53,10 @@
.if !empty(PKG_OPTIONS:Mcups)
. include "../../print/cups/buildlink3.mk"
CONFIGURE_ARGS+= --enable-cups
+PLIST_SUBST+= CUPS=
.else
CONFIGURE_ARGS+= --disable-cups
+PLIST_SUBST+= CUPS="@comment "
.endif
###
diff -r 462c3766a488 -r 9cb22b8a6d01 net/samba/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/samba/patches/patch-ag Thu Nov 18 22:25:13 2004 +0000
@@ -0,0 +1,54 @@
+$NetBSD: patch-ag,v 1.3.6.1 2004/11/18 22:25:13 salo Exp $
+
+--- passdb/passdb.c.orig 2004-08-19 09:39:13.000000000 -0400
++++ passdb/passdb.c 2004-10-28 00:22:15.000000000 -0400
+@@ -246,6 +246,11 @@
+ NTSTATUS pdb_fill_sam_pw(SAM_ACCOUNT *sam_account, const struct passwd *pwd)
+ {
+ NTSTATUS ret;
++#ifdef BSD
++# define BUFLEN 1024
++ char *bp, *gecos, *p, buf[BUFLEN];
++ int buflen;
++#endif
+
+ if (!pwd) {
+ return NT_STATUS_UNSUCCESSFUL;
+@@ -254,7 +259,37 @@
+ pdb_fill_default_sam(sam_account);
+
+ pdb_set_username(sam_account, pwd->pw_name, PDB_SET);
++
++#ifdef BSD
++ gecos = pwd->pw_gecos;
++ if (*gecos == '*')
++ gecos++;
++ bp = buf;
++
++ /* copy gecos, interpolating & to be full name */
++ for (p = gecos; *p != '\0'; p++) {
++ if (bp >= &buf[BUFLEN - 1]) {
++ /* buffer overflow */
++ gecos = pwd->pw_name;
++ goto gecos_done;
++ }
++ if (*p == '&') {
++ /* interpolate full name */
++ snprintf(bp, BUFLEN - (bp - buf), "%s", pwd->pw_name);
++ *bp = toupper(*bp);
++ bp += strlen(bp);
++ }
++ else
++ *bp++ = *p;
++ }
++ *bp = '\0';
++ gecos = buf;
++
++ gecos_done:
++ pdb_set_fullname(sam_account, gecos, PDB_SET);
++#else
+ pdb_set_fullname(sam_account, pwd->pw_gecos, PDB_SET);
++#endif
+
+ pdb_set_unix_homedir(sam_account, pwd->pw_dir, PDB_SET);
+
Home |
Main Index |
Thread Index |
Old Index