summaryrefslogtreecommitdiffstats
path: root/main/chrony
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:10:53 +0000
commit580b1e991fe7b5c58be1c045379bae23e190fc7d (patch)
tree7beb31f5dced86b8c395e0c4916ca7108ab1436a /main/chrony
parente87de2d78768ba52e394739335fa69a28fed8207 (diff)
downloadaports-580b1e991fe7b5c58be1c045379bae23e190fc7d.tar.bz2
aports-580b1e991fe7b5c58be1c045379bae23e190fc7d.tar.xz
main/chrony: provide ntp-client and ntp-server
fixes #260
Diffstat (limited to 'main/chrony')
-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 da8093717..54d94e51d 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 457c1ef38..bf19f3198 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
}