wok view gnu-netcat/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents d1c17bd2c2bc
children d6ca18366f41
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 LICENSE="GPL2"
9 SOURCE="netcat"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://netcat.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
14 DEPENDS="texinfo"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --mandir=/usr/share/man \
21 --infodir=/usr/share/info \
22 $CONFIGURE_ARGS &&
23 make && make install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $install/usr/bin $fs/usr
31 }
33 # Pre and post install commands for Tazpkg.
34 # We must remove all Busybox symlink before installing.
35 #
36 pre_install()
37 {
38 echo "Processing pre-install commands..."
39 echo -n "Removing all Busybox replaced utils... "
40 rm -f "$1/usr/bin/nc"
41 status
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox "$1/usr/bin/nc"
47 }