aboutsummaryrefslogtreecommitdiffstats
path: root/main/openntpd
diff options
context:
space:
mode:
authorsystmkor <systmkor@gmail.com>2015-08-27 12:18:17 -0700
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-05 13:17:20 +0200
commit8a645d5f164a82967591eb54b922fab240945f40 (patch)
treef452790cb4c6f3db7df897ec21b21ab1e07f7a9f /main/openntpd
parentc4a32fdc3acffe6ce8a136c740f9fff9cb984e6a (diff)
downloadaports-8a645d5f164a82967591eb54b922fab240945f40.tar.bz2
aports-8a645d5f164a82967591eb54b922fab240945f40.tar.xz
main/openntpd: fixes privelege seperation defaults
- compiles default privelege seperation user as ntp instead of _ntp - creates required chroot directory /var/empty
Diffstat (limited to 'main/openntpd')
-rw-r--r--main/openntpd/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/main/openntpd/APKBUILD b/main/openntpd/APKBUILD
index d2de528464..9886012529 100644
--- a/main/openntpd/APKBUILD
+++ b/main/openntpd/APKBUILD
@@ -4,14 +4,14 @@ pkgver=5.7_p4
_myver=${pkgver/_/}
pkgrel=0
pkgdesc="Lightweight NTP server ported from OpenBSD"
-url=http://www.openntpd.org/
+url="http://www.openntpd.org/"
install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-upgrade"
subpackages="openntpd-doc"
-depends=
+depends=""
makedepends="openssl-dev linux-headers bsd-compat-headers"
arch="all"
-license=BSD
+license="BSD"
source="
http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-$_myver.tar.gz
openntpd.confd
@@ -29,7 +29,6 @@ prepare() {
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
- sed -i '/NTPD_USER/s:_ntp:ntp:' src/ntpd.h || return 1
}
build() {
@@ -41,15 +40,17 @@ build() {
--localstatedir=/var \
--mandir=/usr/share/man \
--sysconfdir=/etc \
+ --with-privsep-user=ntp \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
- make install DESTDIR="$pkgdir"
- install -Dm755 ../openntpd.initd "$pkgdir/etc/init.d/$pkgname"
- install -Dm644 ../openntpd.confd "$pkgdir/etc/conf.d/$pkgname"
+ make install DESTDIR="$pkgdir" || return 1
+ mkdir -p "$pkgdir"/var/empty || return 1
+ install -Dm755 "$srcdir"/openntpd.initd "$pkgdir"/etc/init.d/"$pkgname" || return 1
+ install -Dm644 "$srcdir"/openntpd.confd "$pkgdir"/etc/conf.d/"$pkgname" || return 1
}
md5sums="9d818a143fbc5d830203fa2f4b4c6a2a openntpd-5.7p4.tar.gz