head	1.4;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2;
locks; strict;
comment	@# @;


1.4
date	2012.11.17.06.01.05;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.2;

1.2
date	2007.10.15.16.38.39;	author garga;	state Exp;
branches;
next	1.1;

1.1
date	2007.09.07.07.47.06;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Switch exporter over
@
text
@# New ports collection makefile for:	hamachi
# Date created:				2006-11-17
# Whom:					Lapo Luchini <lapo@@lapo.it>
#
# $FreeBSD: head/security/hamachi/Makefile 302141 2012-08-05 23:19:36Z dougb $
#

PORTNAME=	hamachi
DISTVERSION=	0.9.9.9-20
DISTVERSIONSUFFIX=	-lnx
CATEGORIES=	security linux
MASTER_SITES=	http://files.hamachi.cc/linux/
PKGNAMEPREFIX=	linux-

MAINTAINER=	lapo@@lapo.it
COMMENT=	Fast, secure, simple VPN software with NAT-traversal

PATCH_DEPENDS=	upx:${PORTSDIR}/archivers/upx

ONLY_FOR_ARCHS=	i386 amd64
USE_LINUX=	yes

USE_RC_SUBR=	hamachi
PLIST_FILES=	bin/hamachi bin/hamachi-init sbin/hamachi-tuncfg
PORTDOCS=	README CHANGES
MAKE_ENV=	HAMACHI_DST=${PREFIX}/bin TUNCFG_DST=${PREFIX}/sbin

post-patch:
	${RM} -f ${WRKSRC}/tuncfg/tuncfg
	${LOCALBASE}/bin/upx -d ${WRKSRC}/hamachi

do-build:
	${CC} ${CFLAGS} -o ${WRKSRC}/tuncfg/tuncfg ${WRKSRC}/tuncfg/tuncfg.c

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>
@


1.3
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.2
log
@- Port was building stuffs on post-patch: target, fix it using do build: [1]
- Since i'm here, just make it respect PREFIX

PR:		ports/117106 [1]
Submitted by:	maintainer [1]
@
text
@d23 1
a23 1
USE_RC_SUBR=	hamachi.sh
@


1.1
log
@new port: security/hamachi (supersedes ports/110850)

	New port of Hamachi VPN, using Linux official binary and a
	patch on tuncfg.c based on the official OSX release.

	Hamachi is a software that eases the creation of secure
	VPNs even between nodes that would not be able to connect
	to each other (server-assisted connection can be established
	from two NATted client, if at least one of the two NAT
	associates the port to the client not checking remote host).

	UPX port is required in order to decompress the linux binary
	and avoid run-time dependency on /proc.

PR:		ports/112982
Submitted by:	Lapo Luchini <lapo@@lapo.it>
@
text
@a19 1
NO_BUILD=	yes
d26 1
d30 3
a33 1
	upx -d ${WRKSRC}/hamachi
@

