-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'testing' into Eeems-patch-15
- Loading branch information
Showing
60 changed files
with
1,390 additions
and
2,824 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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
private | ||
build | ||
build/ | ||
!scripts/build/ | ||
__pycache__ | ||
.venv | ||
.venv/ | ||
repo/ |
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 |
---|---|---|
|
@@ -5,17 +5,17 @@ | |
pkgnames=(appmarkable) | ||
pkgdesc="Front-end for apps that do not have a graphical user interface" | ||
url="https://github.com/LinusCDE/appmarkable" | ||
pkgver=0.0.0-11 | ||
timestamp=2021-03-10T18:36Z | ||
pkgver=0.1.3-1 | ||
timestamp=2024-06-01T21:00Z | ||
section="devel" | ||
maintainer="Linus K. <[email protected]>" | ||
license=MIT | ||
installdepends=(display) | ||
flags=(patch_rm2fb) | ||
|
||
image=rust:v2.1 | ||
source=(https://github.com/LinusCDE/appmarkable/archive/c44ee87ea2b1f1e41c9592476c076150c9a1acf4.zip) | ||
sha256sums=(76e151aeae0f18b206dd3c6258bf74bcb5256ee2f803e1ed2073278831158f60) | ||
image=rust:v3.1 | ||
source=(https://github.com/LinusCDE/appmarkable/archive/0463ffc5bdaf29ff0a0e92fb15a90b06e310c417.zip) | ||
sha256sums=(bb45ed03a360f1a58e58e5a8e3176008e8e63053fc46925d20be92b532a02822) | ||
|
||
build() { | ||
# Fall back to system-wide config | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ timestamp=2023-08-27T02:39:10Z | |
maintainer="raisjn <[email protected]>" | ||
license=MIT | ||
url="https://github.com/ddvk/remarkable2-framebuffer" | ||
pkgver=1:0.0.32-2 | ||
pkgver=1:0.0.33-1 | ||
_release="${pkgver%-*}" | ||
_release="v${_release#*:}" | ||
_libver=1.0.1 | ||
|
@@ -23,7 +23,7 @@ source=( | |
rm2fb-preload.env | ||
) | ||
sha256sums=( | ||
603eef1688a8c3adb1df23f4f00fe12b80938fe99801b515cd74f84c8cede5b1 | ||
dd57f1ba31f08a28d801989e9a705bd93cc637cd8f4dffa160412119e69329ff | ||
SKIP | ||
SKIP | ||
SKIP | ||
|
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,93 @@ | ||
#!/bin/bash | ||
set -e | ||
draft_pid() { | ||
systemctl show --no-pager --property MainPID draft.service | sed 's|MainPID=||' | ||
} | ||
kill_pid() { | ||
pid="$1" | ||
if [[ "$(awk '{print $3}' "/proc/${pid}/stat")" == "T" ]]; then | ||
kill -CONT "$pid" | ||
fi | ||
kill -TERM "$pid" | ||
# Wait 5s for process to exit | ||
start="$(date +'%s')" | ||
while kill -0 "$pid" 2> /dev/null; do | ||
sleep 0.5 | ||
if [ "$(date +'%s')" -gt $((start + 5)) ]; then | ||
break | ||
fi | ||
done | ||
if kill -0 "$pid" 2> /dev/null; then | ||
# If process is still running, force kill it | ||
kill -KILL "$pid" | ||
fi | ||
} | ||
case "$1" in | ||
is-active) | ||
systemctl is-active --quiet draft.service | ||
;; | ||
is-enabled) | ||
systemctl is-enabled --quiet draft.service | ||
;; | ||
logs) | ||
if [ $# -eq 2 ] && [[ "$2" == "-f" ]] || [[ "$2" == "--follow" ]]; then | ||
journalctl --follow --all --unit draft.service | ||
else | ||
journalctl --no-pager --all --unit draft.service | ||
fi | ||
;; | ||
start) | ||
systemctl start draft.service | ||
;; | ||
stop) | ||
systemctl stop draft.service | ||
;; | ||
enable) | ||
systemctl enable draft.service | ||
;; | ||
disable) | ||
systemctl disable draft.service | ||
;; | ||
apps) | ||
find {/opt,}/etc/draft -maxdepth 1 -type f | while read -r file; do | ||
grep 'name=' "$file" | sed 's|^name=||' | ||
done | ||
;; | ||
close) | ||
find {/opt,}/etc/draft -maxdepth 1 -type f | while read -r file; do | ||
if [[ "$(grep 'name=' "$file" | sed 's|^name=||')" == "$2" ]]; then | ||
term="$(grep 'term=' "$file" | sed 's|^term=||')" | ||
if [ -z "$term" ]; then | ||
echo "No term= configuration specified for ${2}" | ||
exit 1 | ||
fi | ||
$term | ||
call="$(grep 'call=' "$file" | sed 's|^call=||')" | ||
name="$(grep 'name=' "$file" | sed 's|^name=||')" | ||
/opt/libexec/ps-procps-ng --ppid "$(draft_pid)" -o pid | tail -n +2 | while read -r pid; do | ||
if [[ "$(tr -d '\0' < "/proc/${pid}/cmdline")" == "$call" ]]; then | ||
kill_pid "$pid" | ||
break | ||
fi | ||
done | ||
fi | ||
done | ||
;; | ||
running) | ||
pid=$(draft_pid) | ||
find {/opt,}/etc/draft -maxdepth 1 -type f | while read -r file; do | ||
call="$(grep 'call=' "$file" | sed 's|^call=||')" | ||
name="$(grep 'name=' "$file" | sed 's|^name=||')" | ||
/opt/libexec/ps-procps-ng --ppid "$(draft_pid)" -o pid | tail -n +2 | while read -r pid; do | ||
if [[ "$(tr -d '\0' < "/proc/${pid}/cmdline")" == "$call" ]]; then | ||
echo "$name" | ||
break | ||
fi | ||
done | ||
done | ||
;; | ||
*) | ||
echo "Draft does not support this method" | ||
exit 1 | ||
;; | ||
esac |
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 |
---|---|---|
|
@@ -5,22 +5,24 @@ | |
pkgnames=(draft) | ||
pkgdesc="Launcher which wraps around the standard interface" | ||
url=https://github.com/dixonary/draft-reMarkable | ||
pkgver=0.2.0-22 | ||
pkgver=0.2.0-25 | ||
timestamp=2020-07-20T10:23Z | ||
section="launchers" | ||
maintainer="Mattéo Delabre <[email protected]>" | ||
license=Apache-2.0 | ||
installdepends=(xochitl display) | ||
installdepends=(xochitl display procps-ng-ps) | ||
flags=(patch_rm2fb) | ||
|
||
image=qt:v2.1 | ||
source=( | ||
https://github.com/dixonary/draft-reMarkable/archive/5bd660a2fd07eba166c6110d2b48cfc58ee67e58.zip | ||
draft.service | ||
launcherctl-draft | ||
) | ||
sha256sums=( | ||
c41d7a4fd537c54d787018fd764421dbf7dd64306ca800875283e05eef99173e | ||
SKIP | ||
SKIP | ||
) | ||
|
||
build() { | ||
|
@@ -46,21 +48,25 @@ package() { | |
mv "$pkgdir"/opt/etc/draft/{99-,}shutdown | ||
|
||
install -D -m 644 -t "$pkgdir"/lib/systemd/system "$srcdir"/draft.service | ||
install -D -T -m 755 "$srcdir"/launcherctl-draft "$pkgdir"/opt/share/launcherctl/"$pkgname" | ||
} | ||
|
||
configure() { | ||
systemctl daemon-reload | ||
|
||
if ! is-enabled "$pkgname.service"; then | ||
if ! launcherctl is-current-launcher "$pkgname"; then | ||
echo "" | ||
echo "Run the following command(s) to use $pkgname as your launcher" | ||
how-to-enable "$pkgname.service" | ||
echo "launcherctl switch-launcher --start $pkgname" | ||
echo "" | ||
fi | ||
} | ||
|
||
preremove() { | ||
disable-unit "$pkgname.service" | ||
# Just in case more than one launcher is active, do individual checks | ||
if launcherctl is-active-launcher "$pkgname" || launcherctl is-enabled-launcher "$pkgname"; then | ||
launcherctl switch-launcher --start xochitl | ||
fi | ||
} | ||
|
||
postremove() { | ||
|
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,13 @@ | ||
[Unit] | ||
Description=Entware %I service | ||
After=opt.mount | ||
|
||
[Service] | ||
ExecStart=/opt/etc/init.d/%I start | ||
ExecStop=/opt/etc/init.d/%I stop | ||
Type=forking | ||
GuessMainPID=true | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,38 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2024 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
archs=(rmall) | ||
pkgnames=(entware-rc) | ||
pkgdesc="Manage entware installed services" | ||
url=https://toltec-dev.org/ | ||
pkgver=0.1-1 | ||
timestamp=2024-05-22T22:59:03Z | ||
section="utils" | ||
maintainer="Eeems <[email protected]>" | ||
license=MIT | ||
installdepends=() | ||
|
||
source=( | ||
[email protected] | ||
rcctl | ||
) | ||
sha256sums=( | ||
SKIP | ||
SKIP | ||
) | ||
|
||
package() { | ||
install -D -m 666 -t "$pkgdir"/lib/systemd/system/ "$srcdir"/[email protected] | ||
install -D -m 755 -t "$pkgdir"/opt/bin/ "$srcdir"/rcctl | ||
} | ||
|
||
configure() { | ||
systemctl daemon-reload | ||
echo "" | ||
echo "You can use rcctl to manage services installed by entware" | ||
} | ||
|
||
preremove() { | ||
rcctl list | xargs -I {} systemctl disable --now entware-rc@{} | ||
} |
Oops, something went wrong.