45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.6 2009/03/28 20:06:56 todd Exp $
|
|
|
|
COMMENT= dns relay for ad blocking
|
|
|
|
DISTNAME= adsuck-1.6
|
|
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/
|
|
|
|
WANTLIB= c ldns
|
|
|
|
BUILD_DEPENDS= ::net/ldns/libldns
|
|
RUN_DEPENDS= ::net/ldns/libldns
|
|
|
|
MAKE_FLAGS= BINDIR="${TRUEPREFIX}/sbin" \
|
|
MANDIR="${TRUEPREFIX}/man/cat"
|
|
|
|
_files= Hosts.blc Hosts.rsk regex \
|
|
Hosts.pub Hosts.trc hosts.small resolv.conf
|
|
|
|
|
|
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
|
|
.for _f in ${_files}
|
|
${INSTALL_DATA} ${WRKSRC}/files/${_f} ${PREFIX}/share/examples/adsuck
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|