946b368825
could call it a ping tunnel. This can be useful when you find yourself in the situation that your Internet access is firewalled, but pings are allowed. WWW: http://code.gerade.org/hans/ PR: ports/177649 Submitted by: Alexander Panyushkin <vsityz@gmail.com>
48 lines
876 B
Makefile
48 lines
876 B
Makefile
# Created by: Alexander Panyushkin <vsityz@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hans
|
|
PORTVERSION= 0.4.1
|
|
CATEGORIES= net security
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= /hanstunnel/source/
|
|
|
|
MAINTAINER= vsityz@gmail.com
|
|
COMMENT= Hans makes it possible to tunnel IPv4 through ICMP
|
|
|
|
LICENSE_PERMS_GPL3= yes
|
|
|
|
OPTIONS_DEFINE= CLANG
|
|
|
|
CLANG_DESC= Build with Clang instead of GCC
|
|
|
|
OPTIONS_DEFAULT= CLANG
|
|
|
|
PLIST_FILES= bin/hans
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCLANG}
|
|
.if ${OSVERSION} < 1000000
|
|
CC=clang
|
|
CXX=clang++
|
|
.if ${OSVERSION} < 900033
|
|
BUILD_DEPENDS+= clang:${PORTSDIR}/lang/clang
|
|
.endif
|
|
.endif
|
|
.else
|
|
USE_GCC=4.2+
|
|
CC=gcc
|
|
CXX=g++
|
|
CPP=gcpp
|
|
.endif
|
|
|
|
do-install:
|
|
@${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${WRKSRC}/hans ${LOCALBASE}/bin
|
|
|
|
post-install: .SILENT
|
|
${ECHO_MSG}
|
|
${CAT} ${PKGMESSAGE}
|
|
${ECHO_MSG}
|
|
|
|
.include <bsd.port.mk>
|