summaryrefslogtreecommitdiff
path: root/net/samba30
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2011-12-15 22:59:28 +0000
committerasau <asau@pkgsrc.org>2011-12-15 22:59:28 +0000
commit3c1d7cc465174bd68d921e162f139e7bdf0f129c (patch)
tree67357b66fa329abf314bae4f66069fb3d5e316d4 /net/samba30
parenta6d2faa1f5a0575552a64d39651aa6ddcc1bd64e (diff)
downloadpkgsrc-3c1d7cc465174bd68d921e162f139e7bdf0f129c.tar.gz
Adjust path for buildlink.
Use common files from net/samba just like other Samba packages do.
Diffstat (limited to 'net/samba30')
-rw-r--r--net/samba30/DESCR6
-rw-r--r--net/samba30/MESSAGE10
-rw-r--r--net/samba30/Makefile9
-rw-r--r--net/samba30/Makefile.mirrors28
-rw-r--r--net/samba30/buildlink3.mk4
-rw-r--r--net/samba30/files/adduser.sh161
-rw-r--r--net/samba30/files/deluser.sh68
-rwxr-xr-xnet/samba30/files/nmbd.sh21
-rw-r--r--net/samba30/files/samba.sh52
-rwxr-xr-xnet/samba30/files/smbd.sh32
-rw-r--r--net/samba30/files/winbindd.sh17
-rw-r--r--net/samba30/options.mk183
12 files changed, 8 insertions, 583 deletions
diff --git a/net/samba30/DESCR b/net/samba30/DESCR
deleted file mode 100644
index fec691f5722..00000000000
--- a/net/samba30/DESCR
+++ /dev/null
@@ -1,6 +0,0 @@
-Samba provides file and print services for Microsoft Windows clients.
-These services may be hosted off any TCP/IP-enabled platform. The
-Samba project includes not only an impressive feature set in file and
-print serving capabilities, but has been extended to include client
-functionality, utilities to ease migration to Samba, tools to aid
-interoperability with Microsoft Windows, and administration tools.
diff --git a/net/samba30/MESSAGE b/net/samba30/MESSAGE
deleted file mode 100644
index 3c05586dfb0..00000000000
--- a/net/samba30/MESSAGE
+++ /dev/null
@@ -1,10 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2011/12/15 22:23:23 asau Exp $
-
-When upgrading a Samba installation and "lock directory" has been set
-to a non-default value in the configuration files, then "state directory"
-needs to be set appropriately and/or the files located in the lock
-directory should be moved to the state directory. Please read the
-documentation on "state directory" in the smb.conf(5) manual page for
-more information.
-===========================================================================
diff --git a/net/samba30/Makefile b/net/samba30/Makefile
index 25145c511ef..c135980e00e 100644
--- a/net/samba30/Makefile
+++ b/net/samba30/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1.1.1 2011/12/15 22:23:23 asau Exp $
+# $NetBSD: Makefile,v 1.2 2011/12/15 22:59:28 asau Exp $
-.include "Makefile.mirrors"
+.include "../../net/samba/Makefile.mirrors"
DISTNAME= samba-${VERSION}
PKGREVISION= 7
@@ -21,6 +21,9 @@ MAKE_JOBS_SAFE= NO
PKG_DESTDIR_SUPPORT= user-destdir
+FILESDIR= ${PKGDIR}/../samba/files
+DESCR_SRC= ${PKGDIR}/../samba/DESCR
+MESSAGE_SRC= ${PKGDIR}/../samba/MESSAGE
WRKSRC= ${WRKDIR}/${DISTNAME}/source
GNU_CONFIGURE= yes
BUILD_DEFS+= VARBASE
@@ -67,7 +70,7 @@ USE_GNU_READLINE= yes
.include "../../devel/readline/buildlink3.mk"
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
-.include "options.mk"
+.include "../../net/samba/options.mk"
# Only Linux supports mount.cifs for mounting a CIFS share into the
# filesystem.
diff --git a/net/samba30/Makefile.mirrors b/net/samba30/Makefile.mirrors
deleted file mode 100644
index 5739b1d8f2f..00000000000
--- a/net/samba30/Makefile.mirrors
+++ /dev/null
@@ -1,28 +0,0 @@
-# $NetBSD: Makefile.mirrors,v 1.1.1.1 2011/12/15 22:23:23 asau Exp $
-#
-# This Makefile fragment contains the mirror sites for fetching Samba.
-
-###
-### This list was last updated on 20080403 from:
-### http://www.samba.org/samba/download/ftp_mirrors.html
-###
-SAMBA_MIRRORS= \
- ftp://ftp.easynet.be/samba/ \
- http://mirrors.uol.com.br/pub/samba/ \
- ftp://ca.samba.org/ \
- ftp://mirrors.dotsrc.org/samba/ \
- ftp://de3.samba.org/pub/samba/ \
- ftp://ftp.ntua.gr/pub/net/samba/ \
- ftp://ftp.hkmirror.org/pub/samba/sambaftp/ \
- ftp://ftp.heanet.ie/pub/samba/ \
- ftp://ftp.ring.gr.jp/pub/net/samba/ \
- ftp://ftp.samba.gr.jp/pub/samba/ \
- http://samba.osmirror.nl/samba/ftp/ \
- ftp://ftp.bit.nl/mirror/samba/ \
- ftp://www.bibsyst.no/pub/samba/ \
- ftp://pl.samba.org/pub/unix/net/samba/ \
- ftp://ftp.chg.ru/packages/samba/ \
- ftp://ftp.oss.eznetsols.org/samba/ \
- ftp://us5.samba.org/pub/samba-ftp/ \
- ftp://download.samba.org/pub/samba/ \
- http://download.samba.org/samba/ftp/
diff --git a/net/samba30/buildlink3.mk b/net/samba30/buildlink3.mk
index 619ca805161..eb240f06adb 100644
--- a/net/samba30/buildlink3.mk
+++ b/net/samba30/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/12/15 22:23:23 asau Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2011/12/15 22:59:28 asau Exp $
BUILDLINK_TREE+= samba
@@ -7,7 +7,7 @@ SAMBA_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.samba+= samba>=3.0.7
BUILDLINK_ABI_DEPENDS.samba?= samba>=3.0.34nb1
-BUILDLINK_PKGSRCDIR.samba?= ../../net/samba
+BUILDLINK_PKGSRCDIR.samba?= ../../net/samba30
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
diff --git a/net/samba30/files/adduser.sh b/net/samba30/files/adduser.sh
deleted file mode 100644
index 6d136a6f444..00000000000
--- a/net/samba30/files/adduser.sh
+++ /dev/null
@@ -1,161 +0,0 @@
-#!@SH@
-#
-# $NetBSD: adduser.sh,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
-#
-# This is an adduser script for NetBSD systems whose useradd(8) doesn't
-# accept "$" in the username. This script may be used for the
-# "add machine script" in smb.conf.
-
-awkprog="@AWK@"
-catprog="@CAT@"
-mktempprog="@MKTEMP@"
-pwdmkdbprog="@PWD_MKDB@"
-rmprog="@RM@"
-
-progname=adduser
-
-usage() {
- echo "Usage: $progname [-c comment] [-d homedir] [-n] [-r low..high]"
- echo " [-s shell] -g gid name"
- exit 1
-}
-
-isnum() {
- case "$1" in
- 0[0-9]*|*[!0-9]*)
- return 1
- ;;
- esac
- return 0
-}
-
-doit=""
-gid=""
-minuid=1000
-maxuid=60000
-comment=""
-homedir=""
-shell=/sbin/nologin
-
-while getopts c:d:g:nr:s: flag; do
- case $flag in
- c) comment="${OPTARG}" ;;
- d) homedir="${OPTARG}" ;;
- g) gid="${OPTARG}" ;;
- n) doit=":" ;;
- r) minuid=${OPTARG%%..*}; maxuid=${OPTARG##*..} ;;
- s) shell="${OPTARG}" ;;
- esac
-done
-shift `expr $OPTIND - 1`
-
-if [ $# -lt 1 ]; then
- usage
-fi
-
-name="$1"
-if [ -z "$gid" ]; then
- echo "$progname: \`-g gid' is a required option" 1>&2
- exit 1
-fi
-if ! isnum "$gid"; then
- echo "$progname: \`$gid' is not a valid gid" 1>&2
- exit 1
-fi
-if ! isnum "$minuid"; then
- echo "$progname: \`$minuid' is not a valid minimum uid" 1>&2
- exit 1
-fi
-if ! isnum "$maxuid"; then
- echo "$progname: \`$maxuid' is not a valid maximum uid" 1>&2
- exit 1
-fi
-if [ $minuid -gt $maxuid ]; then
- echo "$progname: \`$minuid..$maxuid' is not a valid range" 1>&2
- exit 1
-fi
-case "$comment" in
-*:*)
- echo "$progname: \`$comment' is not a valid comment" 1>&2
- exit 1
- ;;
-esac
-case "$homedir" in
-*:*)
- echo "$progname: \`$homedir' is not a valid home directory" 1>&2
- exit 1
- ;;
-%*)
- # This is an unsubstituted variable (probably %H in smbd).
- # Silently change this to a proper default.
- #
- homedir="/nonexistent"
- ;;
-esac
-case "$shell" in
-*:*)
- echo "$progname: \`$shell' is not a valid shell" 1>&2
- exit 1
- ;;
-esac
-case "$name" in
-*:*)
- echo "$progname: \`$name' is not a valid username" 1>&2
- exit 1
- ;;
-esac
-
-ptmp=`$mktempprog -q /etc/ptmp`
-case "$ptmp" in
-/etc/ptmp)
- ;;
-*)
- echo "$progname: can't create /etc/ptmp" 1>&2
- exit 1
- ;;
-esac
-
-if [ ! -f /etc/master.passwd ]; then
- echo "$progname: /etc/master.passwd not found" 1>&2
- $rmprog -f $ptmp
- exit 1
-fi
-
-$catprog /etc/master.passwd >> $ptmp
-
-uid=` \
- $awkprog -v minuid=$minuid -v maxuid=maxuid ' \
- BEGIN { FS = ":" } \
- { seen_uids[$3] = 1 } \
- END { \
- uid = minuid; \
- while (uid <= maxuid) { \
- if (uid in seen_uids) { \
- uid++; \
- continue; \
- } \
- print uid; \
- exit; \
- } \
- print -1; \
- }' $ptmp \
-`
-if [ $uid -lt 0 ]; then
- echo "$progname: no uid can be allocated in $minuid..$maxuid" 1>&2
- $rmprog -f $ptmp
- exit 1
-fi
-
-case "${name}" in
-*$) : ${comment:=${name%%[$]*} samba machine account} ;;
-*) : ${comment:=${name} samba user} ;;
-esac
-entry="${name}:*:${uid}:${gid}::0:0:${comment}:${homedir}:${shell}"
-
-echo "$entry" >> $ptmp
-
-$doit $pwdmkdbprog -p -u "${name}" $ptmp
-rc=$?
-
-$rmprog -f $ptmp
-exit $rc
diff --git a/net/samba30/files/deluser.sh b/net/samba30/files/deluser.sh
deleted file mode 100644
index d3bf6548263..00000000000
--- a/net/samba30/files/deluser.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#!@SH@
-#
-# $NetBSD: deluser.sh,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
-#
-# This is a deluser script for NetBSD systems whose userdel(8) doesn't
-# accept "$" in the username.
-
-awkprog="@AWK@"
-mktempprog="@MKTEMP@"
-pwdmkdbprog="@PWD_MKDB@"
-rmprog="@RM@"
-
-progname=deluser
-
-usage() {
- echo "Usage: $progname [-n] name"
- exit 1
-}
-
-doit=""
-
-while getopts n flag; do
- case $flag in
- n) doit=":" ;;
- esac
-done
-shift `expr $OPTIND - 1`
-
-if [ $# -lt 1 ]; then
- usage
-fi
-
-name="$1"
-
-case "$name" in
-*:*)
- echo "$progname: \`$name' is not a valid user name" 1>&2
- exit 1
-esac
-
-ptmp=`$mktempprog -q /etc/ptmp`
-case "$ptmp" in
-/etc/ptmp)
- ;;
-*)
- echo "$progname: can't create /etc/ptmp" 1>&2
- exit 1
- ;;
-esac
-
-if [ ! -f /etc/master.passwd ]; then
- echo "$progname: /etc/master.passwd not found" 1>&2
- $rmprog -f $ptmp
- exit 1
-fi
-
-$awkprog -v name="${name}" ' \
- BEGIN { FS = ":" } \
- { \
- if ($1 != name) \
- print $0; \
- }' /etc/master.passwd > $ptmp
-
-$doit $pwdmkdbprog -p $ptmp
-rc=$?
-
-$rmprog -f $ptmp
-exit $rc
diff --git a/net/samba30/files/nmbd.sh b/net/samba30/files/nmbd.sh
deleted file mode 100755
index ee9ab077e98..00000000000
--- a/net/samba30/files/nmbd.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: nmbd.sh,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
-#
-# PROVIDE: nmbd
-# REQUIRE: DAEMON
-
-. /etc/rc.subr
-
-name="nmbd"
-rcvar=$name
-command="@PREFIX@/sbin/${name}"
-required_files="@SAMBA_ETCDIR@/smb.conf"
-extra_commands="reload"
-command_args="-D" # _must_ start as daemon from rc.d;
- # add more flags through ${${name}_flags}
-
-reload_cmd=":" # avoid dumping debug output on SIGHUP
-
-load_rc_config $name
-run_rc_command "$1"
diff --git a/net/samba30/files/samba.sh b/net/samba30/files/samba.sh
deleted file mode 100644
index 3959a01df18..00000000000
--- a/net/samba30/files/samba.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: samba.sh,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
-#
-# KEYWORD: nostart
-#
-# This script is intended for the end-user.
-# It is not started by /etc/rc.
-# It manipulates various samba services (smbd, nmbd, winbindd),
-# which are controlled via their appropriate rc.conf(5) settings.
-#
-
-. /etc/rc.subr
-
-rcd_dir=`@DIRNAME@ $0`
-
-# NOTE: run_rc_command sets $rc_arg
-#
-forward_commands()
-{
- # Backward compat with NetBSD <1.6:
- [ -z "$rc_arg" ] && rc_arg=$_arg
-
- for file in $COMMAND_LIST; do
- $rcd_dir/$file $rc_arg
- done
-}
-
-reverse_commands()
-{
- # Backward compat with NetBSD <1.6:
- [ -z "$rc_arg" ] && rc_arg=$_arg
-
- REVCOMMAND_LIST=
- for file in $COMMAND_LIST; do
- REVCOMMAND_LIST="$file $REVCOMMAND_LIST"
- done
- for file in $REVCOMMAND_LIST; do
- $rcd_dir/$file $rc_arg
- done
-}
-
-COMMAND_LIST="nmbd @WINBINDD_RCD_SCRIPT@ smbd"
-
-name="samba"
-start_cmd="forward_commands"
-stop_cmd="reverse_commands"
-reload_cmd="forward_commands"
-status_cmd="forward_commands"
-extra_commands="reload status"
-
-run_rc_command "$1"
diff --git a/net/samba30/files/smbd.sh b/net/samba30/files/smbd.sh
deleted file mode 100755
index c5234a6b05d..00000000000
--- a/net/samba30/files/smbd.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: smbd.sh,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
-#
-# PROVIDE: smbd
-
-. /etc/rc.subr
-
-name="smbd"
-rcvar=$name
-command="@PREFIX@/sbin/${name}"
-required_files="@SAMBA_ETCDIR@/smb.conf"
-extra_commands="reload"
-command_args="-D" # _must_ start as daemon from rc.d;
- # add more flags through ${${name}_flags}
-
-# load_rc_config_var() from /etc/rc.subr on the netbsd-3 branch, for
-# the benefit of platforms with older versions of /etc/rc.subr.
-#
-load_rc_config_var()
-{
- eval $(eval '(
- load_rc_config '$1' >/dev/null;
- if [ -n "${'$2'}" -o "${'$2'-UNSET}" != "UNSET" ]; then
- echo '$2'=\'\''${'$2'}\'\'';
- fi
- )' )
-}
-
-load_rc_config $name
-load_rc_config_var nmbd nmbd
-run_rc_command "$1"
diff --git a/net/samba30/files/winbindd.sh b/net/samba30/files/winbindd.sh
deleted file mode 100644
index c3eeae19712..00000000000
--- a/net/samba30/files/winbindd.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: winbindd.sh,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
-#
-# PROVIDE: winbindd
-# REQUIRE: DAEMON
-
-. /etc/rc.subr
-
-name="winbindd"
-rcvar=$name
-command="@PREFIX@/sbin/${name}"
-required_files="@SAMBA_ETCDIR@/smb.conf"
-extra_commands="reload"
-
-load_rc_config $name
-run_rc_command "$1"
diff --git a/net/samba30/options.mk b/net/samba30/options.mk
deleted file mode 100644
index ef1a965e9dc..00000000000
--- a/net/samba30/options.mk
+++ /dev/null
@@ -1,183 +0,0 @@
-# $NetBSD: options.mk,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
-
-# Recommended package options for various setups:
-#
-# Standalone Samba server cups
-# Domain Member server cups ldap winbind
-# Active Directory Member server ads cups winbind
-# Domain Controller ldap winbind
-#
-PKG_OPTIONS_VAR= PKG_OPTIONS.samba
-PKG_SUPPORTED_OPTIONS= ads cups fam ldap pam winbind
-PKG_SUGGESTED_OPTIONS= ads ldap pam winbind
-
-.include "../../mk/bsd.fast.prefs.mk"
-
-SAMBA_ACL_OPSYS= AIX Darwin FreeBSD HPUX IRIX Linux OSF1 SunOS
-.if !empty(SAMBA_ACL_OPSYS:M${OPSYS})
-PKG_SUPPORTED_OPTIONS+= acl
-.endif
-
-.include "../../mk/bsd.options.mk"
-
-SAMBA_STATIC_MODULES:= # empty
-
-###
-### Allow Samba to join as a member server of an Active Directory domain.
-###
-.if !empty(PKG_OPTIONS:Mads)
-. include "../../mk/krb5.buildlink3.mk"
-. if empty(PKG_OPTIONS:Mldap)
-PKG_OPTIONS+= ldap
-. endif
-CONFIGURE_ARGS+= --with-ads
-CONFIGURE_ARGS+= --with-krb5=${KRB5BASE:Q}
-
-# Avoid build failures with recent version of Heimdal under NetBSD.
-. if ${OPSYS} == "NetBSD"
-CONFIGURE_ENV+= samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=no
-. endif
-
-# ignore gssapi.h on Solaris as it conflicts with <gssapi/gssapi.h>
-. if ${OPSYS} == "SunOS"
-CONFIGURE_ENV+= ac_cv_header_gssapi_h=no
-. endif
-.else
-CONFIGURE_ARGS+= --without-ads
-CONFIGURE_ARGS+= --without-krb5
-.endif
-
-###
-### Access Control List support.
-###
-.if !empty(PKG_OPTIONS:Macl)
-CONFIGURE_ARGS+= --with-acl-support
-.endif
-
-###
-### Native CUPS support for providing printing services.
-###
-PLIST_VARS+= cups
-.if !empty(PKG_OPTIONS:Mcups)
-. include "../../print/cups/buildlink3.mk"
-CONFIGURE_ARGS+= --enable-cups
-PLIST.cups= yes
-INSTALLATION_DIRS+= libexec/cups/backend
-
-.PHONY: samba-cups-install
-post-install: samba-cups-install
-samba-cups-install:
- cd ${DESTDIR}${PREFIX}/libexec/cups/backend && \
- ${LN} -fs ../../../bin/smbspool smb
-.else
-CONFIGURE_ARGS+= --disable-cups
-.endif
-
-###
-### Access Control List support.
-###
-PLIST_VARS+= fam
-.if !empty(PKG_OPTIONS:Mfam)
-. include "../../mk/fam.buildlink3.mk"
-CONFIGURE_ARGS+= --enable-fam
-PLIST.fam= yes
-.else
-CONFIGURE_ARGS+= --disable-fam
-.endif
-
-###
-### Support LDAP authentication and storage of Samba account information.
-###
-.if !empty(PKG_OPTIONS:Mldap)
-. include "../../databases/openldap-client/buildlink3.mk"
-CONFIGURE_ARGS+= --with-ldap
-.else
-CONFIGURE_ARGS+= --without-ldap
-.endif
-
-###
-### Support PAM authentication and build smbpass and winbind PAM modules.
-###
-PLIST_VARS+= pam
-.if !empty(PKG_OPTIONS:Mpam)
-. include "../../security/PAM/module.mk"
-CONFIGURE_ARGS+= --with-pam
-CONFIGURE_ARGS+= --with-pam_smbpass
-CONFIGURE_ARGS+= --with-pammodulesdir=${PAM_INSTMODULEDIR}
-PLIST.pam= yes
-INSTALLATION_DIRS+= ${EGDIR}/pam_smbpass
-
-.PHONY: samba-pam-smbpass-install
-post-install: samba-pam-smbpass-install
-samba-pam-smbpass-install:
- ${INSTALL_DATA} ${WRKSRC}/pam_smbpass/README \
- ${DESTDIR}${PREFIX}/${DOCDIR}/README.pam_smbpass
- cd ${WRKSRC}/pam_smbpass/samples; for f in [a-z]*; do \
- ${INSTALL_DATA} $${f} \
- ${DESTDIR}${PREFIX}/${EGDIR}/pam_smbpass/$${f}; \
- done
-.endif
-
-###
-### Support querying a PDC for domain user and group information, e.g.,
-### through NSS or PAM.
-###
-PLIST_VARS+= winbind
-.if !empty(PKG_OPTIONS:Mwinbind)
-CONFIGURE_ARGS+= --with-winbind
-
-SAMBA_STATIC_MODULES:= ${SAMBA_STATIC_MODULES},idmap_rid
-. if !empty(PKG_OPTIONS:Mads)
-SAMBA_STATIC_MODULES:= ${SAMBA_STATIC_MODULES},idmap_ad
-. endif
-
-WINBINDD_RCD_SCRIPT= winbindd
-PLIST.winbind= yes
-
-# Install the NSS winbind module if it exists.
-PLIST_SUBST+= NSS_WINBIND=${NSS_WINBIND:Q}
-NSS_WINBIND= ${NSS_WINBIND_cmd:sh}
-NSS_WINBIND_cmd= \
- ${TEST} -x ${WRKSRC}/config.status || \
- { ${ECHO} "@comment no NSS winbind module" ; exit 0; }; \
- cd ${WRKDIR} && ${ECHO} @WINBIND_NSS@ | \
- ${WRKSRC}/config.status --file=-:- | \
- ${AWK} '/^$$/ { print "@comment no NSS winbind module"; exit 0; } \
- { sub(".*/", "lib/"); print; }' && \
- ${RM} -f config.log
-
-.PHONY: samba-nss-winbind-install
-post-install: samba-nss-winbind-install
-samba-nss-winbind-install:
- lib=${WRKSRC:Q}/nsswitch/${NSS_WINBIND:T:Q}; \
- ${TEST} ! -f $$lib || ${INSTALL_LIB} $$lib ${DESTDIR}${PREFIX:Q}/lib
-
-# Install the NSS WINS module if it exists.
-PLIST_SUBST+= NSS_WINS=${NSS_WINS:Q}
-NSS_WINS= ${NSS_WINS_cmd:sh}
-NSS_WINS_cmd= \
- ${TEST} -x ${WRKSRC}/config.status || \
- { ${ECHO} "@comment no NSS WINS module" ; exit 0; }; \
- cd ${WRKDIR} && ${ECHO} @WINBIND_WINS_NSS@ | \
- ${WRKSRC}/config.status --file=-:- | \
- ${AWK} '/^$$/ { print "@comment no NSS WINS module"; exit 0; } \
- { sub(".*/", "lib/"); print; }' && \
- ${RM} -f config.log
-
-.PHONY: samba-nss-wins-install
-post-install: samba-nss-wins-install
-samba-nss-wins-install:
- lib=${WRKSRC:Q}/nsswitch/${NSS_WINS:T:Q}; \
- ${TEST} ! -f $$lib || ${INSTALL_LIB} $$lib ${DESTDIR}${PREFIX:Q}/lib
-.else
-CONFIGURE_ARGS+= --without-winbind
-PLIST_SUBST+= NSS_WINBIND="no NSS winbind module"
-PLIST_SUBST+= NSS_WINS="no NSS WINS module"
-.endif
-
-###
-### Add the optional static modules to the configuration.
-###
-.if !empty(SAMBA_STATIC_MODULES)
-CONFIGURE_ARGS+= --with-static-modules=${SAMBA_STATIC_MODULES:S/^,//}
-.endif