Skip to content

Commit

Permalink
cleanup: Remove RPM openvpn.spec build approach
Browse files Browse the repository at this point in the history
Linux packaging is quite a comprehensive task these days, with many
Linux distributions and each with their own packaging guidelines.  In
addition OpenVPN is packaged for most important Linux distributions
already.

The OpenVPN developers is not capable of keeping track of how all the
various recommend packaging guidelines evoloves and our RPM build
process is no longer consistent with guidelines from Fedora, RHEL or
SUSE packaging.  We also don't receive any updates improving this
situation.  Most likely due to packaging being handled fairly well by
the Linux distributions directly.

In addition comes systemd into play, which more and more Linux
distributions embraces - and even our own RPM openvpn.spec file didn't
account for that move.

This removes all RPM related packaging files and updates the INSTALL
file with pointers to several popular Linux distributions with
accessible information of the OpenVPN packages they provide.  Linux
distributions is most likely much better at keeping the packaging
up-to-shape much better than we.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20190220131906.22970-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18222.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
  • Loading branch information
dsommers authored and cron2 committed Feb 28, 2019
1 parent f20dd0e commit 57ec6ce
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 797 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ doc/openvpn.8.html
/doc/doxygen/html/
/doc/doxygen/latex/
/doc/doxygen/openvpn.doxyfile
distro/rpm/openvpn.spec
distro/systemd/*.service
sample/sample-keys/sample-ca/
vendor/.build
Expand Down
47 changes: 28 additions & 19 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -228,32 +228,41 @@ ENVIRONMENT for ./configure:

*************************************************************************

BUILDING ON LINUX 2.6+ FROM RPM
Linux distribution packaging:

You can build a binary RPM directly from the OpenVPN tarball file:
Each Linux distribution has their own way of doing packaging and their
own set of guidelines of how proper packaging should be done. It
is therefore recommended to reach out to the Linux distributions you
want to have OpenVPN packaged for directly. The OpenVPN project wants
to focus more on the OpenVPN development and less on the packaging
and how packaging is done in all various distributions.

rpmbuild -tb [tarball]
For more details:

This command will build a binary RPM file and place it in the system
RPM directory. You can then install the RPM with the standard RPM
install command:
* Arch Linux
https://www.archlinux.org/packages/?name=openvpn

rpm -ivh [binary-rpm]
* Debian
https://packages.debian.org/search?keywords=openvpn&searchon=names
https://tracker.debian.org/pkg/openvpn

When you install the binary RPM, it will install
sample-scripts/openvpn.init, which can be used to
automatically start or stop one or more OpenVPN tunnels on system
startup or shutdown, based on OpenVPN .conf files in /etc/openvpn.
See the comments in openvpn.init for more information.
* Fedora / Fedora EPEL (Red Hat Enterprise Linux/CentOS/Scientific Linux)
https://apps.fedoraproject.org/packages/openvpn/overview/
https://src.fedoraproject.org/rpms/openvpn

Installing the RPM will also configure the TUN/TAP device node
for linux 2.6.
* Gentoo
https://packages.gentoo.org/packages/net-vpn/openvpn
https://gitweb.gentoo.org/repo/gentoo.git/tree/net-vpn/openvpn

Note that the current openvpn.spec file, which instructs the rpm tool
how to build a package, will build OpenVPN with all options enabled,
including OpenSSL, LZO, and pthread linkage. Therefore all of
these packages will need to be present prior to the RPM build, unless
you edit the openvpn.spec file.
* openSUSE
https://build.opensuse.org/package/show/network:vpn/openvpn

* Ubuntu
https://packages.ubuntu.com/search?keywords=openvpn

In addition, the OpenVPN community provides a best-effort APT repository
for Debian and Ubuntu:
https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos

*************************************************************************

Expand Down
2 changes: 0 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,6 @@ AC_CONFIG_FILES([
build/msvc/Makefile
build/msvc/msvc-generate/Makefile
distro/Makefile
distro/rpm/Makefile
distro/rpm/openvpn.spec
distro/systemd/Makefile
doc/Makefile
doc/doxygen/Makefile
Expand Down
2 changes: 1 addition & 1 deletion distro/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
MAINTAINERCLEANFILES = \
$(srcdir)/Makefile.in

SUBDIRS = rpm systemd
SUBDIRS = systemd
18 changes: 0 additions & 18 deletions distro/rpm/Makefile.am

This file was deleted.

244 changes: 0 additions & 244 deletions distro/rpm/openvpn.init.d.rhel

This file was deleted.

Loading

0 comments on commit 57ec6ce

Please sign in to comment.