Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $OpenBSD: Makefile,v 1.86 2016/09/06 13:44:22 okan Exp $
  2. COMMENT= mailing list manager with web interface
  3. DISTNAME= mailman-2.1.23
  4. CATEGORIES= mail www
  5. HOMEPAGE= https://www.gnu.org/software/mailman/
  6. # GPLv2
  7. PERMIT_PACKAGE_CDROM= Yes
  8. WANTLIB= c
  9. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mailman/}
  10. EXTRACT_SUFX= .tgz
  11. MODULES= lang/python
  12. BUILD_DEPENDS= net/py-dnspython
  13. RUN_DEPENDS= net/py-dnspython
  14. NO_TEST= Yes
  15. MMDOC= ${PREFIX}/share/doc/mailman
  16. MMEXAMPLES= ${PREFIX}/share/examples/mailman
  17. MMHOME= ${PREFIX}/lib/mailman
  18. MMSPOOL= /var/spool/mailman
  19. FAKE_FLAGS= DIRSETGID=":"
  20. # gnu still breaks the paths as prefix is actually mailman's home
  21. CONFIGURE_STYLE= simple
  22. CONFIGURE_ARGS+= --prefix='${MMHOME}' \
  23. --with-mailhost=localhost.my.domain \
  24. --with-python=${MODPY_BIN} \
  25. --with-urlhost=localhost.my.domain \
  26. --with-var-prefix='${MMSPOOL}' \
  27. --without-permcheck \
  28. --with-username=_mailman \
  29. --with-groupname=_mailman \
  30. --with-cgi-gid=_mailmanq \
  31. --with-mail-gid=_mailmanq
  32. SCRIPTS= Mailman/Archiver/pipermail.py \
  33. Mailman/Post.py \
  34. bin/msgfmt.py \
  35. tests/onebounce.py
  36. pre-configure:
  37. .for SCRIPT in ${SCRIPTS}
  38. @${SUBST_CMD} ${WRKSRC}/${SCRIPT}
  39. .endfor
  40. post-install:
  41. @${INSTALL_DATA_DIR} ${MMDOC}
  42. @for file in FAQ NEWS README* UPGRADING; do \
  43. ${INSTALL_DATA} ${WRKDIST}/$$file ${MMDOC}; \
  44. done
  45. @${INSTALL_DATA_DIR} ${MMEXAMPLES}
  46. @mv ${WRKINST}/var/spool/mailman/data/sitelist.cfg ${MMEXAMPLES}
  47. .include <bsd.port.mk>