freebsd-ports/security/hamachi/Makefile
Renato Botelho b131d84f27 - 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]
2007-10-15 16:38:39 +00:00

41 lines
962 B
Makefile

# 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
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
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>