Commit ce357695 authored by Natanael Copa's avatar Natanael Copa

main/openntpd: bump pkgrel so we get the sysconfdir fix

parent 984db389
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
pkgname=openntpd pkgname=openntpd
pkgver=3.9_p1 pkgver=3.9_p1
_myver=3.9p1 _myver=3.9p1
pkgrel=4 pkgrel=5
pkgdesc="Lightweight NTP server ported from OpenBSD" pkgdesc="Lightweight NTP server ported from OpenBSD"
url=http://www.openntpd.org/ url=http://www.openntpd.org/
install=openntpd.pre-install install=openntpd.pre-install
...@@ -18,13 +18,13 @@ source=" ...@@ -18,13 +18,13 @@ source="
openntpd.initd openntpd.initd
" "
_prepare() { prepare() {
cd "$srcdir/$pkgname-$_myver" cd "$srcdir/$pkgname-$_myver"
patch -p1 < ../openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff patch -p1 < ../openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff
sed -i '/NTPD_USER/s:_ntp:ntp:' ntpd.h || return 1 sed -i '/NTPD_USER/s:_ntp:ntp:' ntpd.h || return 1
} }
_compile() { build() {
cd "$srcdir/$pkgname-$_myver" cd "$srcdir/$pkgname-$_myver"
./configure --prefix=/usr \ ./configure --prefix=/usr \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
...@@ -33,17 +33,13 @@ _compile() { ...@@ -33,17 +33,13 @@ _compile() {
make || return 1 make || return 1
} }
_install() { package() {
cd "$srcdir/$pkgname-$_myver" cd "$srcdir/$pkgname-$_myver"
make install DESTDIR="$pkgdir" make install DESTDIR="$pkgdir"
install -Dm755 ../openntpd.initd "$pkgdir/etc/init.d/ntpd" install -Dm755 ../openntpd.initd "$pkgdir/etc/init.d/ntpd"
install -Dm644 ../openntpd.confd "$pkgdir/etc/conf.d/ntpd" install -Dm644 ../openntpd.confd "$pkgdir/etc/conf.d/ntpd"
} }
build() {
_prepare && _compile && _install
}
md5sums="afc34175f38d08867c1403d9008600b3 openntpd-3.9p1.tar.gz md5sums="afc34175f38d08867c1403d9008600b3 openntpd-3.9p1.tar.gz
ae2f708b860975b64126bb316aeb6641 openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff ae2f708b860975b64126bb316aeb6641 openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff
e3eee9eb2ea092dfdf9d887cd6df5795 openntpd.confd e3eee9eb2ea092dfdf9d887cd6df5795 openntpd.confd
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment