From 89fa04295e83a5fc4a13f6c966dca361ac538b30 Mon Sep 17 00:00:00 2001 From: psykose Date: Wed, 5 Jul 2023 18:50:42 +0000 Subject: [PATCH] nitter: remove --- nitter/APKBUILD | 54 ------------------------------------ nitter/downgrade-zippy.patch | 13 --------- nitter/nitter.initd | 22 --------------- nitter/nitter.pre-install | 9 ------ 4 files changed, 98 deletions(-) delete mode 100644 nitter/APKBUILD delete mode 100644 nitter/downgrade-zippy.patch delete mode 100644 nitter/nitter.initd delete mode 100644 nitter/nitter.pre-install diff --git a/nitter/APKBUILD b/nitter/APKBUILD deleted file mode 100644 index 54a109c..0000000 --- a/nitter/APKBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Maintainer: psykose -pkgname=nitter -pkgver=0_git20230701 -_gitrev=dcf73354ff173c0407c62f84ea3bb90a130303c1 -pkgrel=0 -pkgdesc="Alternative Twitter front-end" -url="https://github.com/zedeus/nitter/" -arch="aarch64 x86_64" -license="AGPL-3.0-only" -depends="libssl3 libcrypto3 pcre" -makedepends="libsass-dev nimble pcre-dev" -pkgusers="nitter" -pkggroups="nitter" -install="$pkgname.pre-install" -subpackages="$pkgname-openrc" -source="https://github.com/zedeus/nitter/archive/$_gitrev/nitter-$_gitrev.tar.gz - downgrade-zippy.patch - nitter.initd - " -builddir="$srcdir/$pkgname-$_gitrev" -options="!check" - -prepare() { - default_prepare - git init -q - git config user.name a - git config user.email a.a - git add . - git commit -m init -} - -build() { - nimble -y build -d:release - nimble -y scss - nimble -y md -} - -package() { - depends="$depends redis" - - install -Dm755 nitter -t "$pkgdir"/usr/bin - install -Dm755 "$srcdir"/nitter.initd "$pkgdir"/etc/init.d/nitter - - install -Dm640 nitter.example.conf -t"$pkgdir"/var/lib/nitter - - cp -a public "$pkgdir"/var/lib/nitter - chown -R nitter:nitter "$pkgdir"/var/lib/nitter -} - -sha512sums=" -81cb5267f3d978c7cb2bc07d60bd8aca0caa94c98a3bd55609dbfd3acd79949948345e5e9aa5b0fd9decea2239cd8300d872a74cede2c644746bca83c26c3546 nitter-dcf73354ff173c0407c62f84ea3bb90a130303c1.tar.gz -63370212985d3ef5d27f9604b75690cc4939fd66386c097d9ea3c25da57034d86a71e04f79716683aa4f8a4fe88dbebaf2ace62395f95753d7a8b622ac754d88 downgrade-zippy.patch -7382562f40e50d13ba16adf17eb86b58b365474934bb33cbddf9117d4cc7ff12da9186edb01fd3c13b4efd91e35e57f368f056b376d03b4d5c6a191971a07ace nitter.initd -" diff --git a/nitter/downgrade-zippy.patch b/nitter/downgrade-zippy.patch deleted file mode 100644 index a9fd2b3..0000000 --- a/nitter/downgrade-zippy.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/nitter.nimble b/nitter.nimble -index f9aa72a..1d92780 100644 ---- a/nitter.nimble -+++ b/nitter.nimble -@@ -20,7 +20,7 @@ requires "packedjson#9e6fbb6" - requires "supersnappy#6c94198" - requires "redpool#8b7c1db" - requires "https://github.com/zedeus/redis#d0a0e6f" --requires "zippy#ca5989a" -+requires "zippy#0.9.11" - requires "flatty#e668085" - requires "jsony#ea811be" - diff --git a/nitter/nitter.initd b/nitter/nitter.initd deleted file mode 100644 index 89e851b..0000000 --- a/nitter/nitter.initd +++ /dev/null @@ -1,22 +0,0 @@ -#!/sbin/openrc-run - -depend() { - use net - after firewall - need redis -} - -supervisor=supervise-daemon -name=nitter -description="nitter" -command=/usr/bin/nitter -directory=/var/lib/nitter -command_background=true -output_log=/var/log/nitter.log -error_log=/var/log/nitter.log -command_user=nitter:nitter - -start_pre() { - checkpath -f -o $command_user /var/log/nitter.log -} - diff --git a/nitter/nitter.pre-install b/nitter/nitter.pre-install deleted file mode 100644 index 8629658..0000000 --- a/nitter/nitter.pre-install +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -user=nitter -group=nitter - -addgroup -S $group 2>/dev/null -adduser -S -D -h /var/lib/$user -s /sbin/nologin -G $group -g $user $user 2>/dev/null - -exit 0