Fri Aug 17 17:45:40 2012 UTC ()
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.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-base
(seb)
diff -r0 -r1.1.1.1 pkgsrc/mail/fdm/DESCR
diff -r0 -r1.1.1.1 pkgsrc/mail/fdm/distinfo
diff -r0 -r1.1.1.1 pkgsrc/mail/fdm/Makefile
diff -r0 -r1.1.1.1 pkgsrc/mail/fdm/PLIST
diff -r0 -r1.1.1.1 pkgsrc/mail/fdm/patches/patch-aa
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.
$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
# $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"
@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
$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