[packages/gopenvpn] - new

baggins baggins at pld-linux.org
Tue Dec 24 11:40:42 CET 2013


commit 8e434481e450b68a808bc106d107da6e44697a2c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Dec 24 11:40:22 2013 +0100

    - new

 format-security.patch | 11 ++++++++
 gopenvpn.desktop      | 10 ++++++++
 gopenvpn.spec         | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+)
---
diff --git a/gopenvpn.spec b/gopenvpn.spec
new file mode 100644
index 0000000..f41378b
--- /dev/null
+++ b/gopenvpn.spec
@@ -0,0 +1,71 @@
+%define		gitcommit	b4192ebb8f6c319f0e1e2e5157c87e530a587ef5
+%define		gitshort	%(c=%{gitcommit}; echo ${c:0:7})
+Summary:	Simple graphical front-end for OpenVPN
+Name:		gopenvpn
+Version:	0.7
+Release:	0.git%{gitshort}.1
+License:	GPL v2
+Group:		X11/Applications/Networking
+Source0:	http://sourceforge.net/code-snapshots/git/g/go/gopenvpn/gopenvpn.git/gopenvpn-gopenvpn-%{gitcommit}.zip
+# Source0-md5:	ac81518d8fbad3d56818941a3992868b
+Source1:	%{name}.desktop
+Patch0:		format-security.patch
+URL:		http://gopenvpn.sourceforge.net/
+BuildRequires:	gtk+2-devel
+BuildRequires:	glib2-devel
+BuildRequires:	libglade2-devel
+BuildRequires:	libgnome-keyring-devel
+BuildRequires:	polkit-devel
+BuildRequires:	openvpn-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	intltool
+BuildRequires:	gettext
+Requires:	openvpn
+Requires:	polkit
+Suggests:	gedit
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+gopenvpn provides a GNOME system tray icon from which OpenVPN
+connections can be started and stopped, and a dialog from which
+OpenVPN's logs can be viewed. It can manage multiple simultaneous
+connections, and graphically indicates when you're connected
+to a VPN tunnel.
+
+%prep
+%setup -q -n %{name}-%{name}-%{gitcommit}
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__sed} -i -e 's|\(AC_CONFIG_FILES.*\) po/Makefile.in|\1|' configure.ac
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--with-openvpn=/usr/sbin/openvpn \
+	--with-gedit=/usr/bin/gedit \
+	--with-pkexec=/usr/bin/pkexec
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/%{name}*
+%{_datadir}/%{name}
+%{_datadir}/polkit-1/actions/net.openvpn.gui.gopenvpn.policy
+%{_desktopdir}/%{name}.desktop
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..80e7385
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- gopenvpn-gopenvpn-b4192ebb8f6c319f0e1e2e5157c87e530a587ef5/src/gopenvpn.c~	2012-03-31 20:00:58.000000000 +0200
++++ gopenvpn-gopenvpn-b4192ebb8f6c319f0e1e2e5157c87e530a587ef5/src/gopenvpn.c	2013-12-23 22:50:13.077962430 +0100
+@@ -751,7 +751,7 @@
+ 									GTK_DIALOG_DESTROY_WITH_PARENT,
+ 									GTK_MESSAGE_ERROR,
+ 									GTK_BUTTONS_OK,
+-									text);
++									"%s", text);
+ 
+ 	g_free(text);
+ 
diff --git a/gopenvpn.desktop b/gopenvpn.desktop
new file mode 100644
index 0000000..baf1b5c
--- /dev/null
+++ b/gopenvpn.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=gopenvpn
+GenericName=OpenVPN GUI
+Comment=gopenvpn
+Exec=/usr/bin/gopenvpn
+Icon=/usr/share/gopenvpn/gopenvpn-open.png
+Terminal=false
+Type=Application
+Categories=Application;Network;System
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gopenvpn.git/commitdiff/8e434481e450b68a808bc106d107da6e44697a2c



More information about the pld-cvs-commit mailing list