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/up-imapproxy/Manifest | 10 ++++ net-mail/up-imapproxy/files/imapproxy.initd | 20 +++++++ net-mail/up-imapproxy/files/imapproxyd.8 | 64 +++++++++++++++++++++ net-mail/up-imapproxy/files/pimpstat.8 | 27 +++++++++ .../files/up-imapproxy-1.2.7-ldflags.patch | 19 +++++++ .../files/up-imapproxy-1.2.7-tinfo.patch | 20 +++++++ net-mail/up-imapproxy/metadata.xml | 11 ++++ net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild | 65 ++++++++++++++++++++++ 8 files changed, 236 insertions(+) create mode 100644 net-mail/up-imapproxy/Manifest create mode 100644 net-mail/up-imapproxy/files/imapproxy.initd create mode 100644 net-mail/up-imapproxy/files/imapproxyd.8 create mode 100644 net-mail/up-imapproxy/files/pimpstat.8 create mode 100644 net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch create mode 100644 net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch create mode 100644 net-mail/up-imapproxy/metadata.xml create mode 100644 net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild (limited to 'net-mail/up-imapproxy') diff --git a/net-mail/up-imapproxy/Manifest b/net-mail/up-imapproxy/Manifest new file mode 100644 index 000000000000..1ee3fdb5be76 --- /dev/null +++ b/net-mail/up-imapproxy/Manifest @@ -0,0 +1,10 @@ +AUX imapproxy.initd 394 SHA256 360fff528625dae79506e4cabe7eda66daa437ef0b9e71b84143acca0a653c7a SHA512 ba5fe198d99d502c45acd45a5e65fbdccc5319b1080ebf9fe93d32a10a22328993f56c0a28a3d028b12781259dfe11ce1599598e9aae2017c613c8983ae1e9ae WHIRLPOOL 5f336f7a155b930389f8f4eb02f2b9849a9ea4618ea9406c2255b0a1bc0da3065ca939fd0487401d2168bc70496450b1f860a16ae822986e6973e529cbe2d8e5 +AUX imapproxyd.8 1984 SHA256 b1fcedc62f40664c6e820b2cc0e967d45aefa8334cc373dcf206bceba84beba2 SHA512 1368e4843fb026943beb0e547c679c319aa90a834792f856e6f06dd8a91e8142a8fe93a622b4289ed2cea21c12875e6fa37678b71297dfd24a9d2cd6cad52268 WHIRLPOOL e34a58b3c8c3a81d3bd8442b55fd6fda91976cbc11a508eef8a9374150438fcc5797316c3774e19869d6f21cd6fbcdb5cbd1f5fb94dc8fe1d516896aa3d4fc1c +AUX pimpstat.8 836 SHA256 3bd8bb0ed654eda55123b5fc7e4b1a1bac4dfd822e59a91805cd5eab652e4cd8 SHA512 3fa58de9b9cdfaf4f9d3d04e5182ec1398e7d17fa505403266b16fa9ecf33736033b305a99addb81343450666b9f60afe8e905273ec4b8a34e8086fffb2aedcd WHIRLPOOL 3638d2d381a5733d120cd3ebee4ad76b450d76c0ae45408adb962aa9420ee47128cee4016c421dd31441ec7a10a8e9f3b1de9306969ed51775cd8a4ba6e7c2c9 +AUX up-imapproxy-1.2.7-ldflags.patch 521 SHA256 fb72b47b7c90c27fe07850a07cc51c2115c67b5973aa8b1f86419b4da3cd076a SHA512 56bed6cb49e0a7821ca40a9f73b586601f8e6c323266fb82065e3199df9d934fe4e60dfd386dbdf47b1fddeff9a678478d4f972fca715724aea801762dca0d45 WHIRLPOOL 8193c7397119de3c51158e312ec05f5ce680fc16c5c08a5df24f51bff409cb45731f2668271fdd7f16432d6d59e8f1ecc990e2c8ee2d938ba75a1cfdc8ff6ed6 +AUX up-imapproxy-1.2.7-tinfo.patch 555 SHA256 238dd2108d3e2067ead5ff4b82c07d0d700acde9eaf1ea85f03b1d2509bc9cbc SHA512 e4cd2a72337481d4060a091a4540f70997e79863ceb999b9ee64c03042b020718939caabed20706ecb4b876a0cce078559468946c5e29a7afbc185dca70f983a WHIRLPOOL 790e55eef5aa4236fa8c520b6e49600075ff0fd828f998bc09e835e80fc83b1fa333e96093b7ad66930e7b6f34637208489763e5786cf163eed48ba773ded6b1 +DIST squirrelmail-imap_proxy-1.2.7.tar.bz2 111651 SHA256 dd8ad40e3e457bd76fc9f19ef1c0d89911e3e3cc722415d1183f765dcac1ae48 SHA512 4b341fe5ea13241983c780ad2487ad5bd97136652b095f54ccf8f61d0f0818236d0d6e1005d46811cf3bd15896160fb172a40ae805ccc3ce7d6fc984099d2b2e WHIRLPOOL b0627781294cff742b189d802aa7e69ef6e60ffacefb800476f8dd28bbe973dc59c6e0b87d3fa1429ce06cf02b23c9fc9b6943ef9eaa7cb6f7f0ae8010a4a3e6 +EBUILD up-imapproxy-1.2.7.ebuild 1452 SHA256 8657f19044ae811011f2064f161ae93d26dc51bcd33ee8409b63db9d9bb5a086 SHA512 617b7473ca0ba6bac5be4d719d022612c5435eacbe203c84205596fd4b09a78e4e7538580f4afab6e186441add8e6b9c78bfb804d4b9be6db54287dea81fa97d WHIRLPOOL 985c70ac54192efba8f563e06cb5fb6a4510142dc8970e55fe2c09cca3beb9e2ef36559617c60d55ace5bb415ec94fa6895b4c0aa602dbe7208afbf095f9863e +MISC ChangeLog 2724 SHA256 f9f97401d31e761ae40fd0c3512ab2b1681d414c8fbb5bc8231fbb92e94b7c0e SHA512 bc1ae9e87b9d92866f8ee35d8a7763b0969bf368c54c39fd6a173046290de62315407e8542eab19ea3bea8699327b26bb70d1c922622c6f809dfebf82aca06e2 WHIRLPOOL 69a2c480660004df5bb9fb2845b031f25e63bf68c0ade0d3323824ac201f96db374b96ba620349b4e76fd150bdced26459d263e2f68046bd126487acab916824 +MISC ChangeLog-2015 4659 SHA256 958485c2bea5d5fccfbd05948992f450e5567648b747ff65109a5aa378b675fe SHA512 e41f082faf3aa863ef2c9deea73948b2ea3ed30eaf7d361dfac6a4055258374b132263c2936fca4939365ad2d7f3eed216e346f29f15dc98d09503369134f752 WHIRLPOOL 4aa60f27dfb0dc3363b07477f0b77c0b3c82b342046da8c745e641ed387b2f24c06deb8cd7f3682f0ca5ee430fd3f7677e6adf50e0743f16e21b1316d91bc134 +MISC metadata.xml 336 SHA256 9fbcaaec689f29d1d25facc25e7265f0d4ed64a972da2cc3218660bcab2ed87d SHA512 2ffa6f2d766aeee72cb51c1892d01d9ebd185ca3b7a6b8572b4792a83eebbbfb74fc89a207ca8e2e76fa1362efd690dfad32851c34f9c6b631971883c6c03bf7 WHIRLPOOL 3557b47efac0300056399caa0320ddfd0733b6ae31828fd924ff12373406504e2e3d422b3c1b222af8658e60c3cb5f0fbeb90c13f1a73b59debe6184caa9596a diff --git a/net-mail/up-imapproxy/files/imapproxy.initd b/net-mail/up-imapproxy/files/imapproxy.initd new file mode 100644 index 000000000000..a95389027452 --- /dev/null +++ b/net-mail/up-imapproxy/files/imapproxy.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use logger + need net +} + +start() { + ebegin "Starting up-imapproxy" + start-stop-daemon --start --quiet --exec /usr/sbin/imapproxyd + eend $? +} + +stop() { + ebegin "Stopping up-imapproxy" + start-stop-daemon --stop --quiet --exec /usr/sbin/imapproxyd + eend $? +} diff --git a/net-mail/up-imapproxy/files/imapproxyd.8 b/net-mail/up-imapproxy/files/imapproxyd.8 new file mode 100644 index 000000000000..1c70d9525756 --- /dev/null +++ b/net-mail/up-imapproxy/files/imapproxyd.8 @@ -0,0 +1,64 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH IMAPPROXYD 8 "Mar 12, 2004" "Dave McMurtrie" "IMAP proxy daemon" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +.B imapproxyd +\- IMAP proxy daemon +.SH SYNOPSIS +.B imapproxyd +.RI +[ +.B -f +.RI + ] +.RI +[ +.B -p +.RI + ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B imapproxyd +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +UP-ImapProxy proxies IMAP transactions between an IMAP client and an IMAP +server. The general idea is that the client should never know that it is +not talking to the real IMAP server, but ImapProxy caches server connections. +.PP +ImapProxy was written to compensate for webmail clients that are unable to +maintain persistent connections to an IMAP server. Most webmail clients +need to log in to an IMAP server for nearly every single transaction; This +behaviour can cause tragic performance problems on the IMAP server. +ImapProxy tries to deal with this problem by leaving server connections +open for a short time after a webmail client logs out. When the webmail +client connects again, ImapProxy will determine if there is a cached +connection available and reuse it if possible. +.BR +.SH FILES +By default, UP-ImapProxy reads /etc/imapproxy.conf on startup. +This can be changed by using the +.I -f +option +.PP +Unless foreground_mode has been enabled, UP-ImapProxy will write its PID to to +a PID-file. It defaults to /var/run/imapproxy.pid, but can be overridden with +the +.I -p +option +.SH SEE ALSO +.BR pimpstat (8), +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). + + diff --git a/net-mail/up-imapproxy/files/pimpstat.8 b/net-mail/up-imapproxy/files/pimpstat.8 new file mode 100644 index 000000000000..2466e7ce2780 --- /dev/null +++ b/net-mail/up-imapproxy/files/pimpstat.8 @@ -0,0 +1,27 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PIMPSTATS 8 "Mar 12, 2004" "Dave McMurtrie" "IMAP proxy daemon" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME + pimpstat \- UP-ImapProxy statistics +.SH SYNOPSIS +.B pimpstat +.RI [options] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B pimpstat +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.SH SEE ALSO +.BR imapproxyd (8), +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). diff --git a/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch new file mode 100644 index 000000000000..4ba1b6b725e5 --- /dev/null +++ b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-ldflags.patch @@ -0,0 +1,19 @@ +commit 98876519b581c0427b81d772f56b25ad3d0121df +Author: Eray Aslan +Date: Sun Jun 5 19:43:41 2011 +0300 + + respect LDFLAGS + +diff --git a/Makefile.in b/Makefile.in +index 1b235b8..8ac1e4f 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -70,7 +70,7 @@ $(XYD_BIN): $(XYD_OBJ) + $(CC) -o $@ $(XYD_OBJ) $(LDFLAGS) $(XYD_LIB) + + $(TAT_BIN): $(TAT_OBJ) +- $(CC) -o $@ $(TAT_OBJ) $(TAT_LIB) ++ $(CC) -o $@ $(TAT_OBJ) $(LDFLAGS) $(TAT_LIB) + + clean: + rm -f ./src/core $(XYD_OBJ) $(TAT_OBJ) $(XYD_BIN) $(TAT_BIN) diff --git a/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch new file mode 100644 index 000000000000..cbe19e8c0eb7 --- /dev/null +++ b/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch @@ -0,0 +1,20 @@ +--- a/configure.in ++++ b/configure.in +@@ -121,12 +121,16 @@ + save_LIBS="$LIBS" + LIB_CURSES="" + AC_CHECK_LIB(curses, initscr, LIB_CURSES="-lcurses", [ curses_found=no ]) +-if test "$curses_found" == no; then ++if test "$curses_found" = no; then + AC_CHECK_LIB(ncurses, initscr, LIB_CURSES="-lncurses", + AC_ERROR([Can't compile without curses!!!])) + fi + + LIBS="$save_LIBS" ++ ++AC_SEARCH_LIBS(stdscr, tinfo curses ncurses, [LIB_CURSES="$LIB_CURSES $ac_cv_search_stdscr"], ++ AC_MSG_ERROR([Cannot find a library providing stdscr])) ++ + AC_SUBST(LIB_CURSES) + + diff --git a/net-mail/up-imapproxy/metadata.xml b/net-mail/up-imapproxy/metadata.xml new file mode 100644 index 000000000000..25a4937fb525 --- /dev/null +++ b/net-mail/up-imapproxy/metadata.xml @@ -0,0 +1,11 @@ + + + + + net-mail@gentoo.org + Net-Mail + + + squirrelmail + + diff --git a/net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild b/net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild new file mode 100644 index 000000000000..accddba17434 --- /dev/null +++ b/net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +WANT_AUTOCONF="2.1" +inherit autotools eutils toolchain-funcs + +DESCRIPTION="Proxy IMAP transactions between an IMAP client and an IMAP server" +HOMEPAGE="http://www.imapproxy.org/" +SRC_URI="mirror://sourceforge/squirrelmail/squirrelmail-imap_proxy-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="kerberos ssl +tcpd" + +RDEPEND="sys-libs/ncurses + kerberos? ( virtual/krb5 ) + ssl? ( dev-libs/openssl ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" +DEPEND="${RDEPEND} + sys-apps/sed" + +S=${WORKDIR}/squirrelmail-imap_proxy-${PV} + +src_prepare() { + epatch "${FILESDIR}/${P}"-ldflags.patch + epatch "${FILESDIR}/${P}"-tinfo.patch + + sed -i \ + -e 's:in\.imapproxyd:imapproxyd:g' \ + README Makefile.in include/imapproxy.h || die + + #buffer oveflow + #http://lists.andrew.cmu.edu/pipermail/imapproxy-info/2010-June/000874.html + sed -i \ + -e "/define BUFSIZE/s/4096/8192/" \ + -e "/define MAXPASSWDLEN/s/64/8192/" \ + include/imapproxy.h + + eautoreconf +} + +src_configure() { + tc-export CC + econf \ + $(use_with kerberos krb5) \ + $(use_with ssl openssl) \ + $(use_with tcpd libwrap) +} + +src_install() { + dosbin bin/imapproxyd bin/pimpstat + + insinto /etc + doins scripts/imapproxy.conf + + newinitd "${FILESDIR}"/imapproxy.initd imapproxy + + dodoc ChangeLog README README.known_issues + use ssl && dodoc README.ssl + + doman "${FILESDIR}"/*.8 +} -- cgit v1.2.3