Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.30 2016/03/11 19:46:34 sthen Exp $
  2. COMMENT= DNS relay for ad blocking
  3. V= 2.5.0
  4. REVISION= 4
  5. GH_TAGNAME= ADSUCK_${V:S/./_/g}
  6. GH_ACCOUNT= conformal
  7. GH_PROJECT= adsuck
  8. DISTNAME= ${GH_PROJECT}-${V}
  9. CATEGORIES= net
  10. HOMEPAGE= https://github.com/conformal/adsuck/wiki
  11. MAINTAINER= Gonzalo L. R. <gonzalo@openbsd.org>
  12. # BSD
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB += c event_core event_extra ldns pthread
  15. LIB_DEPENDS= devel/libevent2 \
  16. net/ldns/libldns>=1.6.5
  17. MAKE_FLAGS= BINDIR="${TRUEPREFIX}/sbin" \
  18. MANDIR="${TRUEPREFIX}/man/man"
  19. _files= Hosts.blc Hosts.mis Hosts.pub Hosts.rsk Hosts.sex \
  20. Hosts.trc hosts.small hosts.yoyo regex resolv.conf
  21. pre-configure:
  22. ${SUBST_CMD} ${WRKSRC}/dhclient-adsuck
  23. post-install:
  24. ${INSTALL_DATA_DIR} ${PREFIX}/share/adsuck
  25. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/adsuck
  26. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/adsuck
  27. ${INSTALL_DATA} ${WRKSRC}/files/README ${PREFIX}/share/doc/adsuck
  28. ${INSTALL_SCRIPT} ${WRKSRC}/dhclient-adsuck ${PREFIX}/sbin
  29. .for _f in ${_files}
  30. ${INSTALL_DATA} ${WRKSRC}/files/${_f} ${PREFIX}/share/examples/adsuck
  31. .endfor
  32. .include <bsd.port.mk>