Merge branch 'master' into KBrown-pub
This commit is contained in:
commit
0f3f999cd7
8 changed files with 68 additions and 572 deletions
|
@ -14,6 +14,7 @@ DIST libressl-2.6.5.tar.gz 3225481 BLAKE2B fcdf0d8b4b68fdb6c17299f4b9897c84f51ec
|
|||
DIST libressl-2.8.3.tar.gz 3366196 BLAKE2B e32c097b31998d68a31266fbbf3624d5ab8ca716f8c53e423bcf09b3a8ab3542c92a99e259ded7b86f99b45cc199cd44791520a609f18c35d150365de5768eec SHA512 3967e08b3dc2277bf77057ea1f11148df7f96a2203cd21cf841902f2a1ec11320384a001d01fa58154d35612f7981bf89d5b1a60a2387713d5657677f76cc682
|
||||
DIST libressl-2.9.2.tar.gz 3607549 BLAKE2B 496e993e4f1c85167e0344afab61259d4e3f094a7e5dfac85878191070e2c196753162532efb921fab582481aeda3705fca9a2b48921cba82465192f2c1eef95 SHA512 b43e73e47c1f14da3c702ab42f29f1d67645a4fa425441337bd6c125b481ef78a40fd13e6b34dadb2af337e1c0c190cfb616186d4db9c9a743a37e594b9b8033
|
||||
DIST libressl-3.0.2.tar.gz 3669468 BLAKE2B 84ad2c1fea8d2119f191ec8ab3f999fb0354636d48aabb76fa1786139c669c9d8ca105d79cc8416dd20683818eccc84490cdadc9ca94cb2b0e411644e923a3d6 SHA512 19226da3bc9776e1da40b8e94dfa53564d5e6acc80edee539ba12d7a75c1bb8c0603e7633f26a6ef8b12adc56bb677ccda448575aa6be2ad3df5447465a4b080
|
||||
DIST libressl-3.1.3.tar.gz 3766345 BLAKE2B 4956fa0ae6030e9e9969d584db3bc0084c4b155207d1472ebfa40c8e68e925214b66ed1bc7e32d98a9a48de0b61909323a0380a973c724422c92bfe88b9fdfb2 SHA512 f9f497fe5d09b8b762175da038a8e67d9d2567462fefc49e434d306a3071ba3a4d369c89143d9d90e3bbcc7b9ba051c9c923a0dfc41d856edc08ae59fa727ee8
|
||||
EBUILD libressl-2.5.4-r100.ebuild 1295 BLAKE2B 62afb0c600956c3094a7fe1d3da9d583568ffbc768e5586dfe268b0547b9cca9b29815fb6027b05245214c48c236730b30ea43dc75afb411d469cbdabcd0bcef SHA512 805e6f0bc9170570dba7702a1e890986e42ccd045768eeba023fa499132ed427c0eee11ea9f8fd298f33cf319121e4e1a33c78663ca8233be74372a02f13bc91
|
||||
EBUILD libressl-2.5.5-r100.ebuild 1295 BLAKE2B 62afb0c600956c3094a7fe1d3da9d583568ffbc768e5586dfe268b0547b9cca9b29815fb6027b05245214c48c236730b30ea43dc75afb411d469cbdabcd0bcef SHA512 805e6f0bc9170570dba7702a1e890986e42ccd045768eeba023fa499132ed427c0eee11ea9f8fd298f33cf319121e4e1a33c78663ca8233be74372a02f13bc91
|
||||
EBUILD libressl-2.6.0-r100.ebuild 1295 BLAKE2B 62afb0c600956c3094a7fe1d3da9d583568ffbc768e5586dfe268b0547b9cca9b29815fb6027b05245214c48c236730b30ea43dc75afb411d469cbdabcd0bcef SHA512 805e6f0bc9170570dba7702a1e890986e42ccd045768eeba023fa499132ed427c0eee11ea9f8fd298f33cf319121e4e1a33c78663ca8233be74372a02f13bc91
|
||||
|
@ -26,3 +27,4 @@ EBUILD libressl-2.6.5-r100.ebuild 1388 BLAKE2B 226bbbcb25443acb46997c4c3dc2b302e
|
|||
EBUILD libressl-2.8.3-r100.ebuild 1332 BLAKE2B abde6ea284027218e7143b116c266c3a39c167b661f1d964976e0d6341968209b14409c5c01ae691f066cb7a850b72c0ede1fd6d200c9e446431ae9300d3435f SHA512 a2164cbf28b52ef7f5dd04722e437e1a342610762fd5fa8ef5dfaea3284f9174cd8d4c03ff73cea71eb6ace0ab4023135e174e60e8a3fdf07af95768d5c5fae9
|
||||
EBUILD libressl-2.9.2-r100.ebuild 1672 BLAKE2B b5bdc692bd8d0260dbfb240e3ee89b8102914038675dee77748f03a8f0e2019b1806df6fb8975628f908a37e18b45514d5bf9d18ba64ccc77b949db4582decb7 SHA512 1288ad50221406436ec0bf88e0095fee9e834155e290a8f5150bfb0df416f1704a2467ba03590269f1fabced066b6b26808897cd30f8ce3ad881a433afb2e6b7
|
||||
EBUILD libressl-3.0.2-r100.ebuild 1656 BLAKE2B be175c26920268d59e52a7f0824cafbced49ca2f51944b47cc615235bb9e62630904b63c2a742f20c1a7838e46c76db3d6364ba690de5e75c443ab5ebf9fed93 SHA512 1a18a2047e767389d1835e0dde01a9eeb24fcf0847818d03d1c9bace9bf7a476fcd5766611cb827ac6bc02d802740838f2fb6f284de2bec88bd6d80d55a9fe42
|
||||
EBUILD libressl-3.1.3-r100.ebuild 1654 BLAKE2B c44b7b06623e60686b394240407fd4787c30042d890243ea69e299d365a07b2a785925d2d9845bf4aeafa0765553f4aea8aefb0637d0cc591daab86bd40ef784 SHA512 b7b1cb76ee8388ec097bb9a1b996bbe396ea78fa4d778c7ea36ba316bf067c76f09e0e63ac83cac492b000548ca741326c7856ae854531f14e643a60a2e6a5ce
|
||||
|
|
61
dev-libs/libressl/libressl-3.1.3-r100.ebuild
Normal file
61
dev-libs/libressl/libressl-3.1.3-r100.ebuild
Normal file
|
@ -0,0 +1,61 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib-minimal libtool
|
||||
|
||||
DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
|
||||
HOMEPAGE="https://www.libressl.org/"
|
||||
SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC openssl"
|
||||
# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
|
||||
# we'll try to use the max of either. However, if either change between
|
||||
# versions, we have to change the subslot to trigger rebuild of consumers.
|
||||
SLOT="0/48"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+asm static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="test? ( static-libs )"
|
||||
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
src_prepare() {
|
||||
touch crypto/Makefile.in
|
||||
|
||||
sed -i \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g"#"#' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
|
||||
configure || die "fixing CFLAGS failed"
|
||||
|
||||
if ! use test ; then
|
||||
sed -i \
|
||||
-e '/^[ \t]*SUBDIRS =/s#tests##' \
|
||||
Makefile.in || die "Removing tests failed"
|
||||
fi
|
||||
|
||||
eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch
|
||||
eapply_user
|
||||
|
||||
elibtoolize # for Solaris
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable asm) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
find "${D}" -name '*.la' -exec rm -f {} + || die
|
||||
}
|
|
@ -11,13 +11,8 @@ AUX dbmail-pop3d.initd 730 BLAKE2B 046be799e1318c1df5af73691fad5bce6a9d9eeebcc3d
|
|||
AUX dbmail-pop3d.rc 540 BLAKE2B 6d4ccd2508a38387a647c246dfccaab49520720834aa9094be6efc666b461f54bc6989ee960964cc7f6c70512bc703a9233c47a5347c2429e285afdb4d9f9ea8 SHA512 ed184a60ee72f1c6503ee14d00d2c2dbb5098895be1a5b87574418f20a68ea5e3843fef7fd77f2ac771fee8bd1ea564b804f916e23821304c8dcc5887d039045
|
||||
AUX dbmail-startup-gentoo.patch 10704 BLAKE2B f8c72aaf30254a24df0a583c419d7437f3d954939038a4002d935d990a2539189db621ead1fab7fc7f8cce31155cb262e46749131ca5071b08e226c32d43b38e SHA512 34f2544fb6f9b1e33dff1733c7bcb718117145da5ba037508e851f25f27df4f954158fbbae677d0240fbb3a43f2d48144566a6cddd821fcbfd6b40f369b71021
|
||||
AUX dbmail-timsieved.initd 716 BLAKE2B 5c5d12b5d589761af4b42646ec3b9b6323781bd3cbabdc136f4cb0332ec7bc1a6375a6fe5bc8ca12b6e75b6b2d6e037877303cad4f07bb196fa0ab12245c8d0e SHA512 04f66443573fde84d220a0d808f98295a8931990a0d7bad13c0c86bfe7b2d95c3311f7fdbc6b4068223601286c34e97cb17b0f5fbc28ca05991d0cdc13d250f5
|
||||
DIST dbmail-3.2.2.tar.gz 2444241 BLAKE2B 0fb601e66aa0b41b85c0d4ad4cb6cec6e09358cab0dd7c792cd479ecbab0d94d841b9d8e3610cf7f0e90eca82671c6364ea2b26ca794edf6bfe6630f4a7b88c3 SHA512 a2125ea3b9d0ec387135d87854510f36ef0fe87b70f33d54f8af89f22a83802e5838979ba94d6ba66ef986f6f67b08aa6d5e2bfc2f1f2bc44edf03a9f51afb37
|
||||
DIST dbmail-3.2.3.tar.gz 2444227 BLAKE2B baa812fb3e925e6d896762596426208fc2ac5fcb01cb8100cfbd0464f1342f934c099ca52fd857e05fc82b97227155e9dcfc987d6c9b5c37e7daf21b167c9841 SHA512 29cc89830278f2ff28a4221fc81d4ff13cc371fbca7fb51d5376e9243234220b552cb4b6ec035c150e6cfa178435c4f36b9ce132fc02334bc6cdeb1a41c8ed85
|
||||
DIST dbmail-3.2.4.tar.gz 2461068 BLAKE2B 2aea108bd314f2f0f3ac5c1764683aa093f07b9642a2a25db08c8b765387ddbc2d02972ea3ede7e86de09aa7bb2d7a4c8423d2e3ab6831a5c613b93c97ee0e82 SHA512 34df0b17307e3d4bd255b4f3f9df59791379fc0b090a73af9dfb02f416747051cbc7a34039384906ab30d6208efbe9c470de9c950d3ace6129292ec8c8fb1786
|
||||
EBUILD dbmail-3.2.2-r1.ebuild 5027 BLAKE2B 7a64b043f3ba9f0ce2713f3c2273ba9acee270c8781f83c333f76c0b59d2b646e9189db1369864fb9dcc298734b138b3f7662b3febd2dd350afd7e3f4d74700a SHA512 3a127188c4f5841e08e535e7da2c526423bb2fdb309b9a351f9bceff930f7826ea345fb94a57f7265da67c2aa98d872fe9d98847d39dde52f88c054dfae918c1
|
||||
EBUILD dbmail-3.2.3-r100.ebuild 4927 BLAKE2B db8a150a9f3ba24180bdf41e06ef25327d28439963ad66b3b395fdb0baaa4b9e593f322c8c8c81a641b440cc51706d78340645a3e99d8b9f28edf208c7ccfdbd SHA512 fb3052f63f4f556fe41a116c37647a0e58788612b8a86f0494342c0b093780cf16140652cf4db7f9709f21a51f76cfcd8fef6539f8afc9bd14c5cc937759368d
|
||||
EBUILD dbmail-3.2.3-r101.ebuild 4665 BLAKE2B e777e462501330ec7a3dbca0952913164356b06123821de8019daf9732e1335d76951aecd65c3a5a309af89987225e00f8ef06df80bfd73b07270d951a49a1fe SHA512 ab14342556db21b4c8e1f51b0458bfcb3073a66c9cc55645cc7c16ce2449f5b04a805c59247721b237a3e6ba80397c60812cc336ccc694c52da96f5f30a007c8
|
||||
EBUILD dbmail-3.2.3-r102.ebuild 4749 BLAKE2B a5b5f821cd256bee124d0649b910718db20b679f76fde36ff5a82e51fbc15fade8380c99ebc367a68a2ecd7c7ab1b9c43c4ea00f27d1a8f5408968ec2db16071 SHA512 aabb8ce3bd21b133cf32bd9323a5970d8c173be6d13ba013e7d99107b7370545ac6dde716f395fcdd83e185358b87a0275f30a87ae0076817038eed959baac4c
|
||||
EBUILD dbmail-3.2.3-r2.ebuild 4699 BLAKE2B 370a1acdda92ccdd0080398b99d7c04d09d14a0ce1ad953dfba1a7fca392554c6a4441e35a0d754d17ce4df5be182b8b8da65eb7785b31234eb33b5b1cdfe6d5 SHA512 cb671f54691b5699e5465de31518d377bc4f96768a6b1a2295f41775b3237b31a773a62da7a805dcc0e7eee454cfc5f27ce8992179c523b216244524d5d01ee9
|
||||
EBUILD dbmail-3.2.4.ebuild 4890 BLAKE2B 4e286c695c404c793e2ff2970d647f3285bb921b075acca6731fb6774f30ef0e4d7291832438fabd4b400e4aec74a718b9a1b627077beef8a1718a30c3b7c4dc SHA512 fde0276045e057978bbc5ec8a15671093c80c43c81cc5bf008e0a58c0cc899c661155668ed023e696ca167c2efc03f300c62f26d41a02f455eb266391033a575
|
||||
EBUILD dbmail-3.2.4.ebuild 4928 BLAKE2B 65f5af596e0ff3df31ed9d0a67a2dcedbf8e2d87c81c2442202d932302411ecbcec169afd48c6941405837c475975214d5219dc5649b999cc5785a5f42f73b95 SHA512 daa78450e3d37fe66576e1eaedeee501cf8ba68b17b1f0f0c29f327c980048c2d9fd9f2bb0ddbbde6b619de23103159035f03f7146b36cca2b8f90cf8617c4b7
|
||||
MISC metadata.xml 644 BLAKE2B 70a3c2d8665df2f44e04a95a47ba9ff39778fb386c0cd9d23fe0bf824767a432c5fd9b7a87a50635b9d6592dc72632957be5c45e6777cb77625810a38823f354 SHA512 e1be3706af1329c23f831c4b2d58e076bdd0f5f30c01a4a08fd7554be392ea1dfb5f219c6852099f9c45df17cd37a71a3c228434fddbcebfac3a6ca235128877
|
||||
|
|
|
@ -1,145 +0,0 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-3.2.2.ebuild,v 1.4 2015/03/22 12:53:43 pacho Exp $
|
||||
|
||||
EAPI="4"
|
||||
inherit eutils multilib versionator user
|
||||
|
||||
DESCRIPTION="DBMail is an open-source project that enables storage of mail messages in a relational database"
|
||||
HOMEPAGE="http://www.dbmail.org/"
|
||||
SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="ldap sieve +sqlite ssl static"
|
||||
|
||||
DEPEND="dev-db/libzdb
|
||||
sieve? ( >=mail-filter/libsieve-2.2.1 )
|
||||
ldap? ( >=net-nds/openldap-2.3.33 )
|
||||
app-text/asciidoc
|
||||
app-text/xmlto
|
||||
app-crypt/mhash
|
||||
sys-libs/zlib
|
||||
dev-libs/gmime:2.6
|
||||
>=dev-libs/glib-2.16
|
||||
dev-libs/libevent
|
||||
ssl? ( dev-libs/openssl )"
|
||||
#asciidoc and xmlto needed?
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dbmail
|
||||
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/3.2-pgsql-RETURNING.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
use ldap && myconf=${myconf}" --with-auth-ldap"
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/dbmail \
|
||||
$(use_enable static) \
|
||||
$(use_with sieve) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
dodoc AUTHORS BUGS ChangeLog README* INSTALL NEWS THANKS UPGRADING
|
||||
|
||||
docompress -x /usr/share/doc/${PF}/sql
|
||||
dodoc -r sql
|
||||
dodoc -r test-scripts
|
||||
dodoc -r contrib
|
||||
## TODO: install other contrib stuff
|
||||
|
||||
sed -i -e "s:nobody:dbmail:" dbmail.conf
|
||||
sed -i -e "s:nogroup:dbmail:" dbmail.conf
|
||||
sed -i -e "s:/var/run:/var/run/dbmail:" dbmail.conf
|
||||
#sed -i -e "s:#library_directory:library_directory:" dbmail.conf
|
||||
|
||||
insinto /etc/dbmail
|
||||
newins dbmail.conf dbmail.conf.dist
|
||||
|
||||
# change config path to our default and use the conf.d and init.d files from the contrib dir
|
||||
sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
|
||||
#sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail
|
||||
#sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail
|
||||
#newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
|
||||
#newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
|
||||
# use custom init scripts until updated in upstream contrib
|
||||
newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
|
||||
newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
|
||||
newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
|
||||
newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
|
||||
|
||||
dobin contrib/mailbox2dbmail/mailbox2dbmail
|
||||
doman contrib/mailbox2dbmail/mailbox2dbmail.1
|
||||
#doman man/*.{1,5,8}
|
||||
|
||||
# ldap schema
|
||||
if use ldap; then
|
||||
insinto /etc/openldap/schema
|
||||
doins "${S}/dbmail.schema"
|
||||
fi
|
||||
|
||||
keepdir /var/lib/dbmail
|
||||
fperms 750 /var/lib/dbmail
|
||||
fowners dbmail:dbmail /var/lib/dbmail
|
||||
# create this through init-scripts instead of at installt ime (bug #455002)
|
||||
#keepdir /var/run/dbmail
|
||||
#fowners dbmail:dbmail /var/run/dbmail
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
|
||||
elog "for remaining instructions on setting up dbmail users and "
|
||||
elog "for finishing configuration to connect to your MTA and "
|
||||
elog "to connect to your db."
|
||||
echo
|
||||
elog "DBMail requires either SQLite, PostgreSQL or MySQL."
|
||||
elog "Database schemes can be found in /usr/share/doc/${PF}/"
|
||||
elog "You will also want to follow the installation instructions"
|
||||
elog "on setting up the maintenance program to delete old messages."
|
||||
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
|
||||
echo
|
||||
elog "For regular maintenance, add this to crontab:"
|
||||
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
|
||||
echo
|
||||
elog "Please make sure to run etc-update."
|
||||
elog "If you get an error message about plugins not found"
|
||||
elog "please add the library_directory configuration switch to"
|
||||
elog "dbmail.conf and set it to the correct path"
|
||||
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
|
||||
elog "A sample can be found in dbmail.conf.dist after etc-update."
|
||||
echo
|
||||
elog "We are now using the init script from upstream."
|
||||
elog "Please edit /etc/conf.d/dbmail to set which services to start"
|
||||
elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
|
||||
elog "forget to rc-update del dbmail-* first)"
|
||||
echo
|
||||
elog "Changed pid directory to /var/run/dbmail (see"
|
||||
elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
|
||||
echo
|
||||
ewarn "The database config has changed to support libzdb db URI"
|
||||
ewarn "Please check the documentation (or Bug #479664)"
|
||||
echo
|
||||
ewarn "The database schema has changed since 3.0.x make sure"
|
||||
ewarn "to run the migration script"
|
||||
echo
|
||||
ewarn "Please be aware, that the single init-script for all services"
|
||||
ewarn "has been replaced with seperate init scripts for the individual services."
|
||||
ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
|
||||
ewarn "and remove dbmail if you want to take advantage of this change."
|
||||
echo
|
||||
}
|
|
@ -1,145 +0,0 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
inherit eutils multilib versionator user
|
||||
|
||||
DESCRIPTION="DBMail is an open-source project that enables storage of mail messages in a relational database"
|
||||
HOMEPAGE="http://www.dbmail.org/"
|
||||
SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ldap sieve +sqlite ssl static"
|
||||
|
||||
DEPEND="dev-db/libzdb
|
||||
sieve? ( >=mail-filter/libsieve-2.2.1 )
|
||||
ldap? ( >=net-nds/openldap-2.3.33 )
|
||||
app-text/asciidoc
|
||||
app-text/xmlto
|
||||
app-crypt/mhash
|
||||
sys-libs/zlib
|
||||
dev-libs/gmime:2.6
|
||||
>=dev-libs/glib-2.16
|
||||
dev-libs/libevent
|
||||
ssl? ( dev-libs/openssl )"
|
||||
#asciidoc and xmlto needed?
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dbmail
|
||||
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/3.2-pgsql-RETURNING.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
use ldap && myconf=${myconf}" --with-auth-ldap"
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/dbmail \
|
||||
$(use_enable static) \
|
||||
$(use_with sieve) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
dodoc AUTHORS BUGS ChangeLog README* INSTALL NEWS THANKS UPGRADING
|
||||
|
||||
docompress -x /usr/share/doc/${PF}/sql
|
||||
dodoc -r sql
|
||||
dodoc -r test-scripts
|
||||
dodoc -r contrib
|
||||
## TODO: install other contrib stuff
|
||||
|
||||
sed -i -e "s:nobody:dbmail:" dbmail.conf
|
||||
sed -i -e "s:nogroup:dbmail:" dbmail.conf
|
||||
sed -i -e "s:/var/run:/var/run/dbmail:" dbmail.conf
|
||||
#sed -i -e "s:#library_directory:library_directory:" dbmail.conf
|
||||
|
||||
insinto /etc/dbmail
|
||||
newins dbmail.conf dbmail.conf.dist
|
||||
|
||||
# change config path to our default and use the conf.d and init.d files from the contrib dir
|
||||
sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
|
||||
#sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail
|
||||
#sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail
|
||||
#newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
|
||||
#newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
|
||||
# use custom init scripts until updated in upstream contrib
|
||||
newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
|
||||
newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
|
||||
newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
|
||||
newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
|
||||
|
||||
dobin contrib/mailbox2dbmail/mailbox2dbmail
|
||||
doman contrib/mailbox2dbmail/mailbox2dbmail.1
|
||||
#doman man/*.{1,5,8}
|
||||
|
||||
# ldap schema
|
||||
if use ldap; then
|
||||
insinto /etc/openldap/schema
|
||||
doins "${S}/dbmail.schema"
|
||||
fi
|
||||
|
||||
keepdir /var/lib/dbmail
|
||||
fperms 750 /var/lib/dbmail
|
||||
fowners dbmail:dbmail /var/lib/dbmail
|
||||
# create this through init-scripts instead of at installt ime (bug #455002)
|
||||
#keepdir /var/run/dbmail
|
||||
#fowners dbmail:dbmail /var/run/dbmail
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
|
||||
elog "for remaining instructions on setting up dbmail users and "
|
||||
elog "for finishing configuration to connect to your MTA and "
|
||||
elog "to connect to your db."
|
||||
echo
|
||||
elog "DBMail requires either SQLite, PostgreSQL or MySQL."
|
||||
elog "Database schemes can be found in /usr/share/doc/${PF}/"
|
||||
elog "You will also want to follow the installation instructions"
|
||||
elog "on setting up the maintenance program to delete old messages."
|
||||
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
|
||||
echo
|
||||
elog "For regular maintenance, add this to crontab:"
|
||||
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
|
||||
echo
|
||||
elog "Please make sure to run etc-update."
|
||||
elog "If you get an error message about plugins not found"
|
||||
elog "please add the library_directory configuration switch to"
|
||||
elog "dbmail.conf and set it to the correct path"
|
||||
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
|
||||
elog "A sample can be found in dbmail.conf.dist after etc-update."
|
||||
echo
|
||||
elog "We are now using the init script from upstream."
|
||||
elog "Please edit /etc/conf.d/dbmail to set which services to start"
|
||||
elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
|
||||
elog "forget to rc-update del dbmail-* first)"
|
||||
echo
|
||||
elog "Changed pid directory to /var/run/dbmail (see"
|
||||
elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
|
||||
echo
|
||||
ewarn "The database config has changed to support libzdb db URI"
|
||||
ewarn "Please check the documentation (or Bug #479664)"
|
||||
echo
|
||||
ewarn "The database schema has changed since 3.0.x make sure"
|
||||
ewarn "to run the migration script"
|
||||
echo
|
||||
ewarn "Please be aware, that the single init-script for all services"
|
||||
ewarn "has been replaced with seperate init scripts for the individual services."
|
||||
ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
|
||||
ewarn "and remove dbmail if you want to take advantage of this change."
|
||||
echo
|
||||
}
|
|
@ -1,135 +0,0 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit versionator user
|
||||
|
||||
DESCRIPTION="Enables storage of mail messages in a relational database"
|
||||
HOMEPAGE="http://www.dbmail.org/"
|
||||
SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ldap sieve ssl static"
|
||||
|
||||
DEPEND="dev-db/libzdb
|
||||
sieve? ( >=mail-filter/libsieve-2.2.1 )
|
||||
ldap? ( >=net-nds/openldap-2.3.33 )
|
||||
app-text/asciidoc
|
||||
app-text/xmlto
|
||||
app-crypt/mhash
|
||||
sys-libs/zlib
|
||||
dev-libs/gmime:2.6
|
||||
>=dev-libs/glib-2.16
|
||||
dev-libs/libevent
|
||||
ssl? ( dev-libs/openssl )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES="${FILESDIR}/3.2-pgsql-RETURNING.patch "
|
||||
|
||||
DOCS="AUTHORS README.md INSTALL THANKS UPGRADING"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dbmail
|
||||
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-manpages \
|
||||
--sysconfdir=/etc/dbmail \
|
||||
$(use_enable static) \
|
||||
$(use_with sieve) \
|
||||
$(use_with ldap auth-ldap)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
docompress -x /usr/share/doc/${PF}/sql
|
||||
dodoc -r sql
|
||||
dodoc -r test-scripts
|
||||
dodoc -r contrib
|
||||
## TODO: install other contrib stuff
|
||||
|
||||
sed -i -e "s:nobody:dbmail:" dbmail.conf || die
|
||||
sed -i -e "s:nogroup:dbmail:" dbmail.conf || die
|
||||
sed -i -e "s:/var/run:/run/dbmail:" dbmail.conf || die
|
||||
|
||||
insinto /etc/dbmail
|
||||
newins dbmail.conf dbmail.conf.dist
|
||||
|
||||
# change config path to our default and use the conf.d and init.d files from the contrib dir
|
||||
sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail || die
|
||||
#sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail || die
|
||||
#sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail || die
|
||||
#newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
|
||||
#newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
|
||||
# use custom init scripts until updated in upstream contrib
|
||||
newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
|
||||
newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
|
||||
newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
|
||||
newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
|
||||
sed -i -e "s:/var/run:/run:" "${D}"/etc/init.d/dbmail-* || die
|
||||
|
||||
dobin contrib/mailbox2dbmail/mailbox2dbmail
|
||||
doman contrib/mailbox2dbmail/mailbox2dbmail.1
|
||||
|
||||
# ldap schema
|
||||
if use ldap; then
|
||||
insinto /etc/openldap/schema
|
||||
doins "${S}/dbmail.schema"
|
||||
fi
|
||||
|
||||
keepdir /var/lib/dbmail
|
||||
fperms 750 /var/lib/dbmail
|
||||
fowners dbmail:dbmail /var/lib/dbmail
|
||||
# create this through init-scripts instead of at install time (bug #455002)
|
||||
#keepdir /run/dbmail
|
||||
#fowners dbmail:dbmail /run/dbmail
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
|
||||
elog "for remaining instructions on setting up dbmail users and "
|
||||
elog "for finishing configuration to connect to your MTA and "
|
||||
elog "to connect to your db."
|
||||
echo
|
||||
elog "DBMail requires either SQLite, PostgreSQL or MySQL."
|
||||
elog "Database schemes can be found in /usr/share/doc/${PF}/"
|
||||
elog "You will also want to follow the installation instructions"
|
||||
elog "on setting up the maintenance program to delete old messages."
|
||||
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
|
||||
echo
|
||||
elog "For regular maintenance, add this to crontab:"
|
||||
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
|
||||
echo
|
||||
elog "Please make sure to run etc-update."
|
||||
elog "If you get an error message about plugins not found"
|
||||
elog "please add the library_directory configuration switch to"
|
||||
elog "dbmail.conf and set it to the correct path"
|
||||
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
|
||||
elog "A sample can be found in dbmail.conf.dist after etc-update."
|
||||
echo
|
||||
elog "We are now using the init script from upstream."
|
||||
elog "Please edit /etc/conf.d/dbmail to set which services to start"
|
||||
elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
|
||||
elog "forget to rc-update del dbmail-* first)"
|
||||
echo
|
||||
elog "Changed pid directory to /run/dbmail (see"
|
||||
elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
|
||||
echo
|
||||
ewarn "The database config has changed to support libzdb db URI"
|
||||
ewarn "Please check the documentation (or Bug #479664)"
|
||||
echo
|
||||
ewarn "The database schema has changed since 3.0.x make sure"
|
||||
ewarn "to run the migration script"
|
||||
echo
|
||||
ewarn "Please be aware, that the single init-script for all services"
|
||||
ewarn "has been replaced with seperate init scripts for the individual services."
|
||||
ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
|
||||
ewarn "and remove dbmail if you want to take advantage of this change."
|
||||
echo
|
||||
}
|
|
@ -1,139 +0,0 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit versionator user
|
||||
|
||||
DESCRIPTION="Enables storage of mail messages in a relational database"
|
||||
HOMEPAGE="http://www.dbmail.org/"
|
||||
SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ldap sieve ssl libressl static"
|
||||
|
||||
DEPEND="
|
||||
dev-db/libzdb
|
||||
sieve? ( >=mail-filter/libsieve-2.2.1 )
|
||||
ldap? ( >=net-nds/openldap-2.3.33 )
|
||||
app-text/asciidoc
|
||||
app-text/xmlto
|
||||
app-crypt/mhash
|
||||
sys-libs/zlib
|
||||
dev-libs/gmime:2.6
|
||||
>=dev-libs/glib-2.16
|
||||
dev-libs/libevent
|
||||
ssl? ( ||
|
||||
(
|
||||
( !libressl? ( dev-libs/openssl ) )
|
||||
( libressl? ( dev-libs/libressl ) )
|
||||
)
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS="AUTHORS README.md INSTALL THANKS UPGRADING"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dbmail
|
||||
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-manpages \
|
||||
--sysconfdir=/etc/dbmail \
|
||||
$(use_enable static) \
|
||||
$(use_with sieve) \
|
||||
$(use_with ldap auth-ldap)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
docompress -x /usr/share/doc/${PF}/sql
|
||||
dodoc -r sql
|
||||
dodoc -r test-scripts
|
||||
dodoc -r contrib
|
||||
## TODO: install other contrib stuff
|
||||
|
||||
sed -i -e "s:nobody:dbmail:" dbmail.conf || die
|
||||
sed -i -e "s:nogroup:dbmail:" dbmail.conf || die
|
||||
sed -i -e "s:/var/run:/run/dbmail:" dbmail.conf || die
|
||||
|
||||
insinto /etc/dbmail
|
||||
newins dbmail.conf dbmail.conf.dist
|
||||
|
||||
# change config path to our default and use the conf.d and init.d files from the contrib dir
|
||||
sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail || die
|
||||
#sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail || die
|
||||
#sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail || die
|
||||
#newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
|
||||
#newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
|
||||
# use custom init scripts until updated in upstream contrib
|
||||
newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
|
||||
newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
|
||||
newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
|
||||
newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
|
||||
sed -i -e "s:/var/run:/run:" "${D}"/etc/init.d/dbmail-* || die
|
||||
|
||||
dobin contrib/mailbox2dbmail/mailbox2dbmail
|
||||
doman contrib/mailbox2dbmail/mailbox2dbmail.1
|
||||
|
||||
# ldap schema
|
||||
if use ldap; then
|
||||
insinto /etc/openldap/schema
|
||||
doins "${S}/dbmail.schema"
|
||||
fi
|
||||
|
||||
keepdir /var/lib/dbmail
|
||||
fperms 750 /var/lib/dbmail
|
||||
fowners dbmail:dbmail /var/lib/dbmail
|
||||
# create this through init-scripts instead of at install time (bug #455002)
|
||||
#keepdir /run/dbmail
|
||||
#fowners dbmail:dbmail /run/dbmail
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
|
||||
elog "for remaining instructions on setting up dbmail users and "
|
||||
elog "for finishing configuration to connect to your MTA and "
|
||||
elog "to connect to your db."
|
||||
echo
|
||||
elog "DBMail requires either SQLite, PostgreSQL or MySQL."
|
||||
elog "Database schemes can be found in /usr/share/doc/${PF}/"
|
||||
elog "You will also want to follow the installation instructions"
|
||||
elog "on setting up the maintenance program to delete old messages."
|
||||
elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
|
||||
echo
|
||||
elog "For regular maintenance, add this to crontab:"
|
||||
elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
|
||||
echo
|
||||
elog "Please make sure to run etc-update."
|
||||
elog "If you get an error message about plugins not found"
|
||||
elog "please add the library_directory configuration switch to"
|
||||
elog "dbmail.conf and set it to the correct path"
|
||||
elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
|
||||
elog "A sample can be found in dbmail.conf.dist after etc-update."
|
||||
echo
|
||||
elog "We are now using the init script from upstream."
|
||||
elog "Please edit /etc/conf.d/dbmail to set which services to start"
|
||||
elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
|
||||
elog "forget to rc-update del dbmail-* first)"
|
||||
echo
|
||||
elog "Changed pid directory to /run/dbmail (see"
|
||||
elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
|
||||
echo
|
||||
ewarn "The database config has changed to support libzdb db URI"
|
||||
ewarn "Please check the documentation (or Bug #479664)"
|
||||
echo
|
||||
ewarn "The database schema has changed since 3.0.x make sure"
|
||||
ewarn "to run the migration script"
|
||||
echo
|
||||
ewarn "Please be aware, that the single init-script for all services"
|
||||
ewarn "has been replaced with seperate init scripts for the individual services."
|
||||
ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
|
||||
ewarn "and remove dbmail if you want to take advantage of this change."
|
||||
echo
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=7
|
||||
|
||||
inherit systemd versionator user
|
||||
inherit systemd user
|
||||
|
||||
DESCRIPTION="Fast and scalable sql based email services"
|
||||
HOMEPAGE="http://www.dbmail.org/"
|
||||
|
@ -31,6 +31,8 @@ DEPEND="dev-db/libzdb
|
|||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES="${FILESDIR}/3.2-pgsql-RETURNING.patch "
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dbmail
|
||||
enewuser dbmail -1 -1 /var/lib/dbmail dbmail
|
||||
|
|
Loading…
Reference in a new issue