summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2012-08-17 17:45:40 +0000
committerseb <seb@pkgsrc.org>2012-08-17 17:45:40 +0000
commitc95b4a8e6a0d09a7365e35a844ac20f53cb83e34 (patch)
tree046543fc5f7bc3afab6bcdcfb9aabdae87dc9eed /mail
parentf60c078010281f897d3e3959d604789174fa019d (diff)
downloadpkgsrc-c95b4a8e6a0d09a7365e35a844ac20f53cb83e34.tar.gz
Initial import of fdm version 1.6 in the NetBSD Packages Collection.
fdm is a program to fetch mail and deliver it in various ways depending on a user-supplied ruleset. Mail may be fetched from stdin, IMAP or POP3 servers, or from local maildirs, and filtered based on whether it matches a regexp, its size or age, or the output of a shell command. It can be rewritten by an external process, dropped, left on the server or delivered into maildirs, mboxes, to a file or pipe, or any combination. fdm is designed to be lightweight but powerful, with a compact but clear configuration syntax. It is primarily designed for single-user uses but may also be configured to deliver mail in a multi-user setup. In this case, it uses privilege separation to minimise the amount of code running as the root user.
Diffstat (limited to 'mail')
-rw-r--r--mail/fdm/DESCR13
-rw-r--r--mail/fdm/Makefile29
-rw-r--r--mail/fdm/PLIST11
-rw-r--r--mail/fdm/distinfo6
-rw-r--r--mail/fdm/patches/patch-aa25
5 files changed, 84 insertions, 0 deletions
diff --git a/mail/fdm/DESCR b/mail/fdm/DESCR
new file mode 100644
index 00000000000..22f86fccdd1
--- /dev/null
+++ b/mail/fdm/DESCR
@@ -0,0 +1,13 @@
+fdm is a program to fetch mail and deliver it in various ways depending on a
+user-supplied ruleset. Mail may be fetched from stdin, IMAP or POP3
+servers, or from local maildirs, and filtered based on whether it
+matches a regexp, its size or age, or the output of a shell command.
+It can be rewritten by an external process, dropped, left on the
+server or delivered into maildirs, mboxes, to a file or pipe, or
+any combination.
+
+fdm is designed to be lightweight but powerful, with a compact but
+clear configuration syntax. It is primarily designed for single-user
+uses but may also be configured to deliver mail in a multi-user
+setup. In this case, it uses privilege separation to minimise the
+amount of code running as the root user.
diff --git a/mail/fdm/Makefile b/mail/fdm/Makefile
new file mode 100644
index 00000000000..e3e371ba6d9
--- /dev/null
+++ b/mail/fdm/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/08/17 17:45:40 seb Exp $
+
+DISTNAME= fdm-1.6
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fdm/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://fdm.sourceforge.net/
+COMMENT= Fetch or receive mail and deliver it in various ways
+LICENSE= modified-bsd
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS+= ${EGDIR} ${DOCDIR}
+EGDIR= ${PREFIX}/share/examples/fdm
+DOCDIR= ${PREFIX}/share/doc/fdm
+
+USE_TOOLS+= pax
+MAKE_ENV+= PCRE=1
+
+post-install:
+ cd ${WRKSRC}/examples && pax -rwpam . ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/MANUAL ${DESTDIR}${DOCDIR}
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../databases/tdb/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/fdm/PLIST b/mail/fdm/PLIST
new file mode 100644
index 00000000000..3b9cb7a1d1b
--- /dev/null
+++ b/mail/fdm/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/08/17 17:45:40 seb Exp $
+bin/fdm
+man/man1/fdm.1
+man/man5/fdm.conf.5
+share/doc/fdm/MANUAL
+share/examples/fdm/f-terbeck.conf
+share/examples/fdm/g-lando.conf
+share/examples/fdm/n-marriott-old.conf
+share/examples/fdm/n-marriott.conf
+share/examples/fdm/t-ulmer.conf
+share/examples/fdm/w-maier.conf
diff --git a/mail/fdm/distinfo b/mail/fdm/distinfo
new file mode 100644
index 00000000000..2e6fcdcb022
--- /dev/null
+++ b/mail/fdm/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/08/17 17:45:40 seb Exp $
+
+SHA1 (fdm-1.6.tar.gz) = fb8042f2355062848ff142c9604069b6657e6a82
+RMD160 (fdm-1.6.tar.gz) = 7e2c846b97dce20e123b8453732e107f88e0de8f
+Size (fdm-1.6.tar.gz) = 192159 bytes
+SHA1 (patch-aa) = 48df1eff56801692dc27a1e8670f155afd392f67
diff --git a/mail/fdm/patches/patch-aa b/mail/fdm/patches/patch-aa
new file mode 100644
index 00000000000..7eb89218712
--- /dev/null
+++ b/mail/fdm/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.1.1.1 2012/08/17 17:45:40 seb Exp $
+
+cleanup cpp args dans adjust/fix Darwin build
+
+--- Makefile.orig 2008-12-22 16:20:05.000000000 +0000
++++ Makefile
+@@ -37,7 +37,7 @@ HDRS= fdm.h array.h fetch.h match.h deli
+ YACC= yacc -d
+
+ CC?= cc
+-INCDIRS+= -I. -I- -I/usr/local/include
++INCDIRS+= -I.
+ .ifdef PROFILE
+ # Don't use ccache
+ CC= /usr/bin/gcc
+@@ -70,7 +70,8 @@ LIBS+= -lpcre
+ .if ${OS} == "Darwin"
+ SRCS+= compat/strtonum.c
+ INCDIRS+= -Icompat -I/usr/local/include/openssl
+-CFLAGS+= -DNO_STRTONUM -DNO_SETRESUID -DNO_SETRESGID -DNO_SETPROCTITLE
++CFLAGS+= -DNO_STRTONUM -DNO_SETRESUID -DNO_SETRESGID -DNO_SETPROCTITLE -DNO_QUEUE_H -DNO_TREE_H
++LIBS+= -lresolv
+ .endif
+
+ # NetBSD