aboutsummaryrefslogtreecommitdiffstats
path: root/net/findmtu/Makefile
blob: ab5600da89621ee5395f3f7eba49ef91c119e7a3 (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
# Created by: janos.mohacsi@bsd.hu
# $FreeBSD$

PORTNAME=   findmtu
PORTVERSION=    0.9
CATEGORIES= net ipv6
MASTER_SITES=   http://www.dia.uniroma3.it/~compunet/tunneldiscovery/findmtu/

MAINTAINER= jmohacsi@bsd.hu
COMMENT=    Tool for performing IPv6 path MTU discovery on *NIX

OPTIONS_DEFINE= DOCS

SUB_FILES=  findmtu

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile.rawsocket

do-configure:
    ${LN} -s ${WRKSRC}/Makefile.rawsocket ${WRKSRC}/Makefile

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/findmtu ${STAGEDIR}${PREFIX}/bin/findmtu
    ${INSTALL_PROGRAM} ${WRKSRC}/findmtu ${STAGEDIR}${PREFIX}/bin/findmtu.real
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.freebsd ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>