Files
haikuports/net-proxy/privoxy/privoxy-3.0.34.recipe
2023-10-08 14:57:00 +00:00

71 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-2021 The Privoxy team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://www.privoxy.org/sf-download-mirror/Sources/$portVersion%20%28stable%29/privoxy-$portVersion-stable-src.tar.gz"
CHECKSUM_SHA256="e6ccbca1656f4e616b4657f8514e33a70f6697e9d7294356577839322a3c5d2c"
SOURCE_DIR="privoxy-$portVersion-stable"
ARCHITECTURES="all ?ppc"
GLOBAL_WRITABLE_FILES="
settings/privoxy directory manual
"
USER_SETTINGS_FILES="
settings/privoxy directory manual
"
PROVIDES="
privoxy = $portVersion
cmd:privoxy = $portVersion
"
REQUIRES="
haiku
lib:libpcre
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libpcre
devel:libz
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:autoheader
cmd:awk
cmd:find
cmd:g++
cmd:grep
cmd:make
cmd:sed
"
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
}