chrony: move rundir and pidfile to /run/chrony

This commit is contained in:
Juergen Daubert 2022-02-15 14:04:21 +01:00
parent 936b6daedf
commit 72263987d3
4 changed files with 12 additions and 9 deletions

View File

@ -20,5 +20,3 @@ drwxr-xr-x root/root var/lib/
drwxr-x--- chrony/chrony var/lib/chrony/
drwxr-xr-x root/root var/log/
drwxr-x--- chrony/chrony var/log/chrony/
drwxr-xr-x root/root var/run/
drwxr-x--- chrony/chrony var/run/chrony/

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/QcNNsxCMoegffYGMETl8QGnuar/PYdavZsWa5C+pWeK6e2/WCDgJa2vvQ28b89I9LXaALfyloTZ1rch8hwgnAA=
SHA256 (Pkgfile) = bc0ebd16f2664853b990538b0227809b80395e374e9e788891c1757cb7f11608
SHA256 (.footprint) = 17b868cc8d7a0d5ac0525f5eeb7b4f9159d1328d390de73569e31be01eb606f5
RWSE3ohX2g5d/XmZ3Ya+CdX8FloijvZ6911pdZsCM3j6Tz+h/D2C0Oii5av89hPRECaF4zKW5qKA70P8JtKw8UNl99wusGWAogA=
SHA256 (Pkgfile) = 3499bb48930396155238fddc2681f27d5b87f586ed38b3c8ff6fa188a1e75dca
SHA256 (.footprint) = 6f403b2e0972da49318c0d041091125760ac3ce9b64a4ce746fd153343488fd5
SHA256 (chrony-4.2.tar.gz) = 273f9fd15c328ed6f3a5f6ba6baec35a421a34a73bb725605329b1712048db9a
SHA256 (chronyd) = 17c2c49c7a5eed9ab0f3e58aa554905f64cf5c95a01d96fc0e0fef5a66241e53
SHA256 (chronyd) = 5ae5109312f1d3d28385aad84e086a45cf2ef71d0f39c3c06777b55d069bfdcf

View File

@ -5,19 +5,23 @@
name=chrony
version=4.2
release=1
release=2
source=(http://download.tuxfamily.org/$name/$name-$version.tar.gz
chronyd)
build() {
cd $name-$version
./configure --prefix=/usr --with-user=chrony
./configure \
--prefix=/usr \
--chronyrundir=/run/chrony \
--with-pidfile=/run/chrony/chronyd.pid \
--with-user=chrony
make
make DESTDIR=$PKG install
install -d -o chrony -g chrony -m 0750 $PKG/var/{lib,log,run}/chrony
install -d -o chrony -g chrony -m 0750 $PKG/var/{lib,log}/chrony
install -D -m 0755 $SRC/chronyd $PKG/etc/rc.d/chronyd
install examples/chrony.conf.example1 $PKG/etc/chrony.conf
}

View File

@ -9,6 +9,7 @@ OPTS="-r"
case $1 in
start)
install -o chrony -g chrony -m 0750 -d /run/chrony
$SSD --start --exec $PROG -- $OPTS
;;
stop)