2006-04-05 07:49:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2006/04/05 11:49:36 bernd Exp $
|
2004-08-08 14:48:38 -04:00
|
|
|
# Original from: Jorge A. Cortes Montiel <jcortes@bsdcoders.org>
|
2003-11-25 12:27:50 -05:00
|
|
|
|
|
|
|
COMMENT= "easy-to-use, robust, and highly configurable VPN"
|
|
|
|
|
2006-04-05 07:49:36 -04:00
|
|
|
VERSION= 2.0.6
|
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
|
|
|
|
2004-08-08 14:48:38 -04:00
|
|
|
MAINTAINER= Thomas Delaet <thomas@delaet.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
|
2004-12-15 19:31:20 -05:00
|
|
|
WANTLIB= c crypto ssl
|
2003-11-25 12:27:50 -05:00
|
|
|
|
2005-05-01 17:28:49 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/release/
|
2003-11-25 12:27:50 -05:00
|
|
|
|
|
|
|
LIB_DEPENDS= lzo::archivers/lzo
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2005-04-17 15:36:46 -04:00
|
|
|
FAKE= lib
|
2003-11-25 12:27:50 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
# pthread support is supposed to be unstable on OpenBSD
|
|
|
|
CONFIGURE_ARGS+=--disable-pthread \
|
2005-04-17 15:36:46 -04:00
|
|
|
--with-lzo-headers=${DEPBASE}/include \
|
|
|
|
--with-lzo-lib=${DEPBASE}/lib
|
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
|
2003-11-25 12:27:50 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample-config-files/* ${SAMPLES_DIR}/sample-config-files/
|
|
|
|
${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>
|