wok annotate wget/receipt @ rev 13457
hostpad: add missing file
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Oct 07 23:49:54 2012 +0200 (2012-10-07) |
parents | b59066f9fc8d |
children | 2b9f96603415 |
rev | line source |
---|---|
sygne@1558 | 1 # SliTaz package receipt. |
sygne@1558 | 2 |
sygne@1558 | 3 PACKAGE="wget" |
pankso@13205 | 4 VERSION="1.14" |
sygne@1558 | 5 CATEGORY="utilities" |
sygne@1558 | 6 SHORT_DESC="retrieve files from the web" |
sygne@1558 | 7 MAINTAINER="sygne@ombres.eu" |
slaxemulator@11143 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
sygne@1558 | 9 WEB_SITE="http://www.gnu.org/software/wget/wget.html" |
slaxemulator@11143 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
sygne@1558 | 11 |
pankso@9801 | 12 DEPENDS="openssl libidn" |
pankso@9801 | 13 BUILD_DEPENDS="openssl-dev libidn-dev" |
pankso@9801 | 14 |
sygne@1558 | 15 # Rules to configure and make the package. |
sygne@1558 | 16 compile_rules() |
sygne@1558 | 17 { |
sygne@1558 | 18 cd $src |
slaxemulator@11143 | 19 ./configure --with-ssl=openssl $CONFIGURE_ARGS && |
pankso@9801 | 20 make DESTDIR=$DESTDIR install |
sygne@1558 | 21 } |
sygne@1558 | 22 |
sygne@1558 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@1558 | 24 genpkg_rules() |
sygne@1558 | 25 { |
sygne@1558 | 26 mkdir -p $fs/usr |
gokhlayeh@8220 | 27 cp -a $_pkg/usr/bin $fs/usr |
sygne@1558 | 28 } |
sygne@1558 | 29 |
sygne@1558 | 30 # Post install rules. |
sygne@1558 | 31 post_install() |
sygne@1558 | 32 { |
sygne@1558 | 33 echo -e " |
sygne@1558 | 34 wget is in conflict with the busybox wget. |
sygne@1558 | 35 If you want to use the busybox wget, do (as root): |
sygne@1558 | 36 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m |
sygne@1558 | 37 " |
sygne@1558 | 38 } |
sygne@1558 | 39 |
rcx@3923 | 40 # Pre and post install commands for Tazpkg. |
rcx@3923 | 41 # We must remove all Busybox symlink before installing. |
rcx@3923 | 42 # |
rcx@3923 | 43 pre_install() |
rcx@3923 | 44 { |
rcx@3923 | 45 local root |
rcx@3923 | 46 root=$1 |
rcx@3923 | 47 echo "Processing pre-install commands..." |
rcx@3923 | 48 echo -n "Removing all Busybox replaced utils... " |
rcx@3923 | 49 rm -f $root/usr/bin/wget |
rcx@3923 | 50 status |
rcx@3923 | 51 } |
sygne@1558 | 52 |
rcx@3923 | 53 post_remove() |
rcx@3923 | 54 { |
slaxemulator@10049 | 55 ln -s /bin/busybox $1/usr/bin/wget |
rcx@3923 | 56 } |