diff --git a/srcpkgs/opensmtpd-extras/patches/fix-musl.patch b/srcpkgs/opensmtpd-extras/patches/fix-musl.patch new file mode 100644 index 00000000000..2f67db60858 --- /dev/null +++ b/srcpkgs/opensmtpd-extras/patches/fix-musl.patch @@ -0,0 +1,24 @@ +diff --git a/extras/tables/table-ldap/ber.h b/extras/tables/table-ldap/ber.h +index d656508..b92656c 100644 +--- extras/tables/table-ldap/ber.h ++++ extras/tables/table-ldap/ber.h +@@ -75,7 +75,9 @@ struct ber_oid { + size_t bo_n; + }; + +-__BEGIN_DECLS ++#ifdef __cpluplus ++extern "C" { ++#endif + struct ber_element *ber_get_element(unsigned long); + void ber_set_header(struct ber_element *, int, + unsigned long); +@@ -123,4 +125,6 @@ size_t ber_calc_len(struct ber_element *); + void ber_set_application(struct ber *, + unsigned long (*)(struct ber_element *)); + void ber_free(struct ber *); +-__END_DECLS ++#ifdef __cpluplus ++} ++#endif + diff --git a/srcpkgs/opensmtpd-extras/template b/srcpkgs/opensmtpd-extras/template new file mode 100644 index 00000000000..28c56a95250 --- /dev/null +++ b/srcpkgs/opensmtpd-extras/template @@ -0,0 +1,18 @@ +# Template file for 'opensmtpd-extras' +pkgname=opensmtpd-extras +version=6.4.0 +revision=1 +build_style=gnu-configure +configure_args="--with-table-passwd --with-table-ldap --with-table-mysql + --with-table-postgres --with-table-socketmap --with-table-sqlite" +makedepends="libressl-devel libevent-devel postgresql-libs-devel + libmysqlclient-devel sqlite-devel" +depends="opensmtpd" +short_desc="Free implementation of the server-side SMTP protocol - extras" +maintainer="Denis Revin " +license="ISC" +homepage="https://www.opensmtpd.org" +distfiles="https://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz" +checksum=@8f0618d28a6e5d42f9fec190add6d323f1373927fa67b15756644009d0ad3a72 + +CFLAGS="-D_DEFAULT_SOURCE"