Update to rc4

make rc startup file respect PREFIX
This commit is contained in:
David W. Chapman Jr. 2002-10-16 14:17:03 +00:00
parent 0b51a46c05
commit a30a717312
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68145
3 changed files with 13 additions and 4 deletions

View file

@ -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 .

View file

@ -1 +1 @@
MD5 (samba-2.2.6rc3.tar.bz2) = 462ea7b886b7d0f8f9cf34234f5590d1
MD5 (samba-2.2.6rc4.tar.bz2) = 284ddf5da6e340d2a478abb8f9eccd5b

View file

@ -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