From f286590441e401d42d475e7ef51600b58b0ae741 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Sun, 5 Sep 2010 22:50:26 +0000 Subject: Initial import, fixes bug #163496, (Portage version: 2.1.8.3/cvs/Linux x86_64) --- net-mail/fdm/ChangeLog | 14 +++++++++ net-mail/fdm/fdm-1.5.ebuild | 44 ++++++++++++++++++++++++++ net-mail/fdm/fdm-1.6.ebuild | 46 ++++++++++++++++++++++++++++ net-mail/fdm/files/fdm-1.5-GNUmakefile.patch | 11 +++++++ net-mail/fdm/files/fdm-1.6-GNUmakefile.patch | 29 ++++++++++++++++++ net-mail/fdm/metadata.xml | 13 ++++++++ 6 files changed, 157 insertions(+) create mode 100644 net-mail/fdm/ChangeLog create mode 100644 net-mail/fdm/fdm-1.5.ebuild create mode 100644 net-mail/fdm/fdm-1.6.ebuild create mode 100644 net-mail/fdm/files/fdm-1.5-GNUmakefile.patch create mode 100644 net-mail/fdm/files/fdm-1.6-GNUmakefile.patch create mode 100644 net-mail/fdm/metadata.xml (limited to 'net-mail/fdm') diff --git a/net-mail/fdm/ChangeLog b/net-mail/fdm/ChangeLog new file mode 100644 index 000000000000..58b369dddf40 --- /dev/null +++ b/net-mail/fdm/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for net-mail/fdm +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/fdm/ChangeLog,v 1.1 2010/09/05 22:50:26 xmw Exp $ + +*fdm-1.6 (05 Sep 2010) +*fdm-1.5 (05 Sep 2010) + + 05 Sep 2010; Michael Weber +fdm-1.5.ebuild, + +files/fdm-1.5-GNUmakefile.patch, +fdm-1.6.ebuild, + +files/fdm-1.6-GNUmakefile.patch, +metadata.xml: + Initial import, fixes bug #163496, thanks to Manuel Wächter, Paul + Bredbury, Maximilian Gaß, Henri Kemppainen and Dennis Schridde for the + original ebuilds. + diff --git a/net-mail/fdm/fdm-1.5.ebuild b/net-mail/fdm/fdm-1.5.ebuild new file mode 100644 index 000000000000..1a2645833682 --- /dev/null +++ b/net-mail/fdm/fdm-1.5.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/fdm/fdm-1.5.ebuild,v 1.1 2010/09/05 22:50:26 xmw Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="fetch, filter and deliver mail" +HOMEPAGE="http://fdm.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples pcre" + +DEPEND="dev-libs/openssl + sys-libs/tdb + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewuser _fdm +} + +src_prepare() { + rm Makefile || die + epatch "${FILESDIR}"/${P}-GNUmakefile.patch +} + +src_compile() { + emake CC="$(tc-getCC)" \ + PCRE=$(use pcre && echo 1) || die +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install || die + dodoc CHANGES MANUAL README TODO || die + if use examples ; then + docinto examples + dodoc examples/* || die + fi +} diff --git a/net-mail/fdm/fdm-1.6.ebuild b/net-mail/fdm/fdm-1.6.ebuild new file mode 100644 index 000000000000..b535edf9025d --- /dev/null +++ b/net-mail/fdm/fdm-1.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/fdm/fdm-1.6.ebuild,v 1.1 2010/09/05 22:50:26 xmw Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="fetch, filter and deliver mail" +HOMEPAGE="http://fdm.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="courierauth examples pcre" + +DEPEND="dev-libs/openssl + sys-libs/tdb + courierauth? ( net-libs/courier-authlib ) + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewuser _fdm +} + +src_prepare() { + rm Makefile || die + epatch "${FILESDIR}"/${P}-GNUmakefile.patch +} + +src_compile() { + emake CC="$(tc-getCC)" \ + COURIER=$(use courierauth && echo 1) \ + PCRE=$(use pcre && echo 1) || die +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install || die + dodoc CHANGES MANUAL README TODO || die + if use examples ; then + docinto examples + dodoc examples/* || die + fi +} diff --git a/net-mail/fdm/files/fdm-1.5-GNUmakefile.patch b/net-mail/fdm/files/fdm-1.5-GNUmakefile.patch new file mode 100644 index 000000000000..b607dcf9184c --- /dev/null +++ b/net-mail/fdm/files/fdm-1.5-GNUmakefile.patch @@ -0,0 +1,11 @@ +--- /tmp/GNUmakefile 2010-09-06 00:39:07.912999999 +0200 ++++ /var/tmp/portage/net-mail/fdm-1.5/work/fdm-1.5/GNUmakefile 2010-09-06 00:39:16.896999998 +0200 +@@ -89,7 +89,7 @@ + all: fdm + + $(PROG): $(OBJS) +- $(CC) $(LDFLAGS) $(LIBS) -o $@ $+ ++ $(CC) $(LDFLAGS) -o $@ $+ $(LIBS) + + depend: $(SRCS) + $(CC) $(CPPFLAGS) -MM $(SRCS) > .depend diff --git a/net-mail/fdm/files/fdm-1.6-GNUmakefile.patch b/net-mail/fdm/files/fdm-1.6-GNUmakefile.patch new file mode 100644 index 000000000000..bbb51d056de4 --- /dev/null +++ b/net-mail/fdm/files/fdm-1.6-GNUmakefile.patch @@ -0,0 +1,29 @@ +--- /tmp/GNUmakefile 2010-09-06 00:35:53.502999999 +0200 ++++ /var/tmp/portage/net-mail/fdm-1.6/work/fdm-1.6/GNUmakefile 2010-09-06 00:36:01.059000000 +0200 +@@ -16,7 +16,7 @@ + CC= gcc + + INCDIRS= -I$(PREFIX)/include +-LDFLAGS= -L$(PREFIX)/lib ++LDFLAGS+= -L$(PREFIX)/lib + + ifeq ($(shell uname),SunOS) + YACC= yacc +@@ -89,7 +89,7 @@ + + ifdef COURIER + CFLAGS+= -DLOOKUP_COURIER +-LIBS+= -lcourierauth ++LIBS+= -L/usr/lib64/courier-authlib -lcourierauth + endif + + ifdef PCRE +@@ -104,7 +104,7 @@ + all: fdm + + $(PROG): $(OBJS) +- $(CC) $(LDFLAGS) $(LIBS) -o $@ $+ ++ $(CC) $(LDFLAGS) -o $@ $+ $(LIBS) + + depend: $(SRCS) + $(CC) $(CPPFLAGS) -MM $(SRCS) > .depend diff --git a/net-mail/fdm/metadata.xml b/net-mail/fdm/metadata.xml new file mode 100644 index 000000000000..5f2935af209f --- /dev/null +++ b/net-mail/fdm/metadata.xml @@ -0,0 +1,13 @@ + + + + + +gentoo@xmw.de +Michael Weber + + + Add support for Courier authentication library + + + -- cgit v1.2.3-65-gdbad