-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Gerard Hickey <[email protected]>
Signed-off-by: Gerard Hickey <[email protected]>
Signed-off-by: Gerard Hickey <[email protected]>
There was a problem hiding this 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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
package/debian/control
Outdated
@@ -0,0 +1,10 @@ | |||
Package: meshchat | |||
Version: | |||
Depends: lua5.4 |
There was a problem hiding this comment.
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
Signed-off-by: Gerard Hickey <[email protected]>
Signed-off-by: Gerard Hickey <[email protected]>
Signed-off-by: Gerard Hickey <[email protected]>
This PR adds Debian packaging to MeshChat and removes the
luci
libraries so that MeshChat can function on a Linux OS.Closes #6