44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.26 2013/03/11 11:35:45 espie Exp $
|
|
|
|
COMMENT= DNS relay for ad blocking
|
|
|
|
DISTNAME= adsuck-2.5.0
|
|
CATEGORIES= net
|
|
REVISION= 0
|
|
|
|
HOMEPAGE= http://opensource.conformal.com/wiki/Adsuck
|
|
MAINTAINER= Gonzalo L. R. <gonzalo@openbsd.org>
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MASTER_SITES= http://opensource.conformal.com/snapshots/adsuck/
|
|
|
|
WANTLIB += c event_core event_extra ldns
|
|
|
|
LIB_DEPENDS= devel/libevent2 \
|
|
net/ldns/libldns>=1.6.5
|
|
|
|
MAKE_FLAGS= BINDIR="${TRUEPREFIX}/sbin" \
|
|
MANDIR="${TRUEPREFIX}/man/man"
|
|
|
|
_files= Hosts.blc Hosts.mis Hosts.pub Hosts.rsk Hosts.sex \
|
|
Hosts.trc hosts.small hosts.yoyo regex resolv.conf
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/dhclient-adsuck
|
|
|
|
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
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dhclient-adsuck ${PREFIX}/sbin
|
|
|
|
.for _f in ${_files}
|
|
${INSTALL_DATA} ${WRKSRC}/files/${_f} ${PREFIX}/share/examples/adsuck
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|