From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-mail/bincimap/Manifest | 9 ++ net-mail/bincimap/bincimap-1.2.13-r1.ebuild | 101 +++++++++++++++++++++ net-mail/bincimap/bincimap-1.2.13.ebuild | 98 ++++++++++++++++++++ net-mail/bincimap/files/bincimap-1.2-gcc43.patch | 64 +++++++++++++ .../bincimap/files/bincimap-1.2.13-gentoo.diff | 32 +++++++ .../files/bincimap-1.2.13-glibc-2.10.patch | 12 +++ net-mail/bincimap/metadata.xml | 11 +++ 7 files changed, 327 insertions(+) create mode 100644 net-mail/bincimap/Manifest create mode 100644 net-mail/bincimap/bincimap-1.2.13-r1.ebuild create mode 100644 net-mail/bincimap/bincimap-1.2.13.ebuild create mode 100644 net-mail/bincimap/files/bincimap-1.2-gcc43.patch create mode 100644 net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff create mode 100644 net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch create mode 100644 net-mail/bincimap/metadata.xml (limited to 'net-mail/bincimap') diff --git a/net-mail/bincimap/Manifest b/net-mail/bincimap/Manifest new file mode 100644 index 000000000000..6656ca9501a8 --- /dev/null +++ b/net-mail/bincimap/Manifest @@ -0,0 +1,9 @@ +AUX bincimap-1.2-gcc43.patch 1750 SHA256 e7894fbe54989dcff917c2b2b31dd94ef0e39997c90eadc04e2507e5756da870 SHA512 4c97a402394d5f984ad6f7f0fa777d2cca179bc378cc59e3a19823868e2b77edfb1c58371e2d89bcca1c62f6f4aec4b1519aeaaae50011d75da4654d7d8eedb7 WHIRLPOOL 0783e4a7e4bee299895a7184ce7a68f2eb74b139305e428931e40aa20c71593b90607c20e6dd92504a59c62f0866d37097f5d0e891a136c8cb1fa3f862c50a6a +AUX bincimap-1.2.13-gentoo.diff 1438 SHA256 7c6c70dde65813a08edcad6044adc2d9c5829faaaa3bc5c7ff5c92d240c1a8d6 SHA512 559a1c58c81cef131e2dd902927df61a3de16e2a71daaff3102329a51dfa57c2fb9a37eec0720f19bbec5856d4c59ee030ac187df172f6ec957a54d56daaceef WHIRLPOOL 5e51ae2a72ab8c5c93155b9a94c3d5777271264ec68990d320e30edeeca4fcf6253e30feb90ef11cc22bd65d8b199c9ee41a5e3c60c47e507039ac0e0d3429cf +AUX bincimap-1.2.13-glibc-2.10.patch 469 SHA256 80182151e35a2f1fa5f81c6fca1439d26d24d92903a32c61ca740c6475229dcf SHA512 36e8afcfeb40a650e8401a0481478714d65e6fbf63366fea2d2f5aba4633195a808ff1e2d1526c89b88020dab9f8671ec3c46db6d444de80c63f1887924c790a WHIRLPOOL eb52b05d8f7804906f3c9d9a2e5c9ded0f18c3d481fab40ab2f8430ea9fc9f25142fb47c99db44cb6610ee7d253ab75863a7e718c04318cc95cc0629c83076d5 +DIST bincimap-1.2.13final.tar.bz2 416152 SHA256 152368a1674a521a2006b8a27ff36c4db1b8bb0cf766ab1a0ada02698fae4528 SHA512 06c0487d214581293b45a2f189979ceecae5e02b74a8d22381e51aef9fb1ad595628d2aa94e7dbdac0ad544747138735aa61b00c50d83090bed4c41e11c3d2dc WHIRLPOOL 8ecbf359e22146d42f1a00a5520d4ede5b463ba82913b5b1ce735086dd86de3711612a4c6083b808783792040439d194733851c3cd5447ed941563c755afcc1b +EBUILD bincimap-1.2.13-r1.ebuild 2657 SHA256 7a25fdc037ac4377b60a13f68a7269f59ee6c00a93dfc4a5708f75de7e0752dc SHA512 3baaa443d21071c57a57d88f87664b2791ddfcff1646ea531d71813fbf98454dec082a6cafd81a6d7fa1b489ab069878f22d0fdcdfde81ae82e04e1730275a52 WHIRLPOOL aa3e03cb236ce56e6b4b060927b3e297838f4151035e7a691b86dc0dd6c83586bf65d5979fc2d3aef66db9101eb771fa7d00922395ea4b623e724ce0fddb0317 +EBUILD bincimap-1.2.13.ebuild 2618 SHA256 c5ee5b4c023b932bbdb4d0a5fe797be6af16bfd201a914d64c9cafa599da526d SHA512 1d286ba7132cef7503957407a0d06ddb98a86a3b5d7a5ac02b41f662cd0a3b6d28b50e59e412dc1fcb8e09ec722d41e8e81d014f5cf464234a1955e72c1f5d11 WHIRLPOOL b3ab64226a757c61656d981efb0609d8af945f477909951f1cf5f4599075deadd94ccc9ddf79dfe3a32d3fc91fb3c6ec3bb970d7599d0a00544924273c066f44 +MISC ChangeLog 2898 SHA256 59cfcaaddb582e286b77548ac42eb0668e9b5075c2c0b660c36e855b797ddcfc SHA512 a46dfbbb049456c4187cb01885c3761cd26b85a82288412b8a5c6ff6cc78b0ea43d53a9e03e1c311bb13c739fe2ba1120c2077d68f46328ad3c0c507d576ba58 WHIRLPOOL 47a17c1f3662bfcf59f4787e8fdf6c06cdd8dbc39984d417227224708521bb4b3a3f48bc3714d8ed5b1dae24ddaa8e017435396b3051ec9aafdf6dfd90152a83 +MISC ChangeLog-2015 8364 SHA256 51488485736fdc03deca007b0f53ec4964fa134c2c6c8493ca4b6e9b5a91107a SHA512 e32e1227183ea6618e13d30458040ffecbdd801b378bdffa31e3ac0142afbb5f18c38d64223938c4a1fdfb0e14cceb73284282dc85063c89fa271c0ca0ed661d WHIRLPOOL 96e9384fc79308638009ab60fa467fc64f86a7f397298e12a45c16c6ec26dd07f30cd2a22fd88a99c00a2ef3b11ff69c61dccd27a6a4b770216c6be507ff0657 +MISC metadata.xml 320 SHA256 b7aa77b20cc64477abccd41cd67ad5598baf413ecb0a9e46c724d0d156ea19c4 SHA512 fb29a8a6386b26019a9cf2c5204daf2cb89fe8bcb5484efb392bba821600cf1a56837aea9f42f7961c9a895060709e5723bd0bb0bca201548b401702ae04bfeb WHIRLPOOL 24c432d2831b590f8e19afd668cb41b9ca44f8fba7d9423c10f87ef32e3ce782455bdcbecb4a7e36df0a782a08dd63b4ef4afff4890ebe7200ace9bc863377b8 diff --git a/net-mail/bincimap/bincimap-1.2.13-r1.ebuild b/net-mail/bincimap/bincimap-1.2.13-r1.ebuild new file mode 100644 index 000000000000..4c68d7e65c58 --- /dev/null +++ b/net-mail/bincimap/bincimap-1.2.13-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="IMAP server for Maildir" +SRC_URI="http://www.bincimap.org/dl/tarballs/1.2/${P}final.tar.bz2" +HOMEPAGE="http://freshmeat.net/projects/bincimap/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="libressl ssl" + +DEPEND="ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) +)" + +RDEPEND="${DEPEND} + virtual/daemontools + sys-apps/ucspi-tcp + net-mail/checkpassword" + +# get rid of old style virtual - bug 350792 +# all blockers really needed? +RDEPEND="${RDEPEND} + !mail-mta/courier + !net-mail/courier-imap + !net-mail/cyrus-imapd + !net-mail/uw-imap" + +S="${WORKDIR}/${P}final" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.diff + epatch "${FILESDIR}"/${PN}-1.2-gcc43.patch + epatch "${FILESDIR}"/${P}-glibc-2.10.patch +} + +src_configure() { + econf $(use_enable ssl) --sysconfdir=/etc/bincimap +} + +src_compile() { + emake localstatedir=/etc/bincimap +} + +src_install () { + emake DESTDIR="${D}" localstatedir=/etc/bincimap prefix=/usr install + keepdir /var/log/bincimap || die + use ssl && keepdir /var/log/bincimap-ssl || die + + dodoc AUTHORS ChangeLog INSTALL \ + NEWS README README.SSL TODO + dohtml doc/*.{html,css} + rm -rf "${D}"/usr/share/doc/"${PN}" + + # backward compatibility + dosym /etc/bincimap/service/bincimap /etc/bincimap/service/imap + dosym /etc/bincimap/service/bincimaps /etc/bincimap/service/imaps +} + +pkg_postinst() { + elog "To start bicimap at boot you have to enable the /etc/init.d/svscan rc file" + elog "and create the following link:" + elog "ln -s /etc/bincimap/service/bincimap /service/bincimap" + elog + + if use ssl; then + elog "If you want to use ssl connections, create the following link:" + elog "ln -s /etc/bincimap/service/bincimaps /service/bincimaps" + elog + elog "And this command will setup bincimap-ssl on your system." + elog "emerge --config =${CATEGORY}/${PF}" + elog + fi + + elog "NOTE: Default Maildir path is '~/.maildir'. If you want to modify it," + elog "edit /etc/bincimap/bincimap.conf" + elog +} + +pkg_config() { + if use ssl; then + local pemfile=/etc/bincimap/bincimap.pem + if [ ! -f $pemfile ]; then + echo "Creating a self-signed ssl-cert:" + /usr/bin/openssl req -new -x509 -nodes -out $pemfile -days 366 -keyout $pemfile + chmod 640 $pemfile + + einfo "If You want to have a signed cert, do the following:" + einfo "openssl req -new -nodes -out req.pem \\" + einfo "-keyout $pemfile" + einfo "chmod 640 $pemfile" + einfo "Send req.pem to your CA to obtain signed_req.pem, and do:" + einfo "cat signed_req.pem >> $pemfile" + fi + fi +} diff --git a/net-mail/bincimap/bincimap-1.2.13.ebuild b/net-mail/bincimap/bincimap-1.2.13.ebuild new file mode 100644 index 000000000000..e08221517a80 --- /dev/null +++ b/net-mail/bincimap/bincimap-1.2.13.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="IMAP server for Maildir" +SRC_URI="http://www.bincimap.org/dl/tarballs/1.2/${P}final.tar.bz2" +HOMEPAGE="http://freshmeat.net/projects/bincimap/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~hppa ~ppc x86" +IUSE="ssl" + +DEPEND="ssl? ( dev-libs/openssl )" + +RDEPEND="${DEPEND} + virtual/daemontools + sys-apps/ucspi-tcp + net-mail/checkpassword" + +# get rid of old style virtual - bug 350792 +# all blockers really needed? +RDEPEND="${RDEPEND} + !mail-mta/courier + !net-mail/courier-imap + !net-mail/cyrus-imapd + !net-mail/uw-imap" + +S="${WORKDIR}/${P}final" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-gentoo.diff + epatch "${FILESDIR}"/${PN}-1.2-gcc43.patch + epatch "${FILESDIR}"/${P}-glibc-2.10.patch +} + +src_compile() { + econf $(use_enable ssl) --sysconfdir=/etc/bincimap || die + emake localstatedir=/etc/bincimap || die +} + +src_install () { + make DESTDIR="${D}" localstatedir=/etc/bincimap prefix=/usr install || die + keepdir /var/log/bincimap || die + if use ssl; then + keepdir /var/log/bincimap-ssl || die + fi + + dodoc AUTHORS ChangeLog INSTALL \ + NEWS README README.SSL TODO + dohtml doc/*.{html,css} + rm -rf "${D}"/usr/share/doc/"${PN}" + + # backward compatibility + dosym /etc/bincimap/service/bincimap /etc/bincimap/service/imap + dosym /etc/bincimap/service/bincimaps /etc/bincimap/service/imaps +} + +pkg_postinst() { + elog "To start bicimap at boot you have to enable the /etc/init.d/svscan rc file" + elog "and create the following link:" + elog "ln -s /etc/bincimap/service/bincimap /service/bincimap" + elog + + if use ssl; then + elog "If you want to use ssl connections, create the following link:" + elog "ln -s /etc/bincimap/service/bincimaps /service/bincimaps" + elog + elog "And this command will setup bincimap-ssl on your system." + elog "emerge --config =${CATEGORY}/${PF}" + elog + fi + + elog "NOTE: Default Maildir path is '~/.maildir'. If you want to modify it," + elog "edit /etc/bincimap/bincimap.conf" + elog +} + +pkg_config() { + if use ssl; then + local pemfile=/etc/bincimap/bincimap.pem + if [ ! -f $pemfile ]; then + echo "Creating a self-signed ssl-cert:" + /usr/bin/openssl req -new -x509 -nodes -out $pemfile -days 366 -keyout $pemfile + chmod 640 $pemfile + + einfo "If You want to have a signed cert, do the following:" + einfo "openssl req -new -nodes -out req.pem \\" + einfo "-keyout $pemfile" + einfo "chmod 640 $pemfile" + einfo "Send req.pem to your CA to obtain signed_req.pem, and do:" + einfo "cat signed_req.pem >> $pemfile" + fi + fi +} diff --git a/net-mail/bincimap/files/bincimap-1.2-gcc43.patch b/net-mail/bincimap/files/bincimap-1.2-gcc43.patch new file mode 100644 index 000000000000..76cb3a96d6b5 --- /dev/null +++ b/net-mail/bincimap/files/bincimap-1.2-gcc43.patch @@ -0,0 +1,64 @@ +diff -NrU5 bincimap-1.2.13final.orig/src/convert.cc bincimap-1.2.13final/src/convert.cc +--- bincimap-1.2.13final.orig/src/convert.cc 2005-01-08 11:20:48.000000000 +0100 ++++ bincimap-1.2.13final/src/convert.cc 2008-05-07 12:32:33.000000000 +0200 +@@ -37,10 +37,12 @@ + + #include "convert.h" + #include "io.h" + #include + ++#include ++ + using namespace ::std; + using namespace Binc; + + //------------------------------------------------------------------------ + BincStream::BincStream(void) +diff -NrU5 bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h +--- bincimap-1.2.13final.orig/src/convert.h 2005-02-08 21:30:22.000000000 +0100 ++++ bincimap-1.2.13final/src/convert.h 2008-05-07 12:32:33.000000000 +0200 +@@ -35,10 +35,11 @@ + #include + #endif + + #ifndef convert_h_included + #define convert_h_included ++#include + #include + #include + #include + #include + +@@ -46,10 +47,12 @@ + #include + + #include "address.h" + #include "depot.h" + ++#include ++ + namespace Binc { + + //---------------------------------------------------------------------- + inline std::string toString(int i_in) + { +diff -NrU5 bincimap-1.2.13final.orig/src/tools.cc bincimap-1.2.13final/src/tools.cc +--- bincimap-1.2.13final.orig/src/tools.cc 2005-01-08 11:20:48.000000000 +0100 ++++ bincimap-1.2.13final/src/tools.cc 2008-05-07 12:32:33.000000000 +0200 +@@ -33,13 +33,16 @@ + */ + #ifdef HAVE_CONFIG_H + #include + #endif + #include ++#include + + #include "tools.h" + ++#include ++ + using namespace ::std; + using namespace Binc; + + //------------------------------------------------------------------------ + Tools::Tools(void) diff --git a/net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff b/net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff new file mode 100644 index 000000000000..d969622ab85f --- /dev/null +++ b/net-mail/bincimap/files/bincimap-1.2.13-gentoo.diff @@ -0,0 +1,32 @@ +diff -Naru bincimap-1.2.13final.org/conf/bincimap.conf bincimap-1.2.13final/conf/bincimap.conf +--- bincimap-1.2.13final.org/conf/bincimap.conf 2004-04-18 20:23:28.000000000 +0100 ++++ bincimap-1.2.13final/conf/bincimap.conf 2004-04-24 13:53:10.011618795 +0100 +@@ -56,7 +56,7 @@ + type = "Maildir", /* only Maildir + * support */ + +- path = "Maildir", /* default path */ ++ path = ".maildir", /* default path */ + + auto create inbox = "yes", /* create INBOX in + * given format if +diff -Naru bincimap-1.2.13final.org/service/log/run-ssl.in bincimap-1.2.13final/service/log/run-ssl.in +--- bincimap-1.2.13final.org/service/log/run-ssl.in 2004-03-02 20:16:02.000000000 +0000 ++++ bincimap-1.2.13final/service/log/run-ssl.in 2004-04-24 13:52:30.562843106 +0100 +@@ -14,5 +14,5 @@ + + exec 2>&1 + +-exec multilog t n5 s1048576 @localstatedir@/log/bincimap-ssl ++exec multilog t n5 s1048576 /var/log/bincimap-ssl + +diff -Naru bincimap-1.2.13final.org/service/log/run.in bincimap-1.2.13final/service/log/run.in +--- bincimap-1.2.13final.org/service/log/run.in 2004-03-02 20:16:02.000000000 +0000 ++++ bincimap-1.2.13final/service/log/run.in 2004-04-24 13:52:37.988613029 +0100 +@@ -14,5 +14,5 @@ + + exec 2>&1 + +-exec multilog t n5 s1048576 @localstatedir@/log/bincimap ++exec multilog t n5 s1048576 /var/log/bincimap + diff --git a/net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch b/net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch new file mode 100644 index 000000000000..063f7a54dc3d --- /dev/null +++ b/net-mail/bincimap/files/bincimap-1.2.13-glibc-2.10.patch @@ -0,0 +1,12 @@ +diff -ur bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h +--- bincimap-1.2.13final.orig/src/convert.h 2005-02-08 22:30:22.000000000 +0200 ++++ bincimap-1.2.13final/src/convert.h 2009-08-08 10:38:08.000000000 +0300 +@@ -111,7 +111,7 @@ + unsigned char c = *i; + unsigned char d = *(i + 1); + +- char *t; ++ const char *t; + if ((t = strchr(hexchars, c)) == 0) + return "out of range"; + n = (t - hexchars) << 4; diff --git a/net-mail/bincimap/metadata.xml b/net-mail/bincimap/metadata.xml new file mode 100644 index 000000000000..cf6abec6e10a --- /dev/null +++ b/net-mail/bincimap/metadata.xml @@ -0,0 +1,11 @@ + + + + + net-mail@gentoo.org + Net-Mail + + + bincimap + + -- cgit v1.2.3