net-mail/bongo: initial checkin based on dostrow@gentoo.org ebuilds

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/bongo@583 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2008-12-07 21:19:28 +00:00
parent 5c4eea54f8
commit 9eab058fcd
7 changed files with 555 additions and 0 deletions

9
net-mail/bongo/ChangeLog Normal file
View File

@ -0,0 +1,9 @@
# ChangeLog for net-mail/bongo
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
07 Dec 2008; Mario Fetka <mario.fetka@gmail.com> +bongo-0.2.91.ebuild,
+bongo-0.2.92.ebuild, +bongo-0.2.93.ebuild, +bongo-0.2.94.ebuild,
+bongo-0.3.0.ebuild:
initial checkin based on dostrow@gentoo.org ebuilds

View File

@ -4,11 +4,22 @@ AUX bongo.init 795 RMD160 17822d677d9861994229d7154bddec29221cc11c SHA1 e017a66f
AUX mailer.conf 301 RMD160 5fd76d7292dd4df1157c76c612167b741daed16a SHA1 4f5cabe3cefa47847cfb65d834ac11af477bedf8 SHA256 36f457545e77902a195e111fbec2bff272f21d53113d9be34d826630616dc0da AUX mailer.conf 301 RMD160 5fd76d7292dd4df1157c76c612167b741daed16a SHA1 4f5cabe3cefa47847cfb65d834ac11af477bedf8 SHA256 36f457545e77902a195e111fbec2bff272f21d53113d9be34d826630616dc0da
DIST bongo-0.1.0.tar.bz2 5457363 RMD160 9385457bc59d64afaeefdbadef0492c1e3ef1777 SHA1 4f35a89e7ce10af318ea46e95218f29f8d08fd58 SHA256 78ce79e137de8191d1422f572ea9f29b22ed02a04de596135dc175469f6ddb38 DIST bongo-0.1.0.tar.bz2 5457363 RMD160 9385457bc59d64afaeefdbadef0492c1e3ef1777 SHA1 4f35a89e7ce10af318ea46e95218f29f8d08fd58 SHA256 78ce79e137de8191d1422f572ea9f29b22ed02a04de596135dc175469f6ddb38
DIST bongo-0.2.0.tar.bz2 5589520 RMD160 2bb0dedad612d506954d679ef72254ef6b7a8318 SHA1 e9462abe282056d716493b893c9da7e2ff0ec0f8 SHA256 b58962b557014fca1dd9df119980003d8bbb0566e56d1308930230e74c6efabb DIST bongo-0.2.0.tar.bz2 5589520 RMD160 2bb0dedad612d506954d679ef72254ef6b7a8318 SHA1 e9462abe282056d716493b893c9da7e2ff0ec0f8 SHA256 b58962b557014fca1dd9df119980003d8bbb0566e56d1308930230e74c6efabb
DIST bongo-0.2.91.tar.bz2 4219399 RMD160 4e631e08e1466b77dfdacfc5db34afeeac6b78b7 SHA1 672067c8885809b313fb0f09090470876944aec0 SHA256 714911cdd8991aae6adbf357296b19715fcad1dc1e54f8e294081f61bcd80790
DIST bongo-0.2.92.tar.bz2 4354592 RMD160 2cb756b9eca3dd1efe8042f004d26db8faca4bc2 SHA1 465414ff3da7121946684fbd3ada6930b0ec30f8 SHA256 5ad74b6c711b2d0c9ba2fe78c039731a41054631ccc370032c8c75de8f356c0a
DIST bongo-0.2.93.tar.bz2 4353651 RMD160 c806b66d889aca7c9d4f3d58f3fab9ccbf2060fe SHA1 e60c62e36c9833f6e48f3bed6de32ad1f87edc51 SHA256 e3c08103ed33d4f3e5a2547a86baa28dd27e9e7de2f6d8bda51d66162b0f6bc4
DIST bongo-0.2.94.tar.bz2 4347776 RMD160 b4ffe534bf757bfbf95e88b5dec94b9b86dc15e2 SHA1 e24a8e8e4b757811832adce93ab15f366210bafe SHA256 f2294ff689e44dfdd4fc786ef24d578a762da53bda7e392b066e3f77e149ec4a
DIST bongo-0.3.0.tar.bz2 4350524 RMD160 03da80c2402ebf7d4f120e7399766bc0961507e4 SHA1 de2d9801b1b354e64250b63414758c97480f7555 SHA256 42c12a15d5cb68aedd7a8d509e1b5db0ad44452c05309e835aefed2544b35b83
DIST bongo-0.3.1.tar.bz2 4352124 RMD160 91f6eddb507d492649715533c2c0d884f261474a SHA1 f21b6b95874b49ca95b06d7b35f2a84a04303502 SHA256 296ebfdfdca50d3da6d083503437f1575dcf37f158733a5cebd059ada32d7fd3 DIST bongo-0.3.1.tar.bz2 4352124 RMD160 91f6eddb507d492649715533c2c0d884f261474a SHA1 f21b6b95874b49ca95b06d7b35f2a84a04303502 SHA256 296ebfdfdca50d3da6d083503437f1575dcf37f158733a5cebd059ada32d7fd3
DIST bongo-0.4.0.tar.bz2 2816258 RMD160 ede8c4fb31b8c35c31a441d168f4ec7b4a553021 SHA1 7bfc4fc145ad9395605afe7fa99fecf63e2260e9 SHA256 031ed931324e9d4757fc237768a0ebc8d30729808256b729c7029a290c1ff493 DIST bongo-0.4.0.tar.bz2 2816258 RMD160 ede8c4fb31b8c35c31a441d168f4ec7b4a553021 SHA1 7bfc4fc145ad9395605afe7fa99fecf63e2260e9 SHA256 031ed931324e9d4757fc237768a0ebc8d30729808256b729c7029a290c1ff493
EBUILD bongo-0.1.0.ebuild 2572 RMD160 d6476a703e754afe856606e6abd7dd10007ea477 SHA1 378e1da449c0efd1bddd80f89ed0b4ea37a50241 SHA256 32a51fca5b8a4e938e33ef7b1eca881f9d404070382a2a4fc342e2f627bd5f53 EBUILD bongo-0.1.0.ebuild 2572 RMD160 d6476a703e754afe856606e6abd7dd10007ea477 SHA1 378e1da449c0efd1bddd80f89ed0b4ea37a50241 SHA256 32a51fca5b8a4e938e33ef7b1eca881f9d404070382a2a4fc342e2f627bd5f53
EBUILD bongo-0.2.0.ebuild 2579 RMD160 9d4c19d08af24286a622be054d79c1e2170ea11f SHA1 c8da39f21b315337b808b2db7020ebb6c7408080 SHA256 16d4b973d2be6a4bf6bacdfaa6421c3446212c55e4730e2c30fc4d0e8a176020 EBUILD bongo-0.2.0.ebuild 2579 RMD160 9d4c19d08af24286a622be054d79c1e2170ea11f SHA1 c8da39f21b315337b808b2db7020ebb6c7408080 SHA256 16d4b973d2be6a4bf6bacdfaa6421c3446212c55e4730e2c30fc4d0e8a176020
EBUILD bongo-0.2.91.ebuild 2579 RMD160 a09858fa259fab5fccadfe02ed6ce9e1d50a641f SHA1 df0a2974141ae0fe1478cd701a8f5cbe8966307d SHA256 f7b36110f4e73050ee864d345ba34205e34172d3fcbf3aab36872fdbac10acbb
EBUILD bongo-0.2.92.ebuild 2579 RMD160 a09858fa259fab5fccadfe02ed6ce9e1d50a641f SHA1 df0a2974141ae0fe1478cd701a8f5cbe8966307d SHA256 f7b36110f4e73050ee864d345ba34205e34172d3fcbf3aab36872fdbac10acbb
EBUILD bongo-0.2.93.ebuild 2579 RMD160 a09858fa259fab5fccadfe02ed6ce9e1d50a641f SHA1 df0a2974141ae0fe1478cd701a8f5cbe8966307d SHA256 f7b36110f4e73050ee864d345ba34205e34172d3fcbf3aab36872fdbac10acbb
EBUILD bongo-0.2.94.ebuild 2579 RMD160 a09858fa259fab5fccadfe02ed6ce9e1d50a641f SHA1 df0a2974141ae0fe1478cd701a8f5cbe8966307d SHA256 f7b36110f4e73050ee864d345ba34205e34172d3fcbf3aab36872fdbac10acbb
EBUILD bongo-0.3.0.ebuild 2579 RMD160 a09858fa259fab5fccadfe02ed6ce9e1d50a641f SHA1 df0a2974141ae0fe1478cd701a8f5cbe8966307d SHA256 f7b36110f4e73050ee864d345ba34205e34172d3fcbf3aab36872fdbac10acbb
EBUILD bongo-0.3.1.ebuild 2579 RMD160 9d4c19d08af24286a622be054d79c1e2170ea11f SHA1 c8da39f21b315337b808b2db7020ebb6c7408080 SHA256 16d4b973d2be6a4bf6bacdfaa6421c3446212c55e4730e2c30fc4d0e8a176020 EBUILD bongo-0.3.1.ebuild 2579 RMD160 9d4c19d08af24286a622be054d79c1e2170ea11f SHA1 c8da39f21b315337b808b2db7020ebb6c7408080 SHA256 16d4b973d2be6a4bf6bacdfaa6421c3446212c55e4730e2c30fc4d0e8a176020
EBUILD bongo-0.4.0.ebuild 2579 RMD160 9d4c19d08af24286a622be054d79c1e2170ea11f SHA1 c8da39f21b315337b808b2db7020ebb6c7408080 SHA256 16d4b973d2be6a4bf6bacdfaa6421c3446212c55e4730e2c30fc4d0e8a176020 EBUILD bongo-0.4.0.ebuild 2579 RMD160 9d4c19d08af24286a622be054d79c1e2170ea11f SHA1 c8da39f21b315337b808b2db7020ebb6c7408080 SHA256 16d4b973d2be6a4bf6bacdfaa6421c3446212c55e4730e2c30fc4d0e8a176020
EBUILD bongo-9999.ebuild 2735 RMD160 d54ed3e34d0f7c8aee5cb481805c9e359a8fb8f1 SHA1 bf9ba8760d68d720b08ef4de81199706dc1de979 SHA256 1082f072bf8e4d8ccc3b4620be90a53087e3d1699a2337df50fef71738592940 EBUILD bongo-9999.ebuild 2735 RMD160 d54ed3e34d0f7c8aee5cb481805c9e359a8fb8f1 SHA1 bf9ba8760d68d720b08ef4de81199706dc1de979 SHA256 1082f072bf8e4d8ccc3b4620be90a53087e3d1699a2337df50fef71738592940
MISC ChangeLog 334 RMD160 35e9dcdaf375966174aeaccd5a174685fd38364c SHA1 27ee68e62cbe5fb5182570bb8a1837b8375c9faa SHA256 5808184cfe7f98d754f9cd9b92d51e0df6e8ff56085d417180ec738854a0d9c2
MISC metadata.xml 224 RMD160 a75b1683331a8874b18170c82f559bce6877f626 SHA1 da1ebf5ff592428b014945c5ccd1316778f39092 SHA256 de22a32e0eb75abae4c9d09b297c10d3597e4162861d73140fa6db97aa61f02f MISC metadata.xml 224 RMD160 a75b1683331a8874b18170c82f559bce6877f626 SHA1 da1ebf5ff592428b014945c5ccd1316778f39092 SHA256 de22a32e0eb75abae4c9d09b297c10d3597e4162861d73140fa6db97aa61f02f

View File

@ -0,0 +1,107 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils mailer multilib flag-o-matic
DESCRIPTION="A calendar and webmail application, which includes its own MTA"
SRC_URI="http://download.gna.org/bongo/release/${P}.tar.bz2"
HOMEPAGE="http://bongo-project.org/"
LICENSE="LGPL-2"
SLOT="0"
IUSE="libgcrypt"
KEYWORDS="-alpha -amd64 ~arm ~hppa -ia64 -mips ~ppc -ppc64 ~s390 ~sh ~x86"
RDEPEND="net-nds/openldap
net-libs/gnutls
<=dev-cpp/clucene-0.9.17
net-misc/curl
>=dev-db/sqlite-3
libgcrypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}"
pkg_setup() {
enewgroup bongo
enewuser bongo -1 -1 -1 bongo
filter-ldflags -Wl,--as-needed --as-needed
}
src_compile() {
use libgcrypt && myconf="${myconf} --with-libgcrypt-prefix=/usr"
./configure \
--prefix=/usr \
--with-user=bongo \
--localstatedir=/var/lib \
--sysconfdir=/etc \
--libdir=/usr/$(get_libdir) \
--with-clucene=/usr \
--with-sqlite3=/usr \
--with-libcurl=/usr \
${myconf} || die
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make failed"
dodir /etc/init.d
exeinto /etc/init.d
newexe ${FILESDIR}/bongo.init bongo
dodir /etc/conf.d
insinto /etc/conf.d
newins ${FILESDIR}/bongo.conf.d bongo
dodir /etc/env.d
insinto /etc/env.d
newins ${FILESDIR}/70bongo 70bongo
dodir /var/lib/bongo
keepdir /var/lib/bongo
fowners bongo:bongo /var/lib/bongo
fperms 770 /var/lib/bongo
dodir /var/run/bongo
keepdir /var/run/bongo
fowners bongo:bongo /var/run/bongo
fperms 770 /var/run/bongo
if use mailwrapper ; then
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/mailq.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/newaliases.bongo-sendmail
mailer_install_conf
else
dosym /usr/sbin/bongo-sendmail /usr/sbin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/lib/sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/sbin/mailq
dosym /usr/sbin/bongo-sendmail /usr/sbin/newaliases
fi
}
pkg_postinst() {
elog "Bongo must be setup."
elog "Please run:"
elog " emerge /usr/sbin/bongo-setup"
elog ""
elog "For more information on bongo-setup run /usr/sbin/bongo-setup --help"
elog ""
elog "After bongo is set up run /etc/init.d/bongo start to start the service"
elog ""
elog "The default login settings are as follows:"
elog "username: admin"
elog "password: bongo"
}
pkg_config() {
einfo "Setting up Bongo..."
/usr/sbin/bongo-setup
}

View File

@ -0,0 +1,107 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils mailer multilib flag-o-matic
DESCRIPTION="A calendar and webmail application, which includes its own MTA"
SRC_URI="http://download.gna.org/bongo/release/${P}.tar.bz2"
HOMEPAGE="http://bongo-project.org/"
LICENSE="LGPL-2"
SLOT="0"
IUSE="libgcrypt"
KEYWORDS="-alpha -amd64 ~arm ~hppa -ia64 -mips ~ppc -ppc64 ~s390 ~sh ~x86"
RDEPEND="net-nds/openldap
net-libs/gnutls
<=dev-cpp/clucene-0.9.17
net-misc/curl
>=dev-db/sqlite-3
libgcrypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}"
pkg_setup() {
enewgroup bongo
enewuser bongo -1 -1 -1 bongo
filter-ldflags -Wl,--as-needed --as-needed
}
src_compile() {
use libgcrypt && myconf="${myconf} --with-libgcrypt-prefix=/usr"
./configure \
--prefix=/usr \
--with-user=bongo \
--localstatedir=/var/lib \
--sysconfdir=/etc \
--libdir=/usr/$(get_libdir) \
--with-clucene=/usr \
--with-sqlite3=/usr \
--with-libcurl=/usr \
${myconf} || die
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make failed"
dodir /etc/init.d
exeinto /etc/init.d
newexe ${FILESDIR}/bongo.init bongo
dodir /etc/conf.d
insinto /etc/conf.d
newins ${FILESDIR}/bongo.conf.d bongo
dodir /etc/env.d
insinto /etc/env.d
newins ${FILESDIR}/70bongo 70bongo
dodir /var/lib/bongo
keepdir /var/lib/bongo
fowners bongo:bongo /var/lib/bongo
fperms 770 /var/lib/bongo
dodir /var/run/bongo
keepdir /var/run/bongo
fowners bongo:bongo /var/run/bongo
fperms 770 /var/run/bongo
if use mailwrapper ; then
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/mailq.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/newaliases.bongo-sendmail
mailer_install_conf
else
dosym /usr/sbin/bongo-sendmail /usr/sbin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/lib/sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/sbin/mailq
dosym /usr/sbin/bongo-sendmail /usr/sbin/newaliases
fi
}
pkg_postinst() {
elog "Bongo must be setup."
elog "Please run:"
elog " emerge /usr/sbin/bongo-setup"
elog ""
elog "For more information on bongo-setup run /usr/sbin/bongo-setup --help"
elog ""
elog "After bongo is set up run /etc/init.d/bongo start to start the service"
elog ""
elog "The default login settings are as follows:"
elog "username: admin"
elog "password: bongo"
}
pkg_config() {
einfo "Setting up Bongo..."
/usr/sbin/bongo-setup
}

View File

@ -0,0 +1,107 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils mailer multilib flag-o-matic
DESCRIPTION="A calendar and webmail application, which includes its own MTA"
SRC_URI="http://download.gna.org/bongo/release/${P}.tar.bz2"
HOMEPAGE="http://bongo-project.org/"
LICENSE="LGPL-2"
SLOT="0"
IUSE="libgcrypt"
KEYWORDS="-alpha -amd64 ~arm ~hppa -ia64 -mips ~ppc -ppc64 ~s390 ~sh ~x86"
RDEPEND="net-nds/openldap
net-libs/gnutls
<=dev-cpp/clucene-0.9.17
net-misc/curl
>=dev-db/sqlite-3
libgcrypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}"
pkg_setup() {
enewgroup bongo
enewuser bongo -1 -1 -1 bongo
filter-ldflags -Wl,--as-needed --as-needed
}
src_compile() {
use libgcrypt && myconf="${myconf} --with-libgcrypt-prefix=/usr"
./configure \
--prefix=/usr \
--with-user=bongo \
--localstatedir=/var/lib \
--sysconfdir=/etc \
--libdir=/usr/$(get_libdir) \
--with-clucene=/usr \
--with-sqlite3=/usr \
--with-libcurl=/usr \
${myconf} || die
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make failed"
dodir /etc/init.d
exeinto /etc/init.d
newexe ${FILESDIR}/bongo.init bongo
dodir /etc/conf.d
insinto /etc/conf.d
newins ${FILESDIR}/bongo.conf.d bongo
dodir /etc/env.d
insinto /etc/env.d
newins ${FILESDIR}/70bongo 70bongo
dodir /var/lib/bongo
keepdir /var/lib/bongo
fowners bongo:bongo /var/lib/bongo
fperms 770 /var/lib/bongo
dodir /var/run/bongo
keepdir /var/run/bongo
fowners bongo:bongo /var/run/bongo
fperms 770 /var/run/bongo
if use mailwrapper ; then
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/mailq.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/newaliases.bongo-sendmail
mailer_install_conf
else
dosym /usr/sbin/bongo-sendmail /usr/sbin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/lib/sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/sbin/mailq
dosym /usr/sbin/bongo-sendmail /usr/sbin/newaliases
fi
}
pkg_postinst() {
elog "Bongo must be setup."
elog "Please run:"
elog " emerge /usr/sbin/bongo-setup"
elog ""
elog "For more information on bongo-setup run /usr/sbin/bongo-setup --help"
elog ""
elog "After bongo is set up run /etc/init.d/bongo start to start the service"
elog ""
elog "The default login settings are as follows:"
elog "username: admin"
elog "password: bongo"
}
pkg_config() {
einfo "Setting up Bongo..."
/usr/sbin/bongo-setup
}

View File

@ -0,0 +1,107 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils mailer multilib flag-o-matic
DESCRIPTION="A calendar and webmail application, which includes its own MTA"
SRC_URI="http://download.gna.org/bongo/release/${P}.tar.bz2"
HOMEPAGE="http://bongo-project.org/"
LICENSE="LGPL-2"
SLOT="0"
IUSE="libgcrypt"
KEYWORDS="-alpha -amd64 ~arm ~hppa -ia64 -mips ~ppc -ppc64 ~s390 ~sh ~x86"
RDEPEND="net-nds/openldap
net-libs/gnutls
<=dev-cpp/clucene-0.9.17
net-misc/curl
>=dev-db/sqlite-3
libgcrypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}"
pkg_setup() {
enewgroup bongo
enewuser bongo -1 -1 -1 bongo
filter-ldflags -Wl,--as-needed --as-needed
}
src_compile() {
use libgcrypt && myconf="${myconf} --with-libgcrypt-prefix=/usr"
./configure \
--prefix=/usr \
--with-user=bongo \
--localstatedir=/var/lib \
--sysconfdir=/etc \
--libdir=/usr/$(get_libdir) \
--with-clucene=/usr \
--with-sqlite3=/usr \
--with-libcurl=/usr \
${myconf} || die
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make failed"
dodir /etc/init.d
exeinto /etc/init.d
newexe ${FILESDIR}/bongo.init bongo
dodir /etc/conf.d
insinto /etc/conf.d
newins ${FILESDIR}/bongo.conf.d bongo
dodir /etc/env.d
insinto /etc/env.d
newins ${FILESDIR}/70bongo 70bongo
dodir /var/lib/bongo
keepdir /var/lib/bongo
fowners bongo:bongo /var/lib/bongo
fperms 770 /var/lib/bongo
dodir /var/run/bongo
keepdir /var/run/bongo
fowners bongo:bongo /var/run/bongo
fperms 770 /var/run/bongo
if use mailwrapper ; then
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/mailq.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/newaliases.bongo-sendmail
mailer_install_conf
else
dosym /usr/sbin/bongo-sendmail /usr/sbin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/lib/sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/sbin/mailq
dosym /usr/sbin/bongo-sendmail /usr/sbin/newaliases
fi
}
pkg_postinst() {
elog "Bongo must be setup."
elog "Please run:"
elog " emerge /usr/sbin/bongo-setup"
elog ""
elog "For more information on bongo-setup run /usr/sbin/bongo-setup --help"
elog ""
elog "After bongo is set up run /etc/init.d/bongo start to start the service"
elog ""
elog "The default login settings are as follows:"
elog "username: admin"
elog "password: bongo"
}
pkg_config() {
einfo "Setting up Bongo..."
/usr/sbin/bongo-setup
}

View File

@ -0,0 +1,107 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils mailer multilib flag-o-matic
DESCRIPTION="A calendar and webmail application, which includes its own MTA"
SRC_URI="http://download.gna.org/bongo/release/${P}.tar.bz2"
HOMEPAGE="http://bongo-project.org/"
LICENSE="LGPL-2"
SLOT="0"
IUSE="libgcrypt"
KEYWORDS="-alpha -amd64 ~arm ~hppa -ia64 -mips ~ppc -ppc64 ~s390 ~sh ~x86"
RDEPEND="net-nds/openldap
net-libs/gnutls
<=dev-cpp/clucene-0.9.17
net-misc/curl
>=dev-db/sqlite-3
libgcrypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}"
pkg_setup() {
enewgroup bongo
enewuser bongo -1 -1 -1 bongo
filter-ldflags -Wl,--as-needed --as-needed
}
src_compile() {
use libgcrypt && myconf="${myconf} --with-libgcrypt-prefix=/usr"
./configure \
--prefix=/usr \
--with-user=bongo \
--localstatedir=/var/lib \
--sysconfdir=/etc \
--libdir=/usr/$(get_libdir) \
--with-clucene=/usr \
--with-sqlite3=/usr \
--with-libcurl=/usr \
${myconf} || die
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make failed"
dodir /etc/init.d
exeinto /etc/init.d
newexe ${FILESDIR}/bongo.init bongo
dodir /etc/conf.d
insinto /etc/conf.d
newins ${FILESDIR}/bongo.conf.d bongo
dodir /etc/env.d
insinto /etc/env.d
newins ${FILESDIR}/70bongo 70bongo
dodir /var/lib/bongo
keepdir /var/lib/bongo
fowners bongo:bongo /var/lib/bongo
fperms 770 /var/lib/bongo
dodir /var/run/bongo
keepdir /var/run/bongo
fowners bongo:bongo /var/run/bongo
fperms 770 /var/run/bongo
if use mailwrapper ; then
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/mailq.bongo-sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/newaliases.bongo-sendmail
mailer_install_conf
else
dosym /usr/sbin/bongo-sendmail /usr/sbin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/lib/sendmail
dosym /usr/sbin/bongo-sendmail /usr/bin/sendmail
dosym /usr/sbin/bongo-sendmail /usr/sbin/mailq
dosym /usr/sbin/bongo-sendmail /usr/sbin/newaliases
fi
}
pkg_postinst() {
elog "Bongo must be setup."
elog "Please run:"
elog " emerge /usr/sbin/bongo-setup"
elog ""
elog "For more information on bongo-setup run /usr/sbin/bongo-setup --help"
elog ""
elog "After bongo is set up run /etc/init.d/bongo start to start the service"
elog ""
elog "The default login settings are as follows:"
elog "username: admin"
elog "password: bongo"
}
pkg_config() {
einfo "Setting up Bongo..."
/usr/sbin/bongo-setup
}