aboutsummaryrefslogtreecommitdiff
path: root/net/samba
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-10-16 14:17:03 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-10-16 14:17:03 +0000
commita30a71731237cd99d38fccc4985fcb0cdf5764f2 (patch)
tree0e6bed1443b087e0b15165c6a317652d4e9ab4fd /net/samba
parent0b51a46c056c3c2afa0920879c77fc1bc334b226 (diff)
downloadports-a30a71731237cd99d38fccc4985fcb0cdf5764f2.tar.gz
ports-a30a71731237cd99d38fccc4985fcb0cdf5764f2.zip
Notes
Diffstat (limited to 'net/samba')
-rw-r--r--net/samba/Makefile2
-rw-r--r--net/samba/distinfo2
-rw-r--r--net/samba/files/samba.sh.sample13
3 files changed, 13 insertions, 4 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 9e6f333fe6bc..1e14336dd8ee 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= samba
-PORTVERSION= 2.2.6.r3
+PORTVERSION= 2.2.6.r4
CATEGORIES= net
MASTER_SITES= http://us4.samba.org/samba/ftp/%SUBDIR%/
MASTER_SITE_SUBDIR= pre old-versions .
diff --git a/net/samba/distinfo b/net/samba/distinfo
index a76e8a41b41c..35e8136e7099 100644
--- a/net/samba/distinfo
+++ b/net/samba/distinfo
@@ -1 +1 @@
-MD5 (samba-2.2.6rc3.tar.bz2) = 462ea7b886b7d0f8f9cf34234f5590d1
+MD5 (samba-2.2.6rc4.tar.bz2) = 284ddf5da6e340d2a478abb8f9eccd5b
diff --git a/net/samba/files/samba.sh.sample b/net/samba/files/samba.sh.sample
index e6807ad6d145..3fca292861b2 100644
--- a/net/samba/files/samba.sh.sample
+++ b/net/samba/files/samba.sh.sample
@@ -1,8 +1,17 @@
#!/bin/sh
+
+rc_file=${0##*/}
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
+ echo "${rc_file}: Cannot determine PREFIX." >&2
+ echo "Please use the complete pathname." >&2
+ exit 64
+fi
+
smbspool=/var/spool/samba
pidfiledir=/var/run
-smbd=/usr/local/sbin/smbd
-nmbd=/usr/local/sbin/nmbd
+smbd=${PREFIX}/sbin/smbd
+nmbd=${PREFIX}/sbin/nmbd
# start
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then