freebsd-ports/dns/gdnsd3/Makefile

51 lines
1.2 KiB
Makefile
Raw Normal View History

2019-02-23 02:51:58 +01:00
PORTNAME= gdnsd
2022-08-19 16:14:51 +02:00
PORTVERSION= 3.8.0
2019-02-23 02:51:58 +01:00
CATEGORIES= dns
MASTER_SITES= https://github.com/gdnsd/gdnsd/releases/download/v${PORTVERSION}/ \
ZI \
http://gdnsd.scaleengine.net/gdnsd/
2019-02-23 02:52:45 +01:00
PKGNAMESUFFIX= 3
2019-02-23 02:51:58 +01:00
MAINTAINER= zi@FreeBSD.org
COMMENT= Authoritative-only GeoIP-aware DNS server
WWW= https://github.com/blblack/gdnsd
2019-02-23 02:51:58 +01:00
LICENSE= GPLv3
2019-02-23 02:52:45 +01:00
LIB_DEPENDS= libev.so:devel/libev \
libsodium.so:security/libsodium \
liburcu.so:sysutils/liburcu
2019-02-23 02:51:58 +01:00
FETCH_ARGS= -Fpr
GNU_CONFIGURE= yes
2021-02-10 15:12:02 +01:00
CONFIGURE_ARGS= --localstatedir=/var --with-buildinfo=${PORTVERSION}
2019-02-23 02:51:58 +01:00
USE_LDCONFIG= yes
USES= cpe pkgconfig libtool tar:xz perl5 gmake
2019-02-23 02:51:58 +01:00
USE_PERL5= build
CPPFLAGS+= -isystem${LOCALBASE}/include
2019-02-23 02:51:58 +01:00
LDFLAGS+= -L${LOCALBASE}/lib
CONFLICTS_INSTALL= gdnsd2
2019-02-23 02:51:58 +01:00
USE_RC_SUBR= gdnsd
USERS?= gdnsd
GROUPS?= gdnsd
2019-02-23 02:52:45 +01:00
OPTIONS_DEFINE= DOCS MAXMINDDB
2019-02-23 02:51:58 +01:00
OPTIONS_DEFAULT=MAXMINDDB
MAXMINDDB_DESC= Enable GeoIP1 + GeoIP2 Support
MAXMINDDB_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb
post-patch:
@${REINPLACE_CMD} -e 's|$${localstatedir}/lib/$${PACKAGE_NAME}|/var/db/${PORTNAME}|g' \
${WRKSRC}/configure
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/geoip \
${STAGEDIR}${PREFIX}/etc/gdnsd/zones \
${STAGEDIR}/var/run/gdnsd
.include <bsd.port.mk>