Dbmail support for libressl https://bugs.gentoo.org/show_bug.cgi?id=613272
This commit is contained in:
parent
2b2fc90b54
commit
29e7bed573
5 changed files with 378 additions and 0 deletions
2
dev-db/libzdb/Manifest
Normal file
2
dev-db/libzdb/Manifest
Normal file
|
@ -0,0 +1,2 @@
|
|||
DIST libzdb-3.1.tar.gz 720162 SHA256 0f01abb1b01d1a1f4ab9b55ad3ba445d203fc3b4757abdf53e1d85e2b7b42695 SHA512 7cf24ccf0f0a938955d8b54af2c6eca8a8f700737beafde9e824129f324511e06adbc11a3fdbd6ad6d9b902fdae6f7caab4e5c1c594d2211be314e3a24c697f3 WHIRLPOOL a6c2f713e070aaf4aa60d518db7ed1e7f05c82536c63c4c183e6dd8116ab506941dd6bff967956336b089dc83f69f017e10d3194ff82f1b8bf5808083d85ed40
|
||||
EBUILD libzdb-3.1-r1.ebuild 2031 SHA256 e606c6d67a2a982bab4a289069857319894e2af1bb8e7f0f6785630280e2b6e2 SHA512 23ecde6827a027b56b7b2f67ab5ed9ff43a2db8e97049a51337739ffd7766a583868f1dfc63aa6363aa1ad18483126188dfac3945120eee794fefa7b45aa3abd WHIRLPOOL 2e8189ee4e9684f6ae720e4e6d11e684c486161587e65c399339fc61ca521bda041dea95dd7be4c504fd01d66858f855fabf3c0876b1295fa7a5bf2118519416
|
94
dev-db/libzdb/libzdb-3.1-r1.ebuild
Normal file
94
dev-db/libzdb/libzdb-3.1-r1.ebuild
Normal file
|
@ -0,0 +1,94 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A thread safe high level multi-database connection pool library"
|
||||
HOMEPAGE="http://www.tildeslash.com/libzdb/"
|
||||
SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug doc mysql postgres +sqlite ssl libressl static-libs"
|
||||
REQUIRED_USE=" || ( postgres mysql sqlite )"
|
||||
|
||||
RESTRICT=test
|
||||
|
||||
RDEPEND="mysql? ( virtual/mysql )
|
||||
postgres? ( dev-db/postgresql )
|
||||
sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] )
|
||||
ssl? (
|
||||
|| (
|
||||
( !libressl? ( dev-libs/openssl ) )
|
||||
( libressl? ( dev-libs/libressl ) )
|
||||
)
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s|&& ./pool||g" test/Makefile.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
## TODO: check what --enable-optimized actually does
|
||||
## TODO: find someone with oracle db to add oci8 support
|
||||
myconf=""
|
||||
if [[ $(gcc-version) < 4.1 ]];then
|
||||
myconf="${myconf} --disable-protected"
|
||||
else
|
||||
myconf="${myconf} --enable-protected"
|
||||
fi
|
||||
|
||||
if use sqlite; then
|
||||
myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock"
|
||||
else
|
||||
myconf="${myconf} --without-sqlite"
|
||||
fi
|
||||
|
||||
if use mysql; then
|
||||
myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config"
|
||||
else
|
||||
myconf="${myconf} --without-mysql"
|
||||
fi
|
||||
|
||||
if use postgres; then
|
||||
myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config"
|
||||
else
|
||||
myconf="${myconf} --without-postgresql"
|
||||
fi
|
||||
|
||||
econf \
|
||||
$(use_enable debug profiling) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable ssl openssl) \
|
||||
--without-oci \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default_src_compile
|
||||
if use doc; then
|
||||
emake doc
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# the --disable-static flag only skips .a
|
||||
use static-libs || rm -f "${D}"/usr/lib*/libzdb.la
|
||||
|
||||
dodoc AUTHORS CHANGES README
|
||||
if use doc;then
|
||||
dohtml -r "${S}/doc/api-docs"/*
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake verify
|
||||
}
|
|
@ -16,3 +16,5 @@ DIST dbmail-3.2.3.tar.gz 2444227 SHA256 fd4d90e3e5ddb0c3fbdaa766d19d2464b5027a8c
|
|||
EBUILD dbmail-3.2.2-r1.ebuild 5027 SHA256 75af29fc719c1d5d4865b8b668a93bc68609ba178c2e62c96610a53950cb8aa7 SHA512 3a127188c4f5841e08e535e7da2c526423bb2fdb309b9a351f9bceff930f7826ea345fb94a57f7265da67c2aa98d872fe9d98847d39dde52f88c054dfae918c1 WHIRLPOOL 73072e18d5dac22fb6ced066e15ab28b7882e7078d242deb080b1cb9251b3bbc066afba5d173773b3ce3bba5b5e10d97a3d3bc2a2583acf08e21a306dc859513
|
||||
EBUILD dbmail-3.2.3-r100.ebuild 4927 SHA256 2ee584ebe477e42e148d6e97b2f3af6fbcb9bc0948e20a01314d57d0f5b5269c SHA512 fb3052f63f4f556fe41a116c37647a0e58788612b8a86f0494342c0b093780cf16140652cf4db7f9709f21a51f76cfcd8fef6539f8afc9bd14c5cc937759368d WHIRLPOOL 60015aa601f1c5a3c5de3d7e5f7c2ef642bfc7672195824460ea139f6b6d7c13bf10bafe6f658133732e982ac5252de2556aaf0d66511dc5003901ccc5cb03e7
|
||||
EBUILD dbmail-3.2.3-r101.ebuild 4665 SHA256 8fb62064505a25c52c9c7d1d1099dd098eba38da25517a8449bf46df4d8de86a SHA512 ab14342556db21b4c8e1f51b0458bfcb3073a66c9cc55645cc7c16ce2449f5b04a805c59247721b237a3e6ba80397c60812cc336ccc694c52da96f5f30a007c8 WHIRLPOOL 5ed2a26c8f91e7fbe2319afb711ad39f93a065d20cba36231f989edb13f7e00be4b755a5c9eac3e693426eec18fc919c1075402e338442f9a2ee38c425521906
|
||||
EBUILD dbmail-3.2.3-r102.ebuild 4749 SHA256 fa08fe0ae82bf0ea3fd2743b5fcc8e088dfde0b7e657ea00cdd998e92a56f53f SHA512 aabb8ce3bd21b133cf32bd9323a5970d8c173be6d13ba013e7d99107b7370545ac6dde716f395fcdd83e185358b87a0275f30a87ae0076817038eed959baac4c WHIRLPOOL f6285fa2309bfaaeb2b3f5b60d89f8847cd30c26c7c46dd07e4c18e0270041994b296a4b6f5e08bff38462dc918173f9d285c857aecc0d7d5a51656de79cfb96
|
||||
EBUILD dbmail-3.2.3-r2.ebuild 4699 SHA256 4f01903315210b1d4e7fd63c3e3cd898ffeb7d1e15289dd18e52dfd0d116c61f SHA512 cb671f54691b5699e5465de31518d377bc4f96768a6b1a2295f41775b3237b31a773a62da7a805dcc0e7eee454cfc5f27ce8992179c523b216244524d5d01ee9 WHIRLPOOL 803a03c9fb9d2b554730ce005976994d40c5f3275d73eced12bfcddc9eea52d315fb95ece86f094e8fa5cef98d02793cbaee0464a1563cac3dd3b14533056a25
|
||||
|
|
141
net-mail/dbmail/dbmail-3.2.3-r102.ebuild
Normal file
141
net-mail/dbmail/dbmail-3.2.3-r102.ebuild
Normal file
|
@ -0,0 +1,141 @@
|
|||
# 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}"
|
||||
|
||||
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
|
||||
}
|
139
net-mail/dbmail/dbmail-3.2.3-r2.ebuild
Normal file
139
net-mail/dbmail/dbmail-3.2.3-r2.ebuild
Normal file
|
@ -0,0 +1,139 @@
|
|||
# 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
|
||||
}
|
Loading…
Reference in a new issue