wok-6.x annotate sshrc/receipt @ rev 25010
updated ode and ode-dev (0.16.1 -> 0.16.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 17:33:55 2022 +0100 (2022-05-16) |
parents | 34e801e0eb52 |
children | 097600d80931 |
rev | line source |
---|---|
pascal@22430 | 1 # SliTaz package receipt. |
pascal@22430 | 2 |
pascal@22430 | 3 PACKAGE="sshrc" |
pascal@22430 | 4 VERSION="0.6.2" |
pascal@22430 | 5 CATEGORY="network" |
pascal@22430 | 6 TAGS="ssh" |
pascal@22430 | 7 SHORT_DESC="bring your .bashrc, .vimrc, etc. with you when you ssh" |
pascal@22430 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@22430 | 9 LICENSE="MIT" |
pascal@24974 | 10 WEB_SITE="https://github.com/cdown/sshrc" |
pascal@22430 | 11 |
pascal@22430 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24974 | 13 WGET_URL="https://github.com/cdown/sshrc/archive/refs/tags/VERSION.tar.gz" |
pascal@22430 | 14 |
pascal@22434 | 15 DEPENDS="bash openssl" |
pascal@22432 | 16 SUGGESTED="mosh" |
pascal@22430 | 17 |
pascal@24497 | 18 # What is the latest version available today? |
pascal@24497 | 19 current_version() |
pascal@24497 | 20 { |
pascal@24974 | 21 wget -O - https://github.com/cdown/sshrc/tags 2>/dev/null | \ |
pascal@24974 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24497 | 23 } |
pascal@24497 | 24 |
pascal@22430 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@22430 | 26 genpkg_rules() |
pascal@22430 | 27 { |
pascal@22430 | 28 mkdir -p $fs/usr/bin $install/usr/share/doc |
pascal@22430 | 29 cp $src/README.md $install/usr/share/doc |
pascal@22430 | 30 cp -a $src/*shrc $fs/usr/bin |
pascal@22434 | 31 |
pascal@22434 | 32 # dropbear compatibility |
pascal@22434 | 33 sed -i 's/-b | -c/& | -B | -K | -J/' $fs/usr/bin/sshrc |
pascal@22434 | 34 |
pascal@22434 | 35 # remove xxd dependancy |
pascal@22432 | 36 sed -i -e 's|command -v xxd|command -v openssl|' \ |
pascal@22432 | 37 -e 's|sshrc requires xxd|moshrc requires openssl|' \ |
pascal@22432 | 38 -e "s/| xxd -p -r/| tr -s ' ' \$'\\\\n' | openssl enc -base64 -d/" \ |
pascal@22432 | 39 -e 's|xxd -p|openssl enc -base64|' \ |
pascal@22433 | 40 -e "s|\\\$'\\\$(|\$'\"\$(|" -e "s|)'|)\"'|" $fs/usr/bin/moshrc |
pascal@22430 | 41 } |