pkgsrc/security/amavisd-new/Makefile
sno dfca1e1ce5 PkgSrc changes:
- removed packages p5-IO-Compress-Base, p5-IO-Compress-Zlib,
    p5-IO-Compress-Bzip2 and p5-Compress-Zlib because they are
    merged into p5-IO-Compress
  - Updated dependend packages to depend on p5-IO-Compress
    and bump PKGREVISION

Upstream changes:
  2.017 30 March 2009

      * Merged IO-Compress-Base, IO-Compress-Bzip2, IO-Compress-Zlib &
        Compress-Zlib into IO-Compress.
      * The interface to Compress-Raw-Zlib now uses the new LimitOutput
        feature. This will make all of the zlib-related IO-Compress modules
        less greedy in their memory consumption.
      * Removed MAN3PODS from Makefile.PL
      * A few changes to get the test harness to work on VMS courtesy of
        Craig. A. Berry.
      * IO::Compress::Base & IO::Uncompress::Base
        Downgraded some croaks in the constructors to just set $! (by letting
        the code attempt to open a file and fail).
        This makes the behavior more consistent to a standard open.
        [RT #42657]
      * IO::Uncompress::Base
        Doing a seek with MultiStream could drop some of the uncompressed
        data. Fixed.
      * IO::Compress::Zip
        - Fixed problem with the uncompressed & uncompressed fields when
          zip64 is enabled. They were set to 0x0000FFFF instead of
          0xFFFFFFFF. Also the ZIP64 extra field was 4 bytes short.
          Problem spotted by Dino Chiesa.
      * IO::Uncompress::Unzip
        - use POSIX::mktime instead of Time::Local::timelocal to convert
          the zip DOS time field into Unix time.
      * Compress::Zlib
        - Documented Compress::Zlib::zlib_version()
2009-04-11 23:15:19 +00:00

138 lines
5 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2009/04/11 23:15:21 sno Exp $
DISTNAME= amavisd-new-${VERSION}${PATCHLEVEL}
PKGNAME= amavisd-new-${VERSION}${PATCHLEVEL:S/-//}
PKGREVISION= 1
CATEGORIES= security mail
MASTER_SITES= http://www.ijs.si/software/amavisd/ \
http://mirrors.catpipe.net/amavisd-new/ \
http://mirror.mainloop.se/amavisd/ \
http://mirror.cedratnet.com/amavisd-new/ \
http://mirror.omroep.nl/amavisd-new/
VERSION= 2.6.2
PATCHLEVEL= # empty
MAINTAINER= jdunn@aquezada.com
HOMEPAGE= http://www.ijs.si/software/amavisd/
COMMENT= daemonized interface between MTA and content checkers
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar
DEPENDS+= p5-Archive-Zip>=1.14:../../archivers/p5-Archive-Zip
DEPENDS+= p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB
DEPENDS+= p5-IO-Compress>=2.017:../../devel/p5-IO-Compress
DEPENDS+= p5-Convert-TNEF-[0-9]*:../../converters/p5-Convert-TNEF
DEPENDS+= p5-Convert-UUlib>=1.05:../../converters/p5-Convert-UUlib
DEPENDS+= p5-Digest-MD5>=2.22:../../security/p5-Digest-MD5
DEPENDS+= p5-Mail-DKIM>=0.31:../../mail/p5-Mail-DKIM
DEPENDS+= p5-MIME-tools>=5.417:../../mail/p5-MIME-tools
DEPENDS+= p5-MailTools>=1.58:../../mail/p5-MailTools
DEPENDS+= p5-IO-stringy-[0-9]*:../../devel/p5-IO-stringy
DEPENDS+= p5-Net-Server>=0.88:../../net/p5-Net-Server
DEPENDS+= p5-Time-HiRes>=1.49:../../time/p5-Time-HiRes
DEPENDS+= p5-Unix-Syslog-[0-9]*:../../sysutils/p5-Unix-Syslog
WRKSRC= ${WRKDIR}/amavisd-new-${VERSION}
CONFLICTS+= amavis-[0-9]*
CONFLICTS+= amavis-perl-[0-9]*
.include "../../mk/bsd.prefs.mk"
USE_TOOLS+= perl:run
REPLACE_PERL+= amavisd amavisd-nanny amavisd-release amavisd-agent
AMAVIS_USER?= vscan
AMAVIS_GROUP?= vscan
AMAVIS_DIR?= ${VARBASE}/amavis
AMAVIS_QUARANTINE?= ${VARBASE}/virusmails
DOCDIR= ${PREFIX}/share/doc/amavisd-new
EGDIR= ${PREFIX}/share/examples/amavisd-new
MESSAGE_SRC= ${PKGDIR}/MESSAGE
PKG_GROUPS_VARS+= AMAVIS_GROUP
PKG_USERS_VARS+= AMAVIS_USER
BUILD_DEFS+= AMAVIS_DIR AMAVIS_QUARANTINE
FILES_SUBST+= AMAVIS_USER=${AMAVIS_USER:Q}
FILES_SUBST+= AMAVIS_GROUP=${AMAVIS_GROUP:Q}
FILES_SUBST+= AMAVIS_DIR=${AMAVIS_DIR:Q}
FILES_SUBST+= AMAVIS_QUARANTINE=${AMAVIS_QUARANTINE:Q}
PKG_GROUPS= ${AMAVIS_GROUP}
PKG_USERS= ${AMAVIS_USER}:${AMAVIS_GROUP}
PKG_GECOS.${AMAVIS_USER}= AMaViS Virus Scanning Account
PKG_HOME.${AMAVIS_USER}= ${AMAVIS_DIR}
PKG_SHELL.${AMAVIS_USER}= ${SH}
RCD_SCRIPTS= amavisd
CONF_FILES= ${EGDIR}/amavisd.conf-minimal ${PKG_SYSCONFDIR}/amavisd.conf
PKG_OPTIONS_VAR= PKG_OPTIONS.amavisd-new
PKG_SUPPORTED_OPTIONS= milter
.include "../../mk/bsd.options.mk"
PLIST_VARS+= milter
.if !empty(PKG_OPTIONS:Mmilter)
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-runtime-dir=${AMAVIS_DIR:Q}
CONFIGURE_ARGS+= --with-sockname=${AMAVIS_DIR}/amavisd.sock
CONFIGURE_ARGS+= --with-user=${AMAVIS_USER:Q}
CONFIGURE_ARGS+= --with-milterinc=${BUILDLINK_PREFIX.libmilter}/include
CONFIGURE_ARGS+= --with-milterlib=${BUILDLINK_PREFIX.libmilter}/lib
CONFIGURE_DIRS= ${WRKSRC}/helper-progs
BUILD_DIRS= ${WRKSRC}/helper-progs
RCD_SCRIPTS+= amavismilter
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.milter
PLIST.milter= yes
PTHREAD_OPTS+= require native # doesn't work with pth
. include "../../mail/libmilter/buildlink3.mk"
. include "../../mk/pthread.buildlink3.mk"
.else
USE_LANGUAGES= # none, not even C
do-build: replace-interpreter
.endif
SUBST_CLASSES+= amavisd
SUBST_STAGE.amavisd= pre-build
SUBST_FILES.amavisd= amavisd amavisd.conf
SUBST_SED.amavisd= \
-e "s|/etc/amavisd.conf|${PKG_SYSCONFDIR}/amavisd.conf|" \
-e "s|@AMAVIS_DIR@|${AMAVIS_DIR}|g" \
-e "s|@AMAVIS_USER@|${AMAVIS_USER}|g" \
-e "s|@AMAVIS_GROUP@|${AMAVIS_GROUP}|g" \
-e "s|@AMAVIS_QUARANTINE@|${AMAVIS_QUARANTINE}|g" \
-e "s|@LOCALBASE@|${LOCALBASE}|g" \
-e "s|@PREFIX@|${PREFIX}|g"
INSTALLATION_DIRS= sbin ${DOCDIR} ${EGDIR}
do-install:
.if !empty(PKG_OPTIONS:Mmilter)
${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis ${DESTDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis-milter ${DESTDIR}${PREFIX}/sbin
.endif
${INSTALL_SCRIPT} ${WRKSRC}/amavisd ${DESTDIR}${PREFIX}/sbin/amavisd
${INSTALL_SCRIPT} ${WRKSRC}/amavisd-nanny ${DESTDIR}${PREFIX}/sbin/amavisd-nanny
${INSTALL_SCRIPT} ${WRKSRC}/amavisd-release ${DESTDIR}${PREFIX}/sbin/amavisd-release
${INSTALL_SCRIPT} ${WRKSRC}/amavisd-agent ${DESTDIR}${PREFIX}/sbin/amavisd-agent
${INSTALL_DATA} ${WRKSRC}/AAAREADME.first ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/LDAP.schema ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/MANIFEST ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README_FILES/amavisd-new-docs.html ${DESTDIR}${DOCDIR}
for file in README_FILES/README.*; do \
${INSTALL_DATA} ${WRKSRC}/$$file ${DESTDIR}${DOCDIR}; \
done
${INSTALL_DATA} ${WRKSRC}/amavisd.conf ${DESTDIR}${EGDIR}/amavisd.conf-minimal
${INSTALL_DATA} ${WRKSRC}/amavisd.conf-default ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/amavisd.conf-sample ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"