442a17a38c
from Gonzalo L. R. (maintainer) with some tweaks.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.17 2011/04/18 16:36:59 ajacoutot Exp $
|
|
|
|
COMMENT= DNS relay for ad blocking
|
|
|
|
DISTNAME= adsuck-2.3
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://opensource.conformal.com/wiki/Adsuck
|
|
MAINTAINER= Gonzalo L. R. <gonzalo@x61.com.ar>
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://opensource.conformal.com/snapshots/adsuck/
|
|
|
|
WANTLIB += c event ldns
|
|
|
|
LIB_DEPENDS= net/ldns/libldns>=1.6.5
|
|
|
|
MAKE_FLAGS= BINDIR="${TRUEPREFIX}/sbin" \
|
|
MANDIR="${TRUEPREFIX}/man/cat"
|
|
_files= Hosts.blc Hosts.rsk regex \
|
|
Hosts.pub Hosts.trc hosts.small 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>
|