wok annotate dsh/receipt @ rev 25060
Up fakeroot (1.29)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 07 08:21:12 2022 +0000 (2022-06-07) |
parents | bfabe25c21ff |
children | 73f36875e5a7 |
rev | line source |
---|---|
pascal@22685 | 1 # SliTaz package receipt. |
pascal@22685 | 2 |
pascal@22685 | 3 PACKAGE="dsh" |
pascal@22685 | 4 VERSION="0.25.9" |
pascal@22685 | 5 CATEGORY="network" |
pascal@22685 | 6 SHORT_DESC="Wrapper for executing multiple remote shell (rsh/remsh/ssh) commands" |
pascal@22685 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@24727 | 8 LICENSE="GPL2" |
pascal@22685 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22685 | 10 WEB_SITE="http://www.netfort.gr.jp/~dancer/software/dsh.html.en" |
pascal@22685 | 11 WGET_URL="https://www.netfort.gr.jp/~dancer/software/downloads/$TARBALL" |
pascal@22685 | 12 |
pascal@22685 | 13 DEPENDS="libdshconfig" |
pascal@22685 | 14 BUILD_DEPENDS="libdshconfig-dev" |
pascal@22685 | 15 SUGGESTED="ssh rsh" |
pascal@22685 | 16 |
pascal@24439 | 17 # What is the latest version available today? |
pascal@24439 | 18 current_version() |
pascal@24439 | 19 { |
pascal@24439 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24439 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24439 | 22 } |
pascal@24439 | 23 |
pascal@22685 | 24 # Rules to configure and make the package. |
pascal@22685 | 25 compile_rules() |
pascal@22685 | 26 { |
pascal@22685 | 27 ./configure --prefix=/usr \ |
pascal@22685 | 28 --sysconfdir=/etc \ |
pascal@22685 | 29 $CONFIGURE_ARGS && |
pascal@22685 | 30 make && |
pascal@22685 | 31 make DESTDIR=$DESTDIR install |
pascal@22685 | 32 } |
pascal@22685 | 33 |
pascal@22685 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@22685 | 35 genpkg_rules() |
pascal@22685 | 36 { |
pascal@22685 | 37 mkdir -p $fs/usr |
pascal@22685 | 38 cp -a $install/usr/bin $fs/usr |
pascal@22685 | 39 cp -a $install/etc $fs |
pascal@22685 | 40 sed -i 's|=rsh|=dbclient|' $fs/etc/dsh.conf |
pascal@22685 | 41 } |