From b4f600ce8c42a5bf90ba4740475866ae8f1d8b5d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 13 Jul 2009 12:54:59 +0000 Subject: core/openntpd: fix permissions of init.d script --- core/openntpd/APKBUILD | 12 ++++-------- core/openntpd/openntpd-3.9p1-ifaddr.patch | 12 ------------ 2 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 core/openntpd/openntpd-3.9p1-ifaddr.patch diff --git a/core/openntpd/APKBUILD b/core/openntpd/APKBUILD index 118fe528..38c11ca5 100644 --- a/core/openntpd/APKBUILD +++ b/core/openntpd/APKBUILD @@ -2,19 +2,18 @@ pkgname=openntpd pkgver=3.9_p1 _myver=3.9p1 -pkgrel=3 +pkgrel=4 pkgdesc="Lightweight NTP server ported from OpenBSD" url=http://www.openntpd.org/ install=openntpd.pre-install subpackages="openntpd-doc" -depends="uclibc openssl" +depends= makedepends="openssl-dev" license=BSD source=" ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-$_myver.tar.gz openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff - openntpd-3.9p1-ifaddr.patch openntpd.conf.d openntpd.rc $install @@ -22,7 +21,6 @@ source=" _prepare() { cd "$srcdir/$pkgname-$_myver" - patch -p1 < ../openntpd-3.9p1-ifaddr.patch patch -p1 < ../openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff sed -i '/NTPD_USER/s:_ntp:ntp:' ntpd.h || return 1 } @@ -36,9 +34,8 @@ _compile() { _install() { cd "$srcdir/$pkgname-$_myver" make install DESTDIR="$pkgdir" - mkdir -p "$pkgdir/etc/init.d" "$pkgdir/etc/conf.d" - cp ../openntpd.rc "$pkgdir/etc/init.d/ntpd" - cp ../openntpd.conf.d "$pkgdir/etc/conf.d/ntpd" + install -Dm755 ../openntpd.rc "$pkgdir/etc/init.d/ntpd" + install -Dm644 ../openntpd.conf.d "$pkgdir/etc/conf.d/ntpd" } @@ -47,7 +44,6 @@ build() { } md5sums="afc34175f38d08867c1403d9008600b3 openntpd-3.9p1.tar.gz ae2f708b860975b64126bb316aeb6641 openntpd-3.9p1_reconnect_on_sendto_EINVAL.diff -a1640ec40ac228338e60bd4fda42f84d openntpd-3.9p1-ifaddr.patch e3eee9eb2ea092dfdf9d887cd6df5795 openntpd.conf.d 5000453927b7ae9943d51194c1042355 openntpd.rc 05349f95db78fb482798b2c6d1f9c61e openntpd.pre-install" diff --git a/core/openntpd/openntpd-3.9p1-ifaddr.patch b/core/openntpd/openntpd-3.9p1-ifaddr.patch deleted file mode 100644 index 4539fa12..00000000 --- a/core/openntpd/openntpd-3.9p1-ifaddr.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- openntpd-3.9p1.orig/server.c Thu Nov 6 10:11:16 2008 -+++ openntpd-3.9p1/server.c Thu Nov 6 10:11:36 2008 -@@ -23,9 +23,6 @@ - #include - #include - #include --#ifdef HAVE_IFADDRS_H --# include --#endif - #include - #include - #include -- cgit v1.2.3