2013-01-12 11:14:22 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2013/01/12 16:14:22 ajacoutot Exp $
|
2009-03-06 11:55:26 -05:00
|
|
|
|
2010-08-31 16:53:57 -04:00
|
|
|
COMMENT= DNS relay for ad blocking
|
2009-03-06 11:55:26 -05:00
|
|
|
|
2012-12-17 06:34:44 -05:00
|
|
|
DISTNAME= adsuck-2.5.0
|
2009-03-06 11:55:26 -05:00
|
|
|
CATEGORIES= net
|
2013-01-12 11:14:22 -05:00
|
|
|
REVISION= 0
|
2009-03-06 11:55:26 -05:00
|
|
|
|
2010-08-31 09:39:55 -04:00
|
|
|
HOMEPAGE= http://opensource.conformal.com/wiki/Adsuck
|
2012-09-27 14:20:41 -04:00
|
|
|
MAINTAINER= Gonzalo L. R. <gonzalo@openbsd.org>
|
2009-03-06 11:55:26 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
# BSD
|
2011-03-18 09:13:59 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-03-06 11:55:26 -05:00
|
|
|
|
2011-03-18 09:13:59 -04:00
|
|
|
MASTER_SITES= http://opensource.conformal.com/snapshots/adsuck/
|
2009-03-06 11:55:26 -05:00
|
|
|
|
2012-12-17 06:34:44 -05:00
|
|
|
WANTLIB += c event_core event_extra ldns
|
2010-08-31 16:53:57 -04:00
|
|
|
|
2012-12-17 06:34:44 -05:00
|
|
|
LIB_DEPENDS= devel/libevent2 \
|
|
|
|
net/ldns/libldns>=1.6.5
|
2009-03-06 11:55:26 -05:00
|
|
|
|
|
|
|
MAKE_FLAGS= BINDIR="${TRUEPREFIX}/sbin" \
|
2011-06-23 18:50:26 -04:00
|
|
|
MANDIR="${TRUEPREFIX}/man/man"
|
2012-02-17 09:21:17 -05:00
|
|
|
|
|
|
|
_files= Hosts.blc Hosts.mis Hosts.pub Hosts.rsk Hosts.sex \
|
|
|
|
Hosts.trc hosts.small hosts.yoyo regex resolv.conf
|
2009-03-08 23:57:38 -04:00
|
|
|
|
2011-03-18 09:13:59 -04:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/dhclient-adsuck
|
|
|
|
|
2009-03-06 11:55:26 -05:00
|
|
|
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
|
2011-04-18 12:36:59 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dhclient-adsuck ${PREFIX}/sbin
|
2012-02-17 09:21:17 -05:00
|
|
|
|
2009-03-08 23:57:38 -04:00
|
|
|
.for _f in ${_files}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/files/${_f} ${PREFIX}/share/examples/adsuck
|
|
|
|
.endfor
|
2009-03-06 11:55:26 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|