diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2010-09-27 17:37:55 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2010-09-27 17:37:55 +0000 |
commit | 000f30e32bb9482bea279060434b1575cabfe974 (patch) | |
tree | 4ebf5176f4730ea8f3b1dcc791deb5af37eb563f /mail-client | |
parent | Moved from sunrise overlay. Thanks to Seth Robertson <in-gentoo@baka.org> for... (diff) | |
download | historical-000f30e32bb9482bea279060434b1575cabfe974.tar.gz historical-000f30e32bb9482bea279060434b1575cabfe974.tar.bz2 historical-000f30e32bb9482bea279060434b1575cabfe974.zip |
Moved from sunrise overlay. Thanks to Seth Robertson <in-gentoo@baka.org> for the ebuild. Bug #336057
Package-Manager: portage-2.2_rc86/cvs/Linux x86_64
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/nmh/ChangeLog | 13 | ||||
-rw-r--r-- | mail-client/nmh/Manifest | 19 | ||||
-rw-r--r-- | mail-client/nmh/files/nmh-1.3-db5.patch | 17 | ||||
-rw-r--r-- | mail-client/nmh/files/nmh-1.3-inc-login.patch | 27 | ||||
-rw-r--r-- | mail-client/nmh/files/nmh-1.3-install.patch | 12 | ||||
-rw-r--r-- | mail-client/nmh/files/nmh-1.3-m_getfld.patch | 29 | ||||
-rw-r--r-- | mail-client/nmh/files/nmh-1.3-parallelmake.patch | 99 | ||||
-rw-r--r-- | mail-client/nmh/metadata.xml | 18 | ||||
-rw-r--r-- | mail-client/nmh/nmh-1.3-r2.ebuild | 79 |
9 files changed, 313 insertions, 0 deletions
diff --git a/mail-client/nmh/ChangeLog b/mail-client/nmh/ChangeLog new file mode 100644 index 000000000000..9b17559dd2a0 --- /dev/null +++ b/mail-client/nmh/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for net-mail/nmh +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/nmh/ChangeLog,v 1.26 2010/09/27 17:37:55 hwoarang Exp $ + +*nmh-1.3-r2 (27 Sep 2010) + + 27 Sep 2010; Markos Chandras <hwoarang@gentoo.org> +nmh-1.3-r2.ebuild, + +files/nmh-1.3-db5.patch, +files/nmh-1.3-inc-login.patch, + +files/nmh-1.3-install.patch, +files/nmh-1.3-m_getfld.patch, + +files/nmh-1.3-parallelmake.patch, +metadata.xml: + Moved from sunrise overlay. Thanks to Seth Robertson <in-gentoo@baka.org> + for the ebuild. Bug #336057 + diff --git a/mail-client/nmh/Manifest b/mail-client/nmh/Manifest new file mode 100644 index 000000000000..b3f52b9bce31 --- /dev/null +++ b/mail-client/nmh/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX nmh-1.3-db5.patch 568 RMD160 4ecedcf484147ba74c296bf8675419948b45c586 SHA1 e7706a77ea8d065e48147929aca71a02e1939663 SHA256 b139def59d1c5371bec1a3b5067698bbb7c320771f66a703c7b8c9eb2f1bdf78 +AUX nmh-1.3-inc-login.patch 602 RMD160 22cd9b4062810b1d30e7d451f3c54b8ad065ce53 SHA1 ddd7152870068b57926a35695b836cc782874d87 SHA256 6f9991f2cacc05d11495d92813fa8000d415e5bf58fc2d194094897ff16f9dd2 +AUX nmh-1.3-install.patch 482 RMD160 db11b277c4c6e8ec124c94935405a035573eff76 SHA1 30e5f89d457fcc6a8075511e2e221e7f7313682c SHA256 b5f5ba018b71ee02ebc0618df1d1eb47a74214e7ff210975040a4f51619b0cfa +AUX nmh-1.3-m_getfld.patch 624 RMD160 0723829e7a2138529f3e10df270c69e6f5ff6e80 SHA1 b84f27e4c7a84ce6260b0a8c857aff8997d6983d SHA256 733984fb6a763f1451e265c57aabb982cc788e13839497a3b5769875aa0cc2f5 +AUX nmh-1.3-parallelmake.patch 3121 RMD160 d743b48cb2c5bf7d5da9b2141ef0c0fd17221d54 SHA1 16943bc94e83c290ae9e7b7d2b3078a96c840a1a SHA256 befcdf3e2cec4eea23cccb3854cde3df8163282bfff84efce77c96fbdeae456c +DIST nmh-1.3.tar.gz 847614 RMD160 a862789cc8edb28c0fc3295bd12787440797da92 SHA1 65b52b7db727c391cae7af60ee0b888cbdc2718a SHA256 9f16848424489b5a9f7c1402c87665dc56dcadecf6e5c44fb608aef0d1b03b47 +EBUILD nmh-1.3-r2.ebuild 2161 RMD160 29f5e0e41a560a540cc60779dfa8242b5994f564 SHA1 e0b327ea361d7f43bda6a5e95ae144e43bbf5c1c SHA256 3058d951a5dbccdc91244d524f35acb49bf030abaa83098962d63f15da73b13f +MISC ChangeLog 585 RMD160 b741e1fcf294e348533b5a7e80e8d64dfbf0d6dc SHA1 8cd60c248463468ccc733de83eb740d06f2bb8b6 SHA256 c587332bd208a557aa2d6d71c7de741311e138837ba5f6067c1c3b8a22602656 +MISC metadata.xml 506 RMD160 3cc5b45fd02c8a18f9fa51228dac568b06fb54ec SHA1 02fe5dc0596c4fa104dd55f7b5a0e4511c3cb916 SHA256 16a088da180c52add3bad81ba2271bf80ec2436d663e856a731456274e1afe38 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAkyg1fwACgkQ9/cejkQaxBBi3ACfYIey9jHteOMERpeQYlDWsHCE +L40AnAh4Zb4SqaKBd7Npwpil50RgJ9+w +=YO4u +-----END PGP SIGNATURE----- diff --git a/mail-client/nmh/files/nmh-1.3-db5.patch b/mail-client/nmh/files/nmh-1.3-db5.patch new file mode 100644 index 000000000000..473e2b609aeb --- /dev/null +++ b/mail-client/nmh/files/nmh-1.3-db5.patch @@ -0,0 +1,17 @@ +diff --git a/uip/slocal.c b/uip/slocal.c +index 9697d84..d38a020 100644 +--- a/uip/slocal.c ++++ b/uip/slocal.c +@@ -46,6 +46,12 @@ + extern int initgroups(char*, int); + #endif + ++/* This define is needed for Berkeley db v5 and above to ++ * make the header file expose the 'historical' ndbm APIs. ++ * We define it unconditionally because this is simple and ++ * harmless. ++ */ ++#define HAVE_DBM + /* This define is needed for Berkeley db v2 and above to + * make the header file expose the 'historical' ndbm APIs. + * We define it unconditionally because this is simple and diff --git a/mail-client/nmh/files/nmh-1.3-inc-login.patch b/mail-client/nmh/files/nmh-1.3-inc-login.patch new file mode 100644 index 000000000000..631a03f3e35a --- /dev/null +++ b/mail-client/nmh/files/nmh-1.3-inc-login.patch @@ -0,0 +1,27 @@ +diff --git a/uip/inc.c b/uip/inc.c +index cf12ab8..b8384cd 100644 +--- a/uip/inc.c ++++ b/uip/inc.c +@@ -496,8 +496,7 @@ main (int argc, char **argv) + * a POP server? + */ + if (inc_type == INC_POP) { +- if (user == NULL) +- user = getusername (); ++ + if ( strcmp( POPSERVICE, "kpop" ) == 0 ) { + kpop = 1; + } +@@ -506,6 +505,12 @@ main (int argc, char **argv) + else + ruserpass (host, &user, &pass); + ++ /* ++ * Do this _after_ ruserpass, otherwise the login field will be unusable ++ */ ++ if (user == NULL) ++ user = getusername (); ++ + /* + * initialize POP connection + */ diff --git a/mail-client/nmh/files/nmh-1.3-install.patch b/mail-client/nmh/files/nmh-1.3-install.patch new file mode 100644 index 000000000000..25dc321fd180 --- /dev/null +++ b/mail-client/nmh/files/nmh-1.3-install.patch @@ -0,0 +1,12 @@ +diff --git a/uip/Makefile.in b/uip/Makefile.in +index b3c6717..5ed34f8 100644 +--- a/uip/Makefile.in ++++ b/uip/Makefile.in +@@ -267,7 +267,6 @@ install-lcmds: + rm -f $(DESTDIR)$(bindir)/folders + rm -f $(DESTDIR)$(bindir)/prev + rm -f $(DESTDIR)$(bindir)/next +- rm -f $(DESTDIR)$(libdir)/install-mh + $(LN) $(DESTDIR)$(bindir)/flist $(DESTDIR)$(bindir)/flists + $(LN) $(DESTDIR)$(bindir)/folder $(DESTDIR)$(bindir)/folders + $(LN) $(DESTDIR)$(bindir)/show $(DESTDIR)$(bindir)/prev diff --git a/mail-client/nmh/files/nmh-1.3-m_getfld.patch b/mail-client/nmh/files/nmh-1.3-m_getfld.patch new file mode 100644 index 000000000000..6e0104c3d4c9 --- /dev/null +++ b/mail-client/nmh/files/nmh-1.3-m_getfld.patch @@ -0,0 +1,29 @@ +diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c +index caf9519..13c2c3d 100644 +--- a/sbr/m_getfld.c ++++ b/sbr/m_getfld.c +@@ -731,18 +731,18 @@ matchc(int patln, char *pat, int strln, char *str) + register char *ep = pat + patln; + register char pc = *pat++; + +- for(;;) { +- while (pc != *str++) +- if (str > es) +- return 0; ++ for(;str <= es; str++) { ++ if (pc != *str) ++ continue; + if (str > es+1) + return 0; +- sp = str; pp = pat; ++ sp = str+1; pp = pat; + while (pp < ep && *sp++ == *pp) + pp++; + if (pp >= ep) +- return ((unsigned char *)--str); ++ return ((unsigned char *)str); + } ++ return 0; + } + + diff --git a/mail-client/nmh/files/nmh-1.3-parallelmake.patch b/mail-client/nmh/files/nmh-1.3-parallelmake.patch new file mode 100644 index 000000000000..1ac2415e9845 --- /dev/null +++ b/mail-client/nmh/files/nmh-1.3-parallelmake.patch @@ -0,0 +1,99 @@ +diff --git a/etc/Makefile.in b/etc/Makefile.in +index f1412b1..9af408d 100644 +--- a/etc/Makefile.in ++++ b/etc/Makefile.in +@@ -86,13 +86,13 @@ sendfiles: $(srcdir)/sendfiles.in Makefile + install: install-bin-files install-etc-files + + install-bin-files: +- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) ++ mkdir -p $(DESTDIR)$(bindir) + for script in $(GENERATED_BIN_FILES); do \ + $(INSTALL_SCRIPT) $$script $(DESTDIR)$(bindir)/$$script; \ + done + + install-etc-files: +- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(etcdir) ++ mkdir -p $(DESTDIR)$(etcdir) + INSTALL_FILES="$(GENERATED_ETC_FILES)"; \ + for file in $(STATIC_FILES); do \ + INSTALL_FILES="$$INSTALL_FILES $(srcdir)/$$file"; \ +diff --git a/man/Makefile.in b/man/Makefile.in +index 2ac26f3..7c613bf 100644 +--- a/man/Makefile.in ++++ b/man/Makefile.in +@@ -130,14 +130,14 @@ install: install-man1 install-man5 install-man8 + + # install the man pages in man1 + install-man1: +- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext1) ++ mkdir -p $(DESTDIR)$(mandir)/man$(manext1) + for file in $(MAN1); do \ + $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$(manext1) ; \ + done + + # install the man pages in man5 + install-man5: +- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext5) ++ mkdir -p $(DESTDIR)$(mandir)/man$(manext5) + for file in $(MAN5); do \ + $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$(manext5) ; \ + done +@@ -148,7 +148,7 @@ install-man5: + + # install the man pages in man8 + install-man8: +- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext8) ++ mkdir -p $(DESTDIR)$(mandir)/man$(manext8) + for file in $(MAN8); do \ + $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$(manext8) ; \ + done +diff --git a/mts/Makefile.in b/mts/Makefile.in +index f739e30..f606fef 100644 +--- a/mts/Makefile.in ++++ b/mts/Makefile.in +@@ -43,7 +43,7 @@ SUBDIRS = smtp + + all: all-recursive libmts.a + +-all-recursive: ++all-recursive $(OBJS): + for subdir in $(SUBDIRS); do \ + (cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \ + done +diff --git a/uip/Makefile.in b/uip/Makefile.in +index 5ed34f8..c9239b1 100644 +--- a/uip/Makefile.in ++++ b/uip/Makefile.in +@@ -256,13 +256,13 @@ install: install-cmds install-misc install-lcmds install-scmds + + # install commands + install-cmds: +- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) ++ mkdir -p $(DESTDIR)$(bindir) + for cmd in $(CMDS); do \ + $(INSTALL_PROGRAM) $$cmd $(DESTDIR)$(bindir)/$$cmd; \ + done + + # install links +-install-lcmds: ++install-lcmds: install-cmds + rm -f $(DESTDIR)$(bindir)/flists + rm -f $(DESTDIR)$(bindir)/folders + rm -f $(DESTDIR)$(bindir)/prev +@@ -274,13 +274,13 @@ install-lcmds: + + # install misc support binaries + install-misc: +- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) ++ mkdir -p $(DESTDIR)$(libdir) + for misc in $(MISC); do \ + $(INSTALL_PROGRAM) $$misc $(DESTDIR)$(libdir)/$$misc; \ + done + + # install commands with special installation needs (thus no $(SCMDS) use here) +-install-scmds: ++install-scmds: install-cmds + if test x$(SETGID_MAIL) != x; then \ + $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc $(DESTDIR)$(bindir)/$$cmd; \ + else \ diff --git a/mail-client/nmh/metadata.xml b/mail-client/nmh/metadata.xml new file mode 100644 index 000000000000..3f14b96dc3f2 --- /dev/null +++ b/mail-client/nmh/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>hwoarang@gentoo.org</email> +<name>Markos Chandras</name> +<description>Proxy maintainer. CC him on bugs</description> +</maintainer> +<maintainer> +<email>in-gentoo@baka.org</email> +<name>Seth Robertson</name> +<description>Maintainer. Assign bugs to him</description> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/mail-client/nmh/nmh-1.3-r2.ebuild b/mail-client/nmh/nmh-1.3-r2.ebuild new file mode 100644 index 000000000000..660ac85a8c7c --- /dev/null +++ b/mail-client/nmh/nmh-1.3-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/nmh/nmh-1.3-r2.ebuild,v 1.1 2010/09/27 17:37:55 hwoarang Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="New MH mail reader" +HOMEPAGE="http://www.nongnu.org/nmh/" +SRC_URI="http://savannah.nongnu.org/download/nmh/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gdbm" + +DEPEND="gdbm? ( sys-libs/gdbm ) + !gdbm? ( sys-libs/db ) + >=sys-libs/ncurses-5.2 + net-libs/liblockfile + app-editors/gentoo-editor + !!media-gfx/pixie" # Bug #295996 media-gfx/pixie also uses show +RDEPEND="${DEPEND}" + +src_prepare() { + # Patches from bug #22173. + epatch "${FILESDIR}"/${P}-inc-login.patch + epatch "${FILESDIR}"/${P}-install.patch + # bug #57886 + epatch "${FILESDIR}"/${P}-m_getfld.patch + # bug #319937 + epatch "${FILESDIR}"/${P}-db5.patch + # Allow parallel compiles/installs + epatch "${FILESDIR}"/${P}-parallelmake.patch +} + +src_configure() { + [ -z "${PAGER}" ] && export PAGER="/usr/bin/more" + + # strip options from ${PAGER} (quoting not good enough) (Bug #262150) + PAGER=${PAGER%% *} + + # Redefining libdir to be bindir so the support binaries get installed + # correctly. Since no libraries are installed with nmh, this does not + # pose a problem at this time. + myconf="--libdir=/usr/bin" + + # Have gdbm use flag actually control which version of db in use + if use gdbm; then + myconf="${myconf} --with-ndbmheader=gdbm/ndbm.h --with-ndbm=gdbm_compat" + else + if has_version ">=sys-libs/db-2"; then + myconf="${myconf} --with-ndbmheader=db.h --with-ndbm=db" + else + myconf="${myconf} --with-ndbmheader=db1/ndbm.h --with-ndbm=db1" + fi + fi + + # use gentoo-editor to avoid implicit dependencies (Bug #294762) + EDITOR=/usr/libexec/gentoo-editor + + econf \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --with-editor="${EDITOR}" \ + --with-pager="${PAGER}" \ + --enable-nmh-pop \ + --sysconfdir=/etc/nmh \ + $myconf +} + +src_install() { + emake prefix="${D}"/usr \ + mandir="${D}"/usr/share/man \ + libdir="${D}"/usr/bin \ + etcdir="${D}"/etc/nmh install || die + dodoc ChangeLog DATE MACHINES README || die +} |