openbsd-ports/net/openvpn/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

2010-10-18 14:36:45 -04:00
# $OpenBSD: Makefile,v 1.32 2010/10/18 18:36:51 espie Exp $
COMMENT= easy-to-use, robust, and highly configurable VPN
VERSION= 2.1.2
DISTNAME= openvpn-${VERSION}
REVISION= 0
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/
2009-07-24 10:37:23 -04:00
LIB_DEPENDS= lzo2::archivers/lzo2
SEPARATE_BUILD= concurrent
2005-04-17 15:36:46 -04:00
FAKE= lib
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--enable-pthread \
2005-04-17 15:36:46 -04:00
--with-lzo-headers=${DEPBASE}/include \
--with-lzo-lib=${DEPBASE}/lib \
--enable-password-save
2010-10-18 14:36:45 -04:00
USE_GROFF = Yes
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>