Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # $OpenBSD: Makefile,v 1.36 2016/11/04 10:22:25 landry Exp $
  2. COMMENT = mailing list manager with web interface
  3. VERSION = 6.2.16
  4. DISTNAME = sympa-${VERSION}
  5. CATEGORIES = mail www
  6. HOMEPAGE = http://www.sympa.org
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM = Yes
  9. MASTER_SITES = ${HOMEPAGE}/distribution/ \
  10. ${HOMEPAGE}/distribution/old/
  11. MODULES = perl
  12. USE_GMAKE = Yes
  13. SYMPA_HOME = /var/sympa
  14. SUBST_VARS += SYMPA_HOME
  15. CONFIGURE_STYLE = gnu
  16. CONFIGURE_ARGS = --with-modulesdir=${PREFIX}/${P5SITE} \
  17. --with-initdir=${PREFIX}/sbin \
  18. --without-smrshdir \
  19. --with-user=_sympa \
  20. --with-group=_sympa \
  21. --with-aliases_file=${SYMPA_HOME}/sympa_aliases \
  22. --with-confdir=${SYMPA_HOME}/etc \
  23. --with-expldir=${SYMPA_HOME}/list_data \
  24. --with-spooldir=${VARBASE}/spool/sympa \
  25. --with-staticdir=${VARBASE}/www/sympa \
  26. --with-cgidir=${PREFIX}/libexec/sympa \
  27. --libexecdir=${PREFIX}/libexec/sympa \
  28. --with-defaultdir=${PREFIX}/share/sympa \
  29. --with-docdir=${PREFIX}/share/examples/sympa \
  30. --sbindir=${PREFIX}/sbin \
  31. --with-postmap=${LOCALBASE}/sbin/postmap \
  32. --with-postalias=${LOCALBASE}/sbin/postalias \
  33. --with-piddir=${VARBASE}/run/sympa \
  34. --with-lockdir=${VARBASE}/spool/lock \
  35. --with-localedir=${PREFIX}/share/locale
  36. # no MODULE, doesn't link with it
  37. BUILD_DEPENDS = devel/gettext
  38. # for postmap check
  39. BUILD_DEPENDS += mail/postfix/stable
  40. WANTLIB = c
  41. RUN_DEPENDS = archivers/p5-Archive-Zip \
  42. converters/p5-Unicode-LineBreak>=2011.05 \
  43. databases/p5-DBI \
  44. devel/gettext \
  45. devel/p5-IO-stringy \
  46. devel/p5-File-Copy-Recursive \
  47. devel/p5-Class-Singleton \
  48. devel/p5-libintl \
  49. devel/p5-DateTime-Format-Mail \
  50. devel/p5-DateTime-TimeZone \
  51. devel/p5-Term-ProgressBar \
  52. net/p5-Net-Netmask \
  53. net/p5-Net-CIDR \
  54. mail/p5-MIME-tools \
  55. mail/p5-MIME-Charset \
  56. mail/p5-MIME-EncWords \
  57. mail/p5-MIME-Lite-HTML \
  58. security/p5-IO-Socket-SSL \
  59. security/p5-Crypt-CipherSaber \
  60. sysutils/p5-File-NFSLock \
  61. textproc/p5-Template \
  62. textproc/p5-XML-LibXML \
  63. www/spawn-fcgi \
  64. www/mhonarc \
  65. www/p5-libwww \
  66. www/p5-CGI \
  67. www/p5-HTML-Format \
  68. www/p5-HTML-StripScripts-Parser \
  69. www/p5-HTML-Tree
  70. NO_TEST = Yes
  71. pre-configure:
  72. ${SUBST_CMD} ${WRKSRC}/src/lib/Sympa/ConfDef.pm
  73. post-install:
  74. # taken from Makefile's installconfig target
  75. env PERL5LIB=${PREFIX}/${P5SITE} \
  76. ${PREFIX}/sbin/sympa_wizard.pl --create sympa.conf \
  77. --target ${PREFIX}/share/examples/sympa/sympa.conf
  78. echo ${VERSION} > ${PREFIX}/share/examples/sympa/data_structure.version
  79. mv ${PREFIX}/../../var/www/sympa ${PREFIX}/share/sympa/wwwroot
  80. .include <bsd.port.mk>