wok annotate shellinabox/receipt @ rev 25625

Add opendkim (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 17:14:09 2023 +0000 (12 months ago)
parents ab750d4cb0a2
children
rev   line source
pascal@8253 1 # SliTaz package receipt.
pascal@8253 2
pascal@8253 3 PACKAGE="shellinabox"
pascal@23973 4 VERSION="2.21"
pascal@23974 5 GITHASH="4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361"
pascal@8253 6 CATEGORY="network"
pascal@8253 7 SHORT_DESC="Ajax web based terminal emulator."
pascal@8253 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15587 9 LICENSE="GPL2"
pascal@8253 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20724 11 WEB_SITE="https://github.com/shellinabox/shellinabox"
pascal@23974 12 WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
pascal@20716 13 TAGS="web-application"
pascal@15587 14
pascal@8253 15 DEPENDS="zlib"
pascal@20716 16 BUILD_DEPENDS="zlib-dev openssl-dev autoconf automake libtool"
pascal@18869 17 SUGGESTED="ssh knock"
pascal@8253 18
pascal@24059 19 current_version()
pascal@24059 20 {
pascal@24453 21 wget -O - ${WGET_URL%/arch*}/commits/master 2>/dev/null | \
pascal@24453 22 sed '/ version /!d;s|.*version ||;s|<.*||;q'
pascal@24059 23 }
pascal@24059 24
pascal@8253 25 # Rules to configure and make the package.
pascal@8253 26 compile_rules()
pascal@8253 27 {
pascal@20716 28 autoreconf -i
pascal@8254 29 ./configure --prefix=/usr \
pascal@18869 30 --mandir=/usr/share/man \
pascal@18869 31 $CONFIGURE_ARGS &&
pascal@8253 32 make &&
pascal@15587 33 make DESTDIR=$DESTDIR install
pascal@8253 34 }
pascal@8253 35
pascal@8253 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@8253 37 genpkg_rules()
pascal@8253 38 {
pascal@18869 39 mkdir -p $fs/usr/bin $fs/usr/share/shellinabox $fs/etc/init.d
pascal@15587 40 cp -a $install/usr/bin $fs/usr
pascal@20716 41 cp $src/shellinabox/*black*.css $fs/usr/share/shellinabox
pascal@18869 42 cp $stuff/*.css $fs/usr/share/shellinabox
pascal@18869 43 cp $stuff/shellinabox $fs/etc/init.d/
pascal@8253 44 }
pascal@18869 45
pascal@18869 46 # Pre and post install commands for Tazpkg.
pascal@18869 47 # We stop the server by default in case of upgarde.
pascal@18869 48 pre_install()
pascal@18869 49 {
pascal@18869 50 [ -z "$1" ] && [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
pascal@18869 51 }
pascal@18869 52
pascal@18869 53 post_install()
pascal@18869 54 {
pascal@18869 55 [ "$1" ] || /etc/init.d/$PACKAGE start
pascal@18869 56 }
pascal@18869 57
pascal@18869 58 pre_remove()
pascal@18869 59 {
pascal@18869 60 [ "$1" ] || /etc/init.d/$PACKAGE stop
pascal@18869 61 }