diff options
author | Juergen Daubert <jue@jue.li> | 2022-02-15 18:25:57 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2022-02-15 18:25:57 +0100 |
commit | 48db8cf842a0e2bd28687187e70d57e6dead7a7d (patch) | |
tree | 7d89e7e09b207ba256a6e5e1b1aaa2a5df93c310 /rpcbind | |
parent | 72263987d3d08c11da833829967301dd1a8be336 (diff) | |
download | opt-48db8cf842a0e2bd28687187e70d57e6dead7a7d.tar.gz opt-48db8cf842a0e2bd28687187e70d57e6dead7a7d.tar.xz |
rpcbind: set statedir to /run/rpcbind
Diffstat (limited to 'rpcbind')
-rw-r--r-- | rpcbind/.signature | 6 | ||||
-rw-r--r-- | rpcbind/Pkgfile | 4 | ||||
-rw-r--r-- | rpcbind/rpcbind | 3 |
3 files changed, 8 insertions, 5 deletions
diff --git a/rpcbind/.signature b/rpcbind/.signature index 3a1d12b62..157a5ffa9 100644 --- a/rpcbind/.signature +++ b/rpcbind/.signature @@ -1,6 +1,6 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/RExFNMiqcZHRmtpMw9QT2aikdiQPAfPi7msaRJKPSl3UxjdreqZ29fTB9wUxA5o1ooWhJPVanM2YIo6iwhnpQw= -SHA256 (Pkgfile) = 8a67e8c2a6cdb351550ad3ceb1c25e0b30ff72fbfa78007f9d28fa50e02212ff +RWSE3ohX2g5d/VBQJizvPLs815Z/HfNSUZKAYtleyVGmneg/r3r4EeRADkyM+SPmA7jskUe88RcoykmABPevNXegExsvuuc0dQs= +SHA256 (Pkgfile) = 916942ad7cdc4e0207026377a6b95e7f7b2457b9b6fa82dd88ff1c025d046320 SHA256 (.footprint) = 1ddf9f1f75433e98fa2bfaae830f7115428f650b285ebc3e845da09a84290502 SHA256 (rpcbind-1.2.6.tar.bz2) = 5613746489cae5ae23a443bb85c05a11741a5f12c8f55d2bb5e83b9defeee8de -SHA256 (rpcbind) = b8173ec0b927705100eab42f24797ac36ea7c5987475cba47474b5c73a117f1a +SHA256 (rpcbind) = 2d898f7507eaefa097d3d03aa08eca0038143a391fd374b59185b195827b5438 diff --git a/rpcbind/Pkgfile b/rpcbind/Pkgfile index a5df0bbd8..762b63f90 100644 --- a/rpcbind/Pkgfile +++ b/rpcbind/Pkgfile @@ -5,7 +5,7 @@ name=rpcbind version=1.2.6 -release=1 +release=2 source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2 \ rpcbind) @@ -14,10 +14,12 @@ build() { # use sunrpc instead of rpcbind as service-name sed '/servname\[\]/s/rpcbind/sunrpc/' -i src/rpcbind.c + sed 's|/var/run|/run/rpcbind|' -i src/rpcbind.c ./configure \ --prefix=/usr \ --sbindir=/sbin \ + --with-statedir=/run/rpcbind \ --disable-libwrap \ --without-systemdsystemunitdir diff --git a/rpcbind/rpcbind b/rpcbind/rpcbind index 659635700..1aac6a1da 100644 --- a/rpcbind/rpcbind +++ b/rpcbind/rpcbind @@ -5,11 +5,12 @@ SSD=/sbin/start-stop-daemon PROG=/sbin/rpcbind -PID=/var/run/rpcbind.pid +PID=/run/rpcbind/rpcbind.pid OPTS="-f -s" case $1 in start) + mkdir -p /run/rpcbind $SSD --start -bm --pidfile $PID --exec $PROG -- $OPTS ;; stop) |