-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathcom.github.babluboy.nutty.yaml
executable file
·153 lines (152 loc) · 6.02 KB
/
com.github.babluboy.nutty.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
app-id: com.github.babluboy.nutty
runtime: org.gnome.Platform
runtime-version: "46"
sdk: org.gnome.Sdk
command: com.github.babluboy.nutty
finish-args:
- --share=ipc
- --device=dri
- --socket=wayland
- --socket=fallback-x11 # Uses X11 display server protocol if Wayland is not available.This is the recommended approach given in the flatpak-documentation.
- --share=network # # To have access the network of host system to run tools like speedtest,traceroute,nmap,port-scan,..etc
- --filesystem=xdg-download # To export the CSV spreadsheet file from Devices Tab of Nutty to the Downloads directory of the host OS.
- --persist=var/lib/nutty
- --talk-name=org.freedesktop.Notifications # To communicate with the notification service provided by the Freedesktop.org specifications via D-bus service.
modules:
- name: granite
buildsystem: meson
sources:
- type: archive
url: https://github.com/elementary/granite/archive/refs/tags/6.1.0.tar.gz # granite version>=7.0 is ported to support gtk4, but Nutty still uses gtk3.So using older version of granite before V7.0 release.
sha256: 0b69ffdec1d0b61704d65bb82f8415b61f733b21eef3c7c6844f30b50791e6e9
- name: net-tools
buildsystem: simple
build-commands:
- pwd
- ls
- yes n | make
- sed -i 's|/usr/share/man|/app/share/man|g' man/Makefile
- mkdir -p /app/share/man/man5 /app/share/man/man8
- make install BINDIR=/app/bin SBINDIR=/app/sbin MANDIR=/app/share/man
sources:
- type: archive
url: https://sourceforge.net/projects/net-tools/files/net-tools-2.10.tar.xz
sha256: b262435a5241e89bfa51c3cabd5133753952f7a7b7b93f32e08cb9d96f580d69
# nethogs depends on pcap library `libpcap`.But this library is not present in GNOME SDK/Runtime.(You can check by opening an interactive bash shell within the runtime/sdk environment using `flatpak run --command=sh <runtime/sdk>` command).So built libpcap from source.
- name: libpcap
buildsystem: autotools
build-commands:
- ./configure --prefix=/app
- make
- make install
sources:
- type: archive
url: http://www.tcpdump.org/release/libpcap-1.10.1.tar.gz
sha256: ed285f4accaf05344f90975757b3dbfe772ba41d1c401c2648b7fa45b711bdd4
- name: nethogs
buildsystem: simple
build-commands:
- PKG_CONFIG_PATH="/app/lib/pkgconfig:$PKG_CONFIG_PATH" LD_LIBRARY_PATH="/app/lib:$LD_LIBRARY_PATH" LDFLAGS="-L/app/lib -ltinfo -lncurses" make
- PKG_CONFIG_PATH="/app/lib/pkgconfig:$PKG_CONFIG_PATH" LD_LIBRARY_PATH="/app/lib:$LD_LIBRARY_PATH" make install PREFIX=/app
sources:
- type: archive
url: https://github.com/raboof/nethogs/archive/v0.8.7.tar.gz
sha256: 957d6afcc220dfbba44c819162f44818051c5b4fb793c47ba98294393986617d
- name: nmap
buildsystem: simple
build-commands:
- ./configure --prefix=/app
- make
- make install
sources:
- type: archive
url: https://nmap.org/dist/nmap-7.93.tar.bz2
sha256: 55bcfe4793e25acc96ba4274d8c4228db550b8e8efd72004b38ec55a2dd16651
- name: traceroute
buildsystem: simple
build-commands:
- sed -i 's|/usr/local|/app|g' Makefile
- sed -i 's|/usr|/app|g' Makefile
- sed -i 's|/usr|/app|g' default.rules
- grep -rIl '/usr/local' . | xargs sed -i 's|/usr/local|/app|g'
- grep -rIl '/usr' . | xargs sed -i 's|/usr|/app|g'
- make
- make install BINDIR=/app/bin
sources:
- type: archive
url: https://sourceforge.net/projects/traceroute/files/traceroute/traceroute-2.1.3/traceroute-2.1.3.tar.gz
sha256: 05ebc7aba28a9100f9bbae54ceecbf75c82ccf46bdfce8b5d64806459a7e0412
- name: vnstat
buildsystem: autotools
build-commands:
- ./configure --prefix=/app
- make
- make install
sources:
- type: archive
url: https://humdi.net/vnstat/vnstat-2.9.tar.gz
sha256: 11a21475dea91706500aba7c63e24126703fd01f13b1f3acdf92baa5aead9dc7
- name: wireless-tools
buildsystem: simple
build-commands:
- pwd
- ls
- make -C wireless_tools
- make -C wireless_tools install PREFIX=/app
sources:
- type: git
url: https://github.com/HewlettPackard/wireless-tools.git
tag: v29
- name: iproute2
buildsystem: simple
build-commands:
- sed -i 's|/sbin|/app/bin|g' Makefile
- sed -i 's|/usr/include/iproute2|/app/include/iproute2|g' Makefile
- sed -i 's|/etc/iproute2|/app/etc/iproute2|g' Makefile
- sed -i 's|/var/lib/arpd|/app/var/lib/arpd|g' Makefile
- sed -i 's|/usr|/app|g' Makefile
- sed -i 's|/usr|/app|g' tc/Makefile
- sed -i 's|/usr|/app|g' ip/Makefile
- make
- make install SBINDIR=/app/bin INCLUDEDIR=/app/include/iproute2 ETCDIR=/app/etc/iproute2 LIBDIR=/app/var/lib/arpd
sources:
- type: archive
url: https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-5.18.0.tar.xz
sha256: 5ba3d464d51c8c283550d507ffac3d10f7aec587b7c66b0ccb6950643646389e
- name: pciutils
buildsystem: simple
build-commands:
- make
- make install PREFIX=/app
sources:
- type: archive
url: https://github.com/pciutils/pciutils/archive/v3.8.0.tar.gz
sha256: 71189a1297e39d2638dd5691a102d2aecd7db8083e6de376c115e8996eeda027
# The `lshw` executable is also not present in the Gnome runtime but it is needed by Nutty as specified in `nutty_cli_script.sh` shell script.So building lshw from source.
- name: lshw
buildsystem: simple
build-commands:
- make
- make install PREFIX=/app
sources:
- type: archive
url: https://www.ezix.org/software/files/lshw-B.02.19.2.tar.gz
sha256: 9bb347ac87142339a366a1759ac845e3dbb337ec000aa1b99b50ac6758a80f80
- name: nutty
buildsystem: meson
build-commands:
- pwd
- ls
sources:
- type: dir
path: "."
build-options: {}
cleanup:
- /include
- /lib/pkgconfig
- /share/man
- /share/pkgconfig
- /share/aclocal
- /share/doc
- /share/gtk-doc
- /share/locale