mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
68 lines
2.1 KiB
Bash
68 lines
2.1 KiB
Bash
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
pkgname=privoxy
|
|
pkgver=3.0.19
|
|
pkgrel=1
|
|
pkgdesc='A web proxy with advanced filtering capabilities.'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.privoxy.org'
|
|
license=('GPL')
|
|
depends=('pcre' 'zlib')
|
|
makedepends=('autoconf')
|
|
backup=('etc/conf.d/privoxy'
|
|
'etc/privoxy/'{config,trust,default.action,user.filter,default.filter}
|
|
'etc/privoxy/'{match-all,user}.action
|
|
'etc/logrotate.d/privoxy')
|
|
install='privoxy.install'
|
|
source=("http://downloads.sourceforge.net/ijbswa/${pkgname}-${pkgver}-stable-src.tar.gz"
|
|
'privoxy'
|
|
'privoxy.logrotate.d'
|
|
'privoxy.conf.d')
|
|
md5sums=('57acc79059565cc42eda67982842785d'
|
|
'a799e4d4f0ebb7f08190fa2bc961f439'
|
|
'79480f311313cc43974f6cbe6b672927'
|
|
'27830ef79418e277b90c1c1fa933f876')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}-stable"
|
|
|
|
autoheader
|
|
autoconf
|
|
./configure --prefix=/usr --sysconfdir=/etc/privoxy
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}-stable"
|
|
|
|
make prefix="${pkgdir}/usr" MAN_DEST="${pkgdir}/usr/share/man/man1" GROUP=42 \
|
|
CONF_BASE="${pkgdir}/etc/privoxy" VAR_DEST="${pkgdir}/var" install
|
|
|
|
# Don't overwrite existing log files!
|
|
rm "${pkgdir}/var/log/privoxy/"*
|
|
|
|
install -Dm0755 "${srcdir}/privoxy" "${pkgdir}/etc/rc.d/privoxy"
|
|
install -Dm0644 "${srcdir}/privoxy.logrotate.d" "${pkgdir}/etc/logrotate.d/privoxy"
|
|
install -Dm0644 "${srcdir}/privoxy.conf.d" "${pkgdir}/etc/conf.d/privoxy"
|
|
|
|
# Fix config paths.
|
|
sed -i -e 's#^confdir.*$#confdir /etc/privoxy#' -e 's#^logdir.*$#logdir /var/log/privoxy#' \
|
|
-e '/^user-manual/s#.*#\#user-manual /usr/share/doc/privoxy/user-manual/#' \
|
|
"${pkgdir}/etc/privoxy/config"
|
|
|
|
# Fix group ownership and permissions.
|
|
chgrp -R 42 "${pkgdir}/etc/privoxy/"
|
|
chgrp -R 42 "${pkgdir}/var/log/privoxy/"
|
|
|
|
find "${pkgdir}/etc/privoxy/" -type d | xargs chmod 0770
|
|
find "${pkgdir}/etc/privoxy/" -type f | xargs chmod 0660
|
|
chmod 0700 "${pkgdir}/var/log/privoxy"
|
|
}
|