openbsd-ports/net/gdnsd/Makefile
jasper fe9d5c0b95 rcexec should only really be used in rc_start, unless there's a good reason to
use it elsewhere

prompted by aja@
ok aja@ sthen@
2014-10-03 11:53:23 +00:00

66 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.3 2014/10/03 11:53:23 jasper Exp $
SHARED_ONLY= Yes
COMMENT= geographically-aware, authoritative-only DNS server
# NB, gdnsd >= 2.0.0 requires __thread support
GH_ACCOUNT= blblack
GH_PROJECT= gdnsd
GH_TAGNAME= v1.11.5
GH_COMMENT= 094e7afac546693856aba0364c3dcf6e7511a0e8
REVISION= 0
DISTNAME= ${GH_PROJECT}-${GH_TAGNAME:S/v//g}
CATEGORIES= net
HOMEPAGE= http://gdnsd.org/
# GPLv3+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c ev m pthread
BUILD_DEPENDS= devel/libtool \
devel/ragel \
${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
# used for tests
BUILD_DEPENDS+= archivers/xz \
net/curl
LIB_DEPENDS= devel/libev
RUN_DEPENDS= net/GeoIP
TEST_DEPENDS= ${BUILD_DEPENDS} \
www/p5-libwww \
net/p5-Socket6 \
net/p5-IO-Socket-INET6 \
net/p5-Net-DNS
AUTOCONF_VERSION= 2.63
AUTOMAKE_VERSION= 1.11
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-rundir=${VARBASE}/run/ \
--with-rootdir=${VARBASE}/gdnsd
CONFIGURE_ENV= LIBEV_LIBS="-L${LOCALBASE}/lib -lev" \
LIBEV_CFLAGS="-I${LOCALBASE}/include"
SUBST_VARS+= VARBASE
# XXX: At least one of these hangs, though doesn't seem to be gdnsd's fault
post-extract:
rm -r ${WRKSRC}/t/003complex
pre-configure:
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./autogen.sh
post-install:
rm ${PREFIX}/lib/gdnsd/*.la
rm ${PREFIX}/share/doc/gdnsd/*.pod
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gdnsd/
.include <bsd.port.mk>