wok-current annotate sshrc/receipt @ rev 24781
Up ntk (1.3.1001)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 10:32:22 2022 +0000 (2022-03-20) |
parents | d1f85e376665 |
children | e1e1678c5265 |
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@22822 | 10 WEB_SITE="https://github.com/danrabinowitz/sshrc" |
pascal@22430 | 11 |
pascal@22430 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22430 | 13 WGET_URL="https://github.com/Russell91/sshrc/archive/$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@24497 | 21 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24497 | 22 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\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 } |