diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2024-08-12 02:09:02 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-08-17 18:14:38 +0700 |
commit | c2ec0ce8af0b2cf1887f60e739f93163c823772f (patch) | |
tree | 72449b9a4e78d1871f4da4edcd6e0f022cab8c09 | |
parent | 5a313d871d17c0e0e0ca8a745fc08b417e57944c (diff) |
network/openntpd: Fix ownership/perms on /var/empty dir
Moving the creation/chmod of /var/empty/openntpd to after
the build phase is completed ensures that the ownership
and/or permissions aren't modified by 'make install'
This commit also includes minor tweaks to rc.openntpd
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/openntpd/openntpd.SlackBuild | 10 | ||||
-rw-r--r-- | network/openntpd/rc.openntpd | 5 |
2 files changed, 6 insertions, 9 deletions
diff --git a/network/openntpd/openntpd.SlackBuild b/network/openntpd/openntpd.SlackBuild index 16e2296ec5f8..4bdb8a95dd72 100644 --- a/network/openntpd/openntpd.SlackBuild +++ b/network/openntpd/openntpd.SlackBuild @@ -78,11 +78,6 @@ echo "You must have a user and group called '_ntp' to use this package. E.g.: egrep -q -e '^_ntp:' /etc/passwd egrep -q -e '^_ntp:' /etc/group -# Create the _ntp user's home, and the daemon's chroot directory -mkdir -p $PKG/var/empty/openntpd -chown root:root $PKG/var/empty/openntpd -chmod 0755 $PKG/var/empty/openntpd - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -123,6 +118,11 @@ make install DESTDIR=$PKG # Remove unnecessary directories created by `make install` rmdir $PKG/var/run/ +# Create the _ntp user's home, and the daemon's chroot directory +mkdir -p $PKG/var/empty/openntpd +chown root:root $PKG/var/empty/openntpd +chmod 0755 $PKG/var/empty/openntpd + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/network/openntpd/rc.openntpd b/network/openntpd/rc.openntpd index 55d082b0fb14..54140131707d 100644 --- a/network/openntpd/rc.openntpd +++ b/network/openntpd/rc.openntpd @@ -1,9 +1,6 @@ #!/bin/sh -# Start/stop/restart the network time protocol daemon - -# Written for Slackware Linux by Robby Workman <http://rlworkman.net> -# (by modifying one of Pat's scripts) +# Start/stop/restart openntpd # Add -s to the command to set the time at startup |