[Midnightbsd-cvs] mports: mports/net: Add samba 4 wins

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri May 30 16:31:59 EDT 2008


Log Message:
-----------
Add samba 4 wins

Modified Files:
--------------
    mports/net:
        Makefile (r1.67 -> r1.68)

Added Files:
-----------
    mports/net/samba4wins:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/net/samba4wins/files:
        patch-lib_ldb_config.mk (r1.1)
        patch-main.mk (r1.1)
        patch-scripting_ejs_config.mk (r1.1)
        patch-torture_config.mk (r1.1)
        patch-utils_config.mk (r1.1)
        samba4wins.conf.sample (r1.1)
        smbd4wins.in (r1.1)

-------------- next part --------------
--- /dev/null
+++ net/samba4wins/pkg-descr
@@ -0,0 +1,6 @@
+The Samba4WINS project provides a full featured replicating WINS server
+for UNIX. It is a spinoff of the Samba4 project, the upcoming version of
+the Samba software suite and will also be available as part of the Samba
+suite as soon as Samba4 is released.
+
+WWW: http://enterprisesamba.org/index.php?id=88
--- /dev/null
+++ net/samba4wins/pkg-plist
@@ -0,0 +1,50 @@
+etc/samba4wins.conf.sample
+bin/nmblookup4
+bin/ldbadd4
+bin/ldbdel4
+bin/ldbedit4
+bin/ldbmodify4
+bin/ldbrename4
+bin/ldbsearch4
+bin/samba3dump4
+bin/smbscript4
+bin/smbstatus4
+bin/smbtorture4
+bin/testparm4
+bin/winreg4
+sbin/smbd4wins
+lib/samba4wins/lowcase.dat
+lib/samba4wins/upcase.dat
+lib/samba4wins/valid.dat
+%%PORTDOCS%%%%DOCSDIR%%/HOWTO.txt
+%%PORTDOCS%%%%DOCSDIR%%/NEWS.txt
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/TODO.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%DATADIR%%/js/auth.js
+%%DATADIR%%/js/base.js
+%%DATADIR%%/js/encoder.js
+%%DATADIR%%/js/management.js
+%%DATADIR%%/js/provision.js
+%%DATADIR%%/js/samr.js
+%%DATADIR%%/js/server_call.js
+%%DATADIR%%/js/upgrade.js
+%%DATADIR%%/js/winreg.js
+%%DATADIR%%/setup/display_specifiers.ldif
+%%DATADIR%%/setup/hklm.ldif
+%%DATADIR%%/setup/provision.ldif
+%%DATADIR%%/setup/provision.smb.conf
+%%DATADIR%%/setup/provision.zone
+%%DATADIR%%/setup/provision_init.ldif
+%%DATADIR%%/setup/provision_templates.ldif
+%%DATADIR%%/setup/provision_users.ldif
+%%DATADIR%%/setup/schema.ldif
+%%DATADIR%%/setup/secrets.ldif
+ at dirrm %%DATADIR%%/setup
+ at dirrm %%DATADIR%%/js
+ at dirrm %%DATADIR%%
+ at dirrmtry lib/samba4wins/pkgconfig
+ at dirrm lib/samba4wins
+ at unexec echo "Warning: If you will *NOT* use this package anymore, please remove %%S4W_LOCKDIR%%/* manually."
+ at unexec echo "Warning: If you will *NOT* use this package anymore, please remove %%S4W_LOGDIR%%/* manually."
+ at unexec %D/etc/rc.d/samba4wins.sh forcestop 2>/dev/null || true
--- /dev/null
+++ net/samba4wins/Makefile
@@ -0,0 +1,78 @@
+# New ports collection makefile for:	samba4wins
+# Date created:				11th Apr 2006
+# Whom:					Timur I. Bakeyev <timur at gnu.org>
+#
+# $MidnightBSD: mports/net/samba4wins/Makefile,v 1.1 2008/05/30 20:31:57 laffer1 Exp $
+# $FreeBSD: ports/net/samba4wins/Makefile,v 1.8 2007/12/28 12:11:18 erwin Exp $
+#
+
+PORTNAME=		samba4wins
+PORTVERSION=		1.0.6
+PORTREVISION=		0
+CATEGORIES=		net
+MASTER_SITES=		http://ftp.sernet.de/pub/samba4WINS/debian/pool/
+DISTNAME=		${PORTNAME}_${PORTVERSION}-1
+
+MAINTAINER=		ports at MidnightBSD.org
+COMMENT=		A full featured replicating WINS server for UNIX
+LICENSE=		gpl2
+
+CONFLICTS=		samba-4.* sharity-light-1.*
+
+USE_ICONV=		yes
+USE_PERL5=		yes
+GNU_CONFIGURE=		yes
+USE_AUTOTOOLS=		autoconf:261 autoheader:261
+
+WRKSRC=			${WRKDIR}/${PORTNAME}/source
+
+# directories
+VARDIR?=		/var
+S4W_DATADIR=		${PREFIX}/share/${PORTNAME}
+S4W_LOGDIR=		${VARDIR}/log/${PORTNAME}
+S4W_RUNDIR=		${VARDIR}/run
+S4W_LOCKDIR=		${VARDIR}/db/${PORTNAME}
+S4W_PRIVATE=		${S4W_LOCKDIR}/private
+S4W_CONFDIR=		${PREFIX}/etc
+S4W_LIBDIR=		${PREFIX}/lib/${PORTNAME}
+S4W_CONFIG=		${S4W_CONFDIR}/samba4wins.conf
+
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd6.0
+
+CONFIGURE_ARGS+=	--exec-prefix=${PREFIX} \
+			--datadir=${S4W_DATADIR} \
+	    		--libdir=${S4W_LIBDIR} \
+			--localstatedir=${VARDIR} \
+			--with-privatedir=${S4W_PRIVATE} \
+			--with-lockdir=${S4W_LOCKDIR} \
+			--with-piddir=${S4W_RUNDIR} \
+			--with-logfilebase=${S4W_LOGDIR}
+
+CONFIGURE_ARGS+=	--disable-reg-gconf --disable-socket-wrapper \
+			--with-readline=/usr --with-included-popt \
+			--with-libiconv=${LOCALBASE} --without-sqlite3 \
+			--without-pthreads --without-python
+
+USE_RC_SUBR=		smbd4wins
+SUB_LIST+=		S4W_RUNDIR=${S4W_RUNDIR}
+
+PLIST_SUB+=		S4W_LOGDIR=${S4W_LOGDIR} \
+			S4W_LOCKDIR=${S4W_LOCKDIR}
+
+post-build:
+			@for f in ${WRKSRC}/scripting/bin/*; do \
+			    ${REINPLACE_CMD} -i '' -e 's|smbscript|${PREFIX}/bin/smbscript4|' \
+				$${f} && ${MV} $${f} $${f}4; \
+			done
+
+post-install:
+			@${MKDIR} ${S4W_CONFDIR}
+			${INSTALL_DATA} ${FILESDIR}/samba4wins.conf.sample ${S4W_CONFDIR}
+.if !defined(NOPORTDOCS)
+			@${MKDIR} ${DOCSDIR}
+.	for d in HOWTO.txt NEWS.txt README.txt TODO.txt
+			${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/debian/${PORTNAME}-${PORTVERSION}-${d} ${DOCSDIR}/${d}
+.	endfor
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ net/samba4wins/distinfo
@@ -0,0 +1,3 @@
+MD5 (samba4wins_1.0.6-1.tar.gz) = bd5893446dd99ec0ce025e989b726ee7
+SHA256 (samba4wins_1.0.6-1.tar.gz) = 996d96a8d6862d60034f8fe527fa757ca0194ae5231b8eb214a89eaf07cea8d8
+SIZE (samba4wins_1.0.6-1.tar.gz) = 7231680
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net/Makefile,v
retrieving revision 1.67
retrieving revision 1.68
diff -L net/Makefile -L net/Makefile -u -r1.67 -r1.68
--- net/Makefile
+++ net/Makefile
@@ -61,6 +61,7 @@
     SUBDIR += samba-nmblookup
     SUBDIR += samba-pdbsql
     SUBDIR += samba3
+    SUBDIR += samba4wins
     SUBDIR += sdl_net
     SUBDIR += skype
     SUBDIR += tsocks
--- /dev/null
+++ net/samba4wins/files/patch-utils_config.mk
@@ -0,0 +1,20 @@
+--- utils/config.mk.orig	Mon Jul  3 09:48:15 2006
++++ utils/config.mk	Mon Aug 28 02:13:42 2006
+@@ -77,7 +77,7 @@
+ 
+ #################################
+ # Start BINARY nmblookup
+-[BINARY::nmblookup]
++[BINARY::nmblookup4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES = \
+ 		nmblookup.o
+@@ -92,7 +92,7 @@
+ 
+ #################################
+ # Start BINARY testparm
+-[BINARY::testparm]
++[BINARY::testparm4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES = \
+ 		testparm.o
--- /dev/null
+++ net/samba4wins/files/samba4wins.conf.sample
@@ -0,0 +1,29 @@
+#
+# /usr/local/etc/samba4wins.conf
+#
+# Please read the following files carefully!
+#
+# /usr/local/share/doc/samba4wins/:
+# README.txt
+# NEWS.txt
+# HOWTO.txt
+# TODO.txt
+# 
+
+[globals]
+	# it's important that this netbios name is different from 
+	# the one that's used for samba3!
+	###netbios name = SERVER1-WINS
+	# only use the given interfaces
+	###bind interfaces only = yes
+	# this is the unicast address
+	###interfaces = 192.168.9.2
+	# samba4wins is only a wins server, 
+	# and broadcasts are handled by samba3
+	# so disable listening on the broadcast address
+	###nbtd:disable_broadcast = yes
+
+	# as we want to ourself as wins server
+	# and don't listen on 127.0.0.1
+	# we need to explicit set the wins server here
+	###wins server = 192.168.9.2
--- /dev/null
+++ net/samba4wins/files/patch-main.mk
@@ -0,0 +1,12 @@
+--- main.mk.orig	Sun Apr  9 04:52:10 2006
++++ main.mk	Sun Apr  9 04:52:33 2006
+@@ -86,8 +86,7 @@
+ 	 -DMODULESDIR=\"$(MODULESDIR)\" -DJSDIR=\"$(JSDIR)\" \
+ 	 -DSETUPDIR=\"$(SETUPDIR)\"
+ 
+-install: showlayout installbin installdat installswat installmisc installlib \
+-	installheader installpc
++install: showlayout installbin installdat installmisc installlib installpc
+ 
+ # DESTDIR is used here to prevent packagers wasting their time
+ # duplicating the Makefile. Remove it and you will have the privilege
--- /dev/null
+++ net/samba4wins/files/patch-lib_ldb_config.mk
@@ -0,0 +1,56 @@
+--- lib/ldb/config.mk.orig	Mon Aug 28 04:22:54 2006
++++ lib/ldb/config.mk	Mon Aug 28 04:23:33 2006
+@@ -179,7 +179,7 @@
+ 
+ ################################################
+ # Start BINARY ldbadd
+-[BINARY::ldbadd]
++[BINARY::ldbadd4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES = \
+ 		tools/ldbadd.o
+@@ -191,7 +191,7 @@
+ 
+ ################################################
+ # Start BINARY ldbdel
+-[BINARY::ldbdel]
++[BINARY::ldbdel4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES= \
+ 		tools/ldbdel.o
+@@ -203,7 +203,7 @@
+ 
+ ################################################
+ # Start BINARY ldbmodify
+-[BINARY::ldbmodify]
++[BINARY::ldbmodify4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES= \
+ 		tools/ldbmodify.o
+@@ -215,7 +215,7 @@
+ 
+ ################################################
+ # Start BINARY ldbsearch
+-[BINARY::ldbsearch]
++[BINARY::ldbsearch4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES= \
+ 		tools/ldbsearch.o
+@@ -227,7 +227,7 @@
+ 
+ ################################################
+ # Start BINARY ldbedit
+-[BINARY::ldbedit]
++[BINARY::ldbedit4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES= \
+ 		tools/ldbedit.o
+@@ -239,7 +239,7 @@
+ 
+ ################################################
+ # Start BINARY ldbrename
+-[BINARY::ldbrename]
++[BINARY::ldbrename4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES= \
+ 		tools/ldbrename.o
--- /dev/null
+++ net/samba4wins/files/patch-scripting_ejs_config.mk
@@ -0,0 +1,11 @@
+--- scripting/ejs/config.mk.orig	Tue Aug 29 01:37:15 2006
++++ scripting/ejs/config.mk	Tue Aug 29 01:37:25 2006
+@@ -37,7 +37,7 @@
+ 
+ #######################
+ # Start BINARY SMBSCRIPT
+-[BINARY::smbscript]
++[BINARY::smbscript4]
+ INSTALLDIR = BINDIR
+ OBJ_FILES = \
+ 		smbscript.o
--- /dev/null
+++ net/samba4wins/files/patch-torture_config.mk
@@ -0,0 +1,11 @@
+--- torture/config.mk.orig	Mon Aug 28 23:34:14 2006
++++ torture/config.mk	Mon Aug 28 23:34:27 2006
+@@ -198,7 +198,7 @@
+ 
+ #################################
+ # Start BINARY smbtorture
+-[BINARY::smbtorture]
++[BINARY::smbtorture4]
+ INSTALLDIR = BINDIR
+ PRIVATE_PROTO_HEADER = torture.h
+ OBJ_FILES = \
--- /dev/null
+++ net/samba4wins/files/smbd4wins.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/net/samba4wins/files/smbd4wins.in,v 1.1 2006/08/31 18:04:20 pav Exp $
+#
+
+# PROVIDE: smbd4wins
+# REQUIRE: NETWORKING SERVERS named ldconfig
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable smbd:
+#
+#smbd4wins_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name="smbd4wins"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/sbin/${name}"
+pidfile="%%S4W_RUNDIR%%/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"


More information about the Midnightbsd-cvs mailing list