pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cyrus-imapd30: a lot of small fixes, the build is now going through, packaging and installation work basically



Module Name:	pkgsrc-wip
Committed By:	Matthias Petermann <mp%petermann-it.de@localhost>
Pushed By:	mp
Date:		Tue Mar 10 01:31:06 2020 +0100
Changeset:	821a2f536a543182f0be77f43d96a96a9a16b6c9

Modified Files:
	cyrus-imapd30/Makefile
	cyrus-imapd30/PLIST
	cyrus-imapd30/TODO
	cyrus-imapd30/distinfo
	cyrus-imapd30/files/cyrus.sh
	cyrus-imapd30/files/imapd.conf
	cyrus-imapd30/options.mk

Log Message:
cyrus-imapd30: a lot of small fixes, the build is now going through, packaging and installation work basically

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=821a2f536a543182f0be77f43d96a96a9a16b6c9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 cyrus-imapd30/Makefile         | 27 +++++++++------------------
 cyrus-imapd30/PLIST            |  1 -
 cyrus-imapd30/TODO             | 19 +++++++++++--------
 cyrus-imapd30/distinfo         |  7 -------
 cyrus-imapd30/files/cyrus.sh   |  5 ++++-
 cyrus-imapd30/files/imapd.conf | 24 ++++++++++++------------
 cyrus-imapd30/options.mk       |  4 ++--
 7 files changed, 38 insertions(+), 49 deletions(-)

diffs:
diff --git a/cyrus-imapd30/Makefile b/cyrus-imapd30/Makefile
index 300c29eecb..26783dd2e3 100644
--- a/cyrus-imapd30/Makefile
+++ b/cyrus-imapd30/Makefile
@@ -2,19 +2,22 @@
 
 DISTNAME=	cyrus-imapd-3.0.13
 CATEGORIES=	mail
-MASTER_SITES=	https://github.com/cyrusimap/cyrus-imapd/releases/download/${PKGNAME}/
+MASTER_SITES=	${MASTER_SITE_GITHUB:=cyrusimap/}
+GITHUB_RELEASE=	${PKGNAME_NOREV}
 
 MAINTAINER=	mp%petermann-it.de@localhost
 HOMEPAGE=	https://www.cyrusimap.org/
 COMMENT=	Cyrus IMAP server
-#LICENSE=	original-bsd # like license
-
-DEPENDS+=       p5-Term-ReadLine>=1.20:../../devel/p5-Term-ReadLine
+LICENSE=	original-bsd # like license
+DEPENDS+=	p5-Term-ReadLine>=1.20:../../devel/p5-Term-ReadLine
+DEPENDS+=	p5-Authen-SASL-Cyrus>=0.13:../../security/p5-Authen-SASL-Cyrus
+DEPENDS+=	cyrus-saslauthd>=2.1.17:../../security/cyrus-saslauthd
 
 MAKE_JOBS_SAFE=	no
 
-USE_LANGUAGES+=		c c++
-USE_TOOLS+=		perl:run makedepend yacc pkg-config sed awk gmake
+USE_LANGUAGES+=	c c++
+USE_TOOLS+=	perl:run makedepend yacc pkg-config sed awk gmake
+USE_LIBTOOL=	yes
 
 USE_PKGLOCALEDIR=	yes
 
@@ -27,9 +30,6 @@ CHECK_PORTABILITY_SKIP=	configure.lineno
 
 .include "../../mk/bsd.prefs.mk"
 
-CYRUS_USER?=		cyrus
-CYRUS_GROUP?=		mail
-
 BUILD_DEFS+=		CYRUS_USER CYRUS_GROUP
 FILES_SUBST+=		CYRUS_USER=${CYRUS_USER}
 FILES_SUBST+=		CYRUS_GROUP=${CYRUS_GROUP}
@@ -65,15 +65,6 @@ FILES_SUBST+=		IMAPDCONF=${PKG_SYSCONFDIR}/imapd.conf
 
 REPLACE_PERL+=		tools/rehash
 
-#SUBST_CLASSES+=		sh
-#SUBST_STAGE.sh=		post-build
-#SUBST_FILES.sh=		perl/imap/blib/script/cyradm
-#SUBST_SED.sh+=		-e 's|^\#!.*|\#!/bin/sh|'
-
-#PERL5_PACKLIST= \
-#	auto/Cyrus/IMAP/.packlist				\
-#	auto/Cyrus/SIEVE/managesieve/.packlist
-
 pre-build:
 	${RUN}${_ULIMIT_CMD}
 
diff --git a/cyrus-imapd30/PLIST b/cyrus-imapd30/PLIST
index 00b3b8925b..e5a1d84320 100644
--- a/cyrus-imapd30/PLIST
+++ b/cyrus-imapd30/PLIST
@@ -71,7 +71,6 @@ lib/libcyrus_com_err.la
 lib/libcyrus_imap.la
 lib/libcyrus_min.la
 lib/libcyrus_sieve.la
-${PERL5_SUB_INSTALLARCHLIB}/perllocal.pod
 lib/perl5/site_perl/5.30.0/Cyrus/Annotator/AnnotateInlinedCIDs.pm
 lib/perl5/site_perl/5.30.0/Cyrus/Annotator/Daemon.pm
 lib/perl5/site_perl/5.30.0/Cyrus/Annotator/Message.pm
diff --git a/cyrus-imapd30/TODO b/cyrus-imapd30/TODO
index 10f85c859d..cbd0c02eac 100644
--- a/cyrus-imapd30/TODO
+++ b/cyrus-imapd30/TODO
@@ -6,25 +6,28 @@ suggestions or active support.
 
 Done:
 
-- Make it build the most basic way [DONE]
-
-Next steps:
+- Make it build the most basic way 
 
 - Make it install
 
 - Update PLIST (take care of ldap / http options)
 
-- Integrate / regenerate documentation at build time
-
 - Evaluation of the patches of the existing Cyrus-imap-pkgs and
   their applicability for cyrus-imap 3
 
-- Possibly create further patches for cyrus-imap 3 (especially with
-  regard to the newly added functions CalDAV / CardDAV), if necessary
-
 - Review and adjustment of scripts / provided files (configuration
   examples, man pages)
 
+- Performed first integration tests (client connection to IMAP, 
+  authenticated via saslauthd with ldap)
+
+Next steps:
+
+- Integrate / regenerate documentation at build time
+
+- Possibly create further patches for cyrus-imap 3 (especially with
+  regard to the newly added functions CalDAV / CardDAV), if necessary
+
 - Fine-tuning of the build
 
 Bugs:
diff --git a/cyrus-imapd30/distinfo b/cyrus-imapd30/distinfo
index 4aff170fa9..0e2d1ace3f 100644
--- a/cyrus-imapd30/distinfo
+++ b/cyrus-imapd30/distinfo
@@ -4,10 +4,3 @@ SHA1 (cyrus-imapd-3.0.13.tar.gz) = 69d29e09ae4e4f3c8ae0c49a1024b7ec4dffbf57
 RMD160 (cyrus-imapd-3.0.13.tar.gz) = b789c903620e83160fce4de3e06bbe0c842f7957
 SHA512 (cyrus-imapd-3.0.13.tar.gz) = 5cd066916797efb975cdb97720f65edc72d3fe82afbd78a26aa8369d95ae4ca09c0593dd4bec5521156c64ea38af7a13065f3b35447a76267dec93feb0ac6ac6
 Size (cyrus-imapd-3.0.13.tar.gz) = 10840005 bytes
-SHA1 (patch-ac) = c3b0f801b17bad99a2d84c4885aadbdfca2c28ce
-SHA1 (patch-ah) = 4bc62dfdeafdca83ddac02aff0ffd05db28fe0b9
-SHA1 (patch-ai) = 9167678988f411479d187b232eb10ad8622b4151
-SHA1 (patch-am) = e100e13d5137116f5bd7674e954031b2615e5ab1
-SHA1 (patch-ao) = c01c9d32b4d73cbc32d2ad8bfca8b8b021ca2474
-SHA1 (patch-aq) = 101f5d253dae303f187e15eca28aa687f846ba6b
-SHA1 (patch-imap_mailbox.c) = 9a000763a153863f6c40f8939fe19eab41973cea
diff --git a/cyrus-imapd30/files/cyrus.sh b/cyrus-imapd30/files/cyrus.sh
index 0b8daad8ee..643eedc26d 100644
--- a/cyrus-imapd30/files/cyrus.sh
+++ b/cyrus-imapd30/files/cyrus.sh
@@ -18,7 +18,7 @@ rcd_dir=`@DIRNAME@ $0`
 
 name="cyrus"
 rcvar=$name
-command="@PREFIX@/bin/master"
+command="@PREFIX@/libexec/master"
 command_args="-d"
 pidfile="@VARBASE@/run/cyrus-master.pid"
 sig_stop=QUIT
@@ -28,6 +28,9 @@ extra_commands="mkimap reload"
 mkimap_cmd="cyrus_mkimap"
 start_precmd="cyrus_prestart"
 
+# required to provide perl in PATH for mkimap
+PATH=$PATH:/usr/pkg/bin:/usr/pkg/sbin
+
 cyrus_prestart()
 {
 	# Check to see if "configdirectory" is present before we start
diff --git a/cyrus-imapd30/files/imapd.conf b/cyrus-imapd30/files/imapd.conf
index 974397b16a..4be2358fad 100644
--- a/cyrus-imapd30/files/imapd.conf
+++ b/cyrus-imapd30/files/imapd.conf
@@ -12,30 +12,30 @@ admins: cyrus
 ###################################################################
 
 # Configuration directory
-configdirectory: /var/lib/cyrus
-# OLD pkgsrc: configdirectory: /var/imap
+# DEFAULT configdirectory: /var/lib/cyrus
+configdirectory: /var/imap
 
 # Directories for proc and lock files
-proc_path: /run/cyrus/proc
-mboxname_lockpath: /run/cyrus/lock
+#proc_path: /run/cyrus/proc
+#mboxname_lockpath: /run/cyrus/lock
 
 # Locations for DB files
 # The following DB are recreated upon initialization, so should live in
 # ephemeral storage for best performance.
-duplicate_db_path: /run/cyrus/deliver.db
-ptscache_db_path:  /run/cyrus/ptscache.db
-statuscache_db_path: /run/cyrus/statuscache.db
-tls_sessions_db_path: /run/cyrus/tls_sessions.db
+#duplicate_db_path: /run/cyrus/deliver.db
+#ptscache_db_path:  /run/cyrus/ptscache.db
+#statuscache_db_path: /run/cyrus/statuscache.db
+#tls_sessions_db_path: /run/cyrus/tls_sessions.db
 
 # Which partition to use for default mailboxes
 defaultpartition: default
-partition-default: /var/spool/cyrus/mail
-# OLD pkgsrc: partition-default: /var/spool/imap
+# DEFAULT partition-default: /var/spool/cyrus/mail
+partition-default: /var/spool/imap
 
 # If sieveusehomedir is false (the default), this directory is searched
 # for Sieve scripts.
-sievedir: /var/spool/sieve
-# OLD pkgsrc: sievedir:/var/sieve
+# DEFAULT sievedir: /var/spool/sieve
+sievedir:/var/sieve
 # OLD pkgsrc: hashimapspool: false
 
 ###################################################################
diff --git a/cyrus-imapd30/options.mk b/cyrus-imapd30/options.mk
index f2305766c2..50f0cb4cf2 100644
--- a/cyrus-imapd30/options.mk
+++ b/cyrus-imapd30/options.mk
@@ -32,10 +32,10 @@ CONFIGURE_ENV+=		COMPILE_ET=${KRB5BASE}/bin/compile_et
 CONFIGURE_ARGS+=	--without-krb
 CONFIGURE_ARGS+=	--disable-gssapi
 CHECK_BUILTIN.heimdal:=		yes
-.  include "../../security/heimdal/builtin.mk"
+.  include "../../security/heimdal/buildlink3.mk"
 CHECK_BUILTIN.heimdal:=		no
 CHECK_BUILTIN.mit-krb5:=	yes
-.  include "../../security/mit-krb5/builtin.mk"
+.  include "../../security/mit-krb5/buildlink3.mk"
 CHECK_BUILTIN.mit-krb5:=	no
 .  if ( !empty(USE_BUILTIN.heimdal:M[Yy][Ee][Ss]) || \
 	!empty(USE_BUILTIN.mit-krb5:M[Yy][Ee][Ss])) && \


Home | Main Index | Thread Index | Old Index