2015-06-12 12:48:20 +02:00
|
|
|
# $NetBSD: Makefile,v 1.31 2015/06/12 10:50:17 wiz Exp $
|
2002-07-20 22:28:22 +02:00
|
|
|
#
|
|
|
|
|
2006-02-01 01:57:39 +01:00
|
|
|
DISTNAME= anomy-sanitizer-1.76
|
2015-06-12 12:48:20 +02:00
|
|
|
PKGREVISION= 6
|
2002-07-20 22:28:22 +02:00
|
|
|
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
|
|
|
|
|
2013-12-09 15:17:41 +01:00
|
|
|
DEPENDS+= {perl>=5.7.3,p5-MIME-Base64-[0-9]*}:../../converters/p5-MIME-Base64
|
|
|
|
DEPENDS+= {perl>=5.7.3,p5-Digest-MD5-[0-9]*}:../../security/p5-Digest-MD5
|
2002-07-20 22:28:22 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/anomy
|
2008-05-25 23:42:20 +02:00
|
|
|
USE_TOOLS+= perl:run pax
|
2002-07-20 22:28:22 +02:00
|
|
|
|
2006-12-21 20:29:43 +01:00
|
|
|
REPLACE_PERL+= bin/*.pl
|
|
|
|
CHECK_INTERPRETER_SKIP+= *.pm
|
|
|
|
|
2002-07-20 22:28:22 +02:00
|
|
|
ANOMYLIB= ${PREFIX}/lib/anomy-sanitizer
|
|
|
|
ANOMYDOC= ${PREFIX}/share/doc/anomy-sanitizer
|
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= sbin
|
|
|
|
|
2006-12-21 20:29:43 +01:00
|
|
|
post-extract:
|
2006-12-21 20:33:28 +01:00
|
|
|
chmod -R u+w,go-w,a+r ${WRKSRC}
|
2006-12-21 20:29:43 +01:00
|
|
|
cd ${WRKSRC}/bin/Anomy && chmod -x *.pm */*.pm
|
|
|
|
|
2002-07-20 22:28:22 +02:00
|
|
|
do-build:
|
2006-12-21 20:29:43 +01:00
|
|
|
set -e; \
|
|
|
|
cd ${WRKSRC}; \
|
2006-02-01 01:57:39 +01:00
|
|
|
for i in mailblogger sanitizer simplify; do \
|
2002-07-20 22:28:22 +02:00
|
|
|
( \
|
|
|
|
${ECHO} '#!${SH}'; \
|
|
|
|
${ECHO} 'ANOMY=${ANOMYLIB}'; \
|
2006-12-21 20:29:43 +01:00
|
|
|
${ECHO} 'export ANOMY'; \
|
|
|
|
${ECHO} 'exec $${ANOMY}/bin/'"$$i"'.pl "$$@"'; \
|
|
|
|
) > "$$i"; \
|
2002-07-20 22:28:22 +02:00
|
|
|
done; \
|
2006-12-21 20:29:43 +01:00
|
|
|
[ -d contrib/.tmp ] && rmdir contrib/.tmp
|
2002-07-20 22:28:22 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-04 18:57:17 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sanitizer ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/simplify ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${ANOMYDOC}
|
2006-12-21 20:29:43 +01:00
|
|
|
cd ${WRKSRC} && pax -rw -s',.*\.orig$$,,' -s',^\..*$$,,' \
|
2002-07-20 22:28:22 +02:00
|
|
|
CHANGELOG.sanitizer \
|
|
|
|
CREDITS \
|
|
|
|
README.sanitizer \
|
2004-06-06 16:58:29 +02:00
|
|
|
UNICODE.TXT \
|
2002-07-20 22:28:22 +02:00
|
|
|
contrib \
|
|
|
|
sanitizer.html \
|
2008-03-04 18:57:17 +01:00
|
|
|
${DESTDIR}${ANOMYDOC}
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${ANOMYLIB}
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${ANOMYLIB}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mailblogger.pl ${DESTDIR}${ANOMYLIB}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/sanitizer.pl ${DESTDIR}${ANOMYLIB}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/simplify.pl ${DESTDIR}${ANOMYLIB}/bin
|
|
|
|
cd ${WRKSRC}/bin && pax -rw -s',.*\.orig$$,,' Anomy \
|
|
|
|
${DESTDIR}${ANOMYLIB}/bin
|
2002-07-20 22:28:22 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|