aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-17 14:30:38 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-17 14:31:10 +0200
commit4697b739dbd9c4bed4837da857747fb3679dc8f1 (patch)
tree389db7ba1347060ba30b769a369bb538cbdb4d51 /main
parent6859153e28d2401b9a461ea679f16efc675b840a (diff)
downloadaports-4697b739dbd9c4bed4837da857747fb3679dc8f1.tar.bz2
aports-4697b739dbd9c4bed4837da857747fb3679dc8f1.tar.xz
main/openntpd: fix ntp system user
Diffstat (limited to 'main')
-rw-r--r--main/openntpd/APKBUILD6
-rw-r--r--main/openntpd/ntp-user.patch13
2 files changed, 18 insertions, 1 deletions
diff --git a/main/openntpd/APKBUILD b/main/openntpd/APKBUILD
index 9886012529..ebb1c0cb85 100644
--- a/main/openntpd/APKBUILD
+++ b/main/openntpd/APKBUILD
@@ -2,7 +2,7 @@
pkgname=openntpd
pkgver=5.7_p4
_myver=${pkgver/_/}
-pkgrel=0
+pkgrel=1
pkgdesc="Lightweight NTP server ported from OpenBSD"
url="http://www.openntpd.org/"
install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-upgrade"
@@ -14,6 +14,7 @@ arch="all"
license="BSD"
source="
http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-$_myver.tar.gz
+ ntp-user.patch
openntpd.confd
openntpd.initd
"
@@ -54,11 +55,14 @@ package() {
}
md5sums="9d818a143fbc5d830203fa2f4b4c6a2a openntpd-5.7p4.tar.gz
+e811d18679dbd64d0309a810abe5a5a3 ntp-user.patch
e3eee9eb2ea092dfdf9d887cd6df5795 openntpd.confd
e7856ad0eef420922f1d501d9ccac117 openntpd.initd"
sha256sums="a993d95976e375acc0ab1a677fd268f55024477835633c8ae404895046bccb23 openntpd-5.7p4.tar.gz
+7498658ced6c83a7308800c90889b3bc628071cd745916b03c51c4e49c4df63f ntp-user.patch
a1cb9dc8fbbaf6f439d6547bce9d59e86e7e13855b037d33bad1f789fb7050f3 openntpd.confd
42987f19f2fc54455c8aeed0e9bc586ceafae85762cb20e33858139208ab6c79 openntpd.initd"
sha512sums="2a185139c915482086069fa19dd3070884a415137d1688059559d2da892928afbbe2fa0a8ade70d474809710265dcc05906abaf261892d7894e70272e2e516ef openntpd-5.7p4.tar.gz
+290311e5cd074d5bd1e6374ba9b4776e4acf792d47011c43412e236766b73be2b0e5f0091bd3ad79d0b637754531889b199e66c64952765bbcd1bade0d2ebe94 ntp-user.patch
a80de3a07eadebeb67b2a3532713df34f1c2113965001f50bdad90f66df6fe57af08e9fba7afac9c5f0afb52d2318c120cd4eb428255f8bc5ef748cefd7e106a openntpd.confd
0cdead06e4b359ecedb1065c929ddd66ef3bc5d321bd96e462abf1f55ab289c36793ee5e8f4262c0b7ef7e3532f3613fa66ca22e88f742814f357310465b7d99 openntpd.initd"
diff --git a/main/openntpd/ntp-user.patch b/main/openntpd/ntp-user.patch
new file mode 100644
index 0000000000..200676c860
--- /dev/null
+++ b/main/openntpd/ntp-user.patch
@@ -0,0 +1,13 @@
+diff --git a/src/ntpd.h b/src/ntpd.h
+index 6403391..cc41d42 100644
+--- a/src/ntpd.h
++++ b/src/ntpd.h
+@@ -37,7 +37,7 @@
+ #define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
+
+ #ifndef NTPD_USER
+-#define NTPD_USER "_ntp"
++#define NTPD_USER "ntp"
+ #endif
+
+ #ifndef SYSCONFDIR