diff options
author | Masatomo Nakano <nakano@gentoo.org> | 2003-10-11 20:26:57 +0000 |
---|---|---|
committer | Masatomo Nakano <nakano@gentoo.org> | 2003-10-11 20:26:57 +0000 |
commit | 37474e2318749fee632f8aa48ef832bb1a3a7fd6 (patch) | |
tree | 523b438a7bbb8c52f8cfcd8ae75d27303bb64c33 /net-mail | |
parent | Initial import. (diff) | |
download | historical-37474e2318749fee632f8aa48ef832bb1a3a7fd6.tar.gz historical-37474e2318749fee632f8aa48ef832bb1a3a7fd6.tar.bz2 historical-37474e2318749fee632f8aa48ef832bb1a3a7fd6.zip |
Initial import.
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/bincimap/Manifest | 4 | ||||
-rw-r--r-- | net-mail/bincimap/bincimap-1.2.3.ebuild | 73 | ||||
-rw-r--r-- | net-mail/bincimap/files/bincimap-1.2.3-gentoo.diff | 110 | ||||
-rw-r--r-- | net-mail/bincimap/files/digest-bincimap-1.2.3 | 1 | ||||
-rw-r--r-- | net-mail/bincimap/metadata.xml | 9 |
5 files changed, 196 insertions, 1 deletions
diff --git a/net-mail/bincimap/Manifest b/net-mail/bincimap/Manifest index 4e46acac8bd1..af56e183f63b 100644 --- a/net-mail/bincimap/Manifest +++ b/net-mail/bincimap/Manifest @@ -1,3 +1,5 @@ -MD5 9db1a089633eb69cad7103dbc4dd4050 bincimap-1.2.3.ebuild 1908 +MD5 6cb00c1d9bff12f05047a3df1e05b4cf metadata.xml 249 +MD5 711d2bf587faf0c7c0ea597e9acf7faa bincimap-1.2.3.ebuild 2022 +MD5 caf5d9b10f7c4ff0ece600df94775fbd ChangeLog 390 MD5 7faa38e06bc7ca25b09ea04fedf1e941 files/digest-bincimap-1.2.3 67 MD5 0292f9ed05ad50bdbdd139e6b62036cd files/bincimap-1.2.3-gentoo.diff 6482 diff --git a/net-mail/bincimap/bincimap-1.2.3.ebuild b/net-mail/bincimap/bincimap-1.2.3.ebuild new file mode 100644 index 000000000000..fe2fee116bd7 --- /dev/null +++ b/net-mail/bincimap/bincimap-1.2.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/bincimap/bincimap-1.2.3.ebuild,v 1.1 2003/10/11 20:26:52 nakano Exp $ + +DESCRIPTION="IMAP server for Maildir" +SRC_URI="http://www.bincimap.org/dl/tarballs/1.2/${P}.tar.bz2" +HOMEPAGE="http://www.bincimap.org/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="ssl" + +DEPEND="virtual/glibc + ssl? ( dev-libs/openssl )" + +RDEPEND="${DEPEND} + sys-apps/daemontools + net-mail/checkpassword" + +S="${WORKDIR}/${P}" + +src_compile() { + epatch ${FILESDIR}/${P}-gentoo.diff + econf `use_enable ssl ssl` --sysconfdir=/etc/bincimap || die + emake || die +} + +src_install () { + einstall sysconfdir=${D}/etc/bincimap || die + keepdir /var/log/bincimap || die + if [ `use ssl` ]; then + keepdir /var/log/bincimap-ssl || die + fi + + dodoc AUTHORS COPYING COPYING.OpenSSL ChangeLog INSTALL \ + NEWS README TODO + + cd doc + dodoc *.html + dodoc manual/bincimap-manual.dvi manual/bincimap-manual.ps +} + +pkg_postinst() { + if [ `use ssl` ]; then + einfo "This command will setup bincimap-ssl on your system." + einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + fi + + einfo "To start bicimap at boot you have to enable the /etc/init.d/svscan rc file" + einfo "and create the following links :" + einfo "ln -s /etc/bincimap/service/imap /service/imap" + + einfo "If you use ssl, " + einfo "ln -s /etc/bincimap/service/imaps /service/imaps" +} + +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.3-gentoo.diff b/net-mail/bincimap/files/bincimap-1.2.3-gentoo.diff new file mode 100644 index 000000000000..aa0d316b9513 --- /dev/null +++ b/net-mail/bincimap/files/bincimap-1.2.3-gentoo.diff @@ -0,0 +1,110 @@ +diff -Naru bincimap-1.2.3.org/Makefile.in bincimap-1.2.3/Makefile.in +--- bincimap-1.2.3.org/Makefile.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/Makefile.in 2003-10-09 07:56:28.000000000 +0900 +@@ -131,7 +131,7 @@ + target_alias = @target_alias@ + + #-------------------------------------------------------------------------- +-SUBDIRS = conf contrib doc man service src tests ++SUBDIRS = conf contrib man service src tests + + #-------------------------------------------------------------------------- + EXTRA_DIST = bincimap.spec config.h COPYING.OpenSSL config.h.in +diff -Naru bincimap-1.2.3.org/conf/bincimap.conf.in bincimap-1.2.3/conf/bincimap.conf.in +--- bincimap-1.2.3.org/conf/bincimap.conf.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/conf/bincimap.conf.in 2003-10-09 08:06:34.000000000 +0900 +@@ -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.3.org/service/Makefile.in bincimap-1.2.3/service/Makefile.in +--- bincimap-1.2.3.org/service/Makefile.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/service/Makefile.in 2003-10-09 07:56:28.000000000 +0900 +@@ -425,10 +425,10 @@ + $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/service/imap + + @if [ ! -e $(DESTDIR)$(sysconfdir)/service/imap/run ]; then $(INSTALL_DATA) -m 0755 $(srcdir)/run $(DESTDIR)$(sysconfdir)/service/imap/run; else $(INSTALL_DATA) -m 0755 $(srcdir)/run $(DESTDIR)$(sysconfdir)/service/imap/run.new; echo "- New service/imap/run file saved as $(DESTDIR)$(sysconfdir)/service/imap/run.new" >> $(srcdir)/../install.log; fi; +- $(INSTALL_DATA) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imap/down ++# $(INSTALL_DATA) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imap/down + $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/service/imaps + @if [ ! -e $(DESTDIR)$(sysconfdir)/service/imaps/run ]; then $(INSTALL_DATA) -m 0755 $(srcdir)/run-ssl $(DESTDIR)$(sysconfdir)/service/imaps/run; else $(INSTALL_DATA) -m 0755 $(srcdir)/run-ssl $(DESTDIR)$(sysconfdir)/service/imaps/run.new; echo "- New service/imaps/run file saved as $(DESTDIR)$(sysconfdir)/service/imaps/run.new" >> $(srcdir)/../install.log; fi; +- $(INSTALL_DATA) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imaps/down ++# $(INSTALL_DATA) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imaps/down + + #-------------------------------------------------------------------------- + uninstall-hook: +diff -Naru bincimap-1.2.3.org/service/log/Makefile.in bincimap-1.2.3/service/log/Makefile.in +--- bincimap-1.2.3.org/service/log/Makefile.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/service/log/Makefile.in 2003-10-09 07:56:28.000000000 +0900 +@@ -281,12 +281,12 @@ + install-exec-hook: + $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/service/imap/log + @if [ ! -e $(DESTDIR)$(sysconfdir)/service/imap/log/run ]; then $(INSTALL_SCRIPT) -m 0755 $(srcdir)/run $(DESTDIR)$(sysconfdir)/service/imap/log/run; else $(INSTALL_SCRIPT) -m 0755 $(srcdir)/run $(DESTDIR)$(sysconfdir)/service/imap/log/run.new; echo "- New service/imap/run file saved as $(DESTDIR)$(sysconfdir)/service/imap/log/run.new" >> $(srcdir)/../../install.log; fi +- $(INSTALL_SCRIPT) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imap/log/down ++# $(INSTALL_SCRIPT) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imap/log/down + $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/service/imaps/log + @if [ ! -e $(DESTDIR)$(sysconfdir)/service/imaps/log/run ]; then $(INSTALL_SCRIPT) -m 0755 $(srcdir)/run-ssl $(DESTDIR)$(sysconfdir)/service/imaps/log/run; else $(INSTALL_SCRIPT) -m 0755 $(srcdir)/run-ssl $(DESTDIR)$(sysconfdir)/service/imaps/log/run.new; echo "- New service/imaps/run file saved as $(DESTDIR)$(sysconfdir)/service/imaps/log/run.new" >> $(srcdir)/../../install.log; fi; +- $(INSTALL_SCRIPT) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imaps/log/down +- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log/bincimap +- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log/bincimap-ssl ++# $(INSTALL_SCRIPT) -m 0644 $(srcdir)/down $(DESTDIR)$(sysconfdir)/service/imaps/log/down ++# $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log/bincimap ++# $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log/bincimap-ssl + + #-------------------------------------------------------------------------- + uninstall-hook: +diff -Naru bincimap-1.2.3.org/service/log/run-ssl.in bincimap-1.2.3/service/log/run-ssl.in +--- bincimap-1.2.3.org/service/log/run-ssl.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/service/log/run-ssl.in 2003-10-09 07:56:28.000000000 +0900 +@@ -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.3.org/service/log/run.in bincimap-1.2.3/service/log/run.in +--- bincimap-1.2.3.org/service/log/run.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/service/log/run.in 2003-10-09 07:56:28.000000000 +0900 +@@ -14,5 +14,5 @@ + + exec 2>&1 + +-exec multilog t n5 s1048576 @localstatedir@/log/bincimap ++exec multilog t n5 s1048576 /var/log/bincimap + +diff -Naru bincimap-1.2.3.org/service/run-ssl.in bincimap-1.2.3/service/run-ssl.in +--- bincimap-1.2.3.org/service/run-ssl.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/service/run-ssl.in 2003-10-09 07:56:28.000000000 +0900 +@@ -7,8 +7,8 @@ + exec tcpserver -c 100 -u 0 -g 0 \ + -l $(hostname) -HDRP \ + 0 993 \ +- @prefix@/bin/bincimap-up \ ++ /usr/bin/bincimap-up \ + --logtype=multilog \ + --conf=@sysconfdir@/bincimap.conf --ssl -- \ + /bin/checkpassword \ +- @prefix@/bin/bincimapd ++ /usr/bin/bincimapd +diff -Naru bincimap-1.2.3.org/service/run.in bincimap-1.2.3/service/run.in +--- bincimap-1.2.3.org/service/run.in 2003-10-09 07:56:04.000000000 +0900 ++++ bincimap-1.2.3/service/run.in 2003-10-09 07:56:28.000000000 +0900 +@@ -7,10 +7,10 @@ + exec tcpserver -c 100 -u 0 -g 0 \ + -l $(hostname) -HDRP \ + 0 143 \ +- @prefix@/bin/bincimap-up \ ++ /usr/bin/bincimap-up \ + --logtype=multilog \ + --conf=@sysconfdir@/bincimap.conf -- \ + /bin/checkpassword \ +- @prefix@/bin/bincimapd ++ /usr/bin/bincimapd + + diff --git a/net-mail/bincimap/files/digest-bincimap-1.2.3 b/net-mail/bincimap/files/digest-bincimap-1.2.3 new file mode 100644 index 000000000000..64927a332168 --- /dev/null +++ b/net-mail/bincimap/files/digest-bincimap-1.2.3 @@ -0,0 +1 @@ +MD5 b6476c80deb03dfcab1fc34a754b91b8 bincimap-1.2.3.tar.bz2 427598 diff --git a/net-mail/bincimap/metadata.xml b/net-mail/bincimap/metadata.xml new file mode 100644 index 000000000000..a95a264fa8fb --- /dev/null +++ b/net-mail/bincimap/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<name>Masatomo Nakano</name> +<email>nakano@gentoo.org</email> +</maintainer> +</pkgmetadata> |