aboutsummaryrefslogblamecommitdiff
path: root/net/ptunnel/Makefile
blob: cb2f64c7d8dbfa12f3fef4156db1045455600cd5 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                        
                    








                                                                          
















                                                                                 
# New ports collection makefile for:	ptunnel
# Date created:				23 April 2005
# Whom:	      				Yen-Ming Lee <leeym@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ptunnel
PORTVERSION=	0.61
CATEGORIES=	net
MASTER_SITES=	http://www.cs.uit.no/~daniels/PingTunnel/
DISTNAME=	PingTunnel-${PORTVERSION}

MAINTAINER=	leeym@FreeBSD.org
COMMENT=	Tunneling TCP connections over ICMP echo request and reply

WRKSRC=		${WRKDIR}/PingTunnel
USE_GMAKE=	yes

PLIST_FILES=	bin/ptunnel
MAN8=		ptunnel.8

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/' ${WRKSRC}/${MAKEFILE}
.if ${OSVERSION} < 500000
	@${REINPLACE_CMD} -e 's/stdint.h/inttypes.h/' ${WRKSRC}/ptunnel.h
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ptunnel ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/ptunnel.8 ${MAN8PREFIX}/man/man8

.include <bsd.port.post.mk>