summaryrefslogtreecommitdiff
path: root/security/hamachi/Makefile
blob: 5d771f47d9eec4a16e4212313a4de29a61af0cb7 (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
# New ports collection makefile for:	hamachi
# Date created:				2006-11-17
# Whom:					Lapo Luchini <lapo@lapo.it>
#
# $FreeBSD$
#

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

NO_BUILD=	yes
ONLY_FOR_ARCHS=	i386 amd64
USE_LINUX=	yes

USE_RC_SUBR=	hamachi.sh
PLIST_FILES=	bin/hamachi bin/hamachi-init sbin/hamachi-tuncfg
PORTDOCS=	README CHANGES

post-patch:
	${RM} -f ${WRKSRC}/tuncfg/tuncfg
	${CC} ${CFLAGS} -o ${WRKSRC}/tuncfg/tuncfg ${WRKSRC}/tuncfg/tuncfg.c
	upx -d ${WRKSRC}/hamachi

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

.include <bsd.port.mk>