head	1.24;
access;
symbols
	pkgsrc-2013Q2:1.24.0.42
	pkgsrc-2013Q2-base:1.24
	pkgsrc-2012Q4:1.24.0.40
	pkgsrc-2012Q4-base:1.24
	pkgsrc-2011Q4:1.24.0.38
	pkgsrc-2011Q4-base:1.24
	pkgsrc-2011Q2:1.24.0.36
	pkgsrc-2011Q2-base:1.24
	pkgsrc-2009Q4:1.24.0.34
	pkgsrc-2009Q4-base:1.24
	pkgsrc-2008Q4:1.24.0.32
	pkgsrc-2008Q4-base:1.24
	pkgsrc-2008Q3:1.24.0.30
	pkgsrc-2008Q3-base:1.24
	cube-native-xorg:1.24.0.28
	cube-native-xorg-base:1.24
	pkgsrc-2008Q2:1.24.0.26
	pkgsrc-2008Q2-base:1.24
	pkgsrc-2008Q1:1.24.0.24
	pkgsrc-2008Q1-base:1.24
	pkgsrc-2007Q4:1.24.0.22
	pkgsrc-2007Q4-base:1.24
	pkgsrc-2007Q3:1.24.0.20
	pkgsrc-2007Q3-base:1.24
	pkgsrc-2007Q2:1.24.0.18
	pkgsrc-2007Q2-base:1.24
	pkgsrc-2007Q1:1.24.0.16
	pkgsrc-2007Q1-base:1.24
	pkgsrc-2006Q4:1.24.0.14
	pkgsrc-2006Q4-base:1.24
	pkgsrc-2006Q3:1.24.0.12
	pkgsrc-2006Q3-base:1.24
	pkgsrc-2006Q2:1.24.0.10
	pkgsrc-2006Q2-base:1.24
	pkgsrc-2006Q1:1.24.0.8
	pkgsrc-2006Q1-base:1.24
	pkgsrc-2005Q4:1.24.0.6
	pkgsrc-2005Q4-base:1.24
	pkgsrc-2005Q3:1.24.0.4
	pkgsrc-2005Q3-base:1.24
	pkgsrc-2005Q2:1.24.0.2
	pkgsrc-2005Q2-base:1.24
	pkgsrc-2005Q1:1.19.0.2
	pkgsrc-2005Q1-base:1.19
	pkgsrc-2004Q4:1.16.0.2
	pkgsrc-2004Q4-base:1.16
	pkgsrc-2004Q3:1.14.0.2
	pkgsrc-2004Q3-base:1.14
	pkgsrc-2004Q2:1.12.0.2
	pkgsrc-2004Q2-base:1.12
	pkgsrc-2004Q1:1.11.0.2
	pkgsrc-2004Q1-base:1.11
	pkgsrc-2003Q4:1.8.0.2
	pkgsrc-2003Q4-base:1.8
	buildlink2-base:1.8
	pkgsrc-base:1.1.1.2
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.24
date	2005.06.08.08.58.15;	author salo;	state dead;
branches;
next	1.23;

1.23
date	2005.06.06.13.25.12;	author salo;	state Exp;
branches;
next	1.22;

1.22
date	2005.06.03.22.54.44;	author jlam;	state Exp;
branches;
next	1.21;

1.21
date	2005.06.02.09.48.43;	author salo;	state Exp;
branches;
next	1.20;

1.20
date	2005.04.11.21.46.59;	author tv;	state Exp;
branches;
next	1.19;

1.19
date	2005.02.07.11.35.45;	author jlam;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2005.01.14.05.15.39;	author jlam;	state Exp;
branches;
next	1.17;

1.17
date	2004.12.28.02.47.48;	author reed;	state Exp;
branches;
next	1.16;

1.16
date	2004.11.15.14.41.17;	author kim;	state Exp;
branches;
next	1.15;

1.15
date	2004.10.03.00.17.58;	author tv;	state Exp;
branches;
next	1.14;

1.14
date	2004.08.07.08.18.38;	author jdolecek;	state Exp;
branches;
next	1.13;

1.13
date	2004.06.27.19.44.23;	author abs;	state Exp;
branches;
next	1.12;

1.12
date	2004.04.21.21.09.33;	author cube;	state Exp;
branches;
next	1.11;

1.11
date	2004.03.26.02.27.49;	author wiz;	state Exp;
branches;
next	1.10;

1.10
date	2004.02.06.19.04.25;	author jlam;	state Exp;
branches;
next	1.9;

1.9
date	2004.01.11.00.44.35;	author jlam;	state Exp;
branches;
next	1.8;

1.8
date	99.02.18.11.51.56;	author bouyer;	state dead;
branches;
next	1.7;

1.7
date	99.02.11.17.11.33;	author bouyer;	state Exp;
branches;
next	1.6;

1.6
date	99.01.29.10.40.03;	author bouyer;	state Exp;
branches;
next	1.5;

1.5
date	99.01.21.15.07.59;	author bouyer;	state Exp;
branches;
next	1.4;

1.4
date	99.01.09.20.49.27;	author kleink;	state Exp;
branches;
next	1.3;

1.3
date	98.12.17.12.42.07;	author bouyer;	state Exp;
branches;
next	1.2;

1.2
date	98.12.11.12.05.44;	author bouyer;	state Exp;
branches;
next	1.1;

1.1
date	98.11.27.12.48.26;	author bouyer;	state Exp;
branches
	1.1.1.1;
next	;

1.19.2.1
date	2005.06.08.01.29.22;	author snj;	state Exp;
branches;
next	;

1.1.1.1
date	98.11.27.12.48.26;	author bouyer;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.01.11.00.41.12;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.24
log
@Remove samba2 packages, abandonware.
@
text
@# $NetBSD: Makefile,v 1.23 2005/06/06 13:25:12 salo Exp $

.include "Makefile.common"

MAINTAINER=		tech-pkg@@NetBSD.org
HOMEPAGE=		http://www.samba.org/
PKGREVISION=		2
COMMENT=		SMB/CIFS protocol server suite for UNIX

USE_PKGINSTALL=		yes
INSTALL_EXTRA_TMPL+=	${.CURDIR}/INSTALL

USE_GNU_READLINE=	# uses rl_event_hook interface to GNU readline
CONFIGURE_ARGS+=	--with-readline

CONFIGURE_ARGS+=	--with-ssl
CONFIGURE_ARGS+=	--with-sslinc=${SSLBASE}
CFLAGS+=		-I${SSLBASE}/include/openssl	# ssl.h, err.h

REPLACE_PERL+=		script/findsmb.in

.include "options.mk"

# Microsoft DFS support
CONFIGURE_ARGS+=	--with-msdfs

MESSAGE_SUBST+=		SAMBA_PRIVATE=${SAMBA_PRIVATE}
MESSAGE_SUBST+=		ROOT_GROUP=${ROOT_GROUP}
MESSAGE_SUBST+=		ROOT_USER=${ROOT_USER}

DOCDIR=			${PREFIX}/share/doc/${PKGBASE}
EXAMPLESDIR=		${PREFIX}/share/examples/${PKGBASE}

CONF_FILES=		${EXAMPLESDIR}/smb.conf.default ${SAMBA_ETCDIR}/smb.conf
SUPPORT_FILES_PERMS=	${SMBPASSWD_FILE}
SUPPORT_FILES_PERMS+=	${EXAMPLESDIR}/adduser.sh ${SAMBA_ETCDIR}/adduser \
			${ROOT_USER} ${ROOT_GROUP} 0555
SUPPORT_FILES_PERMS+=	${EXAMPLESDIR}/deluser.sh ${SAMBA_ETCDIR}/deluser \
			${ROOT_USER} ${ROOT_GROUP} 0555
RCD_SCRIPTS=		samba nmbd smbd
OWN_DIRS=		${SAMBA_ETCDIR} ${SAMBA_LOCKDIR}
OWN_DIRS_PERMS=		${SAMBA_PRIVATE} ${ROOT_USER} ${ROOT_GROUP} 0500

# 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

.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}

.include "../../devel/readline/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"

# Remove irrelevant files for this package.
post-extract:
	${FIND} ${WRKDIR}/${DISTNAME} -name ".cvsignore" -print |	\
		${XARGS} ${RM} -f
	${RM} -r ${WRKDIR}/${DISTNAME}/docs/textdocs/outdated
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/VFS
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/appliance
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/autofs
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/dce-dfs
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/libsmbclient
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/svr4-startup

post-build:
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/adduser.sh > ${WRKDIR}/adduser.sh
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/deluser.sh > ${WRKDIR}/deluser.sh

post-install:
	# Install Samba documentation.
	${INSTALL_DATA_DIR} ${DOCDIR}
	cd ${WRKDIR}/${DISTNAME}/docs;				\
	for f in announce textdocs/* Registry/*.reg; do		\
		${INSTALL_DATA} $$f ${DOCDIR};			\
	done

	# Install Samba examples.
	${INSTALL_DATA_DIR} ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKDIR}/adduser.sh ${EXAMPLESDIR}/adduser.sh
	${INSTALL_SCRIPT} ${WRKDIR}/deluser.sh ${EXAMPLESDIR}/deluser.sh
	${CP} -R ${WRKDIR}/${DISTNAME}/examples/* ${EXAMPLESDIR}
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
	${CHMOD} -R ugo-w ${EXAMPLESDIR}

	${INSTALL_SCRIPT} ${WRKSRC}/script/convert_smbpasswd		\
		${EXAMPLESDIR}/misc
	${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh		\
		${PREFIX}/sbin/mksmbpasswd

.include "../../mk/bsd.pkg.mk"
@


1.23
log
@Security fixes for CAN-2004-0882, CAN-2004-0930 and CAN-2004-1154.
Patches adapted from SuSE.

Functionality not tested beyond simple smbclient operations.
This package is marked for removal before next stable branch is cut.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2005/06/03 22:54:44 jlam Exp $
@


1.22
log
@Teach the tools framework about mktemp.  Replace explicit tests for
mktemp with USE_TOOLS+=mktemp in the samba packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2005/06/02 09:48:43 salo Exp $
a3 1
PKGREVISION=		# empty1
d7 1
a7 1
PKGREVISION=		1
@


1.21
log
@delint.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2005/04/11 21:46:59 tv Exp $
d45 5
a49 5
.if !defined(MKTEMP)
MKTEMP!=	${TYPE} mktemp 2>&1 | \
		${AWK} '/not found/ { print "mktemp"; exit } { print $$3 }'
MAKEFLAGS+=	MKTEMP=${MKTEMP:Q}
.endif
@


1.20
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2005/02/07 11:35:45 jlam Exp $
d80 3
a82 3
	cd ${WRKDIR}/${DISTNAME}/docs;					\
	for file in announce textdocs/* Registry/*.reg; do		\
		${INSTALL_DATA} $$file ${DOCDIR};			\
@


1.19
log
@Instantly deprecate USE_PAM from pkgsrc as its value is being set from
within NetBSD-current's bsd.own.mk, which conflicts with its usage in
pkgsrc.  The package that use USE_PAM have been converted to use the
bsd.options.mk framework.  This should fix PR pkg/29257.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2005/01/14 05:15:39 jlam Exp $
a10 1
USE_BUILDLINK3=		yes
@


1.19.2.1
log
@Pullup ticket 544 - requested by Lubomir Sedlacik
security fix for samba2

Revisions pulled up:
- pkgsrc/net/samba2/Makefile		1.23
- pkgsrc/net/samba2/Makefile.common	1.7
- pkgsrc/net/samba2/distinfo		1.4, 1.5
- pkgsrc/net/samba2/patches/patch-ap	1.2

    Module Name:    pkgsrc
    Committed By:   wiz
    Date:           Wed May 25 13:15:40 UTC 2005

    Modified Files:
            pkgsrc/net/samba2: distinfo

    Log Message:
    Add RMD160 checksum.
----
    Module Name:    pkgsrc
    Committed By:   salo
    Date:           Mon Jun  6 13:25:12 UTC 2005

    Modified Files:
            pkgsrc/net/samba2: Makefile Makefile.common distinfo
            pkgsrc/net/samba2/patches: patch-ap

    Log Message:
    Security fixes for CAN-2004-0882, CAN-2004-0930 and CAN-2004-1154.
    Patches adapted from SuSE.

    Functionality not tested beyond simple smbclient operations.
    This package is marked for removal before next stable branch is cut.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2005/06/06 13:25:12 salo Exp $
d4 1
d8 1
a8 1
PKGREVISION=		2
@


1.18
log
@Create a pam.buildlink3.mk file that is used by PAM-using packages.
It includes the correct buildlink3.mk file from either Linux-PAM
(security/PAM) or OpenPAM (security/openpam) and eventually will
support solaris-pam.  pam.buildlink3.mk will:

	* set PAMBASE to the base directory of the PAM files;
	* set PAM_TYPE to the PAM implementation used.

There are two variables that can be used to tweak the selection of
the PAM implementation:

PAM_DEFAULT is a user-settable variable whose value is the default
	PAM implementation to use.

PAM_ACCEPTED is a package-settable list of PAM implementations
	that may be used by the package.

Modify most packages that include PAM/buildlink3.mk to include
pam.buildlink3.mk instead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/12/28 02:47:48 reed Exp $
d24 1
a24 23
.if defined(USE_CUPS) && (${USE_CUPS} == "YES")
.include "../../print/cups/buildlink3.mk"
BUILD_DEFS+=		USE_CUPS
CONFIGURE_ARGS+=	--enable-cups
.endif

.if defined(USE_PAM)
.include "../../mk/pam.buildlink3.mk"
BUILD_DEFS+=		USE_PAM
CONFIGURE_ARGS+=	--with-pam
.endif

.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == "YES"
.include "../../databases/openldap/buildlink3.mk"
BUILD_DEFS+=		USE_OPENLDAP
CONFIGURE_ARGS+=	--with-ldapsam
PLIST_SUBST+=		SAMBA_LDAP=""
.else
PLIST_SUBST+=		SAMBA_LDAP="@@comment "
MESSAGE_SRC=		${.CURDIR}/MESSAGE.smbpasswd
SMBPASSWD_FILE=		/dev/null ${SAMBA_PRIVATE}/smbpasswd		\
			${ROOT_USER} ${ROOT_GROUP} 0600
.endif
d59 3
a98 3
.include "../../devel/readline/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"

@


1.17
log
@The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2004/11/15 14:41:17 kim Exp $
d31 1
a31 1
.include "../../security/PAM/buildlink3.mk"
@


1.16
log
@I'm unable to maintain this package, as I'm no longer using it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2004/10/03 00:17:58 tv Exp $
d8 1
@


1.15
log
@Libtool fix for PR pkg/26633, and other issues.  Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2004/08/07 08:18:38 jdolecek Exp $
d6 1
a6 1
MAINTAINER=		kim@@tac.nyc.ny.us
@


1.14
log
@Update samba2 package to 2.2.10

Changes in 2.2.10:
A buffer overrun has been located in the code used to support
the 'mangling method = hash' smb.conf option.   Affected Samba
2.2 installations can avoid this possible security bug by using
the hash2 mangling method.  Server installations requiring
the hash mangling method are encouraged to upgrade to Samba v2.2.10
or v3.0.5.

Changes in 2.2.9:
This is a maintenance release of Samba 2.2.8a to address the
problem with user password changes after applying the Microsoft
hotfix described in KB828741 to Windows NT 4.0/200x/XP clients.

Also updated dependant packages pam-smbpass and winbind.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2004/06/27 19:44:23 abs Exp $
d4 1
a4 1
PKGREVISION=		# empty
@


1.13
log
@Update samba2 to samba-2.2.8anb8
    Fix PLIST - it seems to install in share/doc/samba2 not share/doc/samba
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2004/04/21 21:09:33 cube Exp $
d4 1
a4 1
PKGREVISION=		8
@


1.12
log
@Drop localized *_USE_LDAP definitions and consistently use USE_OPENLDAP
instead.  As announced on tech-pkg.

Most notably affected are Postfix, sendmail, Samba and cyrus-saslauthd.  Be
sure to update your mk.conf accordingly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2004/03/26 02:27:49 wiz Exp $
d4 1
a4 1
PKGREVISION=		7
@


1.11
log
@PKGREVISION bump after openssl-security-fix-update to 0.9.6m.
Buildlink files: RECOMMENDED version changed to current version.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2004/02/06 19:04:25 jlam Exp $
d35 1
a35 1
.if defined(SAMBA_USE_LDAP) && ${SAMBA_USE_LDAP} == "YES"
d37 1
a37 1
BUILD_DEFS+=		SAMBA_USE_LDAP
@


1.10
log
@If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2004/01/11 00:44:35 jlam Exp $
d4 1
a4 1
PKGREVISION=		6
@


1.9
log
@Fix conflicts.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.108 2004/01/11 00:33:03 jlam Exp $
d70 1
a70 1
MAKEFLAGS+=	MKTEMP="${MKTEMP}"
d75 1
a75 1
MAKEFLAGS+=	PWD_MKDB="${PWD_MKDB}"
@


1.8
log
@has been moved to ../samba.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1999/02/11 17:11:33 bouyer Exp $
d3 2
a4 3
DISTNAME=	samba-2.0.2
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.samba.org/pub/samba/
d6 3
a8 2
MAINTAINER=	bouyer@@netbsd.org
HOMEPAGE=	http://www.samba.org/
d10 3
a12 1
CONFLICTS=      samba-1.* samba-2.0.0beta* samba-2.0.0
d14 2
a15 2
WRKSRC=		${WRKDIR}/${DISTNAME}/source
GNU_CONFIGURE=	yes
d17 3
a19 1
.include "../../mk/bsd.prefs.mk"
d21 1
a21 6
STARTUP_SCRIPT=	${PREFIX}/etc/rc.d/samba.sh.sample
SAMPLE_CONFIG=	${PREFIX}/share/examples/smb.conf.sample
SAMBA_LOGDIR=	/var/log
SAMBA_LOCKDIR=	/var/run/samba
SAMBA_ETCDIR?=	/etc/samba
SAMBA_PRIVATE?=	${SAMBA_ETCDIR}/private
d23 11
a33 2
MAKE_ENV+=	ETCDIR=${SAMBA_ETCDIR}
MAKE_ENV+=	LOGDIR=${SAMBA_LOGDIR}
d35 11
a45 3
CONFIGURE_ARGS+= --with-swatdir=${PREFIX}/share/swat \
	--with-lockdir=${SAMBA_LOCKDIR} \
	--with-privatedir=${SAMBA_PRIVATE}
d47 48
a94 1
PLIST_SRC= ${WRKDIR}/.PLIST-src
d97 5
a101 7
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/samba/faq
	${MKDIR} ${PREFIX}/share/doc/samba/textdocs
	for i in ${WRKDIR}/${DISTNAME}/docs/NT4_PlainPassword.reg \
	    ${WRKDIR}/${DISTNAME}/docs/Win95_PlainPassword.reg \
	    ${WRKDIR}/${DISTNAME}/docs/THANKS ; do \
		${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba; \
d103 16
a118 38
	for i in ${WRKDIR}/${DISTNAME}/docs/faq/* ; do \
		${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/faq; \
	done
	for i in ${WRKDIR}/${DISTNAME}/docs/textdocs/* ; do \
		${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/textdocs; \
	done
.endif
	@@${ECHO} "Installing ${STARTUP_SCRIPT} startup file.";           \
	${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT};                        \
	${ECHO} 'smbd=${PREFIX}/sbin/smbd' >> ${STARTUP_SCRIPT};        \
	${ECHO} 'nmbd=${PREFIX}/sbin/nmbd' >> ${STARTUP_SCRIPT};        \
	${ECHO} 'if [ -f $$smbd ]; then' >> ${STARTUP_SCRIPT};          \
	${ECHO} "       ${ECHO} -n ' Samba'" >> ${STARTUP_SCRIPT};      \
	${ECHO} '       $$smbd -D' >> ${STARTUP_SCRIPT};                \
	${ECHO} '       $$nmbd -D' >> ${STARTUP_SCRIPT};                \
	${ECHO} "fi" >> ${STARTUP_SCRIPT};                              \
	chmod 755 ${STARTUP_SCRIPT};                                    \
	chown bin:bin ${STARTUP_SCRIPT};
	@@if [ ! -f ${SAMPLE_CONFIG} ]; then                             \
		${SED} -e 's:__LOGDIR__:${SAMBA_LOGDIR}:g'              \
		-e 's:__ETCDIR__:${SAMBA_ETCDIR}:g'			\
		-e 's:__PREFIX__:${PREFIX}:g'				\
			${FILESDIR}/smb.conf.sample                     \
			> ${SAMPLE_CONFIG} ;                            \
	fi
	${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin
	if [ ! -d ${SAMBA_PRIVATE} ] ; then				\
		${MKDIR} ${SAMBA_PRIVATE} ;				\
		chown root:wheel ${SAMBA_PRIVATE} ;			\
		chmod 700 ${SAMBA_PRIVATE} ;				\
	fi
	if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then                   \
		${CAT} /etc/passwd | ${PREFIX}/bin/mksmbpasswd.sh	\
			> ${SAMBA_PRIVATE}/smbpasswd ;			\
		chmod 600 ${SAMBA_PRIVATE}/smbpasswd ;                  \
	fi
	${SED} -e 's:__SAMBA_PRIVATE__:${SAMBA_PRIVATE}:g' ${PKGDIR}/PLIST \
		> ${PLIST_SRC}
@


1.7
log
@Upgrade to samba 2.0.2. While I'm these clean up a few things:
- use configure arguments instead of make variables for some path, and
  Makefile.in patch
- move smb.conf.sample to share/examples/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1999/01/29 10:40:03 bouyer Exp $
@


1.6
log
@Use wilcards for CONFLICTS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1999/01/21 15:07:59 bouyer Exp $
d3 1
a3 1
DISTNAME=	samba-2.0.0
d10 1
a10 1
CONFLICTS=      samba-1.* samba-2.0.0beta* 
d18 1
a18 1
SAMPLE_CONFIG=	${PREFIX}/etc/smb.conf.sample
d24 6
a29 2
MAKE_ENV+=	ETCDIR=${SAMBA_ETCDIR} PRIVATEDIR=${SAMBA_PRIVATE}
MAKE_ENV+=	LOGDIR=${SAMBA_LOGDIR} LOCKDIR=${SAMBA_LOCKDIR}
@


1.5
log
@Update to samba 2.0.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1999/01/09 20:49:27 kleink Exp $
d10 1
a10 1
CONFLICTS=      samba-1.9.18p8 samba-1.9.18p10 samba-2.0.0beta* 
@


1.4
log
@Get rid of obsolete chown(8) operand usage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 1998/12/17 12:42:07 bouyer Exp $
d3 1
a3 1
DISTNAME=	samba-2.0.0beta4
d5 1
a5 1
MASTER_SITES=	ftp://ftp.samba.org/pub/samba/beta/
d10 1
a10 2
CONFLICTS=      samba-1.9.18p8 samba-1.9.18p10 samba-2.0.0beta2 \
		samba-2.0.0beta3
@


1.3
log
@Update to beta4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 1998/11/27 12:48:26 bouyer Exp $
d56 1
a56 1
	chown bin.bin ${STARTUP_SCRIPT};
d67 1
a67 1
		chown root.wheel ${SAMBA_PRIVATE} ;			\
@


1.2
log
@Update to 2.0 beta3
@
text
@d3 1
a3 1
DISTNAME=	samba-2.0.0beta3
d10 2
a11 1
CONFLICTS=      samba-1.9.18p8 samba-1.9.18p10 samba-2.0.0beta2
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: $
d3 1
a3 1
DISTNAME=	samba-2.0.0beta2
d10 1
a10 1
CONFLICTS=      samba-1.9.18p8 samba-1.9.18p10
d24 1
a24 1
MAKE_ENV+=	ETCDIR=${SAMBA_ETCDIR} PRIVDIR=${SAMBA_PRIVATE}
@


1.1.1.1
log
@Package for samba 2.0.0 (beta 2 for now).
@
text
@@


1.1.1.2
log
@Reimport net/samba as net/samba2.  net/samba2 will continue to track the
2.x release of Samba, which net/samba will track post-2.x releases of
Samba.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.108 2004/01/11 00:33:03 jlam Exp $
d3 3
a5 2
.include "Makefile.common"
PKGREVISION=		6
d7 2
a8 3
MAINTAINER=		kim@@tac.nyc.ny.us
HOMEPAGE=		http://www.samba.org/
COMMENT=		SMB/CIFS protocol server suite for UNIX
d10 1
a10 3
USE_BUILDLINK3=		yes
USE_PKGINSTALL=		yes
INSTALL_EXTRA_TMPL+=	${.CURDIR}/INSTALL
d12 2
a13 2
USE_GNU_READLINE=	# uses rl_event_hook interface to GNU readline
CONFIGURE_ARGS+=	--with-readline
d15 1
a15 3
CONFIGURE_ARGS+=	--with-ssl
CONFIGURE_ARGS+=	--with-sslinc=${SSLBASE}
CFLAGS+=		-I${SSLBASE}/include/openssl	# ssl.h, err.h
d17 6
a22 1
REPLACE_PERL+=		script/findsmb.in
d24 2
a25 56
.if defined(USE_CUPS) && (${USE_CUPS} == "YES")
.include "../../print/cups/buildlink3.mk"
BUILD_DEFS+=		USE_CUPS
CONFIGURE_ARGS+=	--enable-cups
.endif

.if defined(USE_PAM)
.include "../../security/PAM/buildlink3.mk"
BUILD_DEFS+=		USE_PAM
CONFIGURE_ARGS+=	--with-pam
.endif

.if defined(SAMBA_USE_LDAP) && ${SAMBA_USE_LDAP} == "YES"
.include "../../databases/openldap/buildlink3.mk"
BUILD_DEFS+=		SAMBA_USE_LDAP
CONFIGURE_ARGS+=	--with-ldapsam
PLIST_SUBST+=		SAMBA_LDAP=""
.else
PLIST_SUBST+=		SAMBA_LDAP="@@comment "
MESSAGE_SRC=		${.CURDIR}/MESSAGE.smbpasswd
SMBPASSWD_FILE=		/dev/null ${SAMBA_PRIVATE}/smbpasswd		\
			${ROOT_USER} ${ROOT_GROUP} 0600
.endif

# Microsoft DFS support
CONFIGURE_ARGS+=	--with-msdfs

MESSAGE_SUBST+=		SAMBA_PRIVATE=${SAMBA_PRIVATE}
MESSAGE_SUBST+=		ROOT_GROUP=${ROOT_GROUP}
MESSAGE_SUBST+=		ROOT_USER=${ROOT_USER}

DOCDIR=			${PREFIX}/share/doc/${PKGBASE}
EXAMPLESDIR=		${PREFIX}/share/examples/${PKGBASE}

CONF_FILES=		${EXAMPLESDIR}/smb.conf.default ${SAMBA_ETCDIR}/smb.conf
SUPPORT_FILES_PERMS=	${SMBPASSWD_FILE}
SUPPORT_FILES_PERMS+=	${EXAMPLESDIR}/adduser.sh ${SAMBA_ETCDIR}/adduser \
			${ROOT_USER} ${ROOT_GROUP} 0555
SUPPORT_FILES_PERMS+=	${EXAMPLESDIR}/deluser.sh ${SAMBA_ETCDIR}/deluser \
			${ROOT_USER} ${ROOT_GROUP} 0555
RCD_SCRIPTS=		samba nmbd smbd
OWN_DIRS=		${SAMBA_ETCDIR} ${SAMBA_LOCKDIR}
OWN_DIRS_PERMS=		${SAMBA_PRIVATE} ${ROOT_USER} ${ROOT_GROUP} 0500

.if !defined(MKTEMP)
MKTEMP!=	${TYPE} mktemp 2>&1 | \
		${AWK} '/not found/ { print "mktemp"; exit } { print $$3 }'
MAKEFLAGS+=	MKTEMP="${MKTEMP}"
.endif
.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}"
.endif
FILES_SUBST+=	MKTEMP=${MKTEMP:Q}
FILES_SUBST+=	PWD_MKDB=${PWD_MKDB:Q}
d27 1
a27 15
# Remove irrelevant files for this package.
post-extract:
	${FIND} ${WRKDIR}/${DISTNAME} -name ".cvsignore" -print |	\
		${XARGS} ${RM} -f
	${RM} -r ${WRKDIR}/${DISTNAME}/docs/textdocs/outdated
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/VFS
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/appliance
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/autofs
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/dce-dfs
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/libsmbclient
	${RM} -r ${WRKDIR}/${DISTNAME}/examples/svr4-startup

post-build:
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/adduser.sh > ${WRKDIR}/adduser.sh
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/deluser.sh > ${WRKDIR}/deluser.sh
d30 13
a42 5
	# Install Samba documentation.
	${INSTALL_DATA_DIR} ${DOCDIR}
	cd ${WRKDIR}/${DISTNAME}/docs;					\
	for file in announce textdocs/* Registry/*.reg; do		\
		${INSTALL_DATA} $$file ${DOCDIR};			\
d44 32
a75 16

	# Install Samba examples.
	${INSTALL_DATA_DIR} ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKDIR}/adduser.sh ${EXAMPLESDIR}/adduser.sh
	${INSTALL_SCRIPT} ${WRKDIR}/deluser.sh ${EXAMPLESDIR}/deluser.sh
	${CP} -R ${WRKDIR}/${DISTNAME}/examples/* ${EXAMPLESDIR}
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
	${CHMOD} -R ugo-w ${EXAMPLESDIR}

	${INSTALL_SCRIPT} ${WRKSRC}/script/convert_smbpasswd		\
		${EXAMPLESDIR}/misc
	${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh		\
		${PREFIX}/sbin/mksmbpasswd

.include "../../devel/readline/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
@

