summaryrefslogtreecommitdiff
path: root/community/openntpd/openntpd.install
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/openntpd/openntpd.install
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/openntpd/openntpd.install')
-rw-r--r--community/openntpd/openntpd.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/openntpd/openntpd.install b/community/openntpd/openntpd.install
new file mode 100644
index 000000000..837e4a1e3
--- /dev/null
+++ b/community/openntpd/openntpd.install
@@ -0,0 +1,25 @@
+post_install() {
+ if [ ! "`grep ^ntp /etc/group`" ]; then
+ echo "adding new group: ntp"
+ /usr/sbin/groupadd -g 87 ntp
+ fi
+
+ if [ ! "`grep ^ntp /etc/passwd`" ]; then
+ echo "adding new user: ntp"
+ /usr/sbin/useradd -g ntp -u 87 -d /var/empty -s /bin/false -c 'Network Time Protocol' ntp
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ /bin/true
+}
+
+post_remove() {
+ /bin/true
+}
+
+# vim: ts=2 sw=2 et ft=sh