From 8db9a7f64156c3e4a9798012f5549e54a2fdc4cf Mon Sep 17 00:00:00 2001 From: Karchnu Date: Fri, 23 Apr 2021 20:09:08 +0200 Subject: [PATCH] Add libbsd recipe. --- recipes/libbsd/Makefile | 31 ++++++++++++++++++++++++ recipes/libbsd/disable-fpurge-test.patch | 10 ++++++++ 2 files changed, 41 insertions(+) create mode 100644 recipes/libbsd/Makefile create mode 100644 recipes/libbsd/disable-fpurge-test.patch diff --git a/recipes/libbsd/Makefile b/recipes/libbsd/Makefile new file mode 100644 index 0000000..1d0f30c --- /dev/null +++ b/recipes/libbsd/Makefile @@ -0,0 +1,31 @@ +name = libbsd +version = 0.10.0 +pkgrel = 0 +pkgdesc = "commonly-used BSD functions not implemented by all libcs" +url = "https://libbsd.freedesktop.org/" +arch = "all" +license = "BSD" +dependencies = "musl>=1.1.16-r22" +build-dependencies = bsd-compat-headers linux-headers +build-dependencies += autoconf automake libtool +URL = https://libbsd.freedesktop.org/releases/$(name)-$(version).tar.xz + +patches = disable-fpurge-test.patch + +# secfixes: +# 0.10.0-r0: +# - CVE-2019-20367 + +CONFIGURE_OPTIONS_USER = --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=$(MANDIR) \ + --infodir=$(SHAREDIR)/info \ + --localstatedir=/var + +MAKE_INSTALL_OPTIONS_USER = -C "$(bdir)" + +SYSCONF ?= ../../ +include $(SYSCONF)/package.mk + +pre_configure: + cd $(bdir) ; autoreconf -fi diff --git a/recipes/libbsd/disable-fpurge-test.patch b/recipes/libbsd/disable-fpurge-test.patch new file mode 100644 index 0000000..2a1950b --- /dev/null +++ b/recipes/libbsd/disable-fpurge-test.patch @@ -0,0 +1,10 @@ +--- libbsd-0.8.3/test/Makefile.am.old 2017-08-17 02:42:30.045825258 +0000 ++++ libbsd-0.8.3/test/Makefile.am 2017-08-17 03:49:17.928202106 +0000 +@@ -37,7 +37,6 @@ + humanize \ + fgetln \ + fparseln \ +- fpurge \ + md5 \ + proctitle-init \ + strmode \