Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debian packaging to pipeline #50

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Add Debian packaging to pipeline #50

wants to merge 6 commits into from

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 hickey self-assigned this Apr 6, 2024
@hickey hickey added the enhancement New feature or request label Apr 6, 2024
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 :)

@@ -4,19 +4,42 @@
# 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?

@@ -62,6 +64,55 @@ function capture(cmd)
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

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
2 participants