aboutsummaryrefslogtreecommitdiffstats
path: root/net/nast/Makefile
blob: 88085532c29f6dde31f01e7088f462977e11282e (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:  nast
# Date created:        Sun Apr  6 10:12:16 CEST 2003
# Whom:                Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=   nast
PORTVERSION=    0.1.7e
CATEGORIES= net
MASTER_SITES=   http://nast.berlios.de/src/ \
        http://voodoo.oberon.net/downloads/
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= krion@FreeBSD.org
COMMENT=    Nast is a packet sniffer

BUILD_DEPENDS=  ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet-devel

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

MAN8=       nast.8
DOC_FILES=  README

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_REINPLACE=  yes
CONFIGURE_ENV=  LIBS="${PTHREAD_LIBS}"

.include <bsd.port.pre.mk>

pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} ""#######################################################
    @${ECHO_MSG} ""
    @${ECHO_MSG} "You need ${PORTSDIR}/net/libnet-devel to build this port
    @${ECHO_MSG} ""
    @${ECHO_MSG} ""#######################################################
    @${ECHO_MSG} ""

post-patch:
    @${REINPLACE_CMD} -e 's|CFLAGS="-Wall -O2 -pthread"||g' \
        ${WRKSRC}/configure

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
        ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 \
        ${PREFIX}/man/man8
.ifndef (NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
.for doc in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

post-install:
    ${CHMOD} 0755 ${PREFIX}/bin/${PORTNAME}

.include <bsd.port.post.mk>