2012-02-17 09:21:17 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2012/02/17 14:21:17 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-02-17 09:21:17 -05:00
|
|
|
DISTNAME= adsuck-2.4.2
|
2009-03-06 11:55:26 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2010-08-31 09:39:55 -04:00
|
|
|
HOMEPAGE= http://opensource.conformal.com/wiki/Adsuck
|
2011-03-18 09:13:59 -04:00
|
|
|
MAINTAINER= Gonzalo L. R. <gonzalo@x61.com.ar>
|
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
|
|
|
|
2011-03-18 09:13:59 -04:00
|
|
|
WANTLIB += c event ldns
|
2010-08-31 16:53:57 -04:00
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= 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>
|