aboutsummaryrefslogtreecommitdiffstats
path: root/net/hanstunnel/Makefile
blob: 1f3b74cece3c3b7c8236ae97b6238a154542fd57 (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
# 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>