summaryrefslogtreecommitdiff
path: root/packages/openntpd/openntpd_3.7p1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openntpd/openntpd_3.7p1.bb')
-rw-r--r--packages/openntpd/openntpd_3.7p1.bb11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/openntpd/openntpd_3.7p1.bb b/packages/openntpd/openntpd_3.7p1.bb
index 3ca809f002..c83cf1b7a3 100644
--- a/packages/openntpd/openntpd_3.7p1.bb
+++ b/packages/openntpd/openntpd_3.7p1.bb
@@ -6,7 +6,7 @@ LICENSE = "BSD"
SECTION = "console/network"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org>"
DEPENDS = "timezones"
-PR="r7"
+PR="r10"
SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \
file://autofoo.patch;patch=1 \
@@ -22,7 +22,7 @@ INITSCRIPT_PARAMS = "defaults"
inherit autotools update-rc.d
EXTRA_OECONF += "CFLAGS=-DUSE_ADJTIMEX --disable-strip --prefix=/usr \
- --sysconfdir=/etc --with-privsep-path=/var/shared/empty \
+ --sysconfdir=/etc --with-privsep-path=/${localstatedir}/shared/empty \
--with-privsep-user=ntpd"
do_install_prepend() {
@@ -34,11 +34,12 @@ do_install_append() {
}
pkg_postrm () {
- grep ntpd /etc/passwd && deluser ntpd
+ grep ntpd ${sysconfdir}/passwd && deluser ntpd
}
pkg_postinst () {
- grep ntpd /etc/passwd || adduser --disabled-password --home=/var/shared/empty --ingroup nogroup ntpd
- chown root:root /var/shared/empty
+ [ ! -d ${localstatedir}/shared ] && mkdir -p ${localstatedir}/shared
+ grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd
+ chown root:root ${localstatedir}/shared/empty
}