summaryrefslogtreecommitdiff
path: root/net/ja-samba/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/ja-samba/Makefile')
-rw-r--r--net/ja-samba/Makefile33
1 files changed, 6 insertions, 27 deletions
diff --git a/net/ja-samba/Makefile b/net/ja-samba/Makefile
index 732d6ff92b3..1a04b1dbfd8 100644
--- a/net/ja-samba/Makefile
+++ b/net/ja-samba/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2005/01/14 05:15:39 jlam Exp $
+# $NetBSD: Makefile,v 1.33 2005/02/07 11:35:45 jlam Exp $
.include "Makefile.common"
@@ -30,29 +30,8 @@ CFLAGS+= -I${SSLBASE}/include/openssl # ssl.h, err.h
#
CONFIGURE_ARGS+= --with-included-gettext
-.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.common ${.CURDIR}/MESSAGE.smbpasswd
-SMBPASSWD_FILE= /dev/null ${SAMBA_PRIVATE}/smbpasswd \
- ${ROOT_USER} ${ROOT_GROUP} 0600
-.endif
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
# Microsoft DFS support
CONFIGURE_ARGS+= --with-msdfs
@@ -89,6 +68,9 @@ FILES_SUBST+= PWD_MKDB=${PWD_MKDB:Q}
REPLACE_PERL= script/findsmb.in
+.include "../../devel/readline/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+
# Remove irrelevant files for this package.
post-extract:
${FIND} ${WRKDIR}/${DISTNAME} -name ".cvsignore" -print | \
@@ -127,7 +109,4 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh \
${PREFIX}/sbin/mksmbpasswd
-.include "../../devel/readline/buildlink3.mk"
-.include "../../security/openssl/buildlink3.mk"
-
.include "../../mk/bsd.pkg.mk"