From c4df9d1805ff82794c28c739cd165ba5cdcdf361 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 3 Apr 2017 16:47:41 +0200 Subject: main/avahi: fix arning about runscript --- main/avahi/APKBUILD | 16 +++++----------- main/avahi/openrc-run.patch | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 main/avahi/openrc-run.patch diff --git a/main/avahi/APKBUILD b/main/avahi/APKBUILD index 82c9604bb5..4d76fbc2c8 100644 --- a/main/avahi/APKBUILD +++ b/main/avahi/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=avahi pkgver=0.6.32 -pkgrel=3 +pkgrel=4 pkgdesc="A multicast/unicast DNS-SD framework" url="http://www.avahi.org/" arch="all" @@ -18,18 +18,13 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-glib $pkgname-libs $pkgname-compat-howl:howl $pkgname-compat-libdns_sd:lidns_sd $pkgname-lang py-avahi:py" -patches=" - " source="https://github.com/lathiat/avahi/releases/download/v$pkgver/avahi-$pkgver.tar.gz - $patches + openrc-run.patch " builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$builddir" - for i in $patches; do - msg $i; patch -p1 -i "$srcdir"/$i || return 1 - done + default_prepare autoreconf -vif } @@ -122,6 +117,5 @@ py() { } -md5sums="22b5e705d3eabb31d26f2e1e7b074013 avahi-0.6.32.tar.gz" -sha256sums="d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454 avahi-0.6.32.tar.gz" -sha512sums="6f8d0a64292439cbb989c531a4ba2f25a53ee9cf7ad9df04dedf73149489a92612f3b5955e10aa4b1c76496c34b90ad75590e8aa49468249508267c1c8b899ee avahi-0.6.32.tar.gz" +sha512sums="6f8d0a64292439cbb989c531a4ba2f25a53ee9cf7ad9df04dedf73149489a92612f3b5955e10aa4b1c76496c34b90ad75590e8aa49468249508267c1c8b899ee avahi-0.6.32.tar.gz +2754d11bf027676f30de6322eb9251ae83df5ef8f7b354793263224d432514a49e021d8f819f5525eeaeead04b544e15bfd2183ac8bc9f97e871d246e2b6a108 openrc-run.patch" diff --git a/main/avahi/openrc-run.patch b/main/avahi/openrc-run.patch new file mode 100644 index 0000000000..08105aa268 --- /dev/null +++ b/main/avahi/openrc-run.patch @@ -0,0 +1,20 @@ +diff --git a/initscript/gentoo/avahi-daemon.in b/initscript/gentoo/avahi-daemon.in +index f12d0e4..c038c75 100644 +--- a/initscript/gentoo/avahi-daemon.in ++++ b/initscript/gentoo/avahi-daemon.in +@@ -1,4 +1,4 @@ +-#!/sbin/runscript ++#!/sbin/openrc-run + # Copyright 1999-2007 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 + +diff --git a/initscript/gentoo/avahi-dnsconfd.in b/initscript/gentoo/avahi-dnsconfd.in +index dff914c..48f3b35 100644 +--- a/initscript/gentoo/avahi-dnsconfd.in ++++ b/initscript/gentoo/avahi-dnsconfd.in +@@ -1,4 +1,4 @@ +-#!/sbin/runscript ++#!/sbin/openrc-run + # Copyright 1999-2007 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 + -- cgit v1.2.3