Skip to content

Conversation

@hickey
Copy link
Owner

@hickey hickey commented Apr 6, 2024

This PR adds Debian packaging to MeshChat and removes the luci libraries so that MeshChat can function on a Linux OS.

Closes #6

hickey added 2 commits April 6, 2024 18:46
Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
@hickey hickey self-assigned this Apr 6, 2024
@hickey hickey added the enhancement New feature or request label Apr 6, 2024
Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
Copy link
Collaborator

@gerner gerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm excited to be able to run meshchat locally :)

#!/bin/bash

# This script runs from the top of the project directory and
# creates the filesystem image for the MeshChat API package.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this still an accurate comment? it seems like the API package is dead and you're reusing the packaging scripts to build the debian package?

return output
end

-- TODO remove AAMM specific parts
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is AAMM?

all of this stuff is for portability openwrt and debian?

@@ -0,0 +1,10 @@
Package: meshchat
Version:
Depends: lua5.4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl, gzip, some flavor of dnsutils (for nslookup) are also required. That's just from looking for shellouts:

$ ag 'capture' | less
www/jquery-2.2.0.min.js:2:!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):fun>
meshchatlib.lua:50:--- Execute a command and capture the output.
meshchatlib.lua:55:function capture(cmd)
meshchatlib.lua:131:    local output = capture("md5sum " .. file:gsub(" ", "\\ ")):match("^(%S+)%s")
meshchatlib.lua:174:    return capture("echo " ..  os.time() .. math.random(99999) .. " | md5sum"):sub(1, 8)
meshchatlib.lua:216:    local lines = capture("df -k " .. local_files_dir)
meshchatlib.lua:242:    return capture("nslookup " .. hostname):match("Address 1:%s*([%d%.]+)")
$ ag 'popen' | less
support/meshchatsync:213:            local f = io.popen("/usr/bin/curl --retry 0 --connect-timeout " .. connect_timeout .. " --speed-ti>
support/meshchatsync:236:            f = io.popen("/usr/bin/curl --retry 0 --connect-timeout " .. connect_timeout .. " --speed-time " .>
support/meshchatsync:255:            f = io.popen("/usr/bin/curl --retry 0 --connect-timeout " .. connect_timeout .. " --speed-time " .>
support/meshchatsync:266:            f = io.popen("/usr/bin/curl --retry 0 --connect-timeout " .. connect_timeout .. " --speed-time " .>
meshchatlib.lua:56:    local f = io.popen(cmd)
meshchat:218:        output = io.popen("gzip", "w")
meshchat:727:        local f = io.popen("/usr/bin/curl --retry 0 --connect-timeout " .. connect_timeout .. " --speed-time " .. speed_ti

hickey added 3 commits May 5, 2024 15:14
Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
Signed-off-by: Gerard Hickey <hickey@kinetic-compute.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Debian packaging to build and release pipelines

3 participants