Files
haikuports/net-proxy/privoxy/privoxy-3.0.26.recipe
Giova84 e60b9a4430 privoxy: enable x86_gcc2 (#1557)
Enable compiling on gcc2h
2017-08-04 17:39:26 +03:00

72 lines
1.6 KiB
Bash

SUMMARY="A web proxy with advanced filtering capabilities"
DESCRIPTION="Privoxy is a non-caching web proxy with advanced filtering \
capabilities for enhancing privacy, modifying web page data and HTTP headers, \
controlling access, and removing ads and other obnoxious Internet junk.
Privoxy has a flexible configuration and can be customized to suit individual \
needs and tastes. It has application for both stand-alone systems and multi-\
user networks."
HOMEPAGE="http://www.privoxy.org/"
COPYRIGHT="2001-2017 Privoxy Developers"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://www.privoxy.org/sf-download-mirror/Sources/$portVersion%20%28stable%29/privoxy-$portVersion-stable-src.tar.gz"
CHECKSUM_SHA256="57e415b43ee5dfdca74685cc034053eaae962952fdabd086171551a86abf9cd8"
SOURCE_DIR="privoxy-$portVersion-stable"
ARCHITECTURES="x86_gcc2 ?x86 x86_64 ?ppc"
PROVIDES="
privoxy = $portVersion
cmd:privoxy = $portVersion
"
REQUIRES="
haiku
lib:libpcre
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libpcre
devel:libz
"
BUILD_PREREQUIRES="
cmd:autoheader
cmd:autoconf
cmd:awk
cmd:make
cmd:grep
cmd:sed
cmd:g++
cmd:find
"
GLOBAL_WRITABLE_FILES="
settings/privoxy directory manual
"
USER_SETTINGS_FILES="
settings/privoxy directory manual
"
BUILD()
{
host_os=haiku
autoheader
autoconf
export LDFLAGS="-lnetwork"
runConfigure --omit-dirs sysconfdir ./configure \
--sysconfdir="$settingsDir/privoxy" \
--enable-compression
make
}
INSTALL()
{
host_os=haiku
# FIXME, privoxy should have an own user and group
make install USER=user GROUP=root
rm -rf $localStateDir
}