summaryrefslogtreecommitdiff
path: root/net/gethost/Makefile
blob: 99ed1c91796175c8ea5c4452ed58b13973dbc382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $NetBSD: Makefile,v 1.14 2019/11/03 11:45:35 rillig Exp $

DISTNAME=	gethost-0.03
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://www.reedmedia.net/software/gethost/

MAINTAINER=	reed@reedmedia.net
HOMEPAGE=	http://www.reedmedia.net/software/gethost/
COMMENT=	Hostname and IP resolver for testing /etc/hosts and nsswitch.conf

CONFLICTS=	dnssec-tools-[0-9]*

USE_FEATURES=		inet6

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
BUILD_TARGET=		gethost

LIBS.SunOS=	-lnsl -lresolv -lsocket

do-build:
	cd ${WRKSRC} && env ${MAKE_ENV} cc -o gethost gethost.c ${CFLAGS} ${LDFLAGS} ${LIBS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gethost ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/gethost.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"