openbsd-ports/net/openvpn/Makefile
bernd 1900906dcc Security update to openvpn-2.0.6.
* Security Vulnerability affecting OpenVPN 2.0 through 2.0.5.
  An OpenVPN client connecting to a
  malicious or compromised server could potentially receive
  "setenv" configuration directives from the server which could
  cause arbitrary code execution on the client via a LD_PRELOAD
  attack.

Detailed information: http://openvpn.net/changelog.html

ok Thomas Delaet <thomas at delaet.org> (MAINTAINER)
2006-04-05 11:49:36 +00:00

52 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2006/04/05 11:49:36 bernd Exp $
# Original from: Jorge A. Cortes Montiel <jcortes@bsdcoders.org>
COMMENT= "easy-to-use, robust, and highly configurable VPN"
VERSION= 2.0.6
DISTNAME= openvpn-${VERSION}
CATEGORIES= net security
HOMEPAGE= http://openvpn.net/
MAINTAINER= Thomas Delaet <thomas@delaet.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto ssl
MASTER_SITES= ${HOMEPAGE}/release/
LIB_DEPENDS= lzo::archivers/lzo
SEPARATE_BUILD= concurrent
USE_GMAKE= Yes
FAKE= lib
CONFIGURE_STYLE=gnu
# pthread support is supposed to be unstable on OpenBSD
CONFIGURE_ARGS+=--disable-pthread \
--with-lzo-headers=${DEPBASE}/include \
--with-lzo-lib=${DEPBASE}/lib
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
@rm -rf ${WRKSRC}/easy-rsa/Windows
${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/
@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/
@chown -R ${SHAREOWN}:${SHAREGRP} ${SAMPLES_DIR}/easy-rsa/
.include <bsd.port.mk>