New package: opensmtpd-extras

closes #6527

Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
Denis Revin 2019-01-03 02:00:51 +04:00 committed by maxice8
parent 431811062b
commit c561be4108
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
2 changed files with 42 additions and 0 deletions

View File

@ -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

View File

@ -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 <denis.revin@gmail.com>"
license="ISC"
homepage="https://www.opensmtpd.org"
distfiles="https://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
checksum=@8f0618d28a6e5d42f9fec190add6d323f1373927fa67b15756644009d0ad3a72
CFLAGS="-D_DEFAULT_SOURCE"