wok-next view gnu-netcat/receipt @ rev 13509

Up ncdu (1.9)
author Paul Issott <paul@slitaz.org>
date Sun Oct 14 20:46:46 2012 +0100 (2012-10-14)
parents 56ba45d3afea
children d1c17bd2c2bc
line source
1 # SliTaz package receipt.
3 PACKAGE="gnu-netcat"
4 VERSION="0.7.1"
5 CATEGORY="network"
6 SHORT_DESC="GNU rewrite of netcat, the network piping application"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="texinfo"
9 SOURCE="netcat"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://netcat.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --mandir=/usr/share/man \
19 --infodir=/usr/share/info \
20 $CONFIGURE_ARGS &&
21 make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $_pkg/usr/bin $fs/usr
29 }
31 # Pre and post install commands for Tazpkg.
32 # We must remove all Busybox symlink before installing.
33 #
34 pre_install()
35 {
36 local root
37 root=$1
38 echo "Processing pre-install commands..."
39 echo -n "Removing all Busybox replaced utils... "
40 rm -f $root/usr/bin/nc
41 status
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox $1/usr/bin/nc
47 }