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 \