rpcbind: set statedir to /run/rpcbind
This commit is contained in:
parent
72263987d3
commit
48db8cf842
@ -1,6 +1,6 @@
|
|||||||
untrusted comment: verify with /etc/ports/opt.pub
|
untrusted comment: verify with /etc/ports/opt.pub
|
||||||
RWSE3ohX2g5d/RExFNMiqcZHRmtpMw9QT2aikdiQPAfPi7msaRJKPSl3UxjdreqZ29fTB9wUxA5o1ooWhJPVanM2YIo6iwhnpQw=
|
RWSE3ohX2g5d/VBQJizvPLs815Z/HfNSUZKAYtleyVGmneg/r3r4EeRADkyM+SPmA7jskUe88RcoykmABPevNXegExsvuuc0dQs=
|
||||||
SHA256 (Pkgfile) = 8a67e8c2a6cdb351550ad3ceb1c25e0b30ff72fbfa78007f9d28fa50e02212ff
|
SHA256 (Pkgfile) = 916942ad7cdc4e0207026377a6b95e7f7b2457b9b6fa82dd88ff1c025d046320
|
||||||
SHA256 (.footprint) = 1ddf9f1f75433e98fa2bfaae830f7115428f650b285ebc3e845da09a84290502
|
SHA256 (.footprint) = 1ddf9f1f75433e98fa2bfaae830f7115428f650b285ebc3e845da09a84290502
|
||||||
SHA256 (rpcbind-1.2.6.tar.bz2) = 5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de
|
SHA256 (rpcbind-1.2.6.tar.bz2) = 5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de
|
||||||
SHA256 (rpcbind) = b8173ec0b927705100eab42f24797ac36ea7c5987475cba47474b5c73a117f1a
|
SHA256 (rpcbind) = 2d898f7507eaefa097d3d03aa08eca0038143a391fd374b59185b195827b5438
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
name=rpcbind
|
name=rpcbind
|
||||||
version=1.2.6
|
version=1.2.6
|
||||||
release=1
|
release=2
|
||||||
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2 \
|
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2 \
|
||||||
rpcbind)
|
rpcbind)
|
||||||
|
|
||||||
@ -14,10 +14,12 @@ build() {
|
|||||||
|
|
||||||
# use sunrpc instead of rpcbind as service-name
|
# use sunrpc instead of rpcbind as service-name
|
||||||
sed '/servname\[\]/s/rpcbind/sunrpc/' -i src/rpcbind.c
|
sed '/servname\[\]/s/rpcbind/sunrpc/' -i src/rpcbind.c
|
||||||
|
sed 's|/var/run|/run/rpcbind|' -i src/rpcbind.c
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sbindir=/sbin \
|
--sbindir=/sbin \
|
||||||
|
--with-statedir=/run/rpcbind \
|
||||||
--disable-libwrap \
|
--disable-libwrap \
|
||||||
--without-systemdsystemunitdir
|
--without-systemdsystemunitdir
|
||||||
|
|
||||||
|
@ -5,11 +5,12 @@
|
|||||||
|
|
||||||
SSD=/sbin/start-stop-daemon
|
SSD=/sbin/start-stop-daemon
|
||||||
PROG=/sbin/rpcbind
|
PROG=/sbin/rpcbind
|
||||||
PID=/var/run/rpcbind.pid
|
PID=/run/rpcbind/rpcbind.pid
|
||||||
OPTS="-f -s"
|
OPTS="-f -s"
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
|
mkdir -p /run/rpcbind
|
||||||
$SSD --start -bm --pidfile $PID --exec $PROG -- $OPTS
|
$SSD --start -bm --pidfile $PID --exec $PROG -- $OPTS
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user