aboutsummaryrefslogtreecommitdiffstats
path: root/main/openntpd/APKBUILD
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-04-24 15:58:55 +0300
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-06-02 08:06:39 +0000
commit89b858eff5467d9201b52bf87727bc947f07c323 (patch)
treeea90ffb52cb4539398daa14a14b6e0cff114793a /main/openntpd/APKBUILD
parent2275192021130da8e3bed22be2cd653ce9793a47 (diff)
downloadaports-89b858eff5467d9201b52bf87727bc947f07c323.tar.bz2
aports-89b858eff5467d9201b52bf87727bc947f07c323.tar.xz
main/openntpd: remove legacy stuff, cleanups
cleanups in APKBUILD remove legacy rc-scripts renaming remove legacy ntp-user checks and creation. make init-script like in opensmtpd
Diffstat (limited to 'main/openntpd/APKBUILD')
-rw-r--r--main/openntpd/APKBUILD34
1 files changed, 12 insertions, 22 deletions
diff --git a/main/openntpd/APKBUILD b/main/openntpd/APKBUILD
index c964c5e581..7681d911ed 100644
--- a/main/openntpd/APKBUILD
+++ b/main/openntpd/APKBUILD
@@ -1,35 +1,24 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openntpd
pkgver=6.0_p1
-_myver=${pkgver/_/}
-pkgrel=3
+_pkgver=${pkgver/_/}
+pkgrel=4
pkgdesc="Lightweight NTP server ported from OpenBSD"
url="http://www.openntpd.org/"
subpackages="openntpd-doc"
-depends=""
makedepends="libressl-dev linux-headers bsd-compat-headers"
arch="all"
license="BSD"
-install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-upgrade"
-source="http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-$_myver.tar.gz
+options="!check"
+source="http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/$pkgname-$_pkgver.tar.gz
ntp-user.patch
- openntpd.confd
- openntpd.initd
+ $pkgname.confd
+ $pkgname.initd
"
-
-_builddir="$srcdir"/$pkgname-$_myver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/$pkgname-$_pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -43,14 +32,15 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make install DESTDIR="$pkgdir" || return 1
mkdir -p "$pkgdir"/var/empty || return 1
- install -Dm755 "$srcdir"/openntpd.initd \
+ install -Dm755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/"$pkgname" || return 1
- install -Dm644 "$srcdir"/openntpd.confd \
+ install -Dm644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/"$pkgname" || return 1
+ rmdir "$pkgdir"/var/run
}
md5sums="9388979cc2713551bfbdfb3864291abe openntpd-6.0p1.tar.gz