Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild for sqwebmail-5.3.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
andreas_st
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2007
Posts: 112
Location: 48N 16E

PostPosted: Sun Jul 19, 2009 12:11 am    Post subject: ebuild for sqwebmail-5.3.2 Reply with quote

I have written an ebuild for sqwebmail because there hasn't been one available before (as far as I know). The ebuild is certainly far from perfect but it does what I need. Maybe somebody else will find it useful. This is my first ebuild so I apologize in advance for any erros I made.

Sqwebmail is a webmail application that uses courier-authlib for authentication and directly accesses maildirs which is faster than using IMAP.

This is related to https://bugs.gentoo.org/89980

Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit flag-o-matic

DESCRIPTION="CGI Webmail client for Maildirs."
HOMEPAGE="http://www.courier-mta.org/sqwebmail/"
SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE="gdbm"

DEPEND="net-libs/courier-authlib
                dev-lang/perl
                dev-libs/libpcre
                app-misc/mime-types
                gdbm? ( sys-libs/gdbm )
                !gdbm? ( sys-libs/db )"
RDEPEND="${DEPEND}
                dev-tcltk/expect"

src_compile() {
                local myconf

                # next 2 lines copied from ebuild for courier-mta, not sure it's necessary
                replace-flags -Os -O2
                filter-flags -fomit-frame-pointer

                if use gdbm ; then
                                myconf="${myconf} --with-db=gdbm"
                else
                                myconf="${myconf} --with-db=db"
                fi

                econf \
                                --prefix=/usr \
                                --sysconfdir=/etc/courier/sqwebmail \
                                --mandir=/usr/share/man \
                                --enable-cgibindir=/var/www/localhost/cgi-bin \
                                --enable-imagedir=/var/www/localhost/htdocs/webmail \
                                --enable-mimetypes=/etc/mime.types \
                                --disable-autorenamesent \
                                ${myconf} || die "./configure"

                emake || die "Compile problem"
}


src_install() {
                make DESTDIR="${D}" install || die "install"

                # Get rid of files we don't want to install because of
                # collisions with mail-filter/maildrop and net-mail/courier-imap
                rm ${D}/usr/sbin/sharedindexinstall
                rm ${D}/usr/sbin/sharedindexsplit
                rm ${D}/usr/share/man/man8/deliverquota.*
                rm ${D}/usr/share/man/man1/maildirmake.*

                # move rc file to correct location
                mkdir -p ${D}/etc/init.d
                mv ${D}/usr/libexec/sqwebmaild.rc ${D}/etc/init.d/sqwebmaild

                dodoc AUTHORS ChangeLog INSTALL NEWS README \
                                README.pam || die

                dodir /usr/share/doc/${PF}

                dohtml {INSTALL,README,README.logindomainlist}.html || die
}



save as /your/overlay/mail-client/sqwebmail-5.3.2.ebuild

Code:
# ebuild sqwebmail-5.3.2.ebuild manifest
# emerge sqwebmail


Copy/edit/rename /etc/courier/sqwebmail/sqwebmaild.dist to sqwebmail

Code:
# echo "$min $hour * * * bin /usr/share/sqwebmail/cleancache.pl"  >> /etc/crontab
# rc-update add sqwebmaild default



Only tested on x86, probably works on other architectures, too.
_________________
Registered Linux user #62727
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum