wok-4.x annotate tinyproxy/receipt @ rev 7680
up:fcitx-4.0.1 & remove table modules
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Fri Dec 17 20:03:29 2010 +0000 (2010-12-17) |
parents | |
children | 25967da0e1af |
rev | line source |
---|---|
slaxemulator@6982 | 1 # SliTaz package receipt. |
slaxemulator@6982 | 2 |
slaxemulator@6982 | 3 PACKAGE="tinyproxy" |
slaxemulator@6982 | 4 VERSION="1.8.2" |
slaxemulator@6982 | 5 CATEGORY="network" |
slaxemulator@6982 | 6 SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems." |
slaxemulator@6982 | 7 MAINTAINER="slaxemulator@gmail.com" |
slaxemulator@6982 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@6982 | 9 WEB_SITE="https://banu.com/tinyproxy/" |
slaxemulator@6982 | 10 WGET="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL" |
slaxemulator@6982 | 11 |
slaxemulator@6982 | 12 # Rules to configure and make the package. |
slaxemulator@6982 | 13 compile_rules() |
slaxemulator@6982 | 14 { |
slaxemulator@6982 | 15 # Download using real wget since the link is https and we need |
slaxemulator@6982 | 16 # --no-check-certificate that works |
slaxemulator@6982 | 17 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then |
slaxemulator@6982 | 18 tar xjf $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@6982 | 19 else |
slaxemulator@6982 | 20 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced |
slaxemulator@6982 | 21 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" |
slaxemulator@6982 | 22 tar xjf $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@6982 | 23 fi |
slaxemulator@6982 | 24 cd $src |
slaxemulator@6982 | 25 patch -Np1 -i ../stuff/no-docs-and-tests.diff |
slaxemulator@6982 | 26 ./configure \ |
slaxemulator@6982 | 27 --prefix=/usr \ |
slaxemulator@6982 | 28 --infodir=/usr/share/info \ |
slaxemulator@6982 | 29 --mandir=/usr/share/man \ |
slaxemulator@6982 | 30 --sysconfdir=/etc/tinyproxy \ |
slaxemulator@6982 | 31 --localstatedir=/var \ |
slaxemulator@6982 | 32 $CONFIGURE_ARGS && |
slaxemulator@6982 | 33 make && make DESTDIR=$PWD/_pkg install |
slaxemulator@6982 | 34 # Provide sane defaults |
slaxemulator@6982 | 35 sed -i '/^#Listen/a\Listen 127.0.0.1' "$PWD/_pkg/etc/tinyproxy/tinyproxy.conf" |
slaxemulator@6982 | 36 |
slaxemulator@6982 | 37 } |
slaxemulator@6982 | 38 |
slaxemulator@6982 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6982 | 40 genpkg_rules() |
slaxemulator@6982 | 41 { |
slaxemulator@6982 | 42 mkdir -p $fs/usr/share $fs/etc/init.d |
slaxemulator@6982 | 43 cp -a $_pkg/usr/sbin $fs/usr |
slaxemulator@6982 | 44 cp -a $_pkg/usr/share/tinyproxy $fs/usr/share |
slaxemulator@6982 | 45 cp -a $_pkg/etc/tinyproxy $fs/etc |
slaxemulator@6982 | 46 cp -a stuff/tinyproxy $fs/etc/init.d |
slaxemulator@6982 | 47 } |
slaxemulator@6982 | 48 |