pkgsrc-wip/postoffice/Makefile
Sergey Svishchev fc4403d82a Update to 1.4.6 (old master site and distfile are missing). Changes:
1.4.0 introduces the new feature of usermaps, which are a way to let
users have temporary mail addresses which they can use when they deal
with possible spammers.

1.4.1 fixes some of the bugs that were in 1.4.0, adds missing features
(and the missing manual page for usermap(7).

1.4.3 introduces one new feature; if you set the config file option
junkfolder=, unwanted mail will not be bounced but will instead be put
into a junkmail folder.

1.4.4 adds spam=-like configuration options to manage connections from
blacklisted sites similar to how spam-ridden messages are currently
handled.

1.4.5 fixes a minor bug and has a fairly extensive code scrub to sweep
out things that the FSF's so-called 'C' compiler complains about.

1.4.6 adds a new configuration option - trusted=hostname, which tells
postoffice to treat hostname as if it was localhost.
2008-03-08 15:24:09 +00:00

52 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2008/03/08 15:24:09 shattered Exp $
#
DISTNAME= postoffice-1.4.6
CATEGORIES= mail
MASTER_SITES= http://www.pell.portland.or.us/~orc/Code/postoffice/
MAINTAINER= pbraun@nethence.com
HOMEPAGE= http://www.pell.portland.or.us/~orc/Code/postoffice/
COMMENT= Simple greylist, auth, milter, virtual hosts mbox capable SMTP server
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./configure.sh
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --use-mailwrappers
INSTALLATION_DIRS+= ${PREFIX}/share/examples/postoffice
CONF_FILES= ${PREFIX}/share/examples/postoffice/postoffice.cf ${PKG_SYSCONFDIR}/postoffice.cf
RCD_SCRIPTS+= postoffice
BUILD_DEFS+= POSTOFFICE_AUTH
BUILD_DEFS+= POSTOFFICE_GREYLIST
BUILD_DEFS+= POSTOFFICE_MILTER
BUILD_DEFS+= POSTOFFICE_TCPWRAPPERS
BUILD_DEFS+= POSTOFFICE_VIRTUAL
BUILD_DEFS+= VARBASE
.if defined(POSTOFFICE_TCPWRAPPERS) && !empty(POSTOFFICE_TCPWRAPPERS:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-tcpwrappers
.endif
.if defined(POSTOFFICE_GREYLIST) && !empty(POSTOFFICE_GREYLIST:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-greylist
.endif
.if defined(POSTOFFICE_AUTH) && !empty(POSTOFFICE_AUTH:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-auth
.endif
.if defined(POSTOFFICE_MILTER) && !empty(POSTOFFICE_MILTER:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-milter
.endif
.if defined(POSTOFFICE_VIRTUAL) && !empty(POSTOFFICE_VIRTUAL:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-vhost=${PKG_SYSCONFBASE}/virtual \
--with-vspool=${VARBASE}/spool/virtual \
--with-vuser=mail
.endif
post-install:
sed -e 's:@PREFIX@:${PREFIX}:' \
${FILESDIR}/mailer.conf \
> ${PREFIX}/share/examples/postoffice/mailer.conf
${INSTALL_DATA} ${FILESDIR}/postoffice.cf ${PREFIX}/share/examples/postoffice/
${INSTALL_SCRIPT} ${FILESDIR}/pop_passwd.pl ${PREFIX}/share/examples/postoffice/
.include "../../mk/bsd.pkg.mk"