[tuxcut] Initial import (#1015775).

Mosaab Alzoubi moceap at fedoraproject.org
Mon Dec 2 03:48:52 UTC 2013


commit 305d4fc38a3ee641bcc0852590017b117b453275
Author: Mosaab Alzoubi <moceap at hotmail.com>
Date:   Mon Dec 2 05:48:08 2013 +0200

    Initial import (#1015775).

 .gitignore                     |    1 +
 org.ojuba.pkexec.tuxcut.policy |   20 ++++++
 sources                        |    1 +
 tuxcut                         |   11 +++
 tuxcut.desktop                 |   14 ++++
 tuxcut.png                     |  Bin 0 -> 25870 bytes
 tuxcut.spec                    |  132 ++++++++++++++++++++++++++++++++++++++++
 7 files changed, 179 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..df55de2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/a_atalla-tuxcut-16e25f5c1255.tar.bz2
diff --git a/org.ojuba.pkexec.tuxcut.policy b/org.ojuba.pkexec.tuxcut.policy
new file mode 100644
index 0000000..a173a53
--- /dev/null
+++ b/org.ojuba.pkexec.tuxcut.policy
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
+<policyconfig>
+ <vendor>TuxCut</vendor>
+  <action id="org.ojuba.pkexec.tuxcut">
+    <message>Authentication is required to run TuxCut</message>
+    <message xml:lang="ar">الاستيثاق مطلوب ليعمل القاطع تُكس على نظامك</message>
+    <icon_name>tuxcut</icon_name>
+    <defaults>
+      <allow_any>auth_admin</allow_any>
+      <allow_inactive>auth_admin</allow_inactive>
+      <allow_active>auth_admin</allow_active>
+    </defaults>
+    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/tuxcut</annotate>
+    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+  </action>
+</policyconfig>
+
diff --git a/sources b/sources
index e69de29..8b0db79 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fcfe1ab85dccfe760360215c28aefa15  a_atalla-tuxcut-16e25f5c1255.tar.bz2
diff --git a/tuxcut b/tuxcut
new file mode 100644
index 0000000..7a35d59
--- /dev/null
+++ b/tuxcut
@@ -0,0 +1,11 @@
+#!/bin/bash
+Whoami=`whoami`
+if ! [ "$Whoami" = "root" ]
+	then
+		pkexec /usr/bin/tuxcut
+		exit
+	else
+		cd /usr/share/tuxcut
+		python2 /usr/share/tuxcut/run.py
+fi
+exit 0
diff --git a/tuxcut.desktop b/tuxcut.desktop
new file mode 100644
index 0000000..2c41257
--- /dev/null
+++ b/tuxcut.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Name=TuxCut
+GenericName=TuxCut
+Comment=Arpspoof attacks protector
+Name[ar]=القاطع تُكس
+GenericName[ar]=القاطع تُكس
+Comment[ar]=واقٍ من هجمات قطع الشّابكة
+Exec=tuxcut
+Terminal=false
+Icon=tuxcut
+Type=Application
+Categories=Network;
+Version=1.0
+X-Desktop-File-Install-Version=0.19
diff --git a/tuxcut.png b/tuxcut.png
new file mode 100644
index 0000000..5379336
Binary files /dev/null and b/tuxcut.png differ
diff --git a/tuxcut.spec b/tuxcut.spec
new file mode 100644
index 0000000..c1ee9d2
--- /dev/null
+++ b/tuxcut.spec
@@ -0,0 +1,132 @@
+Name:			tuxcut
+Version:		5.0
+Release:		15%{?dist}
+URL:			https://bitbucket.org/a_atalla/tuxcut/overview
+Summary:		Arpspoof attacks protector
+License:		GPLv3
+Group:			Applications/System
+Source0:		a_atalla-tuxcut-16e25f5c1255.tar.bz2
+#Source0:		https://bitbucket.org/a_atalla/tuxcut/get/master.tar.bz2
+Source1:		tuxcut.desktop
+Source2:		tuxcut
+Source3:		tuxcut.png
+Source4:		org.ojuba.pkexec.tuxcut.policy
+BuildRequires:	ImageMagick
+BuildRequires:	perl
+BuildRequires:	desktop-file-utils
+BuildRequires:	python2
+Requires:		PyQt4
+Requires:		arp-scan
+Requires:		arptables_jf
+Requires:		dsniff
+Requires:		polkit
+Requires:		wondershaper
+Requires:		hicolor-icon-theme
+BuildArch:		noarch
+
+%description
+TuxCut is a utility that protect linux computers againest arpspoof attacks
+
+Features:
+	- Hide your machine (ip/MAC) from arp scanner utilities.
+	- list all the live host in your LAN.
+	- cut the connection between any live host and the gateway.
+	- use wondershaper to limit your upload or download speed.
+ 
+%prep
+%setup -q -n a_atalla-tuxcut-16e25f5c1255
+# fix resum error
+perl -pi -le 'print "		self.resume_all()" if $. == 85' TuxCut.py
+
+# fix error No such file or directory: 'ui/MainWindow.ui'
+perl -pi -w -e 's|ui/MainWindow.ui|%{_datadir}/tuxcut/ui/MainWindow.ui|g;' TuxCut.py
+
+# Specific env to python2
+perl -pi -w -e 's|#!/usr/bin/env python|#!%{__python2}|g;' run.py
+
+%build
+#nothing to build
+
+%install
+mkdir -p %{buildroot}/{%{_datadir}/tuxcut,%{_bindir}}
+
+cp -ar * %{buildroot}%{_datadir}/tuxcut
+install -pDm0755 %{SOURCE1} %{buildroot}%{_datadir}/applications/tuxcut.desktop
+install -pDm0755 %{SOURCE2} %{buildroot}%{_bindir}/tuxcut
+install -pDm0644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/tuxcut.png
+install -pDm0644 %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions/org.ojuba.pkexec.tuxcut.policy
+desktop-file-install %{buildroot}%{_datadir}/applications/tuxcut.desktop
+
+# Install icon
+for res in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96; do \
+  mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{${res},scalable}/apps
+  convert -size 400x400 %{SOURCE3} -resize ${res} %{buildroot}/%{_datadir}/icons/hicolor/${res}/apps/tuxcut.png
+done;
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%{_bindir}/tuxcut
+%{_datadir}/applications/tuxcut.desktop
+%{_datadir}/icons/hicolor/*/apps/tuxcut.png
+%{_datadir}/pixmaps/tuxcut.png
+%{_datadir}/polkit-1/actions/org.ojuba.pkexec.tuxcut.policy
+%{_datadir}/tuxcut
+%exclude %{_datadir}/tuxcut/LICENSE
+%exclude %{_datadir}/tuxcut/README
+%doc LICENSE README
+
+%changelog
+* Sun Dec 1 2013 Mosaab Alzoubi <moceap at hotmail.com> - 5.0-15
+- Fix BRs.
+
+* Fri Nov 29 2013 Mosaab Alzoubi <moceap at hotmail.com> - 5.0-14
+- Move documents into %%doc files.
+- Add hicolor-icon-theme to requires.
+- Add executable permission to tuxcut.desktop :).
+- Update summary in desktop file.
+- Specific env to python2 in both run.py and tuxcut in bindir.
+- Add python2-devel to BRs.
+
+* Thu Nov 28 2013 Mosaab Alzoubi <moceap at hotmail.com> - 5.0-13
+- Update summary line.
+- Update description.
+- General tweaks.
+- Remove %%defattr line.
+- Add icon cache update operation.
+
+* Fri Oct 18 2013 Mosaab Alzoubi <moceap at hotmail.com> - 5.0-12
+- To zero warnings by rpmlint.
+- Fix summary line.
+
+* Fri Oct 11 2013 Mosaab Alzoubi <moceap at hotmail.com> - 5.0-11
+- Add mark of source URL.
+
+* Fri Oct 11 2013 Mosaab Alzoubi <moceap at hotmail.com> - 5.0-10
+- Full exit from opt dir.
+- Add rule to polkit.
+
+* Thu Oct 10 2013 Mosaab Alzoubi <moceap at hotmail.com> - 5.0-9
+- Fixes to be compatible with Fedora rules.
+
+* Mon Mar 18 2013 Muhammad Shaban <Mr.Muhammad at linuxac.org> - 5.0-1
+- update
+
+* Fri Oct 26 2012 Muhammad Shaban <Mr.Muhammad at linuxac.org> - 4.1-1
+- update
+
+* Sun Jul 08 2012 Muhammad Shaban <Mr.Muhammad at linuxac.org> - 4.0-1
+- update
+
+* Thu Jun 14 2012 Muhammad Shaban <Mr.Muhammad at linuxac.org> - 3.2-1
+- initial package


More information about the scm-commits mailing list