wok view sshrc/receipt @ rev 24866
updated lv2 (1.16.0 -> 1.18.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 30 17:00:58 2022 +0100 (2022-03-30) |
parents | d1f85e376665 |
children | e1e1678c5265 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sshrc"
4 VERSION="0.6.2"
5 CATEGORY="network"
6 TAGS="ssh"
7 SHORT_DESC="bring your .bashrc, .vimrc, etc. with you when you ssh"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/danrabinowitz/sshrc"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/Russell91/sshrc/archive/$VERSION.tar.gz"
15 DEPENDS="bash openssl"
16 SUGGESTED="mosh"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
22 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin $install/usr/share/doc
29 cp $src/README.md $install/usr/share/doc
30 cp -a $src/*shrc $fs/usr/bin
32 # dropbear compatibility
33 sed -i 's/-b | -c/& | -B | -K | -J/' $fs/usr/bin/sshrc
35 # remove xxd dependancy
36 sed -i -e 's|command -v xxd|command -v openssl|' \
37 -e 's|sshrc requires xxd|moshrc requires openssl|' \
38 -e "s/| xxd -p -r/| tr -s ' ' \$'\\\\n' | openssl enc -base64 -d/" \
39 -e 's|xxd -p|openssl enc -base64|' \
40 -e "s|\\\$'\\\$(|\$'\"\$(|" -e "s|)'|)\"'|" $fs/usr/bin/moshrc
41 }