c4e2ac6f93
Changes since 2.2.8: Digital Defense, Inc. has alerted the Samba Team to a serious vulnerability in all stable versions of Samba currently shipping. The Common Vulnerabilities and Exposures (CVE) project has assigned the ID CAN-2003-0201 to this defect. This vulnerability, if exploited correctly, leads to an anonymous user gaining root access on a Samba serving system. All versions of Samba up to and including Samba 2.2.8 are vulnerable. An active exploit of the bug has been reported in the wild.
63 lines
2 KiB
Text
63 lines
2 KiB
Text
# $NetBSD: Makefile.common,v 1.8 2003/04/07 16:30:47 cjep Exp $
|
|
|
|
DISTNAME= samba-${SAMBA_DIST_VERS}
|
|
SAMBA_DIST_VERS= 2.2.8a
|
|
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/ \
|
|
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}
|