aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-08 13:10:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-08 13:35:12 +0000
commit8548d6c936344a59341c1c4362172407bf2149c2 (patch)
treeac69d64c86e35ba4e94f0e4b2d45887dc73ee1ed
parent5ea25ba4daccca0752a55705b06ac502b23ee597 (diff)
downloadaports-8548d6c936344a59341c1c4362172407bf2149c2.tar.bz2
aports-8548d6c936344a59341c1c4362172407bf2149c2.tar.xz
main/chrony: provide ntp-client and ntp-server
fixes #260 (cherry picked from commit 580b1e991fe7b5c58be1c045379bae23e190fc7d)
-rw-r--r--main/chrony/APKBUILD16
-rw-r--r--main/chrony/chronyd.initd1
2 files changed, 13 insertions, 4 deletions
diff --git a/main/chrony/APKBUILD b/main/chrony/APKBUILD
index da80937172..54d94e51d4 100644
--- a/main/chrony/APKBUILD
+++ b/main/chrony/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=chrony
pkgver=1.23
-pkgrel=4
+pkgrel=5
pkgdesc="NTP client and server programs"
url="http://chrony.sunsite.dk/"
license="GPL-2"
@@ -20,9 +20,10 @@ source="http://www.sfr-fresh.com/linux/misc/chrony-$pkgver.tar.gz
chrony.conf
"
-build() {
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
local i
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
for i in ../*.diff; do
msg "Applying $i"
@@ -30,13 +31,20 @@ build() {
done
sed -i "s:/etc/chrony:/etc/chrony/chrony:g" \
chrony*.[158] faq.txt chrony.texi || die "sed failed"
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--disable-readline
make all docs || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
mv "$pkgdir"/usr/doc "$pkgdir"/usr/share/
@@ -57,6 +65,6 @@ d47015a34b6b2f9eebca77ef939cec72 chrony-1.21-makefile.diff
39cbce9f66638b67623e1ee6bb0f943f chrony-1.23-sources.diff
caa6589a1a1cd56f64957e312d1ef84c chrony-1.23-reply-ip.diff
d5c09be46226774d22c08c5a4c28093a chronyd.confd
-348532411bb4b7139a0609676e15da66 chronyd.initd
+becc5e2bb407d8d03da7f5d8b3904fb7 chronyd.initd
468eaf2b5465d60b3ee021ce3f948ab1 chrony.logrotate
46f42c52953d398ca44d6baa449618d7 chrony.conf"
diff --git a/main/chrony/chronyd.initd b/main/chrony/chronyd.initd
index 457c1ef382..bf19f31980 100644
--- a/main/chrony/chronyd.initd
+++ b/main/chrony/chronyd.initd
@@ -6,6 +6,7 @@
depend() {
need net
after firewall
+ provide ntp-client ntp-server
use dns
}