aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/knowlan/Makefile
blob: acf8be08d61a42bfec4a2d2e341aee21976d14e0 (plain) (blame)
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
# Ports collection makefile for:    knowlan
# Date Created:         2003-10-27
# Whom:             Omer Faruk Sen <ofsen@enderunix.org>
#
# $FreeBSD$
#

PORTNAME=   knowlan
PORTVERSION=    0.1.1
PORTREVISION=   2
CATEGORIES= net-mgmt
MASTER_SITES=   http://www.enderunix.org/knowlan/

MAINTAINER= ofsen@enderunix.org
COMMENT=    ARP-based LAN IP and MAC Address Extractor

BUILD_DEPENDS=  ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10

HAS_CONFIGURE=  yes
CONFIGURE_ENV=  PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
CFLAGS+=    `${LIBNET_CONFIG} --cflags`

LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config

post-patch:
    @${REINPLACE_CMD} -e \
        '95d; 102d; 116,117d; \
         s|libnet-config|${LIBNET_CONFIG}|; \
         s|$${LOCALBASE}/lib/libnet.a|`${LIBNET_CONFIG} --libs`|; \
         s|gcc|${CC}|' \
         ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/knowlan ${PREFIX}/sbin

.include <bsd.port.mk>