ports/opt (3.7): chrony: move rundir and pidfile to /run/chrony
![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit 72263987d3d08c11da833829967301dd1a8be336 Author: Juergen Daubert <jue@jue.li> Date: Tue Feb 15 14:04:21 2022 +0100 chrony: move rundir and pidfile to /run/chrony diff --git a/chrony/.footprint b/chrony/.footprint index b122ba1c0..373ecc084 100644 --- a/chrony/.footprint +++ b/chrony/.footprint @@ -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/ diff --git a/chrony/.signature b/chrony/.signature index c75ecdfe1..24430dd9b 100644 --- a/chrony/.signature +++ b/chrony/.signature @@ -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 diff --git a/chrony/Pkgfile b/chrony/Pkgfile index db34f4770..a59044f77 100644 --- a/chrony/Pkgfile +++ b/chrony/Pkgfile @@ -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 } diff --git a/chrony/chronyd b/chrony/chronyd index 9207b9ce5..d70fffb02 100644 --- a/chrony/chronyd +++ b/chrony/chronyd @@ -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)
participants (1)
-
crux@crux.nu