aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-10-16 22:17:03 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-10-16 22:17:03 +0800
commitb50ff338a12697bc678ee8eb95b0ded4e3f68c4d (patch)
tree6c68467347759b2a7e55bb1ebb152d2da27f8490 /net
parentefebd53051c7eb143657fe0e5aa52977e183af06 (diff)
downloadfreebsd-ports-gnome-b50ff338a12697bc678ee8eb95b0ded4e3f68c4d.tar.gz
freebsd-ports-gnome-b50ff338a12697bc678ee8eb95b0ded4e3f68c4d.tar.zst
freebsd-ports-gnome-b50ff338a12697bc678ee8eb95b0ded4e3f68c4d.zip
Update to rc4
make rc startup file respect PREFIX
Diffstat (limited to 'net')
-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