diff options
Diffstat (limited to 'net/samba4wins/files')
-rw-r--r-- | net/samba4wins/files/patch-main.mk | 12 | ||||
-rw-r--r-- | net/samba4wins/files/patch-utils_config.mk | 11 | ||||
-rw-r--r-- | net/samba4wins/files/samba4wins.conf.sample | 29 | ||||
-rw-r--r-- | net/samba4wins/files/smbd4wins.sh.in | 25 |
4 files changed, 77 insertions, 0 deletions
diff --git a/net/samba4wins/files/patch-main.mk b/net/samba4wins/files/patch-main.mk new file mode 100644 index 000000000000..af8793ebeb3a --- /dev/null +++ b/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 diff --git a/net/samba4wins/files/patch-utils_config.mk b/net/samba4wins/files/patch-utils_config.mk new file mode 100644 index 000000000000..fedc67360658 --- /dev/null +++ b/net/samba4wins/files/patch-utils_config.mk @@ -0,0 +1,11 @@ +--- utils/config.mk.orig Sun Apr 9 23:55:42 2006 ++++ utils/config.mk Sun Apr 9 23:56:16 2006 +@@ -77,7 +77,7 @@ + + ################################# + # Start BINARY nmblookup +-[BINARY::nmblookup] ++[BINARY::nmblookup4] + INSTALLDIR = BINDIR + OBJ_FILES = \ + nmblookup.o diff --git a/net/samba4wins/files/samba4wins.conf.sample b/net/samba4wins/files/samba4wins.conf.sample new file mode 100644 index 000000000000..d4f52eae6fb1 --- /dev/null +++ b/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 diff --git a/net/samba4wins/files/smbd4wins.sh.in b/net/samba4wins/files/smbd4wins.sh.in new file mode 100644 index 000000000000..095b756f7eb6 --- /dev/null +++ b/net/samba4wins/files/smbd4wins.sh.in @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: smbd2wins +# 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" |