]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added new package: openvpn.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Feb 2009 13:04:38 +0000 (14:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Feb 2009 13:04:38 +0000 (14:04 +0100)
lfs/openvpn [new file with mode: 0644]
make.sh
src/rootfiles/core/openvpn [new file with mode: 0644]

diff --git a/lfs/openvpn b/lfs/openvpn
new file mode 100644 (file)
index 0000000..9e03b5e
--- /dev/null
@@ -0,0 +1,102 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+PKG_NAME   = openvpn
+PKG_VER    = 2.1_rc15
+PKG_REL    = 0
+
+THISAPP    = $(PKG_NAME)-$(PKG_VER)
+DL_FILE    = $(THISAPP).tar.gz
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+
+OBJECT     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
+
+MAINTAINER =
+GROUP      = Networking/VPN
+EXTRA      = no
+DEBUG      = no
+DEPS       = iproute2 lzo openssl
+
+URL        = http://openvpn.net/
+LICENSE    = GPLv2
+SHORT_DESC = A full-featured SSL VPN solution.
+
+define LONG_DESC
+       OpenVPN is a robust and highly flexible tunneling application that uses all \
+       of the encryption, authentication, and certification features of the \
+       OpenSSL library to securely tunnel IP networks over a single UDP or TCP \
+       port. It can use the Marcus Franz Xaver Johannes Oberhumer's LZO library \
+       for compression.
+endef
+
+PLUGINS   = auth-pam down-root
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+download: $(objects)
+
+info:
+       $(DO_PKG_INFO)
+
+install: $(OBJECT)
+
+package:
+       @$(DO_PACKAGE)
+
+$(objects):
+       @$(LOAD)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(OBJECT): $(objects)
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && \
+               ./configure \
+                       $(CONFIGURE_ARCH) \
+                       --prefix=/usr \
+                       --enable-pthread \
+                       --enable-password-save \
+                       --enable-iproute2
+       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+       cd $(DIR_APP) && for plugin in $(PLUGINS); do \
+                                               make -C plugin/$$plugin; \
+                                        done
+       cd $(DIR_APP) && make install
+       mkdir -p /usr/lib/$(PKG_NAME)/plugin/lib
+       cd $(DIR_APP) && for plugin in $(PLUGINS); do \
+                                               install -m 0755 plugin/$$plugin/openvpn-$$plugin.so \
+                                                       /usr/lib/$(PKG_NAME)/plugin/lib/openvpn-$$plugin.so; \
+                                        done
+       -mkdir -p /var/run/$(PKG_NAME)
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 2005c0afe8976fc562a83b691b135088da750896..41310914626f9639360084cc1a2a3824af04bf45 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -278,7 +278,7 @@ ipfire_build() {
        ### Building vpn stuff
        #
        ipfire_make strongswan
-       #ipfire_make openvpn
+       ipfire_make openvpn
        
        ### Building filesystem stuff
        #
diff --git a/src/rootfiles/core/openvpn b/src/rootfiles/core/openvpn
new file mode 100644 (file)
index 0000000..393f308
--- /dev/null
@@ -0,0 +1,9 @@
+usr/lib/openvpn
+usr/lib/openvpn/plugin
+usr/lib/openvpn/plugin/lib
+usr/lib/openvpn/plugin/lib/openvpn-auth-pam.so
+usr/lib/openvpn/plugin/lib/openvpn-down-root.so
+usr/sbin/openvpn
++usr/share/doc/openvpn
++usr/share/man/man8/openvpn.8
+var/run/openvpn