wok view gnu-netcat/receipt @ rev 14909

slitaz-i18n: add slitaz-configs as bdep; slitaz-configs: back openbox menu; locale-el, locale-ru: add keyboard layout icons; locale-fr, locale-hu, locale-pt_BR: recook with openbox menu.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Aug 05 11:40:01 2013 +0300 (2013-08-05)
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 }