pkgsrc/net/openvpn/Makefile
jlam 0078530d42 Update net/openvpn to 2.0.2. Changes from version 2.0.1 include:
* Fixed bug in route.c in FreeBSD, Darwin, OpenBSD and NetBSD
  version of get_default_gateway.  Allocated socket for route
  manipulation is never freed so number of mbufs continuously
  grow and exhaust system resources after a while (Jaroslav Klaus).

* Fixed bug where "--proto tcp-server --mode p2p --management
  host port" would cause the management port to not respond until
  the OpenVPN peer connects.
2005-09-01 03:40:42 +00:00

79 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2005/09/01 03:40:42 jlam Exp $
#
DISTNAME= openvpn-2.0.2
PKGNAME= ${DISTNAME:S/_//}
CATEGORIES= net
MASTER_SITES= http://openvpn.net/release/ \
http://openvpn.net/release/old/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://openvpn.net/
COMMENT= Easy-to-use SSL VPN daemon
GNU_CONFIGURE= yes
USE_TOOLS= grep:run
USE_LIBTOOL= yes
USE_PKGINSTALL= yes
USE_OLD_DES_API= yes
TEST_TARGET= check
PKG_SYSCONFSUBDIR= openvpn
DATADIR= ${PREFIX}/share/${PKGBASE}
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
RCD_SCRIPTS= openvpn
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --enable-pthread
CONFIGURE_ARGS+= --enable-password-save
CONFIGURE_ARGS+= --disable-dependency-tracking
# OpenVPN 2.x has a shared module "plugin" architecture that allows
# inserting callbacks into the server for various tasks.
#
DL_AUTO_VARS= yes
.include "../../mk/dlopen.buildlink3.mk"
.include "../../archivers/lzo/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
post-build:
for file in ${WRKSRC}/easy-rsa/2.0/pkitool; do \
${SED} -e "s|^\(GREP\)=.*|\1=\""${GREP}"\"|" \
-e "s|^\(OPENSSL\)=.*|\1=\""${SSLBASE}/bin/openssl"\"|" \
$$file > $$file.new; \
${MV} -f $$file.new $$file; \
${CHMOD} +x $$file; \
done
post-install:
${INSTALL_DATA_DIR} ${DATADIR}/easy-rsa
dir=${DATADIR:S/^${PREFIX}\///}/easy-rsa; \
cd ${WRKSRC}/easy-rsa/2.0; \
${GREP} "^$$dir/" ${PKGDIR}/PLIST | ${SED} "s|^$$dir/||" | \
while read file; do \
case $$file in \
[A-Z]*|*.cnf) ${INSTALL_DATA} $$file ${PREFIX}/$$dir ;; \
*) ${INSTALL_SCRIPT} $$file ${PREFIX}/$$dir ;; \
esac; \
done
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/management/management-notes.txt ${DOCDIR}
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${EGDIR}/config
cd ${WRKSRC}/sample-config-files; for file in *; do \
${INSTALL_DATA} $$file ${EGDIR}/config; \
done
${INSTALL_DATA_DIR} ${EGDIR}/scripts
cd ${WRKSRC}/sample-scripts; for file in *; do \
${INSTALL_DATA} $$file ${EGDIR}/scripts; \
done
${INSTALL_DATA_DIR} ${EGDIR}/keys
cd ${WRKSRC}/sample-keys; for file in *; do \
${INSTALL_DATA} $$file ${EGDIR}/keys; \
done
.include "../../mk/bsd.pkg.mk"