wok-6.x annotate sshrc/receipt @ rev 22838

modified get-linuxqq
author Hans-G?nter Theisgen
date Tue Feb 11 09:52:23 2020 +0100 (2020-02-11)
parents 4ac5a0dcd3b1
children 34e801e0eb52
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@22430 18 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@22430 19 genpkg_rules()
pascal@22430 20 {
pascal@22430 21 mkdir -p $fs/usr/bin $install/usr/share/doc
pascal@22430 22 cp $src/README.md $install/usr/share/doc
pascal@22430 23 cp -a $src/*shrc $fs/usr/bin
pascal@22434 24
pascal@22434 25 # dropbear compatibility
pascal@22434 26 sed -i 's/-b | -c/& | -B | -K | -J/' $fs/usr/bin/sshrc
pascal@22434 27
pascal@22434 28 # remove xxd dependancy
pascal@22432 29 sed -i -e 's|command -v xxd|command -v openssl|' \
pascal@22432 30 -e 's|sshrc requires xxd|moshrc requires openssl|' \
pascal@22432 31 -e "s/| xxd -p -r/| tr -s ' ' \$'\\\\n' | openssl enc -base64 -d/" \
pascal@22432 32 -e 's|xxd -p|openssl enc -base64|' \
pascal@22433 33 -e "s|\\\$'\\\$(|\$'\"\$(|" -e "s|)'|)\"'|" $fs/usr/bin/moshrc
pascal@22430 34 }