Hi. I was trying to build from the source. Everything went well, but I do not see some folders(ex. /etc/openvpn) and services(ex.
openvpn@server.service) in the system after installation.
How to achieve the same setup as when
apt install openvpn
?
Do so:
1. Downloaded the source code from here
https://github.com/OpenVPN/openvpn/archive/v2.4.4.tar.gz
2.
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-dependency-tracking "CFLAGS=-g -O2 -fdebug-prefix-map=~/openvpn-2.4.4=. -fstack-protector-strong -Wformat -Werror=format-security" "CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2" "CXXFLAGS=-g -O2 -fdebug-prefix-map=~/openvpn-2.4.4=. -fstack-protector-strong -Wformat -Werror=format-security" "FCFLAGS=-g -O2 -fdebug-prefix-map=~/openvpn-2.4.4=. -fstack-protector-strong" "FFLAGS=-g -O2 -fdebug-prefix-map=~/openvpn-2.4.4=. -fstack-protector-strong" "GCJFLAGS=-g -O2 -fdebug-prefix-map=~/openvpn-2.4.4=. -fstack-protector-strong" "LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now" "OBJCFLAGS=-g -O2 -fdebug-prefix-map=~/openvpn-2.4.4=. -fstack-protector-strong -Wformat -Werror=format-security" "OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=~/openvpn-2.4.4=. -fstack-protector-strong -Wformat -Werror=format-security" --host=x86_64-linux-gnu --build=x86_64-linux-gnu --prefix=/usr --mandir=\${prefix}/share/man --includedir=\${prefix}/include/openvpn --enable-pkcs11 --enable-x509-alt-username --enable-systemd --enable-iproute2
3.
make
4.
make install