Skip to content

Commit

Permalink
Merge branch 'oxide' into update-desktop-database
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Jul 26, 2023
2 parents d03d26d + 63fc1f7 commit f819a09
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 3 deletions.
23 changes: 23 additions & 0 deletions package/7zip/package
Original file line number Diff line number Diff line change
@@ -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 <eeems@eeems.email>"
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
}
6 changes: 3 additions & 3 deletions package/koreader/package
Original file line number Diff line number Diff line change
Expand Up @@ -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 <of.raisjn@gmail.com>"
license=AGPL-3.0-or-later
Expand All @@ -21,7 +21,7 @@ source=(
koreader
)
sha256sums=(
7149beb95ee561c488491d723acbb2c641c99733abc1036de7064241a5f32813
a24f334983060b5cfee7b87484529b77fe4adffd646e8fd55447750e73309ef0
SKIP
SKIP
SKIP
Expand Down
46 changes: 46 additions & 0 deletions package/tailscale-systemd/package
Original file line number Diff line number Diff line change
@@ -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 <z@kwi.li>"
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
}
24 changes: 24 additions & 0 deletions package/tailscale-systemd/tailscaled.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f819a09

Please sign in to comment.