wok-next view wget/receipt @ rev 8094
linux-module-headers: fix /usr/src/linux creation
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 22 18:04:51 2011 +0100 (2011-01-22) |
parents | 746b0f72e9a5 |
children | a1f11761cb85 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.12"
5 CATEGORY="utilities"
6 SHORT_DESC="retrieve files from the web"
7 MAINTAINER="sygne@ombres.eu"
8 DEPENDS="openssl libidn"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/wget/wget.html"
11 WGET_URL="http://ftp.gnu.org/gnu/wget/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure
18 make DESTDIR=$PWD/_pkg install
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 echo $_pkg
25 mkdir -p $fs/usr
26 cp -a $_pkg/usr/local/bin $fs/usr
27 strip -s $fs/usr/bin/*
28 }
30 # Post install rules.
31 post_install()
32 {
33 echo -e "
34 wget is in conflict with the busybox wget.
35 You'll have to re-install it after each busybox update.
36 If you want to use the busybox wget, do (as root):
37 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m
38 "
39 }
41 # Pre and post install commands for Tazpkg.
42 # We must remove all Busybox symlink before installing.
43 #
44 pre_install()
45 {
46 local root
47 root=$1
48 echo "Processing pre-install commands..."
49 echo -n "Removing all Busybox replaced utils... "
50 rm -f $root/usr/bin/wget
51 status
52 }
54 post_remove()
55 {
56 ln -s /bin/busybox /usr/bin/wget
57 }