From 23d0ee1eb5752b183230794587ea0970827a0a9d Mon Sep 17 00:00:00 2001
From: Leo <thinkabit.ukim@gmail.com>
Date: Thu, 14 Jan 2021 03:07:46 -0300
Subject: [PATCH] community/lldpd: upgrade to 1.0.8

---
 community/lldpd/APKBUILD | 38 ++++++++++++++------------------------
 1 file changed, 14 insertions(+), 24 deletions(-)

diff --git a/community/lldpd/APKBUILD b/community/lldpd/APKBUILD
index af9b12a629db..ece30671740c 100644
--- a/community/lldpd/APKBUILD
+++ b/community/lldpd/APKBUILD
@@ -1,8 +1,8 @@
 # Contributor: Francesco Colista <fcolista@alpinelinux.org>
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=lldpd
-pkgver=1.0.7
-pkgrel=1
+pkgver=1.0.8
+pkgrel=0
 pkgdesc="Implementation of IEEE 802.1ab"
 url="http://vincentbernat.github.com/lldpd/"
 arch="all"
@@ -11,15 +11,23 @@ makedepends="autoconf automake libtool linux-headers bsd-compat-headers
 	libevent-dev libxml2-dev net-snmp-dev libbsd-dev jansson-dev
 	doxygen perl-dev readline-dev"
 install="$pkgname.post-install"
-subpackages="$pkgname-dev $pkgname-doc
-	$pkgname-bash-completion:bashcomp:noarch
-	$pkgname-zsh-completion:zshcomp:noarch"
+subpackages="
+	$pkgname-dev
+	$pkgname-doc
+	$pkgname-openrc
+	$pkgname-bash-completion
+	$pkgname-zsh-completion
+	"
 pkgusers="lldpd"
 pkggroups="lldpd"
 source="$pkgname-$pkgver.tar.gz::https://github.com/vincentbernat/lldpd/archive/$pkgver.tar.gz
 	$pkgname.confd
 	$pkgname.initd"
 
+# secfixes:
+#   1.0.8-r0:
+#     - CVE-2020-27827
+
 prepare() {
 	# this should be shipped with the release tarball
 	echo $pkgver > .dist-version
@@ -58,24 +66,6 @@ package() {
 	make DESTDIR="$pkgdir" install
 }
 
-bashcomp() {
-	pkgdesc="Bash completions for $pkgname"
-	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
-
-	mkdir -p "$subpkgdir"/usr/share/
-	mv "$pkgdir"/usr/share/bash-completion \
-		"$subpkgdir"/usr/share
-	rmdir -p "$pkgdir"/usr/share 2>/dev/null || true
-}
-
-zshcomp() {
-	pkgdesc="Zsh completion for $pkgname"
-	install_if="$pkgname=$pkgver-r$pkgrel zsh"
-
-	install -Dm644 "$builddir"/src/client/completion/_lldpcli \
-		"$subpkgdir"/usr/share/zsh/site-functions/_lldpcli
-}
-
-sha512sums="aecd8de94d0f4288e903b8e061599bab0939eb6b375c56388776b74729cf8accfb74d9e28534e5e76c08f6ed33f893f2edd1342b9ecb9e27361bf5e62abcbaef  lldpd-1.0.7.tar.gz
+sha512sums="ac94f188115a286ae7ef57c5e2f475bcf5b35de5430ea822328bccc6a772afc8c3abdc972f14f00c90bdc46a14e84f3e1b83263e51d337dad51bd9747667e727  lldpd-1.0.8.tar.gz
 a2a4c85068a6b8b80c92fe56af7799a8b8cb2516e5a65b3ae4cb28f278e5acc72402da2a35f0c48a6048fd4a8536061142cafaa49a4bae8e52ca0a5d9ed38b4c  lldpd.confd
 8d88e2a21efee6389d4de4f1ce2fcc9da8bd8ab3cb5a2bf2d322bde577e255662d027688065282146b389b3b8076fb883897e600fd931bcdc30d757fc7191e34  lldpd.initd"
-- 
GitLab