From a8bd432d731427e9a798c0f669a63e87eca9a14a Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 16 Nov 1997 20:06:44 +0000 Subject: [PATCH] --- net/samba/Makefile | 21 ++++++++++++ net/samba/files/md5 | 1 + net/samba/patches/patch-aa | 70 ++++++++++++++++++++++++++++++++++++++ net/samba/patches/patch-ab | 11 ++++++ net/samba/pkg/COMMENT | 1 + net/samba/pkg/DESCR | 11 ++++++ net/samba/pkg/PLIST | 22 ++++++++++++ 7 files changed, 137 insertions(+) create mode 100644 net/samba/Makefile create mode 100644 net/samba/files/md5 create mode 100644 net/samba/patches/patch-aa create mode 100644 net/samba/patches/patch-ab create mode 100644 net/samba/pkg/COMMENT create mode 100644 net/samba/pkg/DESCR create mode 100644 net/samba/pkg/PLIST diff --git a/net/samba/Makefile b/net/samba/Makefile new file mode 100644 index 00000000000..9e14516847f --- /dev/null +++ b/net/samba/Makefile @@ -0,0 +1,21 @@ +# OpenBSD makefile for: samba +# Version required: 1.9.15p8 +# Date created: 16 Nov 1997 +# Whom: ejovi + +DISTNAME= samba-1.9.17p2 +CATEGORIES= net +MASTER_SITES= ftp://samba.anu.edu.au/pub/samba/ +WRKSRC= ${WRKDIR}/${DISTNAME}/source + +MAINTAINER= ejovi@OpenBSD.ORG + +MAN1= smbstatus.1 smbclient.1 smbrun.1 smbtar.1 testparm.1 testprns.1 +MAN5= smb.conf.5 +MAN7= samba.7 +MAN8= smbd.8 nmbd.8 smbpasswd.8 + +pre-install: + @${MKDIR} /usr/local/samba + +.include diff --git a/net/samba/files/md5 b/net/samba/files/md5 new file mode 100644 index 00000000000..d89f0c7fae1 --- /dev/null +++ b/net/samba/files/md5 @@ -0,0 +1 @@ +MD5 (samba-1.9.17p2.tar.gz) = 27ac28ccf084268ba5c8c0b3a0ed12e4 diff --git a/net/samba/patches/patch-aa b/net/samba/patches/patch-aa new file mode 100644 index 00000000000..6c07f098047 --- /dev/null +++ b/net/samba/patches/patch-aa @@ -0,0 +1,70 @@ +--- Makefile.orig Sat Sep 27 00:04:52 1997 ++++ Makefile Wed Oct 15 17:09:58 1997 +@@ -5,11 +5,11 @@ + ########################################################################### + + # The base directory for all samba files +-BASEDIR = /usr/local/samba ++BASEDIR = $(PREFIX) + + # The base manpages directory to put the man pages in + # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist. +-MANDIR = /usr/local/man ++MANDIR = $(PREFIX)/man + + # The directories to put things in. If you use multiple + # architectures or share the samba binaries across NFS then +@@ -18,9 +18,9 @@ + # normally only applies to nmbd and smbd + # SBINDIR implies a secure binary directory + BINDIR = $(BASEDIR)/bin +-SBINDIR = $(BASEDIR)/bin +-LIBDIR = $(BASEDIR)/lib +-VARDIR = $(BASEDIR)/var ++SBINDIR = $(BASEDIR)/sbin ++ETCDIR = $(BASEDIR)/etc ++LOGDIR = /var/log + + # The permissions to give the executables + INSTALLPERMS = 0755 +@@ -45,13 +45,13 @@ + # set these to where to find various files + # These can be overridden by command line switches (see smbd(8)) + # or in smb.conf (see smb.conf(5)) +-SMBLOGFILE = $(VARDIR)/log.smb +-NMBLOGFILE = $(VARDIR)/log.nmb +-CONFIGFILE = $(LIBDIR)/smb.conf +-LMHOSTSFILE = $(LIBDIR)/lmhosts ++SMBLOGFILE = $(LOGDIR)/smb ++NMBLOGFILE = $(LOGDIR)/nmb ++CONFIGFILE = $(ETCDIR)/smb.conf ++LMHOSTSFILE = $(ETCDIR)/lmhosts + + # the directory where lock files go +-LOCKDIR = $(VARDIR)/locks ++LOCKDIR = /var/spool/lock + + # set this to the default group you want your machine to appear in + # for browsing. This can also be set in nmbd (see nmbd(8)) +@@ -383,8 +383,8 @@ + # This is for FreeBSD + # contributed by kuku@acds.physik.rwth-aachen.de + # NOTE: You may need to add -DBSD44 if you have password problems +-# FLAGSM = -DFreeBSD -DFAST_SHARE_MODES +-# LIBSM = -lcrypt ++FLAGSM = -DFreeBSD -DFAST_SHARE_MODES ++LIBSM = -lcrypt + + + # This is for NEXTSTEP Release 2.X +@@ -684,8 +684,8 @@ + install: installbin installman installscripts + + installbin: all +- @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS) +- @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS) ++ @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(ETCDIR) $(LOGDIR) $(SPROGS) ++ @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(ETCDIR) $(LOGDIR) $(PROGS) + + installscripts: + @$(SHELL) $(srcdir)installscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS) diff --git a/net/samba/patches/patch-ab b/net/samba/patches/patch-ab new file mode 100644 index 00000000000..98532fd51c9 --- /dev/null +++ b/net/samba/patches/patch-ab @@ -0,0 +1,11 @@ +--- Makefile.orig Sun Nov 16 10:52:38 1997 ++++ Makefile Sun Nov 16 10:52:42 1997 +@@ -387,7 +387,7 @@ + # contributed by kuku@acds.physik.rwth-aachen.de + # NOTE: You may need to add -DBSD44 if you have password problems + FLAGSM = -DFreeBSD -DFAST_SHARE_MODES +-LIBSM = -lcrypt ++#LIBSM = -lcrypt + + + # This is for NEXTSTEP Release 2.X diff --git a/net/samba/pkg/COMMENT b/net/samba/pkg/COMMENT new file mode 100644 index 00000000000..47492e3e2e4 --- /dev/null +++ b/net/samba/pkg/COMMENT @@ -0,0 +1 @@ +A LanManager(R)-compatible server suite for Unix diff --git a/net/samba/pkg/DESCR b/net/samba/pkg/DESCR new file mode 100644 index 00000000000..d9e59d1acba --- /dev/null +++ b/net/samba/pkg/DESCR @@ -0,0 +1,11 @@ +The Samba suite is a set of programs which run under the FreeBSD +operating system. These programs deliver most of the important +functionality of a Microsoft Lan Manager server. That is, they support +remote access to FreeBSD filespace and FreeBSD printers from Lan Manager +compatible clients. In practical terms, this means that such clients +can connect to and use FreeBSD filespace as if it was a local disk drive, +or FreeBSD printers as if they were local printers. + +Some of the most popular Lan Manager compatible clients include Lan +Manager itself, Windows for Workgroups, OS/2 and Windows NT. + diff --git a/net/samba/pkg/PLIST b/net/samba/pkg/PLIST new file mode 100644 index 00000000000..38682ae0683 --- /dev/null +++ b/net/samba/pkg/PLIST @@ -0,0 +1,22 @@ +bin/addtosmbpass +bin/nmblookup +bin/smbclient +bin/smbpasswd +bin/smbrun +bin/smbstatus +bin/smbtar +bin/testparm +bin/testprns +sbin/smbd +sbin/nmbd +man/man1/smbclient.1.gz +man/man1/smbrun.1.gz +man/man1/smbstatus.1.gz +man/man1/smbtar.1.gz +man/man1/testparm.1.gz +man/man1/testprns.1.gz +man/man5/smb.conf.5.gz +man/man7/samba.7.gz +man/man8/smbd.8.gz +man/man8/nmbd.8.gz +man/man8/smbpasswd.8.gz