wok-6.x annotate gnu-netcat/receipt @ rev 10839
pingus: clean receipt and fix compile_rules so it dont build if broken
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jun 08 23:38:19 2011 +0200 (2011-06-08) |
parents | 9f32ab185bac |
children | 8ad8c3236c6c |
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" |
slaxemulator@9448 | 8 DEPENDS="texinfo" |
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 |
slaxemulator@9448 | 14 # Rules to configure and make the package. |
slaxemulator@9448 | 15 compile_rules() |
slaxemulator@9448 | 16 { |
slaxemulator@9448 | 17 cd $src |
slaxemulator@9448 | 18 ./configure --mandir=/usr/share/man \ |
slaxemulator@9448 | 19 --infodir=/usr/share/info && |
slaxemulator@9448 | 20 make && make install |
slaxemulator@9448 | 21 } |
slaxemulator@9448 | 22 |
slaxemulator@9448 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9448 | 24 genpkg_rules() |
slaxemulator@9448 | 25 { |
slaxemulator@9448 | 26 mkdir -p $fs/usr |
slaxemulator@9448 | 27 cp -a $_pkg/usr/bin $fs/usr |
slaxemulator@9448 | 28 } |
slaxemulator@9448 | 29 |
slaxemulator@9449 | 30 # Pre and post install commands for Tazpkg. |
slaxemulator@9449 | 31 # We must remove all Busybox symlink before installing. |
slaxemulator@9449 | 32 # |
slaxemulator@9449 | 33 pre_install() |
slaxemulator@9449 | 34 { |
slaxemulator@9449 | 35 local root |
slaxemulator@9449 | 36 root=$1 |
slaxemulator@9449 | 37 echo "Processing pre-install commands..." |
slaxemulator@9449 | 38 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@9449 | 39 rm -f $root/usr/bin/nc |
slaxemulator@9449 | 40 status |
slaxemulator@9449 | 41 } |
slaxemulator@9449 | 42 |
slaxemulator@9449 | 43 post_remove() |
slaxemulator@9449 | 44 { |
slaxemulator@9450 | 45 ln -s /bin/busybox $1/usr/bin/nc |
slaxemulator@9449 | 46 } |