pkgsrc/net/samba/Makefile

172 lines
5.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.181 2008/04/12 22:43:08 jlam Exp $
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
.include "Makefile.mirrors"
DISTNAME= samba-${VERSION}
CATEGORIES= net
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
MASTER_SITES= ${SAMBA_MIRRORS:=old-versions/}
.include "Makefile.patches"
MAINTAINER= jlam@pkgsrc.org
Update samba to 2.2.0. Changes from version 2.0.9 include: * Integration between Windows oplocks and NFS file opens (IRIX and Linux 2.4 kernel only). This gives complete data and locking integrity between Windows and UNIX file access to the same data files. * Ability to act as an authentication source for Windows 2000 clients as well as for NT4.x clients. * Integration with the winbind daemon that provides a single sign on facility for UNIX servers in Windows 2000/NT4 networks driven by a Windows 2000/NT4 PDC. * Support for native Windows 2000/NT4 printing RPCs. This includes support for automatic printer driver download. * Support for server supported Access Control Lists (ACLs). * On PAM (Pluggable Authentication Module) based systems - better debugging messages and encrypted password users now have access control verified via PAM - Note: Authentication still uses the encrypted password database. * Rewritten internal locking semantics for more robustness. This release supports full 64 bit locking semantics on all (even 32 bit) platforms. SMB locks are mapped onto POSIX locks (32 bit or 64 bit) as the underlying system allows. * Conversion of various internal flat data structures to use database records for increased performance and flexibility. * Support for acting as a MS-DFS (Distributed File System) server. * Support for manipulating Samba shares using Windows client tools (server manager). Per share security can be set using these tools and Samba will obey the access restrictions applied. * Samba profiling support * Compile time option for enabling a (Virtual file system) VFS layer to allow non-disk resources to be exported as Windows filesystems (such as databases etc.).
2001-05-14 20:56:15 +02:00
HOMEPAGE= http://www.samba.org/
COMMENT= SMB/CIFS protocol server suite
Update samba to 2.2.0. Changes from version 2.0.9 include: * Integration between Windows oplocks and NFS file opens (IRIX and Linux 2.4 kernel only). This gives complete data and locking integrity between Windows and UNIX file access to the same data files. * Ability to act as an authentication source for Windows 2000 clients as well as for NT4.x clients. * Integration with the winbind daemon that provides a single sign on facility for UNIX servers in Windows 2000/NT4 networks driven by a Windows 2000/NT4 PDC. * Support for native Windows 2000/NT4 printing RPCs. This includes support for automatic printer driver download. * Support for server supported Access Control Lists (ACLs). * On PAM (Pluggable Authentication Module) based systems - better debugging messages and encrypted password users now have access control verified via PAM - Note: Authentication still uses the encrypted password database. * Rewritten internal locking semantics for more robustness. This release supports full 64 bit locking semantics on all (even 32 bit) platforms. SMB locks are mapped onto POSIX locks (32 bit or 64 bit) as the underlying system allows. * Conversion of various internal flat data structures to use database records for increased performance and flexibility. * Support for acting as a MS-DFS (Distributed File System) server. * Support for manipulating Samba shares using Windows client tools (server manager). Per share security can be set using these tools and Samba will obey the access restrictions applied. * Samba profiling support * Compile time option for enabling a (Virtual file system) VFS layer to allow non-disk resources to be exported as Windows filesystems (such as databases etc.).
2001-05-14 20:56:15 +02:00
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
VERSION= 3.0.28a
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
CONFLICTS+= ja-samba-[0-9]* pam-smbpass-[0-9]* tdb-[0-9]* \
winbind-[0-9]*
MAKE_JOBS_SAFE= NO
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/${DISTNAME}/source
GNU_CONFIGURE= yes
BUILD_DEFS+= VARBASE
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= samba
SAMBA_ETCDIR?= ${PKG_SYSCONFDIR}
SAMBA_LIBDIR?= ${PREFIX}/lib/samba
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
SAMBA_LOCKDIR?= ${SAMBA_VARDIR}/run/samba
SAMBA_LOGDIR?= ${SAMBA_VARDIR}/log
SAMBA_PIDDIR?= ${SAMBA_VARDIR}/run
SAMBA_PRIVATE?= ${SAMBA_ETCDIR}/private
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
SAMBA_STATEDIR?= ${SAMBA_VARDIR}/db/samba
SAMBA_VARDIR?= ${VARBASE}
WINBINDD_RCD_SCRIPT= # empty
FILES_SUBST+= SAMBA_ETCDIR=${SAMBA_ETCDIR:Q}
FILES_SUBST+= SAMBA_LOCKDIR=${SAMBA_LOCKDIR:Q}
FILES_SUBST+= SAMBA_LOGDIR=${SAMBA_LOGDIR:Q}
FILES_SUBST+= SAMBA_PIDDIR=${SAMBA_PIDDIR:Q}
FILES_SUBST+= SAMBA_PRIVATE=${SAMBA_PRIVATE:Q}
FILES_SUBST+= SAMBA_STATEDIR=${SAMBA_STATEDIR:Q}
FILES_SUBST+= SAMBA_VARDIR=${SAMBA_VARDIR:Q}
FILES_SUBST+= WINBINDD_RCD_SCRIPT=${WINBINDD_RCD_SCRIPT:Q}
CONFIGURE_ARGS+= --with-configdir=${SAMBA_ETCDIR:Q}
CONFIGURE_ARGS+= --with-libdir=${SAMBA_LIBDIR:Q}
CONFIGURE_ARGS+= --with-lockdir=${SAMBA_LOCKDIR:Q}
CONFIGURE_ARGS+= --with-logfilebase=${SAMBA_LOGDIR:Q}
CONFIGURE_ARGS+= --with-piddir=${SAMBA_PIDDIR:Q}
CONFIGURE_ARGS+= --with-privatedir=${SAMBA_PRIVATE:Q}
CONFIGURE_ARGS+= --with-statedir=${SAMBA_STATEDIR:Q}
CONFIGURE_ARGS+= --localstatedir=${SAMBA_VARDIR:Q}
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
CONFIGURE_ARGS+= --with-mandir=${PREFIX:Q}/${PKGMANDIR:Q}
CONFIGURE_ARGS+= --with-swatdir=${PREFIX:Q}/share/samba/swat
CONFIGURE_ARGS+= --with-included-popt
.include "../../converters/libiconv/buildlink3.mk"
CONFIGURE_ARGS+= --with-libiconv=${BUILDLINK_PREFIX.iconv}
USE_GNU_READLINE= yes
.include "../../devel/readline/buildlink3.mk"
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
.include "options.mk"
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
# Only Linux supports mount.cifs for mounting a CIFS share into the
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
# filesystem.
#
PLIST_VARS+= cifsmount
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
.if ${OPSYS} == "Linux"
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
CONFIGURE_ARGS+= --with-cifsmount
PLIST.cifsmount= yes
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
.endif
# 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+= mktemp
# findsmb uses perl
#
USE_TOOLS+= perl:run
REPLACE_PERL= script/findsmb.in
.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}
DOCDIR= share/doc/${PKGBASE}
EGDIR= share/examples/${PKGBASE}
INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR}
CONF_FILES= ${PREFIX}/${EGDIR}/smb.conf.default ${SAMBA_ETCDIR}/smb.conf
MAKE_DIRS= ${SAMBA_VARDIR} ${SAMBA_LOGDIR} ${SAMBA_PIDDIR}
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
OWN_DIRS= ${SAMBA_ETCDIR} ${SAMBA_LOCKDIR} ${SAMBA_STATEDIR}
OWN_DIRS_PERMS= ${SAMBA_PRIVATE} ${ROOT_USER} ${ROOT_GROUP} 0700
Update net/samba to 3.0.20.2 from samba-3.0.20b. Recommended patches for samba-3.0.20b that are applied as part of this update include: http://www.samba.org/samba/patches/print_lprm.patch http://www.samba.org/samba/patches/quota.patch http://www.samba.org/samba/patches/bug3201_wbinfo.patch This fixes PRs pkg/31352 and pkg/31991. Important changes that were made as part of porting this Samba release to pkgsrc include the following: * The new release model for Samba includes distributing patches for urgent bug fixes that will be included in the next release of Samba, and are available at http://www.samba.org/samba/patches/. Since these patches are rather generically named, we download all DISTFILES and PATCHFILES for Samba into a ${DISTNAME}-specific directory. * The default configuration for the samba package no longer builds the "winbind" portions of samba, which are really only useful when attempting to unify logons between Unix and Microsoft Windows. When the "winbind" option is specified, we also build the RID and AD idmap backends, which allow sharing UIDs/GIDs across Unix machines. * New package options have been added to the build: "mysql", "pgsql", and "xml" allow adding optional support for experimental passdb storage backends, and "winbind" allows for optionally building the winbindd daemon and associated plugins. * Two new smb.conf options were added -- "passwd expand gecos" and "state directory". The first describes whether "&" in the GECOS field of a passwd db entry is expanded to the login name. The second describes the location where the persistent-state database files are stored. * Luke Mewburn contributed code to allow nss_winbind.so to work properly on supported NetBSD systems. The FreeBSD NSS winbind code should probably be replaced with a suitably tweaked version of the NetBSD code since the latter is much more complete in the functions that are provided, but I'll leave that to freebsd-pkg-people. * Samba dumps all of its files into "lock directory", but some of them need to persist across reboots. We make a distinction between these files and the temporary files that are re-created by the Samba daemons when they are restarted -- the former are now stored in a "state directory" and the latter are stored in the "lock directory". This is modeled after the Debian patch to Samba located in: packaging/Debian/debian-unstable/patches/fhs.patch The "lock directory" default has been moved to ${VARBASE}/run/samba to emphasize the temporary status of the files stored in that directory. * Samba persists in using PAM_AUTHTOK_RECOVER_ERR, when there is almost universal agreement that PAM_AUTHTOK_RECOVERY_ERR is the right constant to use. Even the Linux-PAM distribution ensures that PAM_AUTHTOK_RECOVERY_ERR is correctly defined. To work around this, we define PAM_AUTHTOK_RECOVER_ERR appropriately in all the places where it is used. * The configure script checks for OpenSSL's libcrypto.so by looking for the symbol "des_set_key". However, libcrypto.so might not contain that symbol because the DES functions might come from a separate library, e.g. libdes.so. In this case, the configure script will think that libcrypto.so is not available, when it actually may be. Instead, look for EVP_des_cbc, which is always provided by libcrypto.so. * Add some missing $(PASSDB_LIBS) references to the Makefile to fix compilation problems if the experimental passdb backends are statically compiled into the Samba suite programs. * Fix compilation problems in sam/idmap_rid.c and sam/idmap_ad.c if the "rid" and "ad" idmap backends are statically compiled into winbindd. Changes between version 3.0.14a and 3.0.20b include: o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects o Crash bugs caused by incompatibilities on 64-bit systems. o User Manager interoperability problems. o Support for several new Win32 rpc pipes. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options.
2005-11-14 09:05:27 +01:00
RCD_SCRIPTS+= samba nmbd smbd ${WINBINDD_RCD_SCRIPT}
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKDIR}/adduser.sh ${WRKDIR}/deluser.sh
SUBST_SED.paths+= -e 's,@AWK@,${AWK},g' -e 's,@CAT@,${CAT},g'
SUBST_SED.paths+= -e 's,@MKTEMP@,${MKTEMP},g' -e 's,@RM@,${RM},g'
SUBST_SED.paths+= -e 's,@PWD_MKDB@,${PWD_MKDB},g' -e 's,@SH@,${SH},g'
SUBST_STAGE.paths= post-patch
# Get the shared library major and minors for the installed shared
# libraries. We'll need these to create the versioned symlinks for
# the shared libraries because samba Makefile doesn't do it on its
# own.
#
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
SAMBA_LIBS= smbclient msrpc smbsharemodes addns
.PHONY: install-samba-lib-symlinks
.for l in ${SAMBA_LIBS}
. for NUM in MAJOR MINOR
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
LIB${NUM}_cmd.${l}= ${AWK} -F= '/^LIB${l:tu}_${NUM}/ { print $$2; }' \
${WRKSRC:Q}/Makefile.in
LIB${NUM}.${l}= ${LIB${NUM}_cmd.${l}:sh}
PLIST_SUBST+= LIB${NUM}.${l}=${LIB${NUM}.${l}}
. endfor
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
SAMBA_VERSIONS.${l}= ${LIBMAJOR.${l}} ${LIBMAJOR.${l}}.${LIBMINOR.${l}}
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
.PHONY: install-samba-lib-symlinks-${l}
install-samba-lib-symlinks: install-samba-lib-symlinks-${l}
install-samba-lib-symlinks-${l}:
for v in ${SAMBA_VERSIONS.${l}}; do \
cd ${DESTDIR}${SAMBA_LIBDIR} && \
rm -f lib${l}.so.$$v && \
ln -s lib${l}.so lib${l}.so.$$v; \
done
.endfor
post-extract:
${CP} ${FILESDIR}/adduser.sh ${FILESDIR}/deluser.sh ${WRKDIR}
post-install: install-samba-lib-symlinks
${RMDIR} ${DESTDIR}${PREFIX}/share/samba/swat/js
${RMDIR} ${DESTDIR}${PREFIX}/share/samba/swat/lang/ja/include
${RMDIR} ${DESTDIR}${PREFIX}/share/samba/swat/lang/ja/images
${RMDIR} ${DESTDIR}${PREFIX}/share/samba/swat/lang/ja/js
${RMDIR} ${DESTDIR}${PREFIX}/share/samba/swat/lang/tr/include
${RMDIR} ${DESTDIR}${PREFIX}/share/samba/swat/lang/tr/js
for d in idmap pdb rpc; do \
${RMDIR} ${DESTDIR}${SAMBA_LIBDIR}/$$d; \
Update net/samba to 3.0.7. Changes from version 3.0.5 include: o Fixes for two Denial of Service vulnerabalities (CVE ID# CAN-2004-0807 & CAN-2004-0808). o Winbind failure to return user entries under certain conditions. o Syntax errors in the OpenLDAP schema file (samba.schema). o Printing errors caused by not setting default values for the various printing commands. * Disable 'winbind enable local accounts' by default. o Schannel failure in winbindd. o Incompatibilities between the 'write list' and 'force user' smb.conf options. o Premature optimization of the open_directory() internal function that broke tools such as the ArcServe backup agent, Macromedia HomeSite, and Robocopy. o Sharing violation errors commonly seen when opening when serving Microsoft Office documents from a Samba file share. o Browsing problems caused by an apostrophe (') in the computer's description field. o Problems creating special file types from UNIX CIFS clients and enabling 'unix extensions'. o Fix stalls in smbd caused by inaccessible LDAP servers. o Remove various memory leaks. o Fix issues in the password lockout feature. o Using a cups server other than localhost. o Maintaining the service principal entry in the system keytab for integration with other kerberized services. Please refer to the 'use kerberos keytab' entry in smb.conf(5). When using the heimdal kerberos libraries, you must also specify the following in /etc/krb5.conf: [libdefaults] default_keytab_name = FILE:/etc/krb5.keytab o Support for maintaining individual printer names stored separately from the printer's sharename. o Support for maintaining user password history. o Support for honoring the logon times for user in a Samba domain. * Reintroduce 'force unknown acl user' parameter. When getting a security descriptor for a file, if the owner sid is not known, the owner uid is set to the current uid. Same for group sid.
2004-09-14 19:18:05 +02:00
done
cd ${WRKDIR}/${DISTNAME}/docs/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
cd ${WRKDIR}/${DISTNAME}/examples; \
${INSTALL_DATA} LDAP/samba.schema ${DESTDIR}${PREFIX}/${EGDIR}; \
${INSTALL_DATA} smb.conf.default ${DESTDIR}${PREFIX}/${EGDIR}
cd ${WRKSRC}/script; ${INSTALL_SCRIPT} mknissmbpasswd.sh ${DESTDIR}${PREFIX}/${EGDIR}
cd ${WRKSRC}/script; ${INSTALL_SCRIPT} mknissmbpwdtbl.sh ${DESTDIR}${PREFIX}/${EGDIR}
cd ${WRKSRC}/script; ${INSTALL_SCRIPT} mksmbpasswd.sh ${DESTDIR}${PREFIX}/${EGDIR}
cd ${WRKSRC}/script; ${INSTALL_SCRIPT} updatesmbpasswd.sh ${DESTDIR}${PREFIX}/${EGDIR}
Update samba to version 3.0.28a. CHANGES FOR PKGSRC: ================== Makefile: + Modify section that manually handles the ELF symlinks for samba shared libraries -- add additional libraries that are built (addns, smbsharemodes) and reorganize so we don't need two loops where one will do. + Pass --with-included-popt to the configure script to force using the popt distribution included with samba to avoid any library mismatch errors between samba and any installed popt. This fixes PR pkg/34444 by Jason Lingohr. + Don't build the smbmount programs on Linux -- they're deprecated in favor of the mount.cifs programs. + Remove some pkgviews-related settings -- I'm not supporting pkgviews installation of samba. Makefile.patches: + Empty out PATCHFILES because we are updating to the latest release of samba, which has all previous patches for security advisories already rolled into the main sources. Makefile.mirrors: + Update SAMBA_MIRRORS in Makefile.mirrors to the latest list of FTP mirrors. options.mk: + Only show the ``acl'' option on platforms that actually support POSIX ACLs. + Add a new ``fam'' option to enable building the notify_fam VFS module. patch-ab, patch-ax: + Remove patch-ab and update patch-ax -- there's nothing for the scripts to back up so we don't need to patch the install* scripts to avoid this. patch-ae, patch-ah: + Update patch-ae and remove patch-ah -- we should definitely check that PAM_AUTHTOK_RECOVERY_ERR is defined before using its value to define PAM_AUTHTOK_RECOVER_ERR. patch-at, patch-au: + Fix patch-at and patch-au -- in configure.in, we need to "escape" left and right brackets or else m4 will strip them away in the resulting configure script. This should fix the detection of FreeBSD and NetBSD systems capable of using nss_winbind noted in PR pkg/38076 by Ingo Meyer. patch-ay: + Remove some unnecessary changes -- we can safely just do "mkdir" in some places because we know the parent and any intermediate directories exist. patch-be: + Fix a bug in locating WINS_LIST -- nmbd/nmbd_winsserver.c was referring to WINS_LIST under the state directory in one place and under the lock directory in another; change all references to be under the state directory. patch-db: + Add patch to fix the build of samba on older BSDs. Patch supplied in PR pkg/37487 by John Frear. All remaining changes to patches/patch-* are simply to remove fuzz. MAJOR CHANGES FROM VERSION 3.0.26a: * Fix failure to join Windows 2008 domains. * Fix Windows Vista (including SP1 RC) inter-op issues. * Add a new ``administrative share'' service parameter for defining hidden shares that cannot be managed from Windows. * Fix for CVS-2007-6015 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-5398 (already fixed in 3.0.26anb4 in pkgsrc). * Fix for CVS-2007-4572 (already fixed in 3.0.26anb4 in pkgsrc). Also subsequent fix for regression experienced by smbfs clients caused by the fix for CVS-2007-4572, noted in PR pkg/38300 by Dave Barnes. * Many other bugs fixed and memory leaks plugged.
2008-04-03 22:19:42 +02:00
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/include/libmsrpc.h \
${DESTDIR}${PREFIX}/include/libsmbclient.h
.include "../../mk/bsd.pkg.mk"