2010-11-19 17:31:32 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.36 2010/11/19 22:31:35 espie Exp $
|
2003-11-25 12:27:50 -05:00
|
|
|
|
2007-07-27 17:20:29 -04:00
|
|
|
COMMENT= easy-to-use, robust, and highly configurable VPN
|
2003-11-25 12:27:50 -05:00
|
|
|
|
2010-11-10 08:50:04 -05:00
|
|
|
VERSION= 2.1.4
|
2003-11-25 12:27:50 -05:00
|
|
|
DISTNAME= openvpn-${VERSION}
|
|
|
|
CATEGORIES= net security
|
|
|
|
|
2005-05-01 17:28:49 -04:00
|
|
|
HOMEPAGE= http://openvpn.net/
|
2003-11-25 12:27:50 -05:00
|
|
|
|
2007-11-20 16:39:02 -05:00
|
|
|
MAINTAINER= Felix Kronlage <fkr@openbsd.org>
|
2003-11-25 12:27:50 -05:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-07-12 18:07:37 -04:00
|
|
|
|
2010-11-11 11:27:54 -05:00
|
|
|
WANTLIB= c crypto ssl pthread lzo2
|
2003-11-25 12:27:50 -05:00
|
|
|
|
2010-11-10 08:50:04 -05:00
|
|
|
MASTER_SITES= http://swupdate.openvpn.net/community/releases/
|
2003-11-25 12:27:50 -05:00
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= archivers/lzo2
|
2003-11-25 12:27:50 -05:00
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
|
2005-04-17 15:36:46 -04:00
|
|
|
FAKE= lib
|
2003-11-25 12:27:50 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2007-07-27 17:20:29 -04:00
|
|
|
|
2009-05-10 09:59:35 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-pthread \
|
2005-04-17 15:36:46 -04:00
|
|
|
--with-lzo-headers=${DEPBASE}/include \
|
2008-09-06 05:07:10 -04:00
|
|
|
--with-lzo-lib=${DEPBASE}/lib \
|
|
|
|
--enable-password-save
|
2010-10-18 17:50:38 -04:00
|
|
|
USE_GROFF = Yes
|
2003-11-25 12:27:50 -05:00
|
|
|
|
|
|
|
SAMPLES_DIR= ${PREFIX}/share/examples/openvpn
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/sample-config-files
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/sample-keys
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/sample-scripts
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLES_DIR}/easy-rsa
|
2005-05-01 17:28:49 -04:00
|
|
|
@rm -rf ${WRKSRC}/easy-rsa/Windows
|
2006-12-15 04:56:14 -05:00
|
|
|
@find ${WRKSRC}/sample-config-files/ -type f \! -name "*.orig" -exec \
|
|
|
|
${INSTALL_DATA} {} ${SAMPLES_DIR}/sample-config-files/ \;
|
2003-11-25 12:27:50 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample-keys/* ${SAMPLES_DIR}/sample-keys/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample-scripts/* ${SAMPLES_DIR}/sample-scripts/
|
2005-08-22 20:32:39 -04:00
|
|
|
@find ${WRKSRC}/easy-rsa -type f -exec perl -pi -e 's,#!/bin/bash,#!/bin/sh,g' {} \;
|
|
|
|
@cp -pR ${WRKSRC}/easy-rsa/* ${SAMPLES_DIR}/easy-rsa/
|
2005-11-01 13:07:08 -05:00
|
|
|
@chown -R ${SHAREOWN}:${SHAREGRP} ${SAMPLES_DIR}/easy-rsa/
|
2003-11-25 12:27:50 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|