aboutsummaryrefslogtreecommitdiffstats
path: root/net/pathneck/Makefile
blob: a3b605124a2b4497456215ee622e4b5e14946829 (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
# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$

PORTNAME=   pathneck
PORTVERSION=    1.3
CATEGORIES= net
MASTER_SITES=   http://www.cs.cmu.edu/~hnn/pathneck/ \
        http://gs274.sp.cs.cmu.edu/www/pathneck/ \
        http://www.unixified.net/distfiles/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Active network path probing tool

PLIST_FILES=    sbin/pathneck \
        sbin/get-choke
PORTDOCS=   COPYING ChangeLog README
MAKEFILE=   Makefile.bsd

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's,^CC .=,CC ?=,' \
              -e 's,^CFLAGS .=,CFLAGS +=,' \
        ${WRKSRC}/Makefile.bsd

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pathneck ${STAGEDIR}${PREFIX}/sbin/pathneck
    ${INSTALL_PROGRAM} ${WRKSRC}/get-choke \
        ${STAGEDIR}${PREFIX}/sbin/get-choke
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>