clockspeed: use make_dirs instead of chown
This commit is contained in:
parent
83e0d9d644
commit
c093ced00d
4 changed files with 4 additions and 3 deletions
0
srcpkgs/clockspeed/files/clockspeed/finish
Executable file → Normal file
0
srcpkgs/clockspeed/files/clockspeed/finish
Executable file → Normal file
0
srcpkgs/clockspeed/files/clockspeed/run
Executable file → Normal file
0
srcpkgs/clockspeed/files/clockspeed/run
Executable file → Normal file
1
srcpkgs/clockspeed/files/clockspeed_adjust/run
Executable file → Normal file
1
srcpkgs/clockspeed/files/clockspeed_adjust/run
Executable file → Normal file
|
@ -5,5 +5,4 @@ echo "*** Checking for clockspeed daemon..."
|
||||||
sv -w5 u clockspeed
|
sv -w5 u clockspeed
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
echo "*** Starting clockspeed_adjust..."
|
echo "*** Starting clockspeed_adjust..."
|
||||||
chown clocksd /var/lib/clockspeed/adjust
|
|
||||||
exec chpst -u clocksd:nogroup ./clock_adjust.sh
|
exec chpst -u clocksd:nogroup ./clock_adjust.sh
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'clockspeed'
|
# Template file for 'clockspeed'
|
||||||
pkgname=clockspeed
|
pkgname=clockspeed
|
||||||
version=0.62
|
version=0.62
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="groff"
|
hostmakedepends="groff"
|
||||||
depends="sv-helper"
|
depends="sv-helper"
|
||||||
|
@ -10,7 +10,7 @@ short_desc="Dan Bernstein's clockspeed (network) timekeeping utility"
|
||||||
maintainer="bougyman <tj@rubyists.com>"
|
maintainer="bougyman <tj@rubyists.com>"
|
||||||
license="Public Domain"
|
license="Public Domain"
|
||||||
homepage="http://cr.yp.to/clockspeed.html"
|
homepage="http://cr.yp.to/clockspeed.html"
|
||||||
distfiles="http://cr.yp.to/clockspeed/clockspeed-0.62.tar.gz "
|
distfiles="http://cr.yp.to/clockspeed/clockspeed-${version}.tar.gz"
|
||||||
checksum=43539964c4b554794b2da760d138c5975cbc850f1c8ec2ee96f5dba66e0d9eed
|
checksum=43539964c4b554794b2da760d138c5975cbc850f1c8ec2ee96f5dba66e0d9eed
|
||||||
|
|
||||||
nocross="musl is fine, I did not recognize the errors cross compiling to arm"
|
nocross="musl is fine, I did not recognize the errors cross compiling to arm"
|
||||||
|
@ -22,6 +22,8 @@ clocksd_descr="User for clockspeed adjustments"
|
||||||
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
||||||
patch_args="-p1"
|
patch_args="-p1"
|
||||||
|
|
||||||
|
make_dirs="/var/lib/clockspeed/adjust 644 clocksd root"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i -e 's|/usr/local/clockspeed|/var/lib/clockspeed|' conf-home
|
sed -i -e 's|/usr/local/clockspeed|/var/lib/clockspeed|' conf-home
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue