Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $OpenBSD: Makefile,v 1.41 2015/06/18 07:38:48 bentley Exp $
  2. COMMENT= internet relay chat (irc) server
  3. DISTNAME= irc2.10.3p1
  4. PKGNAME= ${DISTNAME:S/irc/irc-/:S/p/./}
  5. EPOCH= 0
  6. CATEGORIES= net
  7. REVISION= 0
  8. MASTER_SITES= http://www.irc.org/ftp/irc/server/Old/irc2.10/ \
  9. ftp://ftp.ntua.gr/pub/net/irc/server/
  10. EXTRACT_SUFX= .tgz
  11. # GPLv1+ (yes, really!)
  12. PERMIT_PACKAGE_CDROM= Yes
  13. WANTLIB += c m z
  14. LOCALSTATEDIR= ${BASELOCALSTATEDIR}/run
  15. CONFDIR= ${SYSCONFDIR}/ircd
  16. CONFIGURE_STYLE= gnu old
  17. MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/support
  18. CONFIGURE_ARGS= --logdir="/var/log/ircd" \
  19. --sysconfdir=${CONFDIR}
  20. FLAVORS= ipv6 hub
  21. FLAVOR?=
  22. .if ${FLAVOR:Mipv6}
  23. CONFIGURE_ARGS+= --enable-ip6
  24. .endif
  25. # syslog facility to use for logging
  26. SYSLOG_FACILITY= LOG_LOCAL5
  27. ALL_TARGET= server
  28. WRKBUILD= ${WRKSRC}/support
  29. SUBST_VARS= CONFDIR
  30. pre-configure:
  31. .if ${FLAVOR:Mhub}
  32. @perl -pi -e 's,^/\* #define\tHUB \*/,#define\tHUB,g' ${WRKSRC}/support/config.h.dist
  33. .endif
  34. @cp $(WRKSRC)/support/config.h.dist $(WRKSRC)/support/config.h
  35. NO_TEST= Yes
  36. do-install:
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ircd
  38. cd ${WRKBUILD}; ${INSTALL_PROGRAM} \
  39. iauth chkconf ircdwatch ircd-mkpasswd ircd \
  40. ${PREFIX}/sbin
  41. cd ${WRKSRC}/doc; ${INSTALL_MAN} ircd.8 iauth.8 \
  42. ${PREFIX}/man/man8
  43. ${INSTALL_MAN} ${WRKSRC}/doc/iauth.conf.5 ${PREFIX}/man/man5
  44. ${INSTALL_DATA} ${WRKSRC}/support/iauth.conf \
  45. ${PREFIX}/share/examples/ircd/iauth.conf-sample
  46. ${INSTALL_DATA} ${WRKSRC}/support/iauth.conf \
  47. ${PREFIX}/share/examples/ircd/ircd.m4
  48. ${INSTALL_DATA} ${WRKSRC}/doc/example.conf \
  49. ${PREFIX}/share/examples/ircd/ircd.conf-sample
  50. .include <bsd.port.mk>