1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/dns/skadns/Makefile
Sergei Kolobov 0702007805 Add skadns 0.23:
Skadns is a kind of an Asynchronous DNS client software:
- Kind of: it's small. Really small. But it just works.
- Asynchronous: all DNS operations are non-blocking.
- DNS client software: it's a DNS client, what you may know
  as a "stub resolver". To perform full DNS resolution,
  you will still need a full resolver like dnscache.

The skadns library offers a simple API to make asynchronous DNS queries.
The skadnsip, skadnsmx and skadnsfilter commands are examples
of how to use that API. They are mainly there for their source code.
The skadnsd daemon, usable as a child process or as a separate service,
handles the grunt work of DNS querying and makes the network
completely invisible to the client.

Author:	Laurent G. Bercot <ska-skaware@skarnet.org>
WWW:	http://www.skarnet.org/software/skadns/
2004-01-01 23:12:39 +00:00

54 lines
1.5 KiB
Makefile

# New ports collection makefile for: skadns
# Date created: 2004-01-01
# Whom: Sergei Kolobov <sergei@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= skadns
PORTVERSION= 0.23
CATEGORIES= dns devel
MASTER_SITES= http://www.skarnet.org/software/${PORTNAME}/
MAINTAINER= sergei@FreeBSD.org
COMMENT= Asynchronous DNS client software and library
BUILD_DEPENDS= ${LOCALBASE}/lib/skalibs/libstddjb.a:${PORTSDIR}/devel/skalibs
USE_REINPLACE= yes
LDFLAGS?= -s
WRKSRC= ${WRKDIR}/web/${DISTNAME}
DOCS= package/CHANGES package/README package/THANKS package/TODO \
doc/*.html
do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/sys/conf-cc
${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/src/sys/conf-ld
${ECHO_CMD} "FreeBSD" > ${WRKSRC}/src/sys/systype
${ECHO_CMD} "${LOCALBASE}/include/skalibs" > ${WRKSRC}/package/import
${ECHO_CMD} "${LOCALBASE}/lib/skalibs" >> ${WRKSRC}/package/import
${REINPLACE_CMD} -e 's,/service/skadnsd/.,/var/run/,' \
-e 's,/package/web/skadns/command,${PREFIX}/bin,' \
${WRKSRC}/src/skadns/skadns.h
do-build:
cd ${WRKSRC} && package/compile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin
@${MKDIR} ${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/library/* ${PREFIX}/lib
@${MKDIR} ${EXAMPLESDIR}/service
cd ${WRKSRC}/service/skadnsd && ${TAR} cf - * | \
(cd ${EXAMPLESDIR}/service && ${TAR} xf -)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>