2004-01-19 00:40:12 +01:00
|
|
|
# $NetBSD: Makefile,v 1.10 2004/01/18 23:40:12 kim Exp $
|
2002-07-20 22:28:22 +02:00
|
|
|
#
|
|
|
|
|
2004-01-19 00:40:12 +01:00
|
|
|
DISTNAME= anomy-sanitizer-1.66
|
2003-03-29 13:40:00 +01:00
|
|
|
WRKSRC= ${WRKDIR}/anomy
|
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
|
|
|
|
|
|
|
|
DEPENDS+= p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64
|
2002-07-21 06:47:08 +02:00
|
|
|
DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
|
2002-07-20 22:28:22 +02:00
|
|
|
|
2004-01-06 08:17:03 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2002-07-20 22:28:22 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-01-06 08:17:03 +01:00
|
|
|
NO_BUILDLINK= # defined
|
2002-07-20 22:28:22 +02:00
|
|
|
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:
|
2004-01-06 08:17:03 +01:00
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/sbin
|
2002-07-20 22:28:22 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sanitizer ${PREFIX}/sbin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/simplify ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA_DIR} ${ANOMYDOC}
|
|
|
|
cd ${WRKSRC} && ${PAX} -rw \
|
|
|
|
CHANGELOG.sanitizer \
|
|
|
|
CREDITS \
|
|
|
|
README.sanitizer \
|
|
|
|
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 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"
|