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.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/openntpd/openntpd_3.7p1.bb b/packages/openntpd/openntpd_3.7p1.bb
index 5204f34bb3..77d2eb892b 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="r8"
+PR="r9"
SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \
file://autofoo.patch;patch=1 \
@@ -38,7 +38,7 @@ pkg_postrm () {
}
pkg_postinst () {
- mkdir -p ${localstatedir}/shared/empty
+ [ ! -d ${localstatedir}/shared/empty ] && mkdir -p ${localstatedir}/shared/empty
grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd
chown root:root ${localstatedir}/shared/empty
}