-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'oxide' into update-desktop-database
- Loading branch information
Showing
4 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |