Skip to content

Instantly share code, notes, and snippets.

@jlaundry
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlaundry/0c9f32176924c7486762 to your computer and use it in GitHub Desktop.
Save jlaundry/0c9f32176924c7486762 to your computer and use it in GitHub Desktop.
f20 NetworkManager vpnc Juniper build
diff --git a/SPECS/NetworkManager-vpnc.spec b/SPECS/NetworkManager-vpnc.spec
index 78a1c98..660bec5 100644
--- a/SPECS/NetworkManager-vpnc.spec
+++ b/SPECS/NetworkManager-vpnc.spec
@@ -4,12 +4,13 @@ Summary: NetworkManager VPN plugin for vpnc
Name: NetworkManager-vpnc
Epoch: 1
Version: 0.9.8.2
-Release: 3%{snapshot}%{?dist}
+Release: 3%{snapshot}.juniper%{?dist}
License: GPLv2+
URL: http://www.gnome.org/projects/NetworkManager/
Group: System Environment/Base
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.9/%{name}-%{version}%{snapshot}.tar.xz
Patch1: 0001-fix-path.patch
+Patch2: NetworkManager-vpnc-0.9.8.2-juniper.patch
BuildRequires: gtk3-devel
BuildRequires: dbus-devel
@@ -53,6 +54,7 @@ the vpnc server with NetworkManager (GNOME files).
%prep
%setup -q -n %{name}-%{version}
%patch1 -p1 -b .0001-fix-path.orig
+%patch2 -p1 -b NetworkManager-vpnc-0.9.8.2-juniper.patch
%build
diff --git a/SPECS/vpnc.spec b/SPECS/vpnc.spec
index 2a9c27f..d387650 100644
--- a/SPECS/vpnc.spec
+++ b/SPECS/vpnc.spec
@@ -2,9 +2,9 @@
Name: vpnc
Version: 0.5.3
-Release: 21%{snapshot}%{?dist}
+Release: 21%{snapshot}.juniper%{?dist}
-Summary: IPSec VPN client compatible with Cisco equipment
+Summary: IPSec VPN client compatible with Cisco and Juniper equipment
Group: Applications/Internet
License: GPLv2+
@@ -22,6 +22,7 @@ Source8: %{name}-tmpfiles.conf
Patch1: vpnc-0.5.1-dpd.patch
Patch2: vpnc-0.5.3-use-autodie.patch
+Patch3: vpnc-0.5.3-juniper.patch
BuildRequires: libgcrypt-devel > 1.1.90
BuildRequires: gnutls-devel
@@ -30,7 +31,7 @@ Requires: iproute vpnc-script
Requires: initscripts
%description
-A VPN client compatible with Cisco's EasyVPN equipment.
+A VPN client compatible with Cisco's EasyVPN equipment, and Juniper SRX Dynamic VPN.
Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
shared-secret IPSec authentication, 3DES, MD5, and IP tunneling.
@@ -59,6 +60,7 @@ or openconnect.
%setup -q
%patch1 -p1 -b .dpd
%patch2 -p1 -b .autodie
+%patch3 -p1 -b .juniper
%build
CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="$RPM_OPT_FLAGS -pie" make PREFIX=/usr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment