-
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 issue/638
- Loading branch information
Showing
10 changed files
with
183 additions
and
31 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ archs=(rm1 rm2) | |
pkgnames=(ddvk-hacks) | ||
pkgdesc="Enhance Xochitl with additional features" | ||
url=https://github.com/ddvk/remarkable-hacks | ||
pkgver=39.01-1 | ||
pkgver=39.01-2 | ||
timestamp=2022-11-09T18:31:51Z | ||
section="readers" | ||
maintainer="Mattéo Delabre <[email protected]>" | ||
|
@@ -66,6 +66,8 @@ package() { | |
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21501067_rm2/patch_38.2.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21511189_rm2/patch_39.2.01 | ||
fi | ||
touch "$srcdir"/emptyfile | ||
install -D -m 666 -t "$pkgdir"/usr/share/toltec/reenable.d/ddvk-hacks "$srcdir"/emptyfile | ||
} | ||
|
||
configure() { | ||
|
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,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.08-3 | ||
timestamp=2023-08-29T16:21:01Z | ||
pkgver=2023.10-2 | ||
timestamp=2023-10-30T17:19:28Z | ||
section="readers" | ||
maintainer="raisjn <[email protected]>" | ||
license=AGPL-3.0-or-later | ||
|
@@ -21,7 +21,7 @@ source=( | |
koreader | ||
) | ||
sha256sums=( | ||
8cc9fad1cbcda5519c20afe6e33c4f80a51587daed7b959ef7284ce8b0c41ec0 | ||
fdb72bdb80c74b6c955ffde8852ce67b77ebc7d88ceb4a439b622aff74ad858e | ||
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 |
---|---|---|
|
@@ -5,14 +5,14 @@ | |
pkgnames=(micro) | ||
pkgdesc="Modern and intuitive terminal-based text editor" | ||
url=https://micro-editor.github.io/ | ||
pkgver=2.0.10-1 | ||
timestamp=2021-08-07T00:57:40Z | ||
pkgver=2.0.13-1 | ||
timestamp=2023-10-21T22:38:29Z | ||
section="utils" | ||
maintainer="Eeems <[email protected]>" | ||
license=MIT | ||
|
||
source=(https://github.com/zyedidia/micro/releases/download/v2.0.10/micro-2.0.10-linux-arm.tar.gz) | ||
sha256sums=(b60478ac87f41f00d91cf6ca58b6d7e05af99ee5fa73fa8881b140ac428fa278) | ||
source=("https://github.com/zyedidia/micro/releases/download/v2.0.13/micro-2.0.13-linux-arm.tar.gz") | ||
sha256sums=(cbbed4e69567871462464049646dc11fdad8b8c75fde5d75856068c2cfbd2d38) | ||
|
||
package() { | ||
install -Dm644 "$srcdir"/LICENSE "$pkgdir/opt/usr/share/licenses/$pkgname/LICENSE" | ||
|
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,20 +5,28 @@ | |
pkgnames=(neofetch) | ||
pkgdesc="A command-line system information tool" | ||
url="https://github.com/rM-self-serve/neofetch-rM" | ||
pkgver=0.0.0-1 | ||
timestamp=2023-02-09T11:43:00Z | ||
pkgver=1.1.0-1 | ||
timestamp=2023-12-06T11:43:00Z | ||
section="utils" | ||
maintainer="rM-self-serve <[email protected]>" | ||
license=MIT | ||
|
||
source=( | ||
https://github.com/rM-self-serve/neofetch-rM/archive/c497597ba4b481042cbb48b7c2c55e45dda25543.zip | ||
https://github.com/rM-self-serve/neofetch-rM/archive/955997e4e3b8be682f40ee54366e44337df68959.zip | ||
) | ||
|
||
sha256sums=( | ||
06492898eac6fb4f2cc95ca52c65f8f4f580ada57b4fe433722dabeae884b633 | ||
451017bd2517cf8c124af772e77b316ad784507709219e5831b28f613830f7e5 | ||
) | ||
|
||
package() { | ||
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/neofetch | ||
} | ||
|
||
configure() { | ||
if [ -f '/home/root/.config/neofetch/config.conf' ]; then | ||
echo "" | ||
echo "You may choose to remove ~/.config/neofetch/config.conf" | ||
echo "in order to get the latest default config." | ||
fi | ||
} |
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,19 +5,19 @@ | |
pkgnames=(rmfm) | ||
pkgdesc="Bare-bones file manager using Node.js and sas" | ||
url="https://forgejo.sny.sh/sun/rmFM" | ||
pkgver=1.5.0-2 | ||
timestamp=2023-08-08T22:19:23+02:00 | ||
pkgver=1.5.1-1 | ||
timestamp=2023-12-06T08:51:41+01:00 | ||
section=utils | ||
maintainer="Sunny <[email protected]>" | ||
license=Unlicense | ||
installdepends=(node simple) | ||
|
||
source=( | ||
https://forgejo.sny.sh/sun/rmFM/archive/1.5.0.zip | ||
https://forgejo.sny.sh/sun/rmFM/archive/1.5.1.zip | ||
path_fix.patch | ||
) | ||
sha256sums=( | ||
515cc1843bf61f628c3a0b2b2dcb3256a0182352c6b491585fd52cf96a554b26 | ||
054569a5e1f420b9046ee2c4067749a1e0bccd88acc216e485b9665a42f4dd60 | ||
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 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2021 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
_pkgname='webinterface-onboot' | ||
pkgnames=("$_pkgname") | ||
pkgdesc="Start the web interface without the cable, on boot." | ||
url="https://github.com/rM-self-serve/$_pkgname" | ||
pkgver=1.2.2-1 | ||
timestamp=2023-12-03T11:43:00Z | ||
section="utils" | ||
maintainer="rM-self-serve <[email protected]>" | ||
license=MIT | ||
conflicts=(ddvk-hacks) | ||
|
||
source=( | ||
"$url"/archive/cdfe457435974f7ca309b1ac50f1b2ef67000813.zip | ||
"$_pkgname-toltec.service" | ||
) | ||
sha256sums=( | ||
bad965b923fa0979e7c8b97f6a90a400300ef8461292276e6fa2107a89624c8b | ||
SKIP | ||
) | ||
|
||
package() { | ||
install -D -m 755 -t "$pkgdir/opt/bin" "$srcdir/$_pkgname" | ||
install -D -m 644 "$srcdir/$_pkgname-toltec.service" \ | ||
"$pkgdir/lib/systemd/system/$_pkgname.service" | ||
|
||
touch "$srcdir"/emptyfile | ||
install -D -m 666 -t "$pkgdir"/usr/share/toltec/reenable.d/"$_pkgname" "$srcdir"/emptyfile | ||
} | ||
|
||
configure() { | ||
systemctl daemon-reload | ||
|
||
echo | ||
echo "Applying usb0 ip persistence" | ||
webinterface-onboot apply-prstip -y > /dev/null | ||
echo "Success" | ||
if webinterface-onboot is-hack-version > /dev/null; then | ||
echo | ||
echo "Applying binary modification" | ||
webinterface-onboot apply-hack -y > /dev/null | ||
echo "Success" | ||
fi | ||
|
||
echo | ||
echo "Run the following command to use $pkgname" | ||
how-to-enable "$pkgname.service" | ||
echo | ||
echo "Then restart xochitl or the device" | ||
} | ||
|
||
_restore() { | ||
if webinterface-onboot is-prstip-applied > /dev/null; then | ||
echo | ||
echo "Reverting usb0 ip persistence" | ||
webinterface-onboot revert-prstip -y > /dev/null | ||
echo "Success" | ||
fi | ||
|
||
if webinterface-onboot is-hack-applied > /dev/null; then | ||
echo | ||
echo "Reverting binary modification" | ||
if webinterface-onboot has-backup > /dev/null; then | ||
webinterface-onboot revert-hack --backup -y > /dev/null | ||
else | ||
webinterface-onboot revert-hack --reverse -y > /dev/null | ||
fi | ||
echo "Success" | ||
fi | ||
} | ||
|
||
preremove() { | ||
if is-active "$pkgname"; then | ||
echo "Stopping $pkgname" | ||
systemctl stop "$pkgname" | ||
fi | ||
if is-enabled "$pkgname"; then | ||
echo "Disabling $pkgname" | ||
systemctl disable "$pkgname" | ||
fi | ||
_restore | ||
} | ||
|
||
preupgrade() { | ||
_restore | ||
} | ||
|
||
postremove() { | ||
systemctl daemon-reload | ||
} |
13 changes: 13 additions & 0 deletions
13
package/webinterface-onboot/webinterface-onboot-toltec.service
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=Enable the web interface on boot | ||
StartLimitIntervalSec=600 | ||
StartLimitBurst=4 | ||
After=home.mount | ||
|
||
[Service] | ||
Environment=HOME=/home/root | ||
Type=oneshot | ||
ExecStart=/opt/bin/webinterface-onboot local-exec | ||
|
||
[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 |
---|---|---|
|
@@ -2,40 +2,70 @@ | |
# Copyright (c) 2020 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
pkgnames=(webinterface-wifi) | ||
_pkgname="webinterface-wifi" | ||
pkgnames=("$_pkgname") | ||
pkgdesc="View the web interface if running, over wifi" | ||
url="https://github.com/rM-self-serve/webinterface-wifi" | ||
pkgver=1.0.2-2 | ||
timestamp=2023-02-06T12:23:17Z | ||
url="https://github.com/rM-self-serve/$_pkgname" | ||
pkgver=2.0.0-2 | ||
timestamp=2023-11-26T00:02:11Z | ||
section="utils" | ||
maintainer="rM-self-serve <[email protected]>" | ||
license=MIT | ||
image=rust:v3.1 | ||
|
||
image=rust:v2.3 | ||
_pkgalias="webint-wifi" | ||
_configdir="/home/root/.config/$_pkgname" | ||
_etcdir="/opt/etc/$_pkgname" | ||
|
||
source=( | ||
https://github.com/rM-self-serve/webinterface-wifi/archive/2e29855303a0806ee51e71bc836bc4b16204fa14.zip | ||
webinterface-wifi-toltec.service | ||
"$url/archive/4513d5cbc5e323f2959987f3bc9e300b0aaddb19.zip" | ||
"$_pkgname-toltec.service" | ||
) | ||
|
||
sha256sums=( | ||
629bab244a387086ce2a8f8118b8d1017cf993bf97b13da72573f52572ed526e | ||
a23c05faf4ccaafea9222255399c8c3a121079dd07970c8768b4315606eb7834 | ||
SKIP | ||
) | ||
|
||
build() { | ||
RUSTFLAGS="-Zcrate-attr=feature(const_fn_trait_bound)" cargo build --release | ||
WIW_DATADIR="/opt/etc" cargo build --release | ||
} | ||
|
||
package() { | ||
install -D -m 755 -t "$pkgdir"/opt/bin \ | ||
"$srcdir"/target/armv7-unknown-linux-gnueabihf/release/webinterface-wifi | ||
install -D -m 644 "$srcdir"/webinterface-wifi-toltec.service "$pkgdir"/lib/systemd/system/webinterface-wifi.service | ||
install -D -m 755 -t "$pkgdir/opt/bin" \ | ||
"$srcdir/target/armv7-unknown-linux-gnueabihf/release/$_pkgname" | ||
ln -s "/opt/bin/$_pkgname" "$pkgdir/opt/bin/$_pkgalias" | ||
|
||
install -D -m 644 "$srcdir/$_pkgname-toltec.service" \ | ||
"$pkgdir/lib/systemd/system/$_pkgname.service" | ||
|
||
install -D -m 644 -t "$pkgdir""$_etcdir/docs" \ | ||
"$srcdir/README.MD" "$srcdir"/config/*.toml | ||
install -D -m 644 -t "$pkgdir""$_etcdir/docs/config_examples" \ | ||
"$srcdir"/config/examples/*.toml | ||
install -D -m 644 -t "$pkgdir""$_etcdir"/assets \ | ||
"$srcdir/assets/favicon.ico" | ||
install -d "$pkgdir""$_etcdir/ssl" \ | ||
"$pkgdir""$_etcdir/auth" \ | ||
"$pkgdir""$_configdir" | ||
} | ||
|
||
configure() { | ||
[[ -f "$_configdir/config.toml" ]] \ | ||
|| cp "$_etcdir/docs/config.default.toml" \ | ||
"$_configdir/config.toml" | ||
|
||
systemctl daemon-reload | ||
|
||
if is-active "$pkgname"; then | ||
echo "Restarting $pkgname" | ||
systemctl restart "$pkgname" | ||
fi | ||
|
||
echo "" | ||
echo "Run '\$ $pkgname' for usage information and a link to" | ||
echo "the documentation. You can also find the documentation locally" | ||
echo "at /opt/etc/webinterface-wifi/docs/" | ||
echo "" | ||
echo "Run the following command to use $pkgname" | ||
how-to-enable "$pkgname.service" | ||
|
@@ -46,5 +76,6 @@ preremove() { | |
} | ||
|
||
postremove() { | ||
rmdir "$_etcdir"/*/* "$_etcdir"/* "$_etcdir" 2> /dev/null || true | ||
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