summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunqian Gordon Xu <xjqian@gmail.com>2008-03-16 06:46:36 +0000
committerJunqian Gordon Xu <xjqian@gmail.com>2008-03-16 06:46:36 +0000
commit2fe2b992b04ccdbefe9ec3ee64b73a5cfa8d2662 (patch)
tree60e98a842f3fb54bd1fb4d8ac6773eafdf260a7a
parent345e073f8c5aaf66a1cae9825369fba21178f1ef (diff)
openvpn: unify.
-rw-r--r--packages/openvpn/openvpn.inc21
-rw-r--r--packages/openvpn/openvpn_1.5.0.bb18
-rw-r--r--packages/openvpn/openvpn_1.6.0.bb20
-rw-r--r--packages/openvpn/openvpn_2.0.2.bb23
-rw-r--r--packages/openvpn/openvpn_2.0.9.bb23
-rw-r--r--packages/openvpn/openvpn_2.0.bb23
6 files changed, 31 insertions, 97 deletions
diff --git a/packages/openvpn/openvpn.inc b/packages/openvpn/openvpn.inc
new file mode 100644
index 0000000000..70cdf4c84e
--- /dev/null
+++ b/packages/openvpn/openvpn.inc
@@ -0,0 +1,21 @@
+DESCRIPTION = "A full-featured SSL VPN solution via tun device."
+HOMEPAGE = "http://openvpn.sourceforge.net"
+SECTION = "console/network"
+LICENSE = "GPLv2"
+PRIORITY = "optional"
+DEPENDS = "lzo openssl"
+RDEPENDS = "kernel-module-tun"
+
+SRC_URI = "http://openvpn.net/release/openvpn-${PV}.tar.gz \
+ file://openvpn"
+S = "${WORKDIR}/openvpn-${PV}"
+
+CFLAGS += "-fno-inline"
+
+inherit autotools
+
+do_install_append() {
+ install -d ${D}/${sysconfdir}/init.d
+ install -d ${D}/${sysconfdir}/openvpn
+ install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d
+}
diff --git a/packages/openvpn/openvpn_1.5.0.bb b/packages/openvpn/openvpn_1.5.0.bb
index 49fb233e3a..12cebf5bcd 100644
--- a/packages/openvpn/openvpn_1.5.0.bb
+++ b/packages/openvpn/openvpn_1.5.0.bb
@@ -1,17 +1,3 @@
-SECTION = "console/network"
-DESCRIPTION = "A VPN solution via tun device. Not IPSEC!"
-PRIORITY = "optional"
-DEPENDS = "lzo openssl"
-RRECOMMENDS = "kernel-module-tun"
-PR = "r2"
-LICENSE = "GPL"
-SRC_URI = "${SOURCEFORGE_MIRROR}/openvpn/openvpn-${PV}.tar.gz \
- file://openvpn"
+require openvpn.inc
-inherit autotools
-
-do_install_append() {
- install -d ${D}${sysconfdir}/init.d
- install -d ${D}${sysconfdir}/openvpn
- install -m 755 ${WORKDIR}/openvpn ${D}${sysconfdir}/init.d
-}
+PR = "r3"
diff --git a/packages/openvpn/openvpn_1.6.0.bb b/packages/openvpn/openvpn_1.6.0.bb
index 387c0a9291..5bb4a2822b 100644
--- a/packages/openvpn/openvpn_1.6.0.bb
+++ b/packages/openvpn/openvpn_1.6.0.bb
@@ -1,19 +1,3 @@
-SECTION = "console/network"
-DESCRIPTION = "A VPN solution via tun device. Not IPSEC!"
-HOMEPAGE = "http://openvpn.sourceforge.net"
-LICENSE = "GPLv2"
-PRIORITY = "optional"
-DEPENDS = "lzo openssl"
-RRECOMMENDS = "kernel-module-tun"
-PR = "r1"
+require openvpn.inc
-SRC_URI = "${SOURCEFORGE_MIRROR}/openvpn/openvpn-${PV}.tar.gz \
- file://openvpn"
-
-inherit autotools
-
-do_install_append() {
- install -d ${D}${sysconfdir}/init.d
- install -d ${D}${sysconfdir}/openvpn
- install -m 755 ${WORKDIR}/openvpn ${D}${sysconfdir}/init.d
-}
+PR = "r2"
diff --git a/packages/openvpn/openvpn_2.0.2.bb b/packages/openvpn/openvpn_2.0.2.bb
index badac9b551..bb22dc9059 100644
--- a/packages/openvpn/openvpn_2.0.2.bb
+++ b/packages/openvpn/openvpn_2.0.2.bb
@@ -1,22 +1,3 @@
-DESCRIPTION = "A full-featured SSL VPN solution via tun device."
-HOMEPAGE = "http://openvpn.sourceforge.net"
-SECTION = "console/network"
-LICENSE = "GPLv2"
-PRIORITY = "optional"
-DEPENDS = "lzo openssl"
-RDEPENDS = "kernel-module-tun"
-PR = "r0"
+require openvpn.inc
-SRC_URI = "http://openvpn.net/release/openvpn-${PV}.tar.gz \
- file://openvpn"
-S = "${WORKDIR}/openvpn-${PV}"
-
-CFLAGS += "-fno-inline"
-
-inherit autotools
-
-do_install_append() {
- install -d ${D}/${sysconfdir}/init.d
- install -d ${D}/${sysconfdir}/openvpn
- install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d
-}
+PR = "r1"
diff --git a/packages/openvpn/openvpn_2.0.9.bb b/packages/openvpn/openvpn_2.0.9.bb
index badac9b551..bb22dc9059 100644
--- a/packages/openvpn/openvpn_2.0.9.bb
+++ b/packages/openvpn/openvpn_2.0.9.bb
@@ -1,22 +1,3 @@
-DESCRIPTION = "A full-featured SSL VPN solution via tun device."
-HOMEPAGE = "http://openvpn.sourceforge.net"
-SECTION = "console/network"
-LICENSE = "GPLv2"
-PRIORITY = "optional"
-DEPENDS = "lzo openssl"
-RDEPENDS = "kernel-module-tun"
-PR = "r0"
+require openvpn.inc
-SRC_URI = "http://openvpn.net/release/openvpn-${PV}.tar.gz \
- file://openvpn"
-S = "${WORKDIR}/openvpn-${PV}"
-
-CFLAGS += "-fno-inline"
-
-inherit autotools
-
-do_install_append() {
- install -d ${D}/${sysconfdir}/init.d
- install -d ${D}/${sysconfdir}/openvpn
- install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d
-}
+PR = "r1"
diff --git a/packages/openvpn/openvpn_2.0.bb b/packages/openvpn/openvpn_2.0.bb
index bea71b9c44..bb22dc9059 100644
--- a/packages/openvpn/openvpn_2.0.bb
+++ b/packages/openvpn/openvpn_2.0.bb
@@ -1,22 +1,3 @@
-SECTION = "console/network"
-DESCRIPTION = "A full-featured SSL VPN solution via tun device."
-HOMEPAGE = "http://openvpn.sourceforge.net"
-LICENSE = "GPLv2"
-PRIORITY = "optional"
-DEPENDS = "lzo openssl"
-RDEPENDS = "kernel-module-tun"
-PR = "r1"
-
-SRC_URI = "http://openvpn.net/release/openvpn-${PV}.tar.gz \
- file://openvpn"
-S = "${WORKDIR}/openvpn-${PV}"
-
-CFLAGS += "-fno-inline"
+require openvpn.inc
-inherit autotools
-
-do_install_append() {
- install -d ${D}/${sysconfdir}/init.d
- install -d ${D}/${sysconfdir}/openvpn
- install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d
-}
+PR = "r1"