]> git.pld-linux.org Git - packages/gopenvpn.git/commitdiff
- new master auto/th/gopenvpn-0.7-0.gitb4192eb.1
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 24 Dec 2013 10:40:22 +0000 (11:40 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 24 Dec 2013 10:40:22 +0000 (11:40 +0100)
format-security.patch [new file with mode: 0644]
gopenvpn.desktop [new file with mode: 0644]
gopenvpn.spec [new file with mode: 0644]

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..80e7385
--- /dev/null
@@ -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 (file)
index 0000000..baf1b5c
--- /dev/null
@@ -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
diff --git a/gopenvpn.spec b/gopenvpn.spec
new file mode 100644 (file)
index 0000000..f41378b
--- /dev/null
@@ -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
This page took 0.102763 seconds and 4 git commands to generate.