~earboxer/apkbrowser-gemini

bbb09ad1c777215d0cbdebf1c1a40e4adf235816 — Zach DeCook 3 months ago bae3389
Project: Add readme and license
3 files changed, 43 insertions(+), 0 deletions(-)

A LICENSE
A README
A index.gmi.example
A LICENSE => LICENSE +22 -0
@@ 0,0 1,22 @@
The MIT License (MIT)

Copyright (c) 2022 Zach DeCook

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


A README => README +19 -0
@@ 0,0 1,19 @@
# Gemini frontend for apkbrowser

=> https://gitlab.com/postmarketOS/apkbrowser apkbrowser creates a SQLite database of files and package information from an APKINDEX.
=> https://wiki.alpinelinux.org/wiki/Package_management#Packages_and_Repositories (apk files are used in Alpine Linux, and apk is the tool used to install those files)

This project is an alternative frontend for apkbrowser to provide a gemini frontend.

## Dependencies
=> https://sr.ht/~sircmpwn/gmnisrv/ A gemini server with CGI capabilities
* POSIX shell
* sqlite3
* date
* numfmt

## Setup
* Enable CGI in your gemini server and set this directory as the root directory for this site
* Copy apkbrowser database "aports-master.db" to db/master.db
* Copy index.gmi.example to index.gmi or customize if desired
* Customize config.sh

A index.gmi.example => index.gmi.example +2 -0
@@ 0,0 1,2 @@
#!/bin/sh
printf "30 /packages\r\n"