aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-03-06 15:57:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-03-06 15:57:14 +0000
commitb68d15db9da850d0d571e2209271d601db908f41 (patch)
tree162440436b042113c49c926ac2eb414a2a4b19c2 /core
parent877a79ffbfb189dcd8242c6530bf4e3d76f67cfa (diff)
downloadaports-b68d15db9da850d0d571e2209271d601db908f41.tar.bz2
aports-b68d15db9da850d0d571e2209271d601db908f41.tar.xz
core/openntpd: install script fix
Diffstat (limited to 'core')
-rw-r--r--core/openntpd/APKBUILD9
-rw-r--r--core/openntpd/openntpd.pre-install7
2 files changed, 12 insertions, 4 deletions
diff --git a/core/openntpd/APKBUILD b/core/openntpd/APKBUILD
index 4d13163d84..118fe528a7 100644
--- a/core/openntpd/APKBUILD
+++ b/core/openntpd/APKBUILD
@@ -1,10 +1,11 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openntpd
pkgver=3.9_p1
_myver=3.9p1
-pkgrel=2
+pkgrel=3
pkgdesc="Lightweight NTP server ported from OpenBSD"
url=http://www.openntpd.org/
-install=openntpd.install
+install=openntpd.pre-install
subpackages="openntpd-doc"
depends="uclibc openssl"
@@ -16,7 +17,7 @@ source="
openntpd-3.9p1-ifaddr.patch
openntpd.conf.d
openntpd.rc
- openntpd.install
+ $install
"
_prepare() {
@@ -49,4 +50,4 @@ ae2f708b860975b64126bb316aeb6641 openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff
a1640ec40ac228338e60bd4fda42f84d openntpd-3.9p1-ifaddr.patch
e3eee9eb2ea092dfdf9d887cd6df5795 openntpd.conf.d
5000453927b7ae9943d51194c1042355 openntpd.rc
-21032167a8524bc88565c83b328be44b openntpd.install"
+05349f95db78fb482798b2c6d1f9c61e openntpd.pre-install"
diff --git a/core/openntpd/openntpd.pre-install b/core/openntpd/openntpd.pre-install
new file mode 100644
index 0000000000..32c6f51293
--- /dev/null
+++ b/core/openntpd/openntpd.pre-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# this user should be included in alpine-baselayout-1.2.
+# included here for backward compability.
+adduser -H -h /var/empty -s /bin/false -D ntp 2>/dev/null
+
+exit 0