mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Update to rc4
make rc startup file respect PREFIX
This commit is contained in:
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
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= samba
|
PORTNAME= samba
|
||||||
PORTVERSION= 2.2.6.r3
|
PORTVERSION= 2.2.6.r4
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= http://us4.samba.org/samba/ftp/%SUBDIR%/
|
MASTER_SITES= http://us4.samba.org/samba/ftp/%SUBDIR%/
|
||||||
MASTER_SITE_SUBDIR= pre old-versions .
|
MASTER_SITE_SUBDIR= pre old-versions .
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
MD5 (samba-2.2.6rc3.tar.bz2) = 462ea7b886b7d0f8f9cf34234f5590d1
|
MD5 (samba-2.2.6rc4.tar.bz2) = 284ddf5da6e340d2a478abb8f9eccd5b
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
#!/bin/sh
|
#!/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
|
smbspool=/var/spool/samba
|
||||||
pidfiledir=/var/run
|
pidfiledir=/var/run
|
||||||
smbd=/usr/local/sbin/smbd
|
smbd=${PREFIX}/sbin/smbd
|
||||||
nmbd=/usr/local/sbin/nmbd
|
nmbd=${PREFIX}/sbin/nmbd
|
||||||
|
|
||||||
# start
|
# start
|
||||||
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
|
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue