Update to 2.1 and take maintainership

ok jca@
This commit is contained in:
giovanni 2015-08-27 13:51:27 +00:00
parent e75581c029
commit d30d849a2b
7 changed files with 68 additions and 47 deletions

View File

@ -1,22 +1,22 @@
# $OpenBSD: Makefile,v 1.31 2015/08/21 22:51:10 sthen Exp $
# $OpenBSD: Makefile,v 1.32 2015/08/27 13:51:27 giovanni Exp $
COMMENT-main= fully featured POP3 and IMAP4 proxy server
COMMENT-ldap= LDAP backend for perdition mail proxy
COMMENT-mysql= MySQL backend for perdition mail proxy
COMMENT-mysql= MySQL backend for perdition mail proxy
COMMENT-pgsql= PostgreSQL backend for perdition mail proxy
DISTVER= 1.19-rc5
REVISION= 6
REVISION-mysql= 8
DISTVER= 2.1
DISTNAME= perdition-${DISTVER}
PKGNAME-main= perdition-${DISTVER:S/-//}
PKGNAME-ldap= perdition-ldap-${DISTVER:S/-//}
PKGNAME-mysql= perdition-mysql-${DISTVER:S/-//}
PKGNAME-pgsql= perdition-pgsql-${DISTVER:S/-//}
PKGNAME-mysql= perdition-mysql-${DISTVER:S/-//}
PKGNAME-pgsql= perdition-pgsql-${DISTVER:S/-//}
CATEGORIES= mail
SHARED_LIBS += jain 0.0 # .0.0
HOMEPAGE= http://horms.net/projects/perdition/
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
SHARED_LIBS += perditiondb_bdb 0.0 # .0.0
SHARED_LIBS += perditiondb_nis 0.0 # .0.0
SHARED_LIBS += perditiondb_posix_regex 0.0 # .0.0
@ -26,8 +26,6 @@ SHARED_LIBS += perditiondb_ldap 0.0 # .0.0
SHARED_LIBS += perditiondb_mysql 0.0 # .0.0
SHARED_LIBS += perditiondb_postgresql 0.0 # .0.0
HOMEPAGE= http://www.vergenet.net/linux/perdition/
# GPLv2+ (included COPYING is v3, but all files with a
# copyright claim specify version 2 or above).
PERMIT_PACKAGE_CDROM= Yes
@ -60,18 +58,20 @@ MULTI_PACKAGES= -main -mysql -pgsql -ldap
.include <bsd.port.arch.mk>
cWANTLIB= lib/db4/db>=4 vanessa_logger>=1.0 vanessa_socket>=1.0 \
vanessa_adt>=1.0
LIB_DEPENDS+= databases/db/v4 \
cWANTLIB= lib/db4/db>=4 vanessa_logger>=1.0
cLIB_DEPENDS+= databases/db/v4 \
vanessa_logger->=0.0.10:devel/vanessa/logger
WANTLIB-main= ${cWANTLIB} ${MODGETTEXT_WANTLIB} \
c crypto ssl util popt idn \
vanessa_adt>=1.0 vanessa_socket>=1.0
LIB_DEPENDS-main= ${cLIB_DEPENDS} ${LIB_DEPENDS} \
${MODGETTEXT_LIB_DEPENDS} \
devel/popt devel/libidn \
vanessa_adt->=0.0.9:devel/vanessa/adt \
vanessa_logger->=0.0.10:devel/vanessa/logger \
vanessa_socket->=0.0.12:devel/vanessa/socket
WANTLIB-main= ${MODGETTEXT_WANTLIB} ${cWANTLIB} \
c crypto ssl util popt idn
LIB_DEPENDS-main= ${LIB_DEPENDS} devel/popt devel/libidn
LIB_DEPENDS-ldap= ${LIB_DEPENDS} security/cyrus-sasl2 \
LIB_DEPENDS-ldap= ${cLIB_DEPENDS} security/cyrus-sasl2 \
openldap-client->=2,<3:databases/openldap
WANTLIB-ldap= crypto lber-2.4 ldap-2.4 sasl2 ssl util ${cWANTLIB}
@ -83,9 +83,11 @@ CONFIGURE_ARGS+= --with-ldap-libraries=${LOCALBASE}/lib \
--disable-ldap-doc
.endif
LIB_DEPENDS-mysql= ${LIB_DEPENDS} databases/mariadb
WANTLIB-mysql= crypto ssl util m z lib/mysql/mysqlclient \
pthread stdc++ ${cWANTLIB}
LIB_DEPENDS-mysql= ${cLIB_DEPENDS} databases/mariadb \
vanessa_adt->=0.0.9:devel/vanessa/adt
WANTLIB-mysql= crypto pthread ssl stdc++ util m z \
lib/mysql/mysqlclient ${cWANTLIB} \
vanessa_adt>=1.0
.if !${BUILD_PACKAGES:M-mysql}
CONFIGURE_ARGS+= --disable-mysql
@ -94,8 +96,9 @@ CONFIGURE_ARGS+= --with-mysql-libraries=${LOCALBASE}/lib/mysql \
--with-mysql-includes=${LOCALBASE}/include/mysql
.endif
LIB_DEPENDS-pgsql= ${LIB_DEPENDS} databases/postgresql
WANTLIB-pgsql= crypto pq ssl util ${cWANTLIB}
LIB_DEPENDS-pgsql= ${cLIB_DEPENDS} databases/postgresql \
vanessa_adt->=0.0.9:devel/vanessa/adt
WANTLIB-pgsql= crypto pq ssl util ${cWANTLIB} vanessa_adt>=1.0
.if !${BUILD_PACKAGES:M-pgsql}
CONFIGURE_ARGS+= --disable-pg

View File

@ -1,2 +1,2 @@
SHA256 (perdition-1.19-rc5.tar.gz) = dgctaV0Y5VofNOPNOM54HS8Tj4WdCLeu37y1GlxIkrU=
SIZE (perdition-1.19-rc5.tar.gz) = 642566
SHA256 (perdition-2.1.tar.gz) = ZF+7O7HQAfWuyV0oSLI+JFrqzHkRnws5K8V82JbXn+g=
SIZE (perdition-2.1.tar.gz) = 701062

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-perdition_db_ldap_perditiondb_ldap_makedb,v 1.1 2015/08/27 13:51:27 giovanni Exp $
--- perdition/db/ldap/perditiondb_ldap_makedb.orig Fri Jul 17 18:26:20 2015
+++ perdition/db/ldap/perditiondb_ldap_makedb Fri Jul 17 18:26:30 2015
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
######################################################################
# perditiondb_ldap_makedb May 2000
# Horms horms@verge.net.au

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-perdition_db_mysql_perditiondb_mysql_makedb,v 1.1 2015/08/27 13:51:27 giovanni Exp $
--- perdition/db/mysql/perditiondb_mysql_makedb.orig Fri Jul 17 18:24:54 2015
+++ perdition/db/mysql/perditiondb_mysql_makedb Fri Jul 17 18:25:11 2015
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
######################################################################
# makedb December 2000
# Horms horms@verge.net.au

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-perdition_db_postgresql_perditiondb_postgresql_makedb,v 1.1 2015/08/27 13:51:27 giovanni Exp $
--- perdition/db/postgresql/perditiondb_postgresql_makedb.orig Fri Jul 17 18:25:43 2015
+++ perdition/db/postgresql/perditiondb_postgresql_makedb Fri Jul 17 18:25:54 2015
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
######################################################################
# perditiondb_postgresql_makedb December 2000
# Horms horms@verge.net.au

View File

@ -1,10 +1,19 @@
$OpenBSD: patch-perdition_options_h,v 1.1 2013/03/15 15:17:36 sthen Exp $
$OpenBSD: patch-perdition_options_h,v 1.2 2015/08/27 13:51:27 giovanni Exp $
Auth timeout used for SO_RECVTIMEO in ssl.c which has a max of
USHRT_MAX hz otherwise it fails with EDOM.
--- perdition/options.h.orig Thu Mar 14 13:58:46 2013
+++ perdition/options.h Thu Mar 14 14:00:47 2013
--- perdition/options.h.orig Fri Oct 4 03:44:12 2013
+++ perdition/options.h Fri Jul 17 15:22:50 2015
@@ -128,7 +128,7 @@
#define DEFAULT_IMAP_CAPABILITY "IMAP4 IMAP4REV1"
#define DEFAULT_INETD_MODE 0
#define DEFAULT_MAP_LIB PERDITION_LIBDIR \
- "/libperditiondb_gdbm.so.0"
+ "/libperditiondb_bdb.so.0"
#define DEFAULT_LOG_FACILITY "mail"
#define DEFAULT_LOGIN_DISABLED 0
#define DEFAULT_LOWER_CASE STATE_NONE
@@ -145,7 +145,7 @@
#define DEFAULT_STRIP_DOMAIN STATE_NONE
#define DEFAULT_SERVER_RESP_LINE 0

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-perdition_perdition_c,v 1.1 2013/11/15 10:10:02 sthen Exp $
Use the correct list of ciphers for outgoing STARTTLS cnnections.
CVE-2013-4584
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729028
--- perdition/perdition.c.orig Fri Nov 15 10:05:58 2013
+++ perdition/perdition.c Fri Nov 15 10:06:31 2013
@@ -985,7 +985,7 @@ int main (int argc, char **argv, char **envp){
else if((opt.ssl_mode & SSL_MODE_TLS_OUTGOING) &&
(status & PROTOCOL_S_STARTTLS)) {
server_io=perdition_ssl_client_connection(server_io, opt.ssl_ca_file,
- opt.ssl_ca_path, opt.ssl_listen_ciphers, servername);
+ opt.ssl_ca_path, opt.ssl_outgoing_ciphers, servername);
if(!server_io) {
VANESSA_LOGGER_DEBUG("perdition_ssl_connection outgoing");
VANESSA_LOGGER_ERR("Fatal error establishing SSL connection");