Init debian conf for gonets

This commit is contained in:
commit db4069366e
23 changed files with 217 additions and 0 deletions

View file

@ -0,0 +1,5 @@
gonets (0.3-1) UNRELEASED; urgency=medium
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- GOSSYS LLC <devteam@gossys.dev> Thu, 19 Jun 2025 13:24:42 +0500

View file

@ -0,0 +1,4 @@
./FRONT
./SRV
./gonets.desktop
./SRV/gonets.service

View file

@ -0,0 +1,2 @@
# Triggers added by dh_makeshlibs/13.11.4
activate-noawait ldconfig

View file

@ -0,0 +1 @@
3878e4305358bd87c0fda7534baec517ddb96243 497acb71483e49e5c6820a60394fa70da8b49398 892d28f9449dada7674416c965338f6c6cddb3fa 9d428a964e31355a90983ea7e0ce7266e2d69e30 9ec74aa1fd827d5bbd70eb3f2597dbf26bd0c931 b96c8bec16c0b33566c107879db80697ca5fa989 ba3e267a44b617036d6133f37a2473f7b55eb284 fdb72a9ce3a59836b89409b1282f45cacd6bae33

View file

@ -0,0 +1,12 @@
Package: gonets-dbgsym
Source: gonets
Version: 0.3-1
Auto-Built-Package: debug-symbols
Architecture: amd64
Maintainer: GOSSYS LLC <devteam@gossys.dev>
Installed-Size: 1528
Depends: gonets (= 0.3-1)
Section: debug
Priority: optional
Description: debug symbols for gonets
Build-Ids: 3878e4305358bd87c0fda7534baec517ddb96243 497acb71483e49e5c6820a60394fa70da8b49398 892d28f9449dada7674416c965338f6c6cddb3fa 9d428a964e31355a90983ea7e0ce7266e2d69e30 9ec74aa1fd827d5bbd70eb3f2597dbf26bd0c931 b96c8bec16c0b33566c107879db80697ca5fa989 ba3e267a44b617036d6133f37a2473f7b55eb284 fdb72a9ce3a59836b89409b1282f45cacd6bae33

View file

@ -0,0 +1,8 @@
284a75f82e3cf27967163fc675d312ec usr/lib/debug/.build-id/38/78e4305358bd87c0fda7534baec517ddb96243.debug
c2fc99eb9718f44af1320338d71c9c1c usr/lib/debug/.build-id/49/7acb71483e49e5c6820a60394fa70da8b49398.debug
4e6991c788023bbe494258cbab3241dc usr/lib/debug/.build-id/89/2d28f9449dada7674416c965338f6c6cddb3fa.debug
ae27ea3b6a77a1b458f5883c46afc8ff usr/lib/debug/.build-id/9d/428a964e31355a90983ea7e0ce7266e2d69e30.debug
988791fd3b608eb7e6a4f9aab5517c1e usr/lib/debug/.build-id/9e/c74aa1fd827d5bbd70eb3f2597dbf26bd0c931.debug
65f498b795a96604f8ba6acd424b9ca8 usr/lib/debug/.build-id/b9/6c8bec16c0b33566c107879db80697ca5fa989.debug
b60f93c78e1e6692e31dc06960a36be7 usr/lib/debug/.build-id/ba/3e267a44b617036d6133f37a2473f7b55eb284.debug
f73aa8e682610ea334968e981f009bfe usr/lib/debug/.build-id/fd/b72a9ce3a59836b89409b1282f45cacd6bae33.debug

View file

@ -0,0 +1 @@
gonets

5
changelog Normal file
View file

@ -0,0 +1,5 @@
gonets (0.3-1) UNRELEASED; urgency=medium
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- GOSSYS LLC <devteam@gossys.dev> Thu, 19 Jun 2025 13:24:42 +0500

21
control Normal file
View file

@ -0,0 +1,21 @@
Source: gonets
Section: unknown
Priority: optional
Maintainer: GOSSYS LLC <devteam@gossys.dev>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
Standards-Version: 4.6.2
Homepage: dev.gossys.dev
#Vcs-Browser: https://salsa.debian.org/debian/gonets
#Vcs-Git: https://salsa.debian.org/debian/gonets.git
Package: gonets
Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
pip,
nbtscan,
python3.11-dev
Description: Приложение администрирования Linux.

47
copyright Normal file
View file

@ -0,0 +1,47 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: <url://example.com>
Upstream-Name: gonets
Upstream-Contact: <preferred name and address to reach the upstream project>
Files:
*
Copyright:
<years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
.
<Including paragraphs>
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files:
debian/*
Copyright:
2025 GOSSYS LLC <devteam@gossys.dev>
License: GPL-2+
This package 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 2 of the License, or
(at your option) any later version.
.
This package 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, see <https://www.gnu.org/licenses/>
Comment:
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
#
# If you need, there are some extra license texts available in two places:
# /usr/share/debhelper/dh_make/licenses/
# /usr/share/common-licenses/

4
install Normal file
View file

@ -0,0 +1,4 @@
FRONT /usr/share/gonets/
SRV /usr/share/gonets/
gonets.desktop /usr/share/applications/
SRV/gonets.service /etc/systemd/system/

74
postinst Normal file
View file

@ -0,0 +1,74 @@
#!/bin/bash
set -e
mkdir -p /etc/gonets/certs
pip3 install \
pydbus==0.6.0 \
fastapi[standard]==0.115.11 \
pydantic==2.10.3 \
sdbus-networkmanager==2.0.0 \
uvicorn==0.32.1 \
websockets==14.1 \
uuid==1.30 \
scapy==2.6.1 \
netifaces==0.11.0 \
netaddr==1.3.0 \
dbus-python==1.3.2 \
python-pam==2.0.2 \
six==1.17.0 \
python-jose[cryptography]==3.4.0 \
storage==0.0.4.3 \
passlib[bcrypt]==1.7.4 \
python-multipart==0.0.20 \
bcrypt==4.3.0 \
mac-vendor-lookup==0.1.12 \
pywifi==1.1.12 \
manuf==1.1.5 \
--break-system-packages || {
echo "Ошибка: Не удалось установить Python-зависимости" >&2
exit 1
}
openssl genrsa -out /etc/gonets/certs/gonets.key 2048
openssl req -new -key /etc/gonets/certs/gonets.key -out /etc/gonets/certs/gonets.csr -subj "/"
openssl x509 -req -days 365 -in /etc/gonets/certs/gonets.csr -signkey /etc/gonets/certs/gonets.key -out /etc/gonets/certs/gonets.crt
chmod 600 /etc/gonets/certs/gonets.key
chmod 644 /etc/gonets/certs/gonets.crt
if [ -d /usr/share/gonets/SRV ]; then
cd /usr/share/gonets/SRV
python3 config/init_config.py
else
echo "Ошибка: Директория /usr/share/gonets/SRV не существует" >&2
exit 1
fi
if [ -f /usr/share/gonets/FRONT/BUILD/chrome-sandbox ]; then
chown root /usr/share/gonets/FRONT/BUILD/chrome-sandbox
chmod 4755 /usr/share/gonets/FRONT/BUILD/chrome-sandbox
else
echo "Ошибка: Файл /usr/share/gonets/FRONT/BUILD/chrome-sandbox не существует" >&2
exit 1
fi
if [ -f /usr/share/gonets/FRONT/BUILD/gonets ]; then
chmod +x /usr/share/gonets/FRONT/BUILD/gonets
else
echo "Ошибка: Файл /usr/share/gonets/FRONT/BUILD/gonets не существует" >&2
exit 1
fi
if [ -f /usr/share/applications/gonets.desktop ]; then
chmod +x /usr/share/applications/gonets.desktop
else
echo "Ошибка: Файл /usr/share/applications/gonets.desktop не существует" >&2
exit 1
fi
systemctl daemon-reload
systemctl enable gonets.service
systemctl restart gonets.service
systemctl start gonets.service
exit 0

4
postrm Normal file
View file

@ -0,0 +1,4 @@
rm -rf /etc/gonets
rm -rf /usr/share/gonets
rm -rf /usr/share/applications/gonets.desktop
rm -rf /etc/systemd/system/gonets.service

29
rules Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# See FEATURE AREAS in dpkg-buildflags(1).
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# See ENVIRONMENT in dpkg-buildflags(1).
# Package maintainers to append CFLAGS.
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# Package maintainers to append LDFLAGS.
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
override_dh_dwz:
# dh_make generated override targets.
# This is an example for Cmake (see <https://bugs.debian.org/641051>).
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)