openbsd-ports/net/adsuck/Makefile
todd a28d38c76b Import adsuck 1.0
adsuck is a dns relay that returns NXdomain for hosts that match names in a
blacklist for quick and non browser plugin based ad blocking.
.. from the keyboard of Marco Peereboom
2009-03-06 16:55:26 +00:00

42 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2009/03/06 16:55:26 todd Exp $
COMMENT= dns relay for ad blocking
DISTNAME= adsuck-1.0
CATEGORIES= net
HOMEPAGE= http://www.peereboom.us/adsuck/
MAINTAINER= Todd T. Fries <todd@openbsd.org>
EXTRACT_SUFX= .tgz
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.peereboom.us/adsuck/snapshot/
NO_REGRESS= Yes
WANTLIB= c ldns
BUILD_DEPENDS= ::net/ldns/libldns
RUN_DEPENDS= ::net/ldns/libldns
MAKE_FLAGS= BINDIR="${TRUEPREFIX}/sbin" \
MANDIR="${TRUEPREFIX}/man/cat"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/adsuck
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/adsuck
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/adsuck
${INSTALL_DATA} ${WRKSRC}/files/README ${PREFIX}/share/doc/adsuck
${SUBST_CMD} -c ${FILESDIR}/README.dhclient ${WRKDIR}/README.dhclient
${INSTALL_DATA} ${WRKDIR}/README.dhclient ${PREFIX}/share/doc/adsuck/README.dhclient
${INSTALL_DATA} ${FILESDIR}/dhclient-script.diff ${PREFIX}/share/adsuck
${INSTALL_DATA} ${WRKSRC}/files/hosts.big ${PREFIX}/share/examples/adsuck
${INSTALL_DATA} ${WRKSRC}/files/hosts.small ${PREFIX}/share/examples/adsuck
${INSTALL_DATA} ${WRKSRC}/files/resolv.conf ${PREFIX}/share/examples/adsuck
.include <bsd.port.mk>