3f16217f43
Compared to OpenVPN 2.3 this is a major update with a large number of new features, improvements and fixes. Some of the major features are AEAD (GCM) cipher and Elliptic Curve DH key exchange support, improved IPv4/IPv6 dual stack support and more seamless connection migration when client's IP address changes (Peer-ID). Also, the new --tls-crypt feature can be used to increase users' connection privacy. Compared to OpenVPN 2.4.1 there are several bugfixes and small enhancements. A summary of the changes is available in Changes.rst.
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
$NetBSD: patch-Makefile,v 1.1 2017/05/24 20:35:12 adam Exp $
|
|
|
|
--- Makefile.orig 2009-11-07 05:12:24.000000000 +0100
|
|
+++ Makefile 2013-02-09 18:22:49.000000000 +0100
|
|
@@ -1,14 +1,14 @@
|
|
-prefix=/usr/pkg
|
|
-PLUGINDIR=$(prefix)/lib/openvpn
|
|
-bindir=/usr/local/bin
|
|
+#prefix=/usr/pkg
|
|
+PLUGINDIR=${DESTDIR}${OPENVPN_PLUGINSDIR}
|
|
+bindir=${DESTDIR}${PREFIX}/bin
|
|
|
|
-OPENVPN_SRC=../openvpn-2.1_rc20
|
|
-CFLAGS= -Wall -Werror -ansi -g -I$(OPENVPN_SRC) -DBINDIR=\"$(bindir)\"
|
|
+OPENVPN_SRC=../${OPENVPN_DISTNAME}
|
|
+CFLAGS=-Wall -Werror -DENABLE_CRYPTO=1 -I$(OPENVPN_SRC)/include -DBINDIR=\"$(bindir)\"
|
|
OPENVPN_GROUP=nobody
|
|
|
|
-LIBTOOL=libtool
|
|
-INSTALL=install
|
|
+#LIBTOOL=libtool
|
|
+#INSTALL=install
|
|
|
|
|
|
all: openvpn-acct-wtmpx.la logwtmpx
|
|
|
|
@@ -22,10 +22,11 @@
|
|
logwtmpx: logwtmpx.o
|
|
$(CC) -o $@ -lutil $?
|
|
|
|
install: openvpn-acct-wtmpx.la logwtmpx
|
|
+ $(INSTALL) -d -m 0755 $(PLUGINDIR)
|
|
$(LIBTOOL) --mode=install cp openvpn-acct-wtmpx.la $(PLUGINDIR)/
|
|
- $(LIBTOOL) --mode=finish
|
|
- $(INSTALL) -c -m 4754 -o root -g $(OPENVPN_GROUP) logwtmpx $(bindir)/
|
|
+ $(INSTALL) -d -m 0755 $(bindir)
|
|
+ $(INSTALL) -c -m 0555 logwtmpx $(bindir)/
|
|
|
|
clean:
|
|
rm -rf logwtmpx *.o *.so *.la *.lo .libs
|