Rename package to faraday
Don't keep the python-faraday name: it's not compatible with pybuild and
Python 3
Sophie Brun
4 years ago
4 | 4 | Uploaders: Sophie Brun <[email protected]> |
5 | 5 | Build-Depends: debhelper-compat (= 12), |
6 | 6 | dh-python, |
7 | python3, | |
7 | python3-all, | |
8 | 8 | python3-alembic, |
9 | 9 | python3-autobahn, |
10 | 10 | python3-bcrypt, |
56 | 56 | Vcs-Git: https://gitlab.com/kalilinux/packages/python-faraday.git |
57 | 57 | Vcs-Browser: https://gitlab.com/kalilinux/packages/python-faraday |
58 | 58 | |
59 | Package: python-faraday | |
59 | Package: faraday | |
60 | 60 | Architecture: all |
61 | Depends: curl, | |
61 | Depends: ${python3:Depends}, | |
62 | ${sphinxdoc:Depends}, | |
63 | curl, | |
62 | 64 | gir1.2-gtk-3.0, |
63 | 65 | gir1.2-vte-2.91, |
64 | 66 | postgresql, |
67 | 69 | sudo, |
68 | 70 | zsh | zsh-beta, |
69 | 71 | ${misc:Depends}, |
70 | ${python3:Depends}, | |
71 | 72 | ${shlibs:Depends} |
72 | 73 | Recommends: fonts-font-awesome, |
73 | 74 | fonts-glyphicons-halflings, |
74 | 75 | python3-bs4, |
75 | 76 | python3-selenium, |
76 | 77 | ruby | ruby-interpreter |
78 | Replaces: python-faraday (<< 3.10.0) | |
79 | Breaks: python-faraday (<< 3.10.0) | |
80 | Provides: python-faraday | |
77 | 81 | Description: Collaborative Penetration Test IDE |
78 | 82 | Faraday introduces a new concept (IPE) Integrated Penetration-Test Environment |
79 | 83 | a multiuser Penetration test IDE. Designed for distribution, indexation and |
81 | 85 | . |
82 | 86 | The main purpose of Faraday is to re-use the available tools in the community |
83 | 87 | to take advantage of them in a multiuser way. |
88 | . | |
89 | This package contains Faraday package previously named python-faraday. | |
90 | ||
91 | Package: python-faraday | |
92 | Architecture: all | |
93 | Depends: faraday, | |
94 | ${misc:Depends} | |
95 | Description: Collaborative Penetration Test IDE | |
96 | Faraday introduces a new concept (IPE) Integrated Penetration-Test Environment | |
97 | a multiuser Penetration test IDE. Designed for distribution, indexation and | |
98 | analysis of the generated data during the process of a security audit. | |
99 | . | |
100 | The main purpose of Faraday is to re-use the available tools in the community | |
101 | to take advantage of them in a multiuser way. | |
102 | . | |
103 | This package is a transitional package. It can be remove safely. |
0 | build/html |
0 | debian/helper-script/* usr/bin | |
1 | debian/migrate-database usr/lib/python3/dist-packages/faraday/debian-scripts | |
2 | usr/lib/python3* | |
3 | usr/bin |
0 | usr/bin/faraday usr/bin/python-faraday | |
1 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.eot usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.eot | |
2 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.ttf usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.ttf | |
3 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.woff usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.woff | |
4 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.woff2 usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.woff2 | |
5 | usr/share/fonts/truetype/glyphicons/glyphicons-halflings-regular.svg usr/lib/python3/dist-packages/faraday/server/www/fonts/font-awesome/fontawesome-webfont.svg |
0 | # False-positive | |
1 | faraday: extra-license-file usr/lib/python3/dist-packages/faraday/server/www/scripts/licenses/providers/license.js | |
2 | # don't use Debian package: versions are too different | |
3 | faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/normalize.css please use libjs-normalize | |
4 | faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery-1.11.2.js please use libjs-jquery | |
5 | faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery-1.9.1.js please use libjs-jquery | |
6 | faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery.js please use libjs-jquery | |
7 | faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery.tablesorter.min.js please use libjs-jquery-tablesorter | |
8 | # fonts are not packaged, just install them in python-faraday | |
9 | faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/fonts/flexslider* | |
10 | faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/fonts/flexslider* | |
11 | faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/fonts/opensans* | |
12 | faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/fonts/opensans* | |
13 | faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/fonts/ubuntu* | |
14 | faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/fonts/ubuntu* | |
15 | faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/script/ui-grid.woff | |
16 | faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/script/ui-grid.woff |
0 | debian/manpages/* |
0 | #!/bin/sh | |
1 | ||
2 | set -e | |
3 | ||
4 | if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 1.0.22-0kali2; then | |
5 | rm -f /root/.faraday/config/config.xml | |
6 | fi | |
7 | if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 2.0.0-0kali1; then | |
8 | rm -rf /usr/share/python-faraday/shell | |
9 | rm -f /usr/share/python-faraday/external_libs | |
10 | fi | |
11 | if [ "$1" = "configure" ] && [ -n "$2" ]; then | |
12 | ./usr/lib/python3/dist-packages/faraday/debian-scripts/migrate-database | |
13 | fi | |
14 | ||
15 | #DEBHELPER# |
0 | [Unit] | |
1 | Description=Faraday Server | |
2 | Requires=postgresql.service | |
3 | After=postgresql.service | |
4 | Documentation="file:/usr/share/doc/faraday/README.Debian" | |
5 | ||
6 | [Service] | |
7 | Type=simple | |
8 | ExecStartPre=/bin/sh -c 'if ! su postgres -c "psql -lqt" | cut -d \| -f 1 | grep -qw faraday; then faraday-manage initdb; fi' | |
9 | ExecStart=faraday-server | |
10 | ||
11 | [Install] | |
12 | WantedBy=multi-user.target |
1 | 1 | |
2 | 2 | aux_file_path="$HOME/.faraday/password_changed.txt" |
3 | 3 | |
4 | systemctl start python-faraday | |
4 | systemctl start faraday | |
5 | 5 | sleep 3 |
6 | 6 | if [ ! -f $aux_file_path ]; then |
7 | 7 | touch $aux_file_path |
11 | 11 | else |
12 | 12 | faraday-client "$@" |
13 | 13 | fi |
14 | systemctl stop python-faraday | |
14 | systemctl stop faraday |
0 | debian/helper-script/* usr/bin | |
1 | debian/migrate-database usr/lib/python3/dist-packages/faraday/debian-scripts |
0 | usr/bin/faraday usr/bin/python-faraday | |
1 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.eot usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.eot | |
2 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.ttf usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.ttf | |
3 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.woff usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.woff | |
4 | usr/share/fonts-glyphicons/glyphicons-halflings-regular.woff2 usr/lib/python3/dist-packages/faraday/server/www/fonts/glyphicons-halflings-regular.woff2 | |
5 | usr/share/fonts/truetype/glyphicons/glyphicons-halflings-regular.svg usr/lib/python3/dist-packages/faraday/server/www/fonts/font-awesome/fontawesome-webfont.svg |
0 | # False-positive | |
1 | python-faraday: extra-license-file usr/lib/python3/dist-packages/faraday/server/www/scripts/licenses/providers/license.js | |
2 | # don't use Debian package: versions are too different | |
3 | python-faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/normalize.css please use libjs-normalize | |
4 | python-faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery-1.11.2.js please use libjs-jquery | |
5 | python-faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery-1.9.1.js please use libjs-jquery | |
6 | python-faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery.js please use libjs-jquery | |
7 | python-faraday: embedded-javascript-library usr/lib/python3/dist-packages/faraday/server/www/script/jquery.tablesorter.min.js please use libjs-jquery-tablesorter | |
8 | # fonts are not packaged, just install them in python-faraday | |
9 | python-faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/fonts/flexslider* | |
10 | python-faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/fonts/flexslider* | |
11 | python-faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/fonts/opensans* | |
12 | python-faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/fonts/opensans* | |
13 | python-faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/fonts/ubuntu* | |
14 | python-faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/fonts/ubuntu* | |
15 | python-faraday: font-in-non-font-package usr/lib/python3/dist-packages/faraday/server/www/script/ui-grid.woff | |
16 | python-faraday: font-outside-font-dir usr/lib/python3/dist-packages/faraday/server/www/script/ui-grid.woff | |
0 | # Transitional package | |
1 | python-faraday: empty-binary-package |
0 | #!/bin/sh | |
1 | ||
2 | set -e | |
3 | ||
4 | if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 1.0.22-0kali2; then | |
5 | rm -f /root/.faraday/config/config.xml | |
6 | fi | |
7 | if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 2.0.0-0kali1; then | |
8 | rm -rf /usr/share/python-faraday/shell | |
9 | rm -f /usr/share/python-faraday/external_libs | |
10 | fi | |
11 | if [ "$1" = "configure" ] && [ -n "$2" ]; then | |
12 | ./usr/lib/python3/dist-packages/faraday/debian-scripts/migrate-database | |
13 | fi | |
14 | ||
15 | #DEBHELPER# |
0 | [Unit] | |
1 | Description=python-faraday Server | |
2 | Requires=postgresql.service | |
3 | After=postgresql.service | |
4 | Documentation="file:/usr/share/doc/python-faraday/README.Debian" | |
5 | ||
6 | [Service] | |
7 | Type=simple | |
8 | ExecStartPre=/bin/sh -c 'if ! su postgres -c "psql -lqt" | cut -d \| -f 1 | grep -qw faraday; then faraday-manage initdb; fi' | |
9 | ExecStart=faraday-server | |
10 | ||
11 | [Install] | |
12 | WantedBy=multi-user.target |
9 | 9 | dh_auto_build |
10 | 10 | PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc build/html |
11 | 11 | |
12 | override_dh_auto_install: | |
13 | dh_auto_install | |
12 | override_dh_install: | |
13 | dh_install | |
14 | 14 | # remove unwanted files: .gitignore and useless README |
15 | rm debian/python-faraday/usr/lib/python3*/dist-packages/faraday/migrations/versions/.gitignore | |
16 | rm debian/python-faraday/usr/lib/python3*/dist-packages/faraday/server/www/scripts/config/.gitignore | |
17 | rm debian/python-faraday/usr/lib/python3*/dist-packages/faraday/migrations/README | |
15 | rm debian/faraday/usr/lib/python3*/dist-packages/faraday/migrations/versions/.gitignore | |
16 | rm debian/faraday/usr/lib/python3*/dist-packages/faraday/server/www/scripts/config/.gitignore | |
17 | rm debian/faraday/usr/lib/python3*/dist-packages/faraday/migrations/README | |
18 | 18 | |
19 | 19 | override_dh_link: |
20 | 20 | # remove the existing dirs to create symlinks instead |
21 | rm -r debian/python-faraday/usr/lib/python3*/dist-packages/faraday/server/www/fonts/font-awesome | |
21 | rm -r debian/faraday/usr/lib/python3/dist-packages/faraday/server/www/fonts/font-awesome | |
22 | 22 | dh_link |
23 | 23 | |
24 | 24 | override_dh_fixperms: |
25 | 25 | dh_fixperms |
26 | chmod 644 debian/python-faraday/usr/lib/python3*/dist-packages/faraday/server/www/images/* | |
27 | chmod 644 debian/python-faraday/usr/lib/python3*/dist-packages/faraday/server/www/script/angular-chart.css.map | |
28 | chmod 644 debian/python-faraday/usr/lib/python3*/dist-packages/faraday/server/www/scripts/statusReport/providers/logical.pegjs | |
29 | chmod 644 debian/python-faraday/usr/lib/python3*/dist-packages/faraday/server/www/fonts/flexslider* | |
26 | chmod 644 debian/faraday/usr/lib/python3/dist-packages/faraday/server/www/images/* | |
27 | chmod 644 debian/faraday/usr/lib/python3/dist-packages/faraday/server/www/script/angular-chart.css.map | |
28 | chmod 644 debian/faraday/usr/lib/python3/dist-packages/faraday/server/www/scripts/statusReport/providers/logical.pegjs | |
29 | chmod 644 debian/faraday/usr/lib/python3/dist-packages/faraday/server/www/fonts/flexslider* | |
30 | 30 | |
31 | 31 | override_dh_installchangelogs: |
32 | 32 | dh_installchangelogs RELEASE.md |