Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2006 03:35:55 +0200
From:      "Timur I. Bakeyev" <timur@gnu.org>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/95774: [NEW] New port of replication WINS server - net/samba4wins
Message-ID:  <1145064955.10751@timur.home.bat.ru>
Resent-Message-ID: <200604150140.k3F1eC2U002882@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         95774
>Category:       ports
>Synopsis:       [NEW] New port of replication WINS server - net/samba4wins
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 15 01:40:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Timur I. Bakeyev
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:


System: FreeBSD 6.0-STABLE #2: Sun Jan  8 03:29:17 CET 2006
    root@timur.home.bat.ru:/usr/src/sys/i386/compile/COMMON



>Description:


This is a new port of a replicating WINS server


>How-To-Repeat:





>Fix:


--- samba4wins.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./Makefile
#	./distinfo
#	./pkg-descr
#	./pkg-plist
#	./files
#	./files/patch-main.mk
#	./files/patch-utils_config.mk
#	./files/smbd4wins.sh
#	./files/samba4wins.conf.sample
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	samba4wins
X# Date created:				11th Apr 2006
X# Whom:					Timur I. Bakeyev <timur@gnu.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		samba4wins
XPORTVERSION=		1.0.2.r1
XCATEGORIES=		net
XMASTER_SITES=		http://ftp.sernet.de/pub/samba4WINS/debian/pool/
XDISTNAME=		${PORTNAME}_${PORTVERSION:S/.r/-/}
X
XMAINTAINER=		timur@gnu.org
XCOMMENT=		A full featured replicating WINS server for UNIX
X
XCONFLICTS=		ja-samba-2.* ja-samba-4.* samba-2.* samba-4.* sharity-light-1.*
X
XUSE_PERL5=		yes
XGNU_CONFIGURE=		yes
X
XWRKSRC=			${WRKDIR}/${PORTNAME}/source
X
X# directories
XVARDIR=			${DESTDIR}/var
XS4W_DATADIR=		${PREFIX}/share/${PORTNAME}
XS4W_LOGDIR=		${VARDIR}/log/${PORTNAME}
XS4W_RUNDIR=		${VARDIR}/run
XS4W_LOCKDIR=		${VARDIR}/db/${PORTNAME}
XS4W_PRIVATE=		${S4W_LOCKDIR}/private
XS4W_CONFDIR=		${PREFIX}/etc
XS4W_LIBDIR=		${PREFIX}/lib/${PORTNAME}
XRC_DIR=			${PREFIX}/etc/rc.d
XS4W_CONFIG=		${S4W_CONFDIR}/samba4wins.conf
X
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XCONFIGURE_ARGS+=	--exec-prefix=${PREFIX} \
X			--datadir=${S4W_DATADIR} \
X	    		--libdir=${S4W_LIBDIR} \
X			--localstatedir=${VARDIR} \
X			--with-privatedir=${S4W_PRIVATE} \
X			--with-lockdir=${S4W_LOCKDIR} \
X			--with-piddir=${S4W_RUNDIR} \
X			--with-logfilebase=${S4W_LOGDIR}
X
XCONFIGURE_ARGS+=	--disable-reg-gconf --disable-socket-wrapper \
X			--with-readline=/usr --with-included-popt \
X			--with-libiconv=${LOCALBASE} --without-sqlite3 \
X			--without-pthreads --without-python
X
XUSE_RC_SUBR=		yes
XRC_SCRIPTS_SUB=		PREFIX=${PREFIX} \
X			RC_SUBR=${RC_SUBR} \
X			S4W_RUNDIR=${S4W_RUNDIR}
X
XPLIST_SUB+=		RC_DIR=${RC_DIR} \
X			S4W_LOGDIR=${S4W_LOGDIR} \
X			S4W_LOCKDIR=${S4W_LOCKDIR}
X
Xpost-install:
X			@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}  \
X				${FILESDIR}/smbd4wins.sh > ${WRKDIR}/smbd4wins.sh
X			${INSTALL_SCRIPT} ${WRKDIR}/smbd4wins.sh ${RC_DIR}
X			@${MKDIR} ${S4W_CONFDIR}
X			${INSTALL_DATA} ${FILESDIR}/samba4wins.conf.sample ${S4W_CONFDIR}
X			@${MKDIR} ${DOCSDIR}
X.for d in HOWTO.txt NEWS.txt README.txt TODO.txt
X			${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/debian/${PORTNAME}-*-${d} ${DOCSDIR}/${d}
X.endfor
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (samba4wins_1.0.2-1.tar.gz) = eecf5809bcd8c203f957a47d59d9e9a6
XSHA256 (samba4wins_1.0.2-1.tar.gz) = 72d08d5da14ff2bf80c9031b94527467322c9b8c3b4e965cb3a6057e9b5fb04c
XSIZE (samba4wins_1.0.2-1.tar.gz) = 18787463
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThe Samba4WINS project provides a full featured replicating WINS server
Xfor UNIX. It is a spinoff of the Samba 4 project, the upcoming version
Xof the Samba software suite and will also be available as part of the
XSamba suite as soon as Samba 4 is released.
X
XWWW: http://enterprisesamba.org/index.php?id=88
END-of-./pkg-descr
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
X@unexec %D/etc/rc.d/samba4wins.sh forcestop 2>/dev/null || true
Xetc/rc.d/smbd4wins.sh
Xetc/samba4wins.conf.sample
Xbin/nmblookup4
Xbin/ldbadd
Xbin/ldbdel
Xbin/ldbedit
Xbin/ldbmodify
Xbin/ldbrename
Xbin/ldbsearch
Xbin/samba3dump
Xbin/smbscript
Xbin/smbstatus
Xbin/smbtorture
Xbin/testparm
Xbin/winreg
Xsbin/smbd4wins
Xlib/samba4wins/lowcase.dat
Xlib/samba4wins/upcase.dat
Xlib/samba4wins/valid.dat
Xshare/doc/samba4wins/HOWTO.txt
Xshare/doc/samba4wins/NEWS.txt
Xshare/doc/samba4wins/README.txt
Xshare/doc/samba4wins/TODO.txt
Xshare/samba4wins/js/auth.js
Xshare/samba4wins/js/base.js
Xshare/samba4wins/js/encoder.js
Xshare/samba4wins/js/management.js
Xshare/samba4wins/js/provision.js
Xshare/samba4wins/js/samr.js
Xshare/samba4wins/js/server_call.js
Xshare/samba4wins/js/upgrade.js
Xshare/samba4wins/js/winreg.js
Xshare/samba4wins/setup/display_specifiers.ldif
Xshare/samba4wins/setup/hklm.ldif
Xshare/samba4wins/setup/provision.ldif
Xshare/samba4wins/setup/provision.smb.conf
Xshare/samba4wins/setup/provision.zone
Xshare/samba4wins/setup/provision_init.ldif
Xshare/samba4wins/setup/provision_templates.ldif
Xshare/samba4wins/setup/provision_users.ldif
Xshare/samba4wins/setup/schema.ldif
Xshare/samba4wins/setup/secrets.ldif
X@dirrmtry lib/samba4wins/pkgconfig
X@dirrmtry libdata/pkgconfig
X@dirrmtry private/tls
X@dirrm share/doc/samba4wins
X@dirrm share/samba4wins/setup
X@dirrm share/samba4wins/js
X@dirrm share/samba4wins
X@dirrm lib/samba4wins
X@unexec echo "Warning: If you will *NOT* use this package anymore, please remove %%S4W_LOCKDIR%%/* manually."
X@unexec echo "Warning: If you will *NOT* use this package anymore, please remove %%S4W_LOGDIR%%/* manually."
END-of-./pkg-plist
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-main.mk
sed 's/^X//' >./files/patch-main.mk << 'END-of-./files/patch-main.mk'
X--- main.mk.orig	Sun Apr  9 04:52:10 2006
X+++ main.mk	Sun Apr  9 04:52:33 2006
X@@ -86,8 +86,7 @@
X 	 -DMODULESDIR=\"$(MODULESDIR)\" -DJSDIR=\"$(JSDIR)\" \
X 	 -DSETUPDIR=\"$(SETUPDIR)\"
X 
X-install: showlayout installbin installdat installswat installmisc installlib \
X-	installheader installpc
X+install: showlayout installbin installdat installmisc installlib installpc
X 
X # DESTDIR is used here to prevent packagers wasting their time
X # duplicating the Makefile. Remove it and you will have the privilege
END-of-./files/patch-main.mk
echo x - ./files/patch-utils_config.mk
sed 's/^X//' >./files/patch-utils_config.mk << 'END-of-./files/patch-utils_config.mk'
X--- utils/config.mk.orig	Sun Apr  9 23:55:42 2006
X+++ utils/config.mk	Sun Apr  9 23:56:16 2006
X@@ -77,7 +77,7 @@
X 
X #################################
X # Start BINARY nmblookup
X-[BINARY::nmblookup]
X+[BINARY::nmblookup4]
X INSTALLDIR = BINDIR
X OBJ_FILES = \
X 		nmblookup.o
END-of-./files/patch-utils_config.mk
echo x - ./files/smbd4wins.sh
sed 's/^X//' >./files/smbd4wins.sh << 'END-of-./files/smbd4wins.sh'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: smbd2wins
X# REQUIRE: NETWORKING SERVERS named ldconfig
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable smbd:
X#
X#smbd4wins_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname="smbd4wins"
Xrcvar=`set_rcvar`
Xcommand="%%PREFIX%%/sbin/${name}"
Xpidfile="%%S4W_RUNDIR%%/${name}.pid"
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-./files/smbd4wins.sh
echo x - ./files/samba4wins.conf.sample
sed 's/^X//' >./files/samba4wins.conf.sample << 'END-of-./files/samba4wins.conf.sample'
X#
X# /usr/local/etc/samba4wins.conf
X#
X# Please read the following files carefully!
X#
X# /usr/local/share/doc/samba4wins/:
X# README.txt
X# NEWS.txt
X# HOWTO.txt
X# TODO.txt
X# 
X
X[globals]
X	# it's important that this netbios name is different from 
X	# the one that's used for samba3!
X	###netbios name = SERVER1-WINS
X	# only use the given interfaces
X	###bind interfaces only = yes
X	# this is the unicast address
X	###interfaces = 192.168.9.2
X	# samba4wins is only a wins server, 
X	# and broadcasts are handled by samba3
X	# so disable listening on the broadcast address
X	###nbtd:disable_broadcast = yes
X
X	# as we want to ourself as wins server
X	# and don't listen on 127.0.0.1
X	# we need to explicit set the wins server here
X	###wins server = 192.168.9.2
END-of-./files/samba4wins.conf.sample
exit

--- samba4wins.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1145064955.10751>