opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: a07dc53cb947eeded9336562d61ae159b78e2729
Parent: b87c21731a552d996ba12f72d8beea7357dced5a
Author: Randy Palamar
Date:   Fri,  3 Nov 2023 23:21:58 -0600

add mblaze from oasis bumped to latest

Diffstat:
M.gitmodules | 3+++
Mpkg/net/gen.lua | 1+
Apkg/net/mblaze/gen.lua | 101+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/net/mblaze/src | 1+
Apkg/net/mblaze/ver | 1+
Msets.lua | 1+
6 files changed, 108 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -52,6 +52,9 @@ [submodule "pkg/libs/zlib/src"] path = pkg/libs/zlib/src url = https://github.com/madler/zlib.git +[submodule "pkg/net/mblaze/src"] + path = pkg/net/mblaze/src + url = https://github.com/leahneukirchen/mblaze.git [submodule "pkg/net/sfeed/src"] path = pkg/net/sfeed/src url = git://git.codemadness.org/sfeed diff --git a/pkg/net/gen.lua b/pkg/net/gen.lua @@ -1,2 +1,3 @@ subgen('curl') +subgen('mblaze') subgen('sfeed') diff --git a/pkg/net/mblaze/gen.lua b/pkg/net/mblaze/gen.lua @@ -0,0 +1,101 @@ +cflags({ + '-std=c99', '-Wall', '-Wextra', '-Wpedantic', '-Wno-switch', + '-D _XOPEN_SOURCE=700', +}) + +lib('libcommon.a', { + 'blaze822.c', + 'filter.c', + 'mymemmem.c', + 'mystrverscmp.c', + 'mytimegm.c', + 'pipeto.c', + 'rfc2045.c', + 'rfc2047.c', + 'rfc2231.c', + 'safe_u8putstr.c', + 'seq.c', + 'slurp.c', + 'squeeze_slash.c', +}) + +local tools = { + 'maddr', + 'magrep', + 'mdate', + 'mdeliver', + 'mdirs', + 'mexport', + 'mflag', + 'mflow', + 'mgenmid', + 'mhdr', + 'minc', + 'mlist', + 'mmime', + 'mpick', + 'mscan', + 'msed', + 'mseq', + 'mshow', + 'msort', + 'mthread', +} +for _, tool in ipairs(tools) do + exe(tool, {tool..'.c', 'libcommon.a'}) + file('bin/'..tool, '755', '$outdir/'..tool) +end + +build('awk', '$outdir/museragent', {'$srcdir/VERSION'}, { + expr=[['{print "#!/bin/sh"; print "exec printf \"User-Agent: mblaze/%s\\n\" \"" $$0 "\""}']], +}) + +local scripts = { + 'mcolor', + 'mcom', + 'mless', + 'mmkdir', + 'mquote', +} +for _, script in ipairs(scripts) do + file('bin/'..script, '755', '$srcdir/'..script) +end +file('bin/museragent', '755', '$outdir/museragent') +sym('bin/mbnc', 'mcom') +sym('bin/mfwd', 'mcom') +sym('bin/mrep', 'mcom') +sym('bin/mrefile', 'mdeliver') + +man({ + 'man/maddr.1', + 'man/magrep.1', + 'man/mblaze-profile.5', + 'man/mblaze.7', + 'man/mbnc.1', + 'man/mcom.1', + 'man/mdeliver.1', + 'man/mdirs.1', + 'man/mexport.1', + 'man/mflag.1', + 'man/mflow.1', + 'man/mfwd.1', + 'man/mgenmid.1', + 'man/mhdr.1', + 'man/minc.1', + 'man/mless.1', + 'man/mlist.1', + 'man/mmime.1', + 'man/mmkdir.1', + 'man/mmsg.7', + 'man/mpick.1', + 'man/mrefile.1', + 'man/mrep.1', + 'man/mscan.1', + 'man/msed.1', + 'man/mseq.1', + 'man/mshow.1', + 'man/msort.1', + 'man/mthread.1', +}) + +fetch('git') diff --git a/pkg/net/mblaze/src b/pkg/net/mblaze/src @@ -0,0 +1 @@ +Subproject commit 5310c4ea38a99e99c2c6c944e651bbc8e72a3d92 diff --git a/pkg/net/mblaze/ver b/pkg/net/mblaze/ver @@ -0,0 +1 @@ +1.2-25-g5310c4e r0 diff --git a/sets.lua b/sets.lua @@ -7,6 +7,7 @@ S.bin = { 'hyx', 'man-pages-posix', 'mandoc', + 'mblaze', 'md4c', 'openbsd', 'pigz',