From c8db68194c98f1243d965484093d10a42f951a84 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 28 Aug 2018 19:54:47 +0200 Subject: [PATCH] proftpd: fix cross --- srcpkgs/proftpd/patches/cross.patch | 11 +++++++++++ srcpkgs/proftpd/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/proftpd/patches/cross.patch diff --git a/srcpkgs/proftpd/patches/cross.patch b/srcpkgs/proftpd/patches/cross.patch new file mode 100644 index 00000000000..493ce1b3c92 --- /dev/null +++ b/srcpkgs/proftpd/patches/cross.patch @@ -0,0 +1,11 @@ +--- lib/libcap/Makefile 2017-04-10 04:31:02.000000000 +0200 ++++ - 2018-08-28 19:50:14.092251299 +0200 +@@ -26,7 +26,7 @@ + all: $(LIBNAME) + + _makenames: _makenames.c cap_names.sed +- $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ ++ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $< -o $@ + + cap_names.h: _makenames + ./_makenames > cap_names.h diff --git a/srcpkgs/proftpd/template b/srcpkgs/proftpd/template index 380449ea435..6cb3a4cb6bc 100644 --- a/srcpkgs/proftpd/template +++ b/srcpkgs/proftpd/template @@ -3,6 +3,7 @@ pkgname=proftpd version=1.3.6 revision=1 build_style=gnu-configure +makedepends="libcap-devel" short_desc="Highly configurable GPL-licensed FTP server software" maintainer="John " license="GPL-3.0-or-later" @@ -11,7 +12,6 @@ homepage="http://www.proftpd.org/" distfiles="https://github.com/proftpd/proftpd/archive/v${version}.tar.gz" checksum=91ef74b143495d5ff97c4d4770c6804072a8c8eb1ad1ecc8cc541b40e152ecaf conf_files="/etc/proftpd.conf" -nocross="https://travis-ci.org/Johnnynator/void-packages/jobs/385821450" proftpd-devel_package() { short_desc+=" - development files"