pkgsrc/net/samba/Makefile.common
martti b9a43fba61 Updated samba to 2.2.7
A security hole has been discovered in versions 2.2.2 through 2.2.6
of Samba that could potentially allow an attacker to gain root access
on the target machine.  The word "potentially" is used because there
is no known exploit of this bug, and the Samba Team has not been able to
craft one ourselves. However, the seriousness of the problem warrants
this immediate 2.2.7 release.

1)  ensure we send the notify message in the same way it is expected
    to be received by srv_spoolss_receive_message().
2)  attribute matching on truncate only matters when opening truncate
    with current SYSTEM|HIDDEN -> NONE. It's fine to truncate on open
    with current NONE -> SYSTEM | HIDDEN.
3)  Fix bug in rpcclient's deldriver command
4)  Don't set global_machine_password_needs_changing if
    lp_machine_password_timeout() is set to zero
5)  don't parse the BUFFER5 if the buffer length is zero
6)  fix core dump if pdbedit is run as non-root or smbpasswd file does
    not exist
7)  Ensure can_delete() returns correct error code
8)  correctly return NT_STATUS_DELETE_PENDING from open code
9)  fix bug that assumed dos_unistr2 length was in ucs2 units, not bytes
10) check the long_archi name is not null when deleting a printer driver.
    fixes core dump in smbd when using rpcclient's deldriver
11) fix fd leak with kernel change notify on Linux 2.4 kernels
12) must add one to the extra_data size to transfer the 0 string
    terminator.  This was causing "wbinfo --sequence" to access past the
    end of malloced memory
13) fix for large systems allowing more than 65536 files open in
    NTcreate&X
14) Fix bug in %U expansion
2002-11-21 08:09:07 +00:00

64 lines
2 KiB
Makefile

# $NetBSD: Makefile.common,v 1.4 2002/11/21 08:09:08 martti Exp $
DISTNAME= samba-${SAMBA_DIST_VERS}
SAMBA_DIST_VERS= 2.2.7
WRKSRC?= ${WRKDIR}/${DISTNAME}/source
CATEGORIES?= net
MASTER_SITES= ftp://ftp.samba.org/pub/samba/ \
ftp://ring.asahi-net.or.jp/pub/net/samba/ \
ftp://samba.anu.edu.au/pub/samba/ \
http://de.samba.org/samba/ftp/ \
ftp://ftp.sunet.se/pub/unix/utilities/samba/
COUNTRY_MIRRORS= au1 ca fi fr de it pl ru sg se us1 us6
.for COUNTRY in ${COUNTRY_MIRRORS}
MASTER_SITES+= ftp://${COUNTRY}.samba.org/pub/samba/
.endfor
EXTRACT_SUFX= .tar.bz2
DISTINFO_FILE?= ${.CURDIR}/../../net/samba/distinfo
PATCHDIR?= ${.CURDIR}/../../net/samba/patches
GNU_CONFIGURE= # defined
USE_LIBTOOL= # defined
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= samba
VARDIR?= /var
SAMBA_ETCDIR?= ${PKG_SYSCONFDIR}
SAMBA_DATADIR= ${PREFIX}/share
SAMBA_LOCKDIR?= ${VARDIR}/db/samba
SAMBA_LOGDIR?= ${VARDIR}/log
SAMBA_PIDDIR?= ${VARDIR}/run
SAMBA_PRIVATE?= ${SAMBA_ETCDIR}/private
CONFIGURE_ARGS+= --localstatedir=${VARDIR}
CONFIGURE_ARGS+= --sbindir=${PREFIX}/sbin
CONFIGURE_ARGS+= --with-configdir=${SAMBA_ETCDIR}
CONFIGURE_ARGS+= --with-codepagedir=${SAMBA_DATADIR}/samba/codepages
CONFIGURE_ARGS+= --with-datadir=${SAMBA_DATADIR}
CONFIGURE_ARGS+= --with-lockdir=${SAMBA_LOCKDIR}
CONFIGURE_ARGS+= --with-logfilebase=${SAMBA_LOGDIR}
CONFIGURE_ARGS+= --with-piddir=${SAMBA_PIDDIR}
CONFIGURE_ARGS+= --with-privatedir=${SAMBA_PRIVATE}
CONFIGURE_ARGS+= --with-swatdir=${SAMBA_DATADIR}/samba/swat
CONFIGURE_ARGS+= --without-readline
CONFIGURE_ARGS+= --without-ssl
CONFIGURE_ENV+= ac_cv_lib_curses_tgetent=no
CONFIGURE_ARGS+= --disable-cups
CONFIGURE_ARGS+= --without-pam
CONFIGURE_ARGS+= --without-winbind
# The following are Linux-only options.
CONFIGURE_ARGS+= --without-smbwrapper
CONFIGURE_ARGS+= --without-smbmount
FILES_SUBST= SAMBA_PRIVATE=${SAMBA_PRIVATE}
FILES_SUBST+= SAMBA_LOCKDIR=${SAMBA_LOCKDIR}
FILES_SUBST+= SAMBA_LOGDIR=${SAMBA_LOGDIR}
FILES_SUBST+= SAMBA_ETCDIR=${SAMBA_ETCDIR}