diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-13 12:54:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-14 06:10:48 +0000 |
commit | b4f600ce8c42a5bf90ba4740475866ae8f1d8b5d (patch) | |
tree | f33c2b5e4ead151723cfcb2fbbd02304f58a01c5 | |
parent | ad65b4c42d429a91c801b6704ac652ec2c149323 (diff) | |
download | aports-b4f600ce8c42a5bf90ba4740475866ae8f1d8b5d.tar.bz2 aports-b4f600ce8c42a5bf90ba4740475866ae8f1d8b5d.tar.xz |
core/openntpd: fix permissions of init.d script
-rw-r--r-- | core/openntpd/APKBUILD | 12 | ||||
-rw-r--r-- | core/openntpd/openntpd-3.9p1-ifaddr.patch | 12 |
2 files changed, 4 insertions, 20 deletions
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 <sys/socket.h> - #include <errno.h> - #include <netinet/in.h> --#ifdef HAVE_IFADDRS_H --# include <ifaddrs.h> --#endif - #include <stdlib.h> - #include <string.h> - #include <unistd.h> |