diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-10-19 17:17:46 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-10-19 17:17:46 +0000 |
commit | 6cfaea86f7938a78a0a26e463aeb0898dbb727e8 (patch) | |
tree | d91c06a482a57e85e3a27344b236bcc4d5eb6e4a /net-fs | |
parent | samba-winbind rc5/rc6 support. incidentally, it appears that winbind is now i... (diff) | |
download | historical-6cfaea86f7938a78a0a26e463aeb0898dbb727e8.tar.gz historical-6cfaea86f7938a78a0a26e463aeb0898dbb727e8.tar.bz2 historical-6cfaea86f7938a78a0a26e463aeb0898dbb727e8.zip |
rc5/rc6 support. winbind is inclulded in samba-2.2.2 so maybe this package can be depracated soon
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/samba-winbind/files/digest-samba-winbind-20010329-r6 | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | net-fs/samba-winbind/files/samba-winbind.rc5 (renamed from net-fs/samba-winbind/files/samba-winbind) | 0 | ||||
-rw-r--r-- | net-fs/samba-winbind/files/samba-winbind.rc6 | 35 | ||||
-rw-r--r-- | net-fs/samba-winbind/samba-winbind-20010329-r6.ebuild | 74 | ||||
-rw-r--r-- | net-fs/samba-winbind/samba-winbind-20010329.ebuild | 12 |
5 files changed, 112 insertions, 10 deletions
diff --git a/net-fs/samba-winbind/files/digest-samba-winbind-20010329-r6 b/net-fs/samba-winbind/files/digest-samba-winbind-20010329-r6 new file mode 100644 index 000000000000..277d99c66749 --- /dev/null +++ b/net-fs/samba-winbind/files/digest-samba-winbind-20010329-r6 @@ -0,0 +1 @@ +MD5 3208fc7b6f3ed6cddf6ce839e6035433 samba-tng-cvs-20010329.tbz2 diff --git a/net-fs/samba-winbind/files/samba-winbind b/net-fs/samba-winbind/files/samba-winbind.rc5 index cb4173000ea6..cb4173000ea6 100755..100644 --- a/net-fs/samba-winbind/files/samba-winbind +++ b/net-fs/samba-winbind/files/samba-winbind.rc5 diff --git a/net-fs/samba-winbind/files/samba-winbind.rc6 b/net-fs/samba-winbind/files/samba-winbind.rc6 new file mode 100644 index 000000000000..194b12f81998 --- /dev/null +++ b/net-fs/samba-winbind/files/samba-winbind.rc6 @@ -0,0 +1,35 @@ +#!/sbin/runscript + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/smb/smb.conf ] ; then + eerror "You need an /etc/smb/smb.conf file first" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting samba-winbind" + start-stop-daemon --start --quiet --exec /usr/sbin/nmbd + result=$? + start-stop-daemon --start --quiet --exec /usr/sbin/smbd + result=$(( $result + $? )) + start-stop-daemon --start --quiet --exec /usr/sbin/winbindd + result=$(( $result + $? )) + eend $result +} + +stop() { + ebegin "Stopping samba-winbind" + start-stop-daemon --stop --quiet --exec /usr/sbin/nmbd + result=$? + start-stop-daemon --stop --quiet --exec /usr/sbin/smbd + result=$(( $result + $? )) + start-stop-daemon --stop --quiet --exec /usr/sbin/winbindd + result=$(( $result + $? )) + eend $result +} diff --git a/net-fs/samba-winbind/samba-winbind-20010329-r6.ebuild b/net-fs/samba-winbind/samba-winbind-20010329-r6.ebuild new file mode 100644 index 000000000000..37f3bbcb2325 --- /dev/null +++ b/net-fs/samba-winbind/samba-winbind-20010329-r6.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-winbind/samba-winbind-20010329-r6.ebuild,v 1.1 2001/10/19 17:17:46 woodchip Exp $ + +A=samba-tng-cvs-${PV}.tbz2 +S=${WORKDIR}/tng +DESCRIPTION="Enhanced NT User management for unix" +SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/distributions/gentoo/gentoo-sources/${A}" +HOMEPAGE="http://www.samba-tng.org" + +DEPEND="virtual/glibc + pam? ( >=sys-libs/pam-0.72 )" + +src_unpack() { + unpack ${A} + cd ${S}/source + patch -p0 < ${FILESDIR}/${P}-Makefile.in-gentoo.diff +} + +src_compile() { + + local myconf + if [ "`use pam`" ] + then + myconf="--without-pam" + echo "disabled cuz broken" +# myconf="--with-pam" + else + myconf="--without-pam" + fi + + cd ${S}/source + # We want static versions of winbind and pam_winbind + try ./configure --prefix=/usr --host=${CHOST} --enable-static=yes --enable-shared=no \ + --sysconfdir=/etc/smb --localstatedir=/var/log --libdir=/etc/smb --sbindir=/usr/sbin \ + --without-automount \ + --with-privatedir=/etc/smb/private --with-lockdir=/var/lock $myconf + try make + try make nsswitch nsswitch/pam_winbind.so + +} + +src_install () { + cd ${S}/source + dodir /usr + dodir /etc/smb + dodir /usr/share/swat + dodir /usr/share/doc/${P}/html/book + dodir /var/log + dodir /var/lock + try make install prefix=${D}/usr BASEDIR=${D}/usr LIBDIR=${D}/etc/smb VARDIR=${D}/var/log \ + PRIVATEDIR=${D}/etc/smb/private SWATDIR=${D}/usr/share/swat \ + LOCKDIR=${D}/var/lock SBINDIR=${D}/usr/sbin MANDIR=${D}/usr/share/man + cd ${S}/source + dosbin bin/winbindd + dobin bin/wbinfo + exeinto /lib + newexe nsswitch/libnss_winbind.so libnss_winbind.so.2 + exeinto /lib/security + doexe nsswitch/pam_winbind.so + + cd ${S} + dodoc COPYING README WHATSNEW.txt + + cd docs/manpages + doman samedit.8 wbinfo.1 winbindd.8 + + cd ../htmldocs + docinto html + dodoc *.html + + exeinto /etc/init.d ; newexe ${FILESDIR}/samba-winbind.rc6 samba-winbind +} diff --git a/net-fs/samba-winbind/samba-winbind-20010329.ebuild b/net-fs/samba-winbind/samba-winbind-20010329.ebuild index 6cb3b803d84a..99f33aeac983 100644 --- a/net-fs/samba-winbind/samba-winbind-20010329.ebuild +++ b/net-fs/samba-winbind/samba-winbind-20010329.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-winbind/samba-winbind-20010329.ebuild,v 1.4 2001/06/24 20:13:37 achim Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-winbind/samba-winbind-20010329.ebuild,v 1.5 2001/10/19 17:17:46 woodchip Exp $ A=samba-tng-cvs-${PV}.tbz2 S=${WORKDIR}/tng @@ -70,13 +70,5 @@ src_install () { docinto html dodoc *.html - #supervise support - dodir /var/lib/supervise/services/winbind/log - chmod +t ${D}/var/lib/supervise/services/winbind - exeinto /var/lib/supervise/services/winbind - newexe ${FILESDIR}/winbind-run run - exeinto /var/lib/supervise/services/winbind/log - newexe ${FILESDIR}/winbind-log run - + exeinto /etc/rc.d/init.d ; newexe ${FILESDIR}/samba-winbind.rc5 samba-winbind } - |