Permalink
Browse files

First commit

  • Loading branch information...
0 parents commit 64471a10c95343b2268e47c448706cc22854c18c elemc committed Jan 14, 2011
Showing with 163 additions and 0 deletions.
  1. BIN Makefiles.tar.bz2
  2. +21 −0 change-opt.sh
  3. +26 −0 make_source.sh
  4. +22 −0 ponoff.desktop
  5. +1 −0 sources
  6. +20 −0 vpnpptp.desktop
  7. +73 −0 vpnpptp.spec
Binary file not shown.
@@ -0,0 +1,21 @@
+#!/bin/sh
+NAME=vpnpptp
+LIBDIR=/var/lib/${NAME}
+TMPDIR=/tmp/${NAME}
+DATADIR=/usr/share/${NAME}
+BINDIR=/usr/bin
+
+sed -i "s|/opt/vpnpptp/config|${LIBDIR}/config|g" $1
+sed -i "s|/opt/vpnpptp/ponoff.png|${DATADIR}/ponoff.png|g" $1
+sed -i "s|/opt/vpnpptp/off.ico|${DATADIR}/off.ico|g" $1
+sed -i "s|/opt/vpnpptp/on.ico|${DATADIR}/on.ico|g" $1
+sed -i "s|/opt/vpnpptp/resolv.conf|${LIBDIR}/resolv.conf|g" $1
+sed -i "s|/opt/vpnpptp/lang|${DATADIR}/lang|g" $1
+sed -i "s|/opt/vpnpptp/hosts|${LIBDIR}/hosts|g" $1
+sed -i "s|/opt/vpnpptp/vpnpptp.png|${DATADIR}/vpnpptp.png|g" $1
+sed -i "s|/opt/vpnpptp/tmp|/${TMPDIR}|g" $1
+sed -i "s|/opt/vpnpptp/scripts|${DATADIR}/scripts|g" $1
+sed -i "s|/opt/vpnpptp/ponoff|${BINDIR}/ponoff|g" $1
+sed -i "s|/opt/vpnpptp/route|${LIBDIR}/route|g" $1
+sed -i "s|/opt/vpnpptp/vpnpptp|${BINDIR}/vpnpptp|g" $1
+sed -i "s|/opt/vpnpptp/wiki|${DATADIR}/wiki|g" $1
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Script for make source-tree and pack it to tarboll
+# Use: make_source.sh 0.2.8 - for download and make vpnpptp-0.2.8.tar.bz2
+# or make_source.sh latest - to download and make vpnpptp-svn<current date>.tar.bz2 from trunk
+
+NAME=vpnpptp
+SVN_BIN=/usr/bin/svn
+SVN_ADDITION=branches/0.2.8
+ARCHIVE_NAME=${NAME}-0.2.8
+if [ "$1" == "latest" ]; then
+ SVN_DATE=`date +%Y%m%d`
+ ARCHIVE_NAME=${NAME}-svn${SVN_DATE}
+ SVN_ADDITION=trunk/
+else
+ ARCHIVE_NAME=${NAME}-$1
+ SVN_ADDITION=branches/$1
+fi
+
+if [ -x $SVN_BIN ]; then
+ $SVN_BIN checkout http://vpnpptp.googlecode.com/svn/${SVN_ADDITION} $ARCHIVE_NAME
+ cd $ARCHIVE_NAME
+ find . -type d -name .svn -exec rm -rf {} \;
+ cd ..
+ tar cfjv $ARCHIVE_NAME.tar.bz2 ./$ARCHIVE_NAME
+ rm -rf $ARCHIVE_NAME
+fi
@@ -0,0 +1,22 @@
+#!/usr/bin/env xdg-open
+
+[Desktop Entry]
+Encoding=UTF-8
+GenericName=VPN PPTP/L2TP Control
+GenericName[ru]=Управление соединением VPN PPTP/L2TP
+GenericName[uk]=Керування з'єднанням VPN PPTP/L2TP
+Name=ponoff
+Name[ru]=ponoff
+Name[uk]=ponoff
+Exec=/usr/bin/beesu /usr/bin/ponoff
+Comment=Control VPN via PPTP/L2TP
+Comment[ru]=Управление соединением VPN через PPTP/L2TP
+Comment[uk]=Керування з'єднанням VPN через PPTP/L2TP
+Icon=/usr/share/pixmaps/ponoff.png
+Type=Application
+Categories=GTK;System;Network;Monitor;X-MandrivaLinux-CrossDesktop;
+X-KDE-SubstituteUID=true
+X-KDE-Username=root
+X-KDE-autostart-after=kdesktop
+StartupNotify=false
+
@@ -0,0 +1 @@
+17eb92df7afd2f808222968d539f46cc vpnpptp-0.2.8.tar.bz2
@@ -0,0 +1,20 @@
+#!/usr/bin/env xdg-open
+
+[Desktop Entry]
+Encoding=UTF-8
+GenericName=VPN PPTP/L2TP Setup
+GenericName[ru]=Настройка соединения VPN PPTP/L2TP
+GenericName[uk]=Налаштування з’єднання VPN PPTP/L2TP
+Name=vpnpptp
+Name[ru]=vpnpptp
+Name[uk]=vpnpptp
+Exec=/usr/bin/beesu /usr/bin/vpnpptp
+Comment=Setup VPN via PPTP/L2TP
+Comment[ru]=Настройка соединения VPN PPTP/L2TP
+Comment[uk]=Налаштування з’єднання VPN PPTP/L2TP
+Icon=/usr/share/pixmaps/vpnpptp.png
+Type=Application
+Categories=GTK;System;Network;Monitor;X-MandrivaLinux-CrossDesktop;
+X-KDE-SubstituteUID=true
+X-KDE-Username=root
+StartupNotify=false
@@ -0,0 +1,73 @@
+%define libdirpart lib
+%define fpc_arch i386
+%ifarch x86_64
+ %define libdirpart lib64
+ %define fpc_arch x86_64
+%endif
+
+Summary: Tools for setup and control VPN via PPTP/L2TP
+Summary(ru): Инструмент для установки и управления соединением VPN через PPTP/L2TP
+Summary(uk): Інструмент для встановлення та керування з'єднанням VPN через PPTP/L2TP
+Name: vpnpptp
+Version: 0.2.8
+Release: 2%{?dist}
+License: GPL2
+Group: Network
+
+Source0: %{name}-%{version}.tar.bz2
+Source2: %{name}.desktop
+Source3: ponoff.desktop
+Source10: Makefiles.tar.bz2
+Source100: make_source.sh
+Source101: change-opt.sh
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: fpc-src >= 2.2.4 fpc >= 2.2.4 lazarus desktop-file-utils
+Requires: beesu pptp xl2tpd
+
+%description
+Tools for easy and quick setup and control VPN via PPTP/L2TP
+%description -l ru
+Инструмент для легкого и быстрого подключения и управления соединением VPN через PPTP/L2TP
+%description -l uk
+Інструмент для легкого і швидкого підключення і керування з'єднанням VPN через PPTP/L2TP
+
+%prep
+%setup -q
+tar xf %{SOURCE10}
+for ext in pas lpi; do
+ find . -type f -name *.${ext} -exec sh %{SOURCE101} {} \;
+done;
+
+%build
+make VERBOSE=1 %{?_smp_mflags} LIBDIRPART=%{libdirpart} INSTALL_ROOT=$RPM_BUILD_ROOT/usr MACHINE_ARCH=%{fpc_arch}
+
+%install
+make LIBDIRPART=%{libdirpart} INSTALL_ROOT=$RPM_BUILD_ROOT/usr LIBDIR=$RPM_BUILD_ROOT/%{_libdir} DATADIR=$RPM_BUILD_ROOT/%{_datadir}/%{name} BINDIR=$RPM_BUILD_ROOT/%{_bindir} MACHINE_ARCH=%{fpc_arch} install
+desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE2}
+desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE3}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root, root)
+%{_bindir}/%{name}
+%{_bindir}/ponoff
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*.ico
+%{_datadir}/%{name}/*.png
+%{_datadir}/%{name}/scripts
+%{_datadir}/%{name}/wiki/*
+%{_datadir}/%{name}/lang/*
+%{_datadir}/pixmaps/*.png
+%{_datadir}/applications/*.desktop
+%doc LICENSE.txt README.txt
+
+%changelog
+* Thu Jan 14 2011 Alexei Panov <elemc AT atisserv.ru> - 0.2.8-2
+- change script for make source tarboll
+- change from polkit to beesu. source code of the draft programming is rigidly tied to beesu
+* Thu Jan 13 2011 Alexei Panov <elemc AT atisserv.ru> - 0.2.8-1
+- Initial build

0 comments on commit 64471a1

Please sign in to comment.