Compare commits
11 Commits
factory
...
fix-histor
| Author | SHA256 | Date | |
|---|---|---|---|
| 7019ab6226 | |||
| 0f379b6828 | |||
| 6fa63bbc40 | |||
| b274ee94dd | |||
| c1ccf755be | |||
| d99ea358a3 | |||
| 1ab261471a | |||
| e88c8a39ca | |||
|
|
e4b8e9d67b | ||
| 403c27302e | |||
| b482f983f4 |
@@ -1,8 +1,8 @@
|
||||
Index: Makefile.in
|
||||
Index: nmap-7.94/Makefile.in
|
||||
===================================================================
|
||||
--- Makefile.in.orig 2012-09-13 01:17:42.000000000 +0100
|
||||
+++ Makefile.in 2012-12-02 11:47:22.000000000 +0000
|
||||
@@ -253,9 +253,6 @@ my_distclean:
|
||||
--- nmap-7.94.orig/Makefile.in
|
||||
+++ nmap-7.94/Makefile.in
|
||||
@@ -316,9 +316,6 @@ distclean-%: clean-%
|
||||
install-nmap: $(TARGET)
|
||||
$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(nmapdatadir)
|
||||
$(INSTALL) -c -m 755 nmap $(DESTDIR)$(bindir)/nmap
|
||||
|
||||
BIN
nmap-7.93.tar.bz2
LFS
BIN
nmap-7.93.tar.bz2
LFS
Binary file not shown.
@@ -1,6 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iF0EABECAB0WIQRDbWarmnmEJf2g4/gBr58Da5NV0AUCYxE8MQAKCRABr58Da5NV
|
||||
0O5/AJ9gaOzfjyroorcnISssqQhiJFMRdgCglxpH5UUDSmAhgQk8IFSWPCNE0kM=
|
||||
=SS7E
|
||||
-----END PGP SIGNATURE-----
|
||||
BIN
nmap-7.95.tar.bz2
LFS
Normal file
BIN
nmap-7.95.tar.bz2
LFS
Normal file
Binary file not shown.
7
nmap-7.95.tar.bz2.asc
Normal file
7
nmap-7.95.tar.bz2.asc
Normal file
@@ -0,0 +1,7 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
iEYEABECAAYFAmYm5TgACgkQAa+fA2uTVdCtxwCfXFskzqO6NDzibYA6YM7pG+1d
|
||||
qkMAoKDtFwDLLrOgKeib9n71tYTzlUna
|
||||
=zWnm
|
||||
-----END PGP SIGNATURE-----
|
||||
121
nmap.changes
121
nmap.changes
@@ -1,3 +1,124 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 21 11:25:05 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Fix dependencies (this is a python 3 app, based on
|
||||
gobject-introspection):
|
||||
+ Add gobject-introspection BuildRequires: let the build add the
|
||||
relevant typelib() dependencies.
|
||||
+ Drop python-gtk Requires: python2 bindings for GTK.
|
||||
+ Replace python-gobject2 Requires with python3-gobject-Gdk:
|
||||
bring this to python3 and gi-bindings.
|
||||
- Drop gtk2-devel: not needed, as the bindings are GTK3 based.
|
||||
- Replace pcre-devel with pcre2-devel: this used to be pulled in by
|
||||
gtk2-devel, masking the fact that pcre-devel is not actually
|
||||
used.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 1 15:29:35 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- fix python-gobject2 dependency of zenmap - boo#1228750
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 17 16:26:10 UTC 2024 - Antonio Teixeira <antonio.teixeira@suse.com>
|
||||
|
||||
- Update to 7.95:
|
||||
* Integrated over 4,000 of your IPv4 OS fingerprints. Added 336 signatures,
|
||||
bringing the new total to 6,036. Additions include iOS 15 & 16, macOS
|
||||
Ventura & Monterey, Linux 6.1, OpenBSD 7.1, and lwIP 2.2
|
||||
* Integrated over 2,500 service/version detection fingerprints. The signature
|
||||
count went up 1.4% to 12,089, including 9 new softmatches. We now detect
|
||||
1,246 protocols, including new additions of grpc, mysqlx, essnet,
|
||||
remotemouse, and tuya.
|
||||
* Added four new scripts from the DINA community for querying industrial
|
||||
control systems
|
||||
* Improvements to OS detection fingerprint matching, including a syntax
|
||||
change for nmap-os-db that allows ranges within the TCP Options
|
||||
string. This leads to more concise and maintainable fingerprints. [Daniel
|
||||
Miller]
|
||||
* Improved the OS detection engine by using a new source port for each retry.
|
||||
Scans from systems such as Windows that do not send RST for unsolicited
|
||||
SYN|ACK responses were previously unable to get a response in subsequent
|
||||
tries. [Daniel Miller]
|
||||
* Several profile-guided optimizations of the port scan engine. [Daniel Miller]
|
||||
* Upgraded included libraries: Lua 5.4.6, libpcre2 10.43, zlib 1.3.1, libssh2
|
||||
1.11.0, liblinear 2.47
|
||||
* Zenmap and Ndiff now use setuptools, not distutils
|
||||
for packaging.
|
||||
* Fixed Ncat UDP server mode to not quit after EOF on
|
||||
stdin.
|
||||
* ssh-auth-methods will now print the pre-authentication banner text
|
||||
when available. Requires libssh2 1.11.0 or later. [Daniel Miller]
|
||||
* Fix a crash in Zenmap when changing a host comment.
|
||||
* Fix TLS 1.2 signature algorithms for EdDSA. [Daniel Roethlisberger]
|
||||
* Fix an out-of-bounds read which led to out-of-memory errors when
|
||||
duplicate addresses were used with --exclude
|
||||
* Fixed a memory leak in Nsock: compiled pcap filters were not freed.
|
||||
* Fixed a crash when using service name wildcards with -p, as in -p "http*"
|
||||
* Fixed DNS TXT record parsing bug which caused asn-query to fail in
|
||||
Nmap 7.80 and later. [David Fifield, Mike Pattrick]
|
||||
* Fixed packet size testing in KNX scripts [f0rw4rd]
|
||||
- Remove nmap-7.94-handle-unknown-service-name-in-p.patch
|
||||
- Add zenmap-fix-locale-install.patch
|
||||
* Fix locale files installation for zenmap
|
||||
- Use %pyproject macros for building and installing zenmap
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 14 18:39:17 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- fix segfault with -p (boo#1221403)
|
||||
add nmap-7.94-handle-unknown-service-name-in-p.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 25 06:49:07 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- Update License to 'SUSE-NonFree" until determined otherwise
|
||||
to please checks in openSUSE:Factory:NonFree (boo#1211571)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 28 14:20:08 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Fix build error and wrong requires. Lua version 5.4.4 is required.
|
||||
But something in opensuse lua package is broken. Set it disable for
|
||||
Leap too and not only for Tumbleweed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 22 08:15:30 UTC 2023 - Robert Frohl <rfrohl@suse.com>
|
||||
|
||||
- Update to 7.94:
|
||||
* Zenmap and Ndiff now use Python 3
|
||||
* Nmap now prints vendor names based on MAC address for MA-S (24-bit),
|
||||
MA-M (28-bit), and MA-L (36-bit) registrations instead of the fixed
|
||||
3-byte MAC prefix used previously for lookups.
|
||||
* Lots of profile-guided memory and processing improvements for Nmap,
|
||||
including OS fingerprint matching, probe matching and retransmission
|
||||
lookups for large hostgroups, and service name lookups.
|
||||
* Integrated many of the most-submitted IPv4 OS fingerprints for recent
|
||||
versions of Windows, iOS, macOS, Linux, and BSD.
|
||||
* Added the tftp-version script which requests a nonexistent file from a
|
||||
TFTP server and matches the error message to a database of known software.
|
||||
* Ncat can now accept "connections" from multiple UDP hosts in listen mode
|
||||
with the --keep-open option. This also enables --broker and --chat via UDP.
|
||||
* Upgrade included libraries: zlib 1.2.13, Lua 5.4.4, libpcap 1.10.4
|
||||
* UDP port scan (-sU) and version scan (-sV) now both use the same data source,
|
||||
nmap-service-probes, for data payloads. Previously, the nmap-payloads file
|
||||
was used for port scan.
|
||||
* Nmap's service scan (-sV) can now probe the UDP service behind a DTLS tunnel,
|
||||
the same as it already does for TCP services with SSL/TLS encryption.
|
||||
* Ncat in listen mode with --udp --ssl will use DTLS to secure incoming connections.
|
||||
* Handle Internationalized Domain Names (IDN) like Яндекс.рф on platforms
|
||||
where getaddrinfo supports the AI_IDN flag. [Daniel Miller]
|
||||
* Improved DNS domain name parsing to avoid recursion and enforce name length
|
||||
limits, avoiding a theoretical stack overflow issue with certain crafted
|
||||
DNS server responses.
|
||||
- Update License to 'LicenseRef-NPSL-0.95'
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 21 12:56:55 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- The package is licenced under the ""Nmap Public Source License",
|
||||
which is not OSI approved. Specify as "LicenseRef-NPSL-0.93".
|
||||
(boo#1211571)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 5 08:53:23 UTC 2022 - Robert Frohl <rfrohl@suse.com>
|
||||
|
||||
|
||||
112
nmap.spec
112
nmap.spec
@@ -1,7 +1,8 @@
|
||||
#
|
||||
# spec file for package nmap
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,19 +20,21 @@
|
||||
%define _buildshell /bin/bash
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%define with_system_lua 0%{?suse_version} >= 1330
|
||||
# don't build python2 subpackages (zenmap, ndiff) because of the python2 deprecation
|
||||
# in Tumbleweed and in SLE15-SP4
|
||||
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150300
|
||||
%define with_python2 0
|
||||
# Something in Lua from openSUSE is broken
|
||||
%if 0%{?suse_version}
|
||||
%define with_system_lua 0
|
||||
%else
|
||||
%define with_python2 1
|
||||
%define with_system_lua 1
|
||||
%endif
|
||||
%define pythons python3
|
||||
Name: nmap
|
||||
Version: 7.93
|
||||
Version: 7.95
|
||||
Release: 0
|
||||
Summary: Network exploration tool and security scanner
|
||||
License: GPL-2.0-or-later
|
||||
# nmap 7.94 is licensed under Nmap Public Source License Version 0.95
|
||||
# https://nmap.org/npsl/
|
||||
# https://bugzilla.opensuse.org/show_bug.cgi?id=1211571
|
||||
License: NonFree
|
||||
Group: Productivity/Networking/Diagnostic
|
||||
URL: https://nmap.org/
|
||||
Source: https://nmap.org/dist/nmap-%{version}.tar.bz2
|
||||
@@ -41,26 +44,25 @@ Patch1: nmap-7.40-desktop_files.patch
|
||||
Patch2: nmap-4.75-nostrip.patch
|
||||
Patch3: su-to-zenmap.patch
|
||||
Patch4: nmap-ncat-skip-network-tests.patch
|
||||
Patch5: zenmap-fix-locale-install.patch
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: gobject-introspection
|
||||
BuildRequires: libopenssl-3-devel
|
||||
BuildRequires: libpcap-devel
|
||||
BuildRequires: libssh2-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: zlib-devel
|
||||
%if %{with_python2}
|
||||
BuildRequires: python-devel
|
||||
%endif
|
||||
BuildRequires: pcre2-devel
|
||||
BuildRequires: python3-base
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: zlib-devel
|
||||
%if %{with_system_lua}
|
||||
%if 0%{?suse_version} > 1320
|
||||
BuildRequires: Lua(devel) = 5.3
|
||||
%else
|
||||
BuildRequires: pkgconfig(lua) >= 5.3
|
||||
%endif
|
||||
BuildRequires: pkgconfig(lua) >= 5.4.4
|
||||
%endif
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module build}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
|
||||
%description
|
||||
Nmap ("Network Mapper") is a utility for network exploration or
|
||||
@@ -77,7 +79,7 @@ and works fine against single hosts.
|
||||
Summary: A graphical front-end for Nmap
|
||||
Group: Productivity/Networking/Diagnostic
|
||||
Requires: %{name} = %{version}
|
||||
Requires: python-gtk
|
||||
Requires: python3-gobject-Gdk
|
||||
Obsoletes: %{name}-gtk < %{version}
|
||||
Provides: %{name}-gtk = %{version}-%{release}
|
||||
|
||||
@@ -117,27 +119,11 @@ generator for network stack stress tests, ARP poisoning, Denial of
|
||||
Service attacks, route tracing, etc.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if %{with_python2}
|
||||
%patch1 -p1
|
||||
%endif
|
||||
%patch2
|
||||
%if %{with_python2}
|
||||
%patch3
|
||||
%endif
|
||||
%patch4 -p1
|
||||
%autosetup -p1
|
||||
|
||||
# use system provided libraries
|
||||
rm -rf libpcap libpcre macosx mswin32
|
||||
|
||||
%if %{with_python2}
|
||||
#fix locale dir
|
||||
mv zenmap/share/zenmap/locale zenmap/share
|
||||
sed -i -e "s|^locale_dir =.*$|locale_dir = os.path.join('share','locale')|" \
|
||||
-e 's|join(self.install_data, data_dir)|join(self.install_data, "share")|' zenmap/setup.py
|
||||
sed -i 's|^LOCALE_DIR = .*|LOCALE_DIR = join(prefix, "share", "locale")|' zenmap/zenmapCore/Paths.py
|
||||
%endif
|
||||
|
||||
#fix pt_PT/pt zh/zh_CN locale
|
||||
sed -i '/ALL_LINGUAS =/s/pt_PT/pt/' Makefile.in
|
||||
sed -i '/ALL_LINGUAS =/s/zh/zh_CN/' Makefile.in
|
||||
@@ -156,27 +142,37 @@ export CXXFLAGS="%{optflags} -DOPENSSL_LOAD_CONF"
|
||||
--with-liblua=included \
|
||||
%endif
|
||||
--with-libpcre=%{_prefix} \
|
||||
%if %{with_python2} < 1
|
||||
--without-zenmap \
|
||||
--without-ndiff \
|
||||
%endif
|
||||
STRIP=/bin/true
|
||||
|
||||
|
||||
%make_build
|
||||
pushd zenmap
|
||||
%pyproject_wheel
|
||||
popd
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} deskdir="%{_datadir}/gnome/apps/Utilities/" install
|
||||
install -d "%{buildroot}%{_datadir}/pixmaps/"
|
||||
install -d "%{buildroot}%{_datadir}/applications/"
|
||||
|
||||
%if %{with_python2}
|
||||
rm "%{buildroot}%{_bindir}/uninstall_zenmap"
|
||||
rm "%{buildroot}%{_bindir}/uninstall_ndiff"
|
||||
ln -s ../zenmap/pixmaps/zenmap.png "%{buildroot}%{_datadir}/pixmaps/zenmap.png"
|
||||
|
||||
pushd zenmap
|
||||
%pyproject_install
|
||||
install -m 644 ../docs/zenmap.1 %{buildroot}%{_mandir}/man1/
|
||||
install -m 644 install_scripts/unix/*.desktop %{buildroot}%{_datadir}/applications/
|
||||
install -m 755 install_scripts/unix/su-to-zenmap.sh %{buildroot}%{_bindir}/su-to-zenmap.sh
|
||||
ln -s %{python_sitelib}/zenmapCore/data/pixmaps/zenmap.png %{buildroot}%{_datadir}/pixmaps/zenmap.png
|
||||
ln -sf zenmap %{buildroot}%{_bindir}/nmapfe
|
||||
ln -sf zenmap %{buildroot}%{_bindir}/xnmap
|
||||
popd
|
||||
|
||||
%find_lang zenmap
|
||||
|
||||
%suse_update_desktop_file zenmap System Network
|
||||
%suse_update_desktop_file zenmap-root System Network
|
||||
%find_lang zenmap
|
||||
touch -r %{buildroot}/%{python_sitelib}/zenmapCore/Paths.py %{buildroot}/%{python_sitelib}/zenmapCore/Paths.pyc
|
||||
%endif
|
||||
dos2unix %{buildroot}%{_datadir}/%{name}/nselib/data/oracle-sids
|
||||
|
||||
%fdupes -s %{buildroot}
|
||||
@@ -195,7 +191,7 @@ popd
|
||||
compiled_with=$("%{buildroot}%{_bindir}/nmap" -V | grep "Compiled with:" )
|
||||
# for the following tests, the leading space is relevant
|
||||
# check features built with system libraries
|
||||
[[ $compiled_with == *\ libpcre-* ]]
|
||||
[[ $compiled_with == *\ libpcre2-* ]]
|
||||
[[ $compiled_with == *\ libpcap-* ]]
|
||||
[[ $compiled_with == *\ openssl-* ]]
|
||||
# check features built with included sources
|
||||
@@ -204,8 +200,8 @@ compiled_with=$("%{buildroot}%{_bindir}/nmap" -V | grep "Compiled with:" )
|
||||
%if %{with_system_lua}
|
||||
[[ $compiled_with == *\ liblua-5.3* ]]
|
||||
%else
|
||||
# lua in nmap tarball identifies itself as "liblua-5.3.3"
|
||||
[[ $compiled_with == *\ nmap-liblua-5.3.* ]]
|
||||
# lua in nmap tarball identifies itself as "liblua-5.4.4"
|
||||
[[ $compiled_with == *\ nmap-liblua-5.4.* ]]
|
||||
%endif
|
||||
#
|
||||
|
||||
@@ -223,26 +219,34 @@ compiled_with=$("%{buildroot}%{_bindir}/nmap" -V | grep "Compiled with:" )
|
||||
%{_bindir}/nmap
|
||||
%{_datadir}/nmap
|
||||
|
||||
%if %{with_python2}
|
||||
%files -n zenmap -f zenmap.lang
|
||||
%{_bindir}/xnmap
|
||||
%{_bindir}/zenmap
|
||||
%{_bindir}/nmapfe
|
||||
%{python_sitelib}/zenmap-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitelib}/zenmapCore
|
||||
%{_bindir}/su-to-zenmap.sh
|
||||
%dir %{python_sitelib}/zenmapCore
|
||||
%{python_sitelib}/zenmapCore/*.py{c,}
|
||||
%{python_sitelib}/zenmapCore/__pycache__
|
||||
%dir %{python_sitelib}/zenmapCore/data
|
||||
%{python_sitelib}/zenmapCore/data/{config,docs,misc,pixmaps}
|
||||
%dir %{python_sitelib}/zenmapCore/data/locale
|
||||
%dir %{python_sitelib}/zenmapCore/data/locale/*
|
||||
%dir %{python_sitelib}/zenmapCore/data/locale/*/LC_MESSAGES
|
||||
%{python_sitelib}/zenmapCore/data/locale/xgettext-profile_editor.py
|
||||
%{python_sitelib}/zenmapCore/data/locale/__pycache__/*
|
||||
%{python_sitelib}/zenmapGUI
|
||||
%{python_sitelib}/radialnet
|
||||
%{_datadir}/applications/zenmap-root.desktop
|
||||
%{_datadir}/applications/zenmap.desktop
|
||||
%{python_sitelib}/zenmap-%{version}.dist-info
|
||||
%{_datadir}/pixmaps/zenmap.png
|
||||
%{_datadir}/zenmap
|
||||
%{_mandir}/man1/zenmap.1%{?ext_man}
|
||||
|
||||
%files -n ndiff
|
||||
%{_bindir}/ndiff
|
||||
%{_mandir}/man1/ndiff.1%{?ext_man}
|
||||
%{python_sitelib}/ndiff.*
|
||||
%endif
|
||||
%pycache_only %{python_sitelib}/__pycache__/ndiff.*
|
||||
|
||||
%files -n ncat
|
||||
%{_bindir}/ncat
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Index: zenmap/install_scripts/unix/su-to-zenmap.sh
|
||||
Index: nmap-7.94/zenmap/install_scripts/unix/su-to-zenmap.sh
|
||||
===================================================================
|
||||
--- zenmap/install_scripts/unix/su-to-zenmap.sh.orig 2012-08-19 21:11:06.000000000 +0100
|
||||
+++ zenmap/install_scripts/unix/su-to-zenmap.sh 2012-12-02 11:48:38.000000000 +0000
|
||||
@@ -13,8 +13,8 @@ if test "$euid" = "$privid"; then
|
||||
--- nmap-7.94.orig/zenmap/install_scripts/unix/su-to-zenmap.sh
|
||||
+++ nmap-7.94/zenmap/install_scripts/unix/su-to-zenmap.sh
|
||||
@@ -19,8 +19,8 @@ if test "$euid" = "$privid"; then
|
||||
$COMMAND
|
||||
else
|
||||
if test -z "$SU_TO_ROOT_X"; then
|
||||
@@ -13,7 +13,7 @@ Index: zenmap/install_scripts/unix/su-to-zenmap.sh
|
||||
if test "X$KDE_FULL_SESSION" = "Xtrue" ; then
|
||||
if which kdesu >/dev/null 2>&1 ; then
|
||||
SU_TO_ROOT_X=kdesu
|
||||
@@ -39,7 +39,7 @@ else
|
||||
@@ -45,7 +45,7 @@ else
|
||||
fi
|
||||
fi
|
||||
case $SU_TO_ROOT_X in
|
||||
|
||||
52
zenmap-fix-locale-install.patch
Normal file
52
zenmap-fix-locale-install.patch
Normal file
@@ -0,0 +1,52 @@
|
||||
From d217ab017e667d536b7d43b8920b8d5700753465 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Howarth <paul@city-fan.org>
|
||||
Date: Tue, 23 Apr 2024 14:31:18 +0100
|
||||
Subject: [PATCH] Fix failure to find zenmap translations
|
||||
|
||||
Installation of translations hasn't worked since the conversion to
|
||||
Python 3 (#2088), and was broken in a different way in the migration
|
||||
from setup.py to pyproject.toml since package data files are not found
|
||||
deep down in directory hierarachies.
|
||||
|
||||
This should address that (fixes #2718).
|
||||
---
|
||||
zenmap/MANIFEST.in | 1 +
|
||||
zenmap/pyproject.toml | 6 +++---
|
||||
2 files changed, 4 insertions(+), 3 deletions(-)
|
||||
create mode 100644 zenmap/MANIFEST.in
|
||||
|
||||
diff --git a/zenmap/MANIFEST.in b/zenmap/MANIFEST.in
|
||||
new file mode 100644
|
||||
index 0000000000..3fc6b0d2ef
|
||||
--- /dev/null
|
||||
+++ b/zenmap/MANIFEST.in
|
||||
@@ -0,0 +1 @@
|
||||
+include zenmapCore/data/locale/*/LC_MESSAGES/*.mo
|
||||
diff --git a/zenmap/pyproject.toml b/zenmap/pyproject.toml
|
||||
index 0a2e3f5d78..842f314a5a 100644
|
||||
--- a/zenmap/pyproject.toml
|
||||
+++ b/zenmap/pyproject.toml
|
||||
@@ -23,12 +23,13 @@ Changelog = "https://nmap.org/changelog"
|
||||
[project.gui-scripts]
|
||||
zenmap = "zenmapGUI.App:run"
|
||||
|
||||
-[tool.setuptools]
|
||||
-packages = [
|
||||
+[tool.setuptools.packages.find]
|
||||
+include = [
|
||||
"zenmapCore",
|
||||
"zenmapCore.data.config",
|
||||
"zenmapCore.data.docs",
|
||||
"zenmapCore.data.locale",
|
||||
+"zenmapCore.data.locale.*.LC_MESSAGES",
|
||||
"zenmapCore.data.misc",
|
||||
"zenmapCore.data.pixmaps",
|
||||
"zenmapCore.data.pixmaps.radialnet",
|
||||
@@ -47,7 +48,6 @@ version = {attr = "zenmapCore.Version.VERSION"}
|
||||
[tool.setuptools.package-data]
|
||||
"zenmapCore.data.pixmaps" = ["*.gif", "*.png"]
|
||||
"zenmapCore.data.pixmaps.radialnet" = ["*.png"]
|
||||
-"zenmapCore.data.locale" = ["*.mo"]
|
||||
"zenmapCore.data.config" = ["zenmap.conf", "scan_profile.usp", "zenmap_version"]
|
||||
"zenmapCore.data.docs" = ["*.html"]
|
||||
"zenmapCore.data.misc" = ["*.xml"]
|
||||
Reference in New Issue
Block a user