summaryrefslogtreecommitdiff
path: root/packages/openntpd
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-07-10 23:27:06 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-10 23:27:06 +0000
commit083848853788fa15c89cf3de01775edd76f7037d (patch)
tree8feb281896621ac6d472de259d21bf6558e70e14 /packages/openntpd
parentc7a4df48a2685da437396665873e9088cc37b729 (diff)
Make MySQL & openntpd create users on install
Diffstat (limited to 'packages/openntpd')
-rw-r--r--packages/openntpd/openntpd_3.7p1.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/openntpd/openntpd_3.7p1.bb b/packages/openntpd/openntpd_3.7p1.bb
index 37173e58c7..0c2091160f 100644
--- a/packages/openntpd/openntpd_3.7p1.bb
+++ b/packages/openntpd/openntpd_3.7p1.bb
@@ -5,7 +5,7 @@ HOMEPAGE = "http://www.openntpd.org/"
LICENSE = "BSD"
SECTION = "console/network"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org>"
-PR="r1"
+PR="r2"
SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \
file://autofoo.patch;patch=1 \
@@ -28,3 +28,12 @@ do_install_append() {
install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/openntpd
install -d ${D}${localstatedir}/shared/empty
}
+
+pkg_postrm () {
+ grep ntpd /etc/passwd && deluser ntpd
+}
+
+pkg_postinst () {
+ grep ntpd /etc/passwd || adduser --disabled-password --home=/var/shared/empty --ingroup nogroup ntpd
+}
+