wok-6.x annotate gnu-netcat/receipt @ rev 24573
updated freetype and freetype-dev (2.10.2 -> 2.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 27 07:45:56 2022 +0100 (2022-02-27) |
parents | d6ca18366f41 |
children | 7dd01dedad38 |
rev | line source |
---|---|
slaxemulator@9448 | 1 # SliTaz package receipt. |
slaxemulator@9448 | 2 |
slaxemulator@9448 | 3 PACKAGE="gnu-netcat" |
slaxemulator@9448 | 4 VERSION="0.7.1" |
slaxemulator@9448 | 5 CATEGORY="network" |
slaxemulator@9448 | 6 SHORT_DESC="GNU rewrite of netcat, the network piping application" |
slaxemulator@9448 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15589 | 8 LICENSE="GPL2" |
slaxemulator@9448 | 9 SOURCE="netcat" |
slaxemulator@9448 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
slaxemulator@9448 | 11 WEB_SITE="http://netcat.sourceforge.net/" |
slaxemulator@9448 | 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
slaxemulator@9448 | 13 |
pascal@15589 | 14 DEPENDS="texinfo" |
pascal@15589 | 15 |
pascal@24403 | 16 # What is the latest version available today? |
pascal@24403 | 17 current_version() |
pascal@24403 | 18 { |
pascal@24403 | 19 wget -O - https://sourceforge.net/projects/netcat/files/netcat/ 2>/dev/null | \ |
pascal@24403 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24403 | 21 sed '/scope="row/!d;s|.*/netcat/||;s|/.*||;q' |
pascal@24403 | 22 } |
pascal@24403 | 23 |
slaxemulator@9448 | 24 # Rules to configure and make the package. |
slaxemulator@9448 | 25 compile_rules() |
slaxemulator@9448 | 26 { |
slaxemulator@9448 | 27 ./configure --mandir=/usr/share/man \ |
slaxemulator@11109 | 28 --infodir=/usr/share/info \ |
slaxemulator@11109 | 29 $CONFIGURE_ARGS && |
slaxemulator@9448 | 30 make && make install |
slaxemulator@9448 | 31 } |
slaxemulator@9448 | 32 |
slaxemulator@9448 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9448 | 34 genpkg_rules() |
slaxemulator@9448 | 35 { |
slaxemulator@9448 | 36 mkdir -p $fs/usr |
pascal@15589 | 37 cp -a $install/usr/bin $fs/usr |
slaxemulator@9448 | 38 } |
slaxemulator@9448 | 39 |
slaxemulator@9449 | 40 post_remove() |
slaxemulator@9449 | 41 { |
pascal@18730 | 42 ln -s /bin/busybox "$1/usr/bin/nc" |
al@18734 | 43 } |