Commit e7b9101f authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

First development version

parents
Pipeline #3123 canceled with stages
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages>
<language minSize="127" name="Python" />
</Languages>
</inspection_tool>
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredPackages">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="XlsxWriter" />
<item index="1" class="java.lang.String" itemvalue="pycairo" />
<item index="2" class="java.lang.String" itemvalue="pysnmp" />
<item index="3" class="java.lang.String" itemvalue="pycryptodome" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="N806" />
</list>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://github.com/gustavo-iniguez-goya/opensnitch
Upstream-Name: python3-opensnitch-ui
Files: *
Copyright:
2017-2018 evilsocket
2019-2020 Gustavo Iñiguez Goia
Comment: Debian packaging is licensed under the same terms as upstream
License: GPL-3.0
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later
version.
.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more
details.
.
You should have received a copy of the GNU General Public
License along with this program. If not, If not, see
http://www.gnu.org/licenses/.
.
On Debian systems, the full text of the GNU General Public
License version 3 can be found in the file
'/usr/share/common-licenses/GPL-3'.
recursive-include opensnitch/res *
recursive-include opensnitch/i18n *.qm
include LICENSE
all: opensnitch/resources_rc.py
install:
@pip3 install --upgrade .
opensnitch/resources_rc.py: translations deps
@pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
translations:
@cd i18n ; make
for lang in $$(ls i18n/locales/); do \
if [ ! -d opensnitch/i18n/$$lang ]; then mkdir -p opensnitch/i18n/$$lang ; fi ; \
cp i18n/locales/$$lang/opensnitch-$$lang.qm opensnitch/i18n/$$lang/ ; \
done
deps:
@pip3 install -r requirements.txt
clean:
@rm -rf *.pyc
@rm -rf opensnitch/resources_rc.py
opensnitch-ui (1.3.6-1) unstable; urgency=medium
* Bug fix and improvements release.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Wed, 10 Feb 2021 10:17:43 +0100
opensnitch-ui (1.3.5-1) unstable; urgency=medium
* Bug fix and improvements release.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Mon, 11 Jan 2021 18:02:35 +0100
opensnitch-ui (1.3.0-1) unstable; urgency=medium
* Allow to filter by dst networks.
* Added check for configure showing pop-ups.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Wed, 16 Dec 2020 01:18:31 +0100
opensnitch-ui (1.3.0~rc-1) unstable; urgency=medium
* Non-maintainer upload.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Fri, 20 Nov 2020 13:32:07 +0100
opensnitch-ui (1.2.0-1) unstable; urgency=medium
* Sort rules by name.
* Allow to set priority on rules.
* Rules are case-insensitive by default.
* Other fixes.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Mon, 09 Nov 2020 23:00:38 +0100
opensnitch-ui (1.0.1-1) unstable; urgency=medium
* Fixed crash when clicking on General tab columns.
* Added literal DstHost to the pop-up combo box.
* Shorten autogenerated rules names.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Tue, 28 Jul 2020 23:43:15 +0200
opensnitch-ui (1.0.0-1) unstable; urgency=medium
* v1.0.0 released.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Thu, 16 Jul 2020 00:20:19 +0200
opensnitch-ui (1.0.0rc11-1) unstable; urgency=medium
* Added CWD field.
* Fixed columns resizing/restoring.
* Fixed General tab fields filtering.
* Pop-up window: display process path if it's hidden.
* Display better regexp errors on the rules editor.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Wed, 24 Jun 2020 00:20:57 +0200
opensnitch-ui (1.0.0rc10-2) unstable; urgency=medium
* Fixed crash when selecting a user (closes #38).
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Wed, 17 Jun 2020 20:50:54 +0200
opensnitch-ui (1.0.0rc10-1) unstable; urgency=medium
* Allow to filter data in all tabs.
* Refresh rules list after deleting a rule.
* Fixed high CPU usage while showing a notification.
* Fixed columns sort order.
* Allow to delete rules in batch.
* Remember the columns size.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Sat, 13 Jun 2020 18:49:11 +0200
opensnitch-ui (1.0.0rc9-1) unstable; urgency=medium
* Added rules editor dialog.
* Restart UI upon starting a new X session.
* Allow to configure max clients from the cli.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Sun, 17 May 2020 18:19:38 +0200
opensnitch-ui (1.0.0rc8) unstable; urgency=medium
* Allow to change settings (daemon && UI) from the UI.
* Added Nodes view.
* Improved UI performance, specially when remote nodes connected.
* Fixed race condition when adding stats of remote nodes.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Wed, 29 Apr 2020 21:56:54 +0200
opensnitch-ui (1.0.0rc7-1) unstable; urgency=medium
* Added help menu.
* Added option to filter by command line.
* Fixed UI icons.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Sun, 12 Apr 2020 23:49:13 +0200
opensnitch-ui (1.0.0rc6-1) unstable; urgency=medium
* Fixed showing systray icon in Cinnamon.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Sun, 08 Mar 2020 20:50:52 +0100
opensnitch-ui (1.0.0rc5-1) unstable; urgency=medium
* Workaround for crash parsing non-utf8 desktop files.
* Fixed crash loading sqlite driver.
* Fixed HighDpi scaling.
* Fixed prompt layout.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Mon, 24 Feb 2020 19:56:01 +0100
opensnitch-ui (1.0.0rc3-1) unstable; urgency=medium
* Fixed regex patterns.
* Display alerts for not answered questions.
* Added option to allow/deny second level domains.
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Tue, 18 Feb 2020 10:14:59 +0100
opensnitch-ui (1.0.0rc2-1) unstable; urgency=low
* initial release
-- Gustavo Iñiguez Goia <gooffy1@gmail.com> Thu, 06 Feb 2020 00:20:02 +0100
#!/bin/sh -e
. /usr/share/debconf/confmodule
# set default value, otherwise the question is not shown on first install
db_fset python3-opensnitch-ui/question1 seen false
db_input high python3-opensnitch-ui/question1 || true
db_go
Source: opensnitch-ui
Maintainer: Gustavo Iñiguez Goia <gooffy1@gmail.com>
Uploaders:
Gustavo Iniguez Goya <gooffy@gmail.com>,
Priority: optional
Homepage: https://github.com/evilsocket/opensnitch
Build-Depends: python3-setuptools, python3-all, debhelper (>= 7.4.3), dh-python
Standards-Version: 3.9.1
Package: python3-opensnitch-ui
Architecture: all
Section: net
Depends:
debconf, libqt5sql5-sqlite, python3:any, python3-setuptools, python3-six, python3-pyqt5,
python3-pyqt5.qtsql, python3-pyinotify, python3-pip, whiptail | dialog
Description: opensnitch application firewall GUI
opensnitch-ui is a GUI for opensnitch written in Python.
It allows the user to view live outgoing connections, as well as search
for details of the intercepted connections.
.
The user can decide if block outgoing connections based on properties of
the connection: by port, by uid, by dst ip, by program or a combination
of them.
.
These rules can last forever, until restart the daemon or just one time.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://github.com/evilsocket/opensnitch
Upstream-Name: opensnitch-ui
Files: *
Copyright:
2017-2018 evilsocket
2019-2020 Gustavo Iñiguez Goia
Comment: Debian packaging is licensed under the same terms as upstream
License: GPL-3.0
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later
version.
.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more
details.
.
You should have received a copy of the GNU General Public
License along with this program. If not, If not, see
http://www.gnu.org/licenses/.
.
On Debian systems, the full text of the GNU General Public
License version 3 can be found in the file
'/usr/share/common-licenses/GPL-3'.
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
install_pip_pkgs()
{
db_get python3-opensnitch-ui/question1
if [ -z "$RET" -o "$RET" = "true" -o "$RET" = "yes" ]; then
echo "Installing grpcio-tools..."
pip3 -q install grpcio-tools || echo "Unable to install grpcio, try it manually."
echo
echo "Installing unicode_slugify..."
pip3 -q install unicode_slugify || echo "Unable to install unicode_slugify, try it manually."
echo "Done."
else
echo "Not installing extra packages by user choice (debconf)"
fi
exit 0
}
for i in $(ls /home)
do
if grep -q /home/$i /etc/passwd ; then
path=/home/$i/.config/autostart/
if [ ! -d $path ]; then
mkdir -p $path
fi
if [ -f /usr/share/applications/opensnitch_ui.desktop ];then
ln -s /usr/share/applications/opensnitch_ui.desktop $path 2>/dev/null || true
fi
fi
done
gtk-update-icon-cache /usr/share/icons/hicolor/ || true
set +e
case "$1" in
configure)
install_pip_pkgs
;;
esac
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
purge_files()
{
if [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
for i in $(ls /home)
do
path=/home/$i/.config/
if [ -h $path/autostart/opensnitch_ui.desktop -o -f $path/autostart/opensnitch_ui.desktop ];then
rm -f $path/autostart/opensnitch_ui.desktop
fi
if [ -d $path/opensnitch/ ]; then
rm -rf $path/opensnitch/
fi
done
}
pkill -15 opensnitch-ui || true
db_purge
case "$1" in
purge)
purge_files
;;
remove)
db_purge
;;
esac
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_purge
case "$1" in
remove)
echo
echo " If you don't need them anymore, remember to uninstall unicode_slugify, grcpio-tools and protobuf:"
echo
echo " pip3 uninstall unicode_slugify"
echo " pip3 uninstall grcpio-tools"
echo " pip3 uninstall protobuf"
echo
;;
esac
#!/usr/bin/make -f
# This file was automatically generated by stdeb 0.9.0 at
# Thu, 06 Feb 2020 00:20:02 +0100
%:
dh $@ --with python3 --buildsystem=python_distutils
override_dh_auto_clean:
rm -rf opensnitch/i18n/
python3 setup.py clean -a
find . -name \*.pyc -exec rm {} \;
override_dh_auto_build:
python3 setup.py build --force
override_dh_auto_install:
cd i18n; make
cp -r i18n/locales/ opensnitch/i18n/
python3 setup.py install --force --root=debian/python3-opensnitch-ui --no-compile -O0 --install-layout=deb
override_dh_python2:
dh_python2 --no-guessing-versions
extend-diff-ignore="\.egg-info$"
\ No newline at end of file
Template: python3-opensnitch-ui/question1
Type: boolean
Description: Do you want to install them now?
OpenSnitch GUI needs to install system-wide packages, using python3-pip:
.
unicode_slugify, grpcio-tools and their dependencies (protobuf).
.
all: update_langs gen_qm
update_langs:
@pylupdate5 opensnitch_i18n.pro
gen_qm:
@./generate_i18n.sh
### Adding a new translation:
1. mkdir `locales/<YOUR LOCALE>/`
(echo $LANG)
2. add the path to opensnitch_i18n.pro:
```
TRANSLATIONS += locales/es_ES/opensnitch-es_ES.ts \
locales/<YOUR LOCALE>/opensnitch-<YOUR LOCALE>.ts
```
3. make
### Updating translations:
1. update translations definitions:
- pylupdate5 opensnitch_i18n.pro
2. translate a language:
- linguist locales/es_ES/opensnitch-es_ES.ts
3. create .qm file:
- lrelease locales/es_ES/opensnitch-es_ES.ts -qm locales/es_ES/opensnitch-es_ES.qm
or:
1. make
2. linguist locales/es_ES/opensnitch-es_ES.ts
3. make
### Installing translations (manually)
In order to test a new translation:
`mkdir -p /usr/lib/python3/dist-packages/opensnitch/i18n/<YOUR LOCALE>/`
`cp locales/<YOUR LOCALE>/opensnitch-<YOUR LOCALE>.qm /usr/lib/python3/dist-packages/opensnitch/i18n/<YOUR LOCALE>/`
Note: the destination path may vary depending on your system.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment