On Tue, Jul 02, 2019 at 07:02:04PM +0200, Landry Breuil wrote: > On Tue, Jul 02, 2019 at 12:21:50PM -0400, Daniel Jakots wrote: > > I think it would be indeed nice to provide a way for people to easily > > see the content of the ports tree without having to take the sqlite3 db > > out from sqlports.tgz. > > > > Regarding the JSON, I think only one, with as much info as > > possible with avoiding bloat, should be provided. And they should have > > the field names ;) > > as for repology, in the meantime i've hacked my way to extract > ports-INDEX from portslist package in > http://ftp.fr.openbsd.org/pub/ports-INDEX to hopefully fix > https://github.com/repology/repology/issues/149, because right now it's > showing misleading info. > > Landry >
I also use a similar method at the moment and wrote the shellscript below for my own use: #!/bin/sh # fetch generated ports INDEX from databases/sqlports (portslist) from # packages snapshots. mkdir -p dl cd dl || exit 1 pubkey="/etc/signify/openbsd-65-pkg.pub" url="$(cat /etc/installurl)/snapshots/packages/$(uname -m)/" indextxt="${url}index.txt" ftp "${indextxt}" portslistpkg=$(grep -m 1 -o '\(portslist-[0-9p\.]*\.tgz\)$' < index.txt) if test x"${portslistpkg}" = x""; then echo "cannot find portslist package in index.txt" >&2 exit 1 fi portslist="${url}${portslistpkg}" ftp "${portslist}" # verify ftp "${url}SHA256.sig" if ! signify -C -p "${pubkey}" -x SHA256.sig "${portslistpkg}"; then exit 1 fi tar -xzvf "${portslistpkg}" share/ports-INDEX cp -v share/ports-INDEX ../INDEX -- Kind regards, Hiltjo