Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # $OpenBSD: Makefile,v 1.44 2016/08/05 12:53:57 giovanni Exp $
  2. COMMENT-main= interface between mailer MTA and content checkers
  3. COMMENT-utils= utilities to monitor amavisd-new server
  4. V= 2.11.0
  5. DISTNAME= amavisd-new-${V}
  6. REVISION= 1
  7. PKGNAME-main= ${DISTNAME}
  8. PKGNAME-utils= amavisd-new-utils-${V}
  9. CATEGORIES= mail security
  10. HOMEPAGE= http://www.amavis.org/
  11. MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
  12. # BSD / GPLv2
  13. PERMIT_PACKAGE_CDROM= Yes
  14. MASTER_SITES= ${HOMEPAGE} \
  15. http://mirrors.catpipe.net/amavisd-new/ \
  16. http://mirror.mainloop.se/amavisd/ \
  17. http://mirror.cedratnet.com/amavisd-new/ \
  18. http://mirror.omroep.nl/amavisd-new/
  19. EXTRACT_SUFX= .tar.xz
  20. RUN_DEPENDS= archivers/arc \
  21. archivers/bzip2 \
  22. archivers/cabextract \
  23. archivers/lzop \
  24. archivers/p5-Archive-Zip>=1.14 \
  25. archivers/p7zip,-rar \
  26. archivers/ripole \
  27. archivers/unzip \
  28. archivers/zoo \
  29. rpm2cpio-*|rpm-*:converters/rpm2cpio \
  30. databases/p5-BerkeleyDB \
  31. devel/p5-Net-Server \
  32. devel/p5-IO-Multiplex \
  33. mail/p5-Mail-SpamAssassin \
  34. mail/p5-Mail-DKIM>=0.31 \
  35. mail/p5-MIME-tools \
  36. net/net-snmp \
  37. net/p5-IO-Socket-INET6 \
  38. net/p5-Net-LibIDN \
  39. security/clamav \
  40. sysutils/p5-Unix-Syslog
  41. RUN_DEPENDS-utils= devel/p5-ZMQ \
  42. devel/p5-ZMQ-LibZMQ3 \
  43. mail/amavisd-new
  44. NO_BUILD= Yes
  45. NO_TEST= Yes
  46. PKG_ARCH= *
  47. MULTI_PACKAGES= -main -utils
  48. pre-configure:
  49. ${SUBST_CMD} ${WRKSRC}/amavis-mc
  50. @perl -pi -e 's,/var/amavis,/${VARBASE}/amavisd,g' ${WRKSRC}/amavisd-*
  51. @perl -pi -e "s,= 'vscan',= '_vscan',g" ${WRKSRC}/amavisd-signer \
  52. ${WRKSRC}/amavisd.conf ${WRKSRC}/amavisd.conf-default
  53. do-install:
  54. cd ${WRKSRC}; ${INSTALL_SCRIPT} amavisd amavis-mc amavis-services \
  55. ${PREFIX}/sbin/
  56. cd ${WRKSRC}; ${INSTALL_SCRIPT} amavisd-agent amavisd-nanny \
  57. amavisd-release amavisd-signer amavisd-snmp-subagent \
  58. amavisd-submit amavisd-status amavisd-snmp-subagent-zmq \
  59. p0f-analyzer.pl ${PREFIX}/bin/
  60. ${INSTALL_DATA} ${WRKSRC}/JpegTester.pm \
  61. ${PREFIX}/libdata/perl5/site_perl/JpegTester.pm
  62. ${INSTALL_DATA} ${WRKSRC}/TinyRedis.pm \
  63. ${PREFIX}/libdata/perl5/site_perl/TinyRedis.pm
  64. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/amavisd-new
  65. cd ${WRKSRC}; ${INSTALL_DATA} AAAREADME.first INSTALL LDAP.schema \
  66. LDAP.ldif LICENSE MANIFEST README_FILES/README.* RELEASE_NOTES \
  67. ${PREFIX}/share/doc/amavisd-new/
  68. ${INSTALL_DATA_DIR} ${PREFIX}/share/snmp/mibs
  69. ${INSTALL_DATA} ${WRKSRC}/AMAVIS-MIB.txt ${PREFIX}/share/snmp/mibs
  70. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/amavisd-new
  71. cd ${WRKSRC}; ${INSTALL_DATA} amavisd*.conf amavisd.conf-default \
  72. ${PREFIX}/share/examples/amavisd-new/
  73. .include <bsd.port.mk>