wok-current view gnu-netcat/receipt @ rev 11473
raptor: raptor-config to rapto-dev
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Dec 17 16:26:48 2011 +0100 (2011-12-17) |
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 }