# SliTaz package receipt. PACKAGE="tinyproxy" VERSION="1.8.3" CATEGORY="network" SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems." MAINTAINER="slaxemulator@gmail.com" BUILD_DEPENDS="wget" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://banu.com/tinyproxy/" WGET_URL="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src patch -Np1 -i $stuff/no-docs-and-tests.diff ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --sysconfdir=/etc/tinyproxy \ --localstatedir=/var \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install # Provide sane defaults sed -i '/^#Listen/a\Listen 127.0.0.1' "$DESTDIR/etc/tinyproxy/tinyproxy.conf" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share $fs/etc/init.d cp -a $_pkg/usr/sbin $fs/usr cp -a $_pkg/usr/share/tinyproxy $fs/usr/share cp -a $_pkg/etc/tinyproxy $fs/etc cp -a $stuff/tinyproxy $fs/etc/init.d }