summaryrefslogtreecommitdiff
path: root/net/arping/Makefile
blob: 03aee17d4dce204bd7606e897f62917202e79126 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $NetBSD: Makefile,v 1.10 2007/01/07 09:14:01 rillig Exp $
#

DISTNAME=		arping-2.05
CATEGORIES=		net
MASTER_SITES=		ftp://ftp.habets.pp.se/pub/synscan/

MAINTAINER=		cube@NetBSD.org
HOMEPAGE=		http://www.habets.pp.se/synscan/programs.php?prog=arping
COMMENT=		ARP-level ping utility

NO_CONFIGURE=		yes

LIBS.SunOS+=		-lsocket -lnsl

.include "../../mk/bsd.prefs.mk"
.include "options.mk"

.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
BUILD_FOR=		openbsd
.elif ${OPSYS} == "Linux"
BUILD_FOR=		linux
.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
BUILD_FOR=		freebsd
.elif ${OPSYS} == "SunOS"
BUILD_FOR=		solaris
.elif ${OPSYS} == "Darwin"
BUILD_FOR=		macosx
.endif

.if !empty(PKG_OPTIONS:Marping1)
BUILD_TARGET=		arping1 ${BUILD_FOR}
.endif

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man8

.include "../../net/libpcap/buildlink3.mk"

do-install:
	${INSTALL_MAN} ${WRKSRC}/arping.8 ${PREFIX}/${PKGMANDIR}/man8
	${INSTALL_PROGRAM} ${WRKSRC}/arping ${PREFIX}/bin

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