pkgsrc/mail/anomy-sanitizer/Makefile
kim 9894ec48ed Update to anomy-sanitizer 1.69:
Added zip_policy.pl from Advosys (http://advosys.ca/) to the contrib/
    directory, after being invited to do so by Derrick Webber of Advosys.

    Added sanitizer.procmail ruleset to contrib/, illustrating how to
    implement a quarantine and add custom headers to infected e-mails.

    Fixed priority bug in filename detection code, which would in some
    cases give higher priority to Content-IDs than it gave to the MIME
    filename attributes.

    Made the file-name/MIME-type sanity checks configurable (default on)
    via. the feat_sane_names variable.  Set to 0 to disable.

    Added support for scripts which want to pass the name of a detected
    infection using the a line "Anomy-FileScan-VirusName: blah" like.
    This makes the following new variables available to the file replacement
    tempalte:

       %VIRUSNAME    - Propogated from Anomy-FileScan-VirusName
       %SUMMARY      - Propogated from Anomy-FileScan-Summary
       %DESCRIPTION  - Propogated from Anomy-FileScan-Description

    This corrects problems, implements and expands on suggestions
    (posted here http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=235352)
    by Derrick Hudson (dman at dman13.dyndns.org).
2004-12-29 18:45:49 +00:00

68 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2004/12/29 18:45:49 kim Exp $
#
DISTNAME= anomy-sanitizer-1.69
CATEGORIES= mail
MASTER_SITES= http://mailtools.anomy.net/dist/
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://mailtools.anomy.net/
COMMENT= Mail message filter and sanitizer
DEPENDS+= p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64
DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
PKG_INSTALLATION_TYPES= overwrite pkgviews
.include "../../mk/bsd.prefs.mk"
WRKSRC= ${WRKDIR}/anomy
NO_BUILDLINK= # defined
NO_CONFIGURE= # defined
USE_PERL5= # defined
ANOMYLIB= ${PREFIX}/lib/anomy-sanitizer
ANOMYDOC= ${PREFIX}/share/doc/anomy-sanitizer
do-build:
cd ${WRKSRC} && ( \
for i in sanitizer simplify; do \
( \
cd bin && ${MV} -f $$i.pl $$i.pl.orig && \
${SED} 's;/usr/bin/perl;${PERL5};' $$i.pl.orig > $$i.pl; \
); \
( \
${ECHO} '#!${SH}'; \
${ECHO} 'export ANOMY'; \
${ECHO} 'ANOMY=${ANOMYLIB}'; \
${ECHO} 'exec $${ANOMY}/bin/'$$i'.pl "$$@"'; \
) > $$i; \
done; \
)
do-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/sanitizer ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/simplify ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${ANOMYDOC}
cd ${WRKSRC} && ${PAX} -rw -s',.*\.orig$$,,' \
CHANGELOG.sanitizer \
CREDITS \
README.sanitizer \
UNICODE.TXT \
contrib \
sanitizer.html \
${ANOMYDOC}
${CHMOD} -R u=rw,go=r ${ANOMYDOC}
${CHMOD} -R a+X ${ANOMYDOC}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ANOMYDOC}
${INSTALL_DATA_DIR} ${ANOMYLIB}
${INSTALL_DATA_DIR} ${ANOMYLIB}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/sanitizer.pl ${ANOMYLIB}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/simplify.pl ${ANOMYLIB}/bin
cd ${WRKSRC}/bin && ${PAX} -rw -s',.*\.orig$$,,' Anomy ${ANOMYLIB}/bin
${CHMOD} -R u=rw,go=r ${ANOMYLIB}/bin/Anomy
${CHMOD} -R a+X ${ANOMYLIB}/bin/Anomy
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${ANOMYLIB}
.include "../../mk/bsd.pkg.mk"