to start OpenVPN; this sidesteps a problem where openvpn destroys and re- creates the tun interface, which affects PF/altq. - shorten DESCR to better fit 80x24 ok fkr@ (maintainer).
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.23 2009/06/18 13:02:40 sthen Exp $
|
|
|
|
COMMENT= easy-to-use, robust, and highly configurable VPN
|
|
|
|
VERSION= 2.1_rc15
|
|
DISTNAME= openvpn-${VERSION}
|
|
PKGNAME= ${DISTNAME:S/_//g}p2
|
|
CATEGORIES= net security
|
|
|
|
HOMEPAGE= http://openvpn.net/
|
|
|
|
MAINTAINER= Felix Kronlage <fkr@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c crypto ssl pthread
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/release/
|
|
|
|
LIB_DEPENDS= lzo::archivers/lzo
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
FAKE= lib
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS+=--enable-pthread \
|
|
--with-lzo-headers=${DEPBASE}/include \
|
|
--with-lzo-lib=${DEPBASE}/lib \
|
|
--enable-password-save
|
|
|
|
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
|
|
@find ${WRKSRC}/sample-config-files/ -type f \! -name "*.orig" -exec \
|
|
${INSTALL_DATA} {} ${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>
|