2.4.6 and /usr/sbin/cyrus

Thomas Cataldo tcataldo at gmail.com
Mon Dec 20 20:04:35 UTC 2010


On Mon, Dec 20, 2010 at 5:52 PM, Ondřej Surý <ondrej at sury.org> wrote:

> Hi all,
>
> I have pushed my repository to alioth which introduces two major changes:
>
> - Introduction of versionless virtual packages (ie. cyrus-imapd
> depending on cyrus-imapd-2.4, etc.)
>
> - New /usr/sbin/cyrus tool (which is just crude shell script right
> now) which "knows" all the cyrus commands located in
> /usr/lib/cyrus/bin/*
>
> I have tried to preserve backwards compatibility (installing symlinks
> everywhere) with our old cyrus-imapd-2.2, but anyway this is a change
> which needs to be discussed with upstream. Jeroen, what do you think
> as a release manager? Is the /usr/sbin/cyrus a way which could
> possibly be adopted by upstream? (I was also thinking about calling it
> just 'cyr', but there is a name clash with console-cyrilic package
> :-(.)
>
> I tried to follow the git path as much as possible (manpages are
> renamed to cyrus-{something}) and the script tries hard to find the
> relevant command (it automatically prepends cyr_{command} and
> ctl_{command} and knows the check = chk_cyrus). More tweaks can be
> added later (f.e. we can introduce cyrus control {subcommand} to call
> /usr/lib/cyrus/bin/ctl_{subcommand}).
>
> Again I have finished this just before my end of worktime, so it just
> builds in the pbuilder. Brave hearts are welcomed to test the result
> using git-buildpackage. I do not guarantee anything, it may eat your
> system or your dog :).
>
>
The following patch was needed for correct installation :

diff --git a/debian/cyrus b/debian/cyrus
index ed7bc5f..3179e75 100755
--- a/debian/cyrus
+++ b/debian/cyrus
@@ -64,6 +64,8 @@ if [ ! -f "${CYRUS_BINPATH}/${COMMAND}" ]; then
        COMMAND="ctl_${COMMAND}"
     elif [ "${COMMAND}" = "check" ]; then
        COMMAND="chk_cyrus"
+    elif [ "${COMMAND}" = "makedirs" ]; then
+       COMMAND="cyrus-makedirs"
     else
        echo "ERROR: ${COMMAND}: Unknown command or command not installed"
        echo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20101220/d1e56b30/attachment.htm>


More information about the Pkg-Cyrus-imapd-Debian-devel mailing list