diff --git a/package/7zip/package b/package/7zip/package new file mode 100644 index 000000000..c70744764 --- /dev/null +++ b/package/7zip/package @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# Copyright (c) 2021 The Toltec Contributors +# SPDX-License-Identifier: MIT +pkgnames=(7zip) +pkgdesc="A file archiver with a high compression ratio." +url="https://www.7-zip.org/" +section="util" +pkgver=22.01-1 +timestamp=2022-07-15T00:00:00Z +maintainer="Eeems " +license=LGPL-2.1-or-later +source=( + https://www.7-zip.org/a/7z2201-linux-arm.tar.xz +) +sha256sums=( + 428c11efd91fe1809c4750e8cd5d6eddfbed2826d8a5399ffcacb849f0d21cf8 +) + +package() { + install -dm 755 "$pkgdir"/opt/usr/share/licenses/7zip + install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/7zz + cp -dr --no-preserve='ownership' "$srcdir"/License.txt "$pkgdir"/opt/usr/share/licenses/7zip +} diff --git a/package/koreader/package b/package/koreader/package index 6a00ad8b2..a7142e71d 100644 --- a/package/koreader/package +++ b/package/koreader/package @@ -5,8 +5,8 @@ pkgnames=(koreader) pkgdesc="Ebook reader supporting PDF, DjVu, EPUB, FB2 and many more formats" url=https://github.com/koreader/koreader -pkgver=2023.04-2 -timestamp=2023-04-27T20:53:54Z +pkgver=2023.06.1-1 +timestamp=2023-07-09T08:17:26Z section="readers" maintainer="raisjn " license=AGPL-3.0-or-later @@ -21,7 +21,7 @@ source=( koreader ) sha256sums=( - 7149beb95ee561c488491d723acbb2c641c99733abc1036de7064241a5f32813 + a24f334983060b5cfee7b87484529b77fe4adffd646e8fd55447750e73309ef0 SKIP SKIP SKIP diff --git a/package/tailscale-systemd/package b/package/tailscale-systemd/package new file mode 100644 index 000000000..4e7fe832a --- /dev/null +++ b/package/tailscale-systemd/package @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +# Copyright (c) 2020 The Toltec Contributors +# SPDX-License-Identifier: MIT + +pkgnames=(tailscale-systemd) +pkgdesc="SystemD configuration for tailscale" +url=https://tailscale.com +pkgver=0.0.0-1 +section="utils" +timestamp=2023-07-12T00:00Z +maintainer="Kai " +license="BSD 3-Clause" +installdepends=(tailscale) + +source=( + tailscaled.service +) +sha256sums=( + SKIP +) + +package() { + install -D -m 644 -t "$pkgdir"/etc/systemd/system "$srcdir"/tailscaled.service +} + +configure() { + systemctl daemon-reload + systemctl enable tailscaled + systemctl start tailscaled +} + +preremove() { + if is-active tailscaled; then + echo "Stopping tailscaled" + systemctl stop tailscaled + fi + + if is-enabled tailscaled; then + echo "Disabling tailscaled" + systemctl disable tailscaled + fi +} + +postremove() { + systemctl daemon-reload +} diff --git a/package/tailscale-systemd/tailscaled.service b/package/tailscale-systemd/tailscaled.service new file mode 100644 index 000000000..35a9feb54 --- /dev/null +++ b/package/tailscale-systemd/tailscaled.service @@ -0,0 +1,24 @@ +[Unit] +Description=Tailscale node agent +Documentation=https://tailscale.com/kb/ +Wants=network-pre.target +After=network-pre.target + +[Service] +Environment="HOME=/home/root" +ExecStartPre=/opt/bin/tailscaled --cleanup +ExecStart=/opt/bin/tailscaled --state=/opt/var/lib/tailscale/tailscaled.state --socket=/opt/var/run/tailscale/tailscaled.sock --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 +ExecStopPost=/opt/bin/tailscaled --cleanup + +Restart=on-failure + +RuntimeDirectory=tailscale +RuntimeDirectoryMode=0755 +StateDirectory=tailscale +StateDirectoryMode=0700 +CacheDirectory=tailscale +CacheDirectoryMode=0750 +Type=notify + +[Install] +WantedBy=multi-user.target