diff options
author | wiz <wiz@pkgsrc.org> | 2001-04-27 14:06:05 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-04-27 14:06:05 +0000 |
commit | 2705e5091e52029d8e7c6e00e761151a6047b496 (patch) | |
tree | dfbb0b62019cc23fccc083471c1b0c6ad9bf6a56 /mail/deliver/Makefile | |
parent | 27dbc84921ea3607a22cab5d18a80f83dc02117a (diff) | |
download | pkgsrc-2705e5091e52029d8e7c6e00e761151a6047b496.tar.gz |
Initial import of deliver-2.1.14, provided by Jim Bernard in pkg/9317.
Extract from DESCR:
Deliver allows any user to write a shell script that processes all
incoming mail messages for that user. The system administrator may
also install scripts that process all messages.
The output of a script is a list of mail addresses, files and programs
that should receive the message. It has access to each message as it
is processed, so the action can be content dependent. The script may
also generate automatic replies, like the "vacation" program, or pass
along a modified version of the original message.
Diffstat (limited to 'mail/deliver/Makefile')
-rw-r--r-- | mail/deliver/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/mail/deliver/Makefile b/mail/deliver/Makefile new file mode 100644 index 00000000000..0642acf4f36 --- /dev/null +++ b/mail/deliver/Makefile @@ -0,0 +1,53 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/04/27 14:06:05 wiz Exp $ + +DISTNAME= deliver-2.1.14 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=deliver/} + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://deliver.sourceforge.net/ +COMMENT= Local mail delivery agent with shell-script control + +.include "../../mk/bsd.prefs.mk" + +# Deliver prefers to be installed suid root, but by default we don't do that. +DELIVER_SUID?= NO + +# Use DELIVER_CONF_PREFIX from /etc/mk.conf, if defined. +# If this specifies a directory that will contain files other than deliver's +# delivery files, you may also want to add a suffix like "deliver.", to +# identify the "sys", "post", and "err" delivery files as owned by deliver. +DELIVER_CONF_PREFIX?= ${PREFIX}/etc/deliver/ + +post-patch: + cd ${WRKSRC}; \ + for FILE in config.h deliver.8; do \ + ${MV} $${FILE} $${FILE}.bak; \ + ${SED} -e 's#@DELIVER_CONF_PREFIX@#${DELIVER_CONF_PREFIX}#g' \ + < $${FILE}.bak > $${FILE}; \ + done; \ + ${MV} deliver.8 deliver.1 + +post-install: + cd ${WRKSRC}; \ + for FILE in deliver.1 header.1; do \ + CATFILE=`${BASENAME} $${FILE} .1`.0; \ + ${NROFF} -man $${FILE} > $${CATFILE}; \ + ${INSTALL_MAN} $${FILE} ${PREFIX}/man/man1; \ + ${INSTALL_MAN} $${CATFILE} ${PREFIX}/man/cat1; \ + done + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/deliver \ + ${PREFIX}/share/examples/deliver + cd ${WRKSRC}; \ + ${INSTALL_DATA} INSTALL MMDF README SENDMAIL \ + ${PREFIX}/share/doc/deliver + cd ${WRKSRC}/samples; \ + ${INSTALL_DATA} README p-aliases s-aliases u-chip u-notify u-vacation \ + ${PREFIX}/share/examples/deliver +.if defined(DELIVER_SUID) && ${DELIVER_SUID} == YES + ${CHOWN} root ${PREFIX}/bin/deliver + ${CHMOD} u+s ${PREFIX}/bin/deliver +.endif + +.include "../../mk/bsd.pkg.mk" +.include <bsd.man.mk> |