summaryrefslogtreecommitdiff
path: root/net-proxy/ziproxy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-proxy/ziproxy
reinit the tree, so we can have metadata
Diffstat (limited to 'net-proxy/ziproxy')
-rw-r--r--net-proxy/ziproxy/Manifest8
-rw-r--r--net-proxy/ziproxy/files/ziproxy-3.3.1-giflib5.patch46
-rw-r--r--net-proxy/ziproxy/files/ziproxy.confd18
-rw-r--r--net-proxy/ziproxy/files/ziproxy.initd-r125
-rw-r--r--net-proxy/ziproxy/metadata.xml13
-rw-r--r--net-proxy/ziproxy/ziproxy-3.3.1-r1.ebuild84
6 files changed, 194 insertions, 0 deletions
diff --git a/net-proxy/ziproxy/Manifest b/net-proxy/ziproxy/Manifest
new file mode 100644
index 000000000000..237789989bb9
--- /dev/null
+++ b/net-proxy/ziproxy/Manifest
@@ -0,0 +1,8 @@
+AUX ziproxy-3.3.1-giflib5.patch 1399 SHA256 34771c1f1a0014584dd1d1c4670b8a2960a8e3de81205593f3e2ecaddcc7cda3 SHA512 d8ab2e6d89fdfb7fa7e86905e9525cff6704a57ef4c25a83eb64fde39769c0196472645eaccdaa7363338cecd18855151ff82995887391e6d428227d0a516a6e WHIRLPOOL 3eeb19ae5e05eee5e5ecbc0c46d2ce993cc4d1b66fc4a531477e6fb42926b527490da074105d3c61601c1a8b9b876cf604e33acf59f182c01c66ae8894ef785a
+AUX ziproxy.confd 650 SHA256 dad7db324941944a35c87d4e061a004f5d9638ea24f139bc9bad80a51e0e8d78 SHA512 77d730705c652c59acbd20c10d06801427cc3736ef3f9e06771fcadb0470599b3f6b84bd6e4d35c10e90927077e35e0547051b638a4bbafe4a596c38aa1af0eb WHIRLPOOL 1300e3a97f7069d868bf11a4caca39948c02862eacce6bf5e8d92dbc87bc5de6278c87a2023986973cb585cbd5a494ad256dec53aaa1b79b14a360e79f61d0ad
+AUX ziproxy.initd-r1 558 SHA256 41603c39d32f8b725b6786a0e839bb90c721e0ba667ea633b13d38ed8499c273 SHA512 81fd2c24876e6cc2be6c1b77e9c3ff916a7a8b541655aeb0dab3122c7b40a5f23ddc7db3d3867441c3f61509e0c75e321681e7fcd4e6b268f45faab55460542f WHIRLPOOL 4c1051d0c4f56d60db6b67a51bde010753bff6aabce967968fd71a32c974b03d85effa107b1414b063026ba4acd46d635264c301692176fd4700e705c91b62d8
+DIST ziproxy-3.3.1.tar.xz 205972 SHA256 358396f5b5c469be15b0c43cae9d40a183072d0b9a35621ed8ff22a0bedb2206 SHA512 bff87a63320e721091ccdcdbe409f59db7f7f681ee8b7f093f18f3c0391579a25b9a8daf6ccfea4d94384142247ce36cfaec68d294b2a23caa56ede436da2d87 WHIRLPOOL b57da63dd76fb39461c1ed9959fe022c662c2309a1735ac0e0bb517420c93682fcb7a72a7c1507c1cf689d051a2fd89748c776ae45a476b25dfa93c5e755c93e
+EBUILD ziproxy-3.3.1-r1.ebuild 1699 SHA256 538987e1ba830ac343023d78f3e815786e96f85a4c19cc80e6fb3e856cf6fe7f SHA512 ff68726c66e33eff25cb1c3b5f7bb85a60cd06e8d0969d017f353dfbc1fe36caedc638edd323585622ae92b345866063029930ce1a4f0b78b49cde3491f87fba WHIRLPOOL 334d10f85e0c258f7830485a53e9521b76040044d05d24af0022d4ae25813122ded94ee709a85f0491b6de14311332e0b42b72024d4ba10654e7f46e9772ecfd
+MISC ChangeLog 3542 SHA256 c2aef17db8bab9824d3b1f0b0abc00bef4624c26703ac509d1a1cae4a6f64566 SHA512 f5ef495e8861999e3cf84e159fed523a51aa575e643a764e9ce39f5f478772c4a99b15668a2dc42f3dfa127b6b229c7191e7965127d1ca1dcc95abe7778ef625 WHIRLPOOL 5a1503d5346bb1da737e7d55e47a25bf768691676e676cce7973f4966981868086bd392575b74512d716b7074a44c7f851cd990f20afebab549841fef1de7142
+MISC ChangeLog-2015 5934 SHA256 5dfebe4e5b76036baf1ed0c870e08f21280128361de43681ecc774237ca38732 SHA512 e9f5e14e1a6e1ada46b1e8976b690ab55808ad9849f15928464761fd4a9dc031522e37b343303dfa5f867b8a36f94bac08f0bb5c8fed97b970bae91e77536889 WHIRLPOOL 44c53d6bded9102cd423ff471d86d8e00220f1907a38759f3c65850f421394d9e8c0c10ca2e2bb635095914a9d8bea68336969c5ca13805512e6a78b41b29375
+MISC metadata.xml 516 SHA256 0b102e59974022123569945a9ba759c33dc4d4d30f6c157708453ef362af4900 SHA512 477983c8d8f5e65f6bb6f8462711e6920da429c4c17dbcabfe5743da8cd693d016df2743bc4cedf042ccbe2d2f406486173ce7e118a117634eb3c2fee7cf4e6f WHIRLPOOL 0cfae7ebb657a814e20f251909d1e61a8fbf1badfe445df4d19b8ae9d0f5fa64b481388d480542515ef05e5229364cdda2849a40bd710ad17f7b0ba471b65ea4
diff --git a/net-proxy/ziproxy/files/ziproxy-3.3.1-giflib5.patch b/net-proxy/ziproxy/files/ziproxy-3.3.1-giflib5.patch
new file mode 100644
index 000000000000..e8404ecc47b4
--- /dev/null
+++ b/net-proxy/ziproxy/files/ziproxy-3.3.1-giflib5.patch
@@ -0,0 +1,46 @@
+Description: Build using giflib5
+Forwarded: yes
+Author: Marcos Talau <talau@users.sourceforge.net>
+Author: Matthias Klose <doko@debian.org>
+Last-Update: 2015-11-04
+
+Index: ziproxy-3.3.1/src/image.c
+===================================================================
+--- ziproxy-3.3.1.orig/src/image.c
++++ ziproxy-3.3.1/src/image.c
+@@ -905,7 +905,11 @@ int gif2bitmap(char *inbuf, int insize,
+ desc.size=insize;
+ desc.x.pos=0;
+
++#if GIFLIB_MAJOR >= 5
++ if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input, NULL)) == NULL)
++#else
+ if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input)) == NULL)
++#endif
+ return( IMG_RET_ERR_UNKNOWN + IMG_RET_FLG_WHILE_DECOMP);//more possible reasons
+
+ bmp = new_raw_bitmap();
+@@ -1083,7 +1087,11 @@ int gif2bitmap(char *inbuf, int insize,
+ }
+ bmp->pal_bpp = bmp->bpp;
+
++#if GIFLIB_MAJOR >= 5
++ DGifCloseFile(GifFile, NULL);
++#else
+ DGifCloseFile(GifFile);
++#endif
+ return IMG_RET_OK;
+ }
+
+@@ -1738,7 +1746,11 @@ static int bitmap2jp2 (raw_bitmap *bmp,
+ cmptparm->width = cwidth [cmptno];
+ cmptparm->height = cheight [cmptno];
+ cmptparm->prec = cbitlen [cmptno];
++#if GIFLIB_MAJOR >= 5
++ cmptparm->sgnd = 0; // we only generate unsigned components
++#else
+ cmptparm->sgnd = false; // we only generate unsigned components
++#endif
+
+ cshiftR [cmptno] = 8 - cbitlen [cmptno]; // calculate the resampling shift for this component
+ }
diff --git a/net-proxy/ziproxy/files/ziproxy.confd b/net-proxy/ziproxy/files/ziproxy.confd
new file mode 100644
index 000000000000..9a4a12137c6a
--- /dev/null
+++ b/net-proxy/ziproxy/files/ziproxy.confd
@@ -0,0 +1,18 @@
+# configuraton file for /etc/init.d/ziproxy
+#
+# you can symlink /etc/init.d/ziproxy to a different name
+# and then copy this config to a new file with the same name
+# as the symlinked init-script to run multiple instances of
+# ziproxy. You have to change the location for CONFIG then
+# of course... ;-)
+
+# Full path to ziproxy.conf file (instead of default one).
+#
+#CONFIG="/etc/ziproxy/ziproxy.conf"
+
+# Limit incoming connections only from the specified address(es).
+# This option has the same meaning, but higher precedence as
+# "OnlyFrom=" option in configuration file. Uncomment it
+# if you want to set it.
+#
+#ONLYFROM="<IP.address or hostname>"
diff --git a/net-proxy/ziproxy/files/ziproxy.initd-r1 b/net-proxy/ziproxy/files/ziproxy.initd-r1
new file mode 100644
index 000000000000..7336e3c9f658
--- /dev/null
+++ b/net-proxy/ziproxy/files/ziproxy.initd-r1
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ local OPT="-d"
+ ebegin "Starting ${SVCNAME}"
+
+ [ -n "${CONFIG}" ] && OPT="${OPT} -c ${CONFIG}"
+ [ -n "${ONLYFROM}" ] && OPT="${OPT} -f ${ONLYFROM}"
+
+ start-stop-daemon --start \
+ --exec /usr/sbin/ziproxy -- ${OPT} -u ziproxy -g ziproxy -p /var/run/${SVCNAME}.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
+ eend $?
+}
diff --git a/net-proxy/ziproxy/metadata.xml b/net-proxy/ziproxy/metadata.xml
new file mode 100644
index 000000000000..8f01fac0ec5f
--- /dev/null
+++ b/net-proxy/ziproxy/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ Ziproxy is a http compression and optimizer, non-caching, fully configurable
+ proxy. Ziproxy features JPEG, GIF, PNG, JPEG2k and GZIP recompression for
+ lower HTTP traffic through low speed links, among other features.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ziproxy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-proxy/ziproxy/ziproxy-3.3.1-r1.ebuild b/net-proxy/ziproxy/ziproxy-3.3.1-r1.ebuild
new file mode 100644
index 000000000000..7ac3b1b6f333
--- /dev/null
+++ b/net-proxy/ziproxy/ziproxy-3.3.1-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user
+
+DESCRIPTION="A forwarding, non-caching, compressing web proxy server"
+HOMEPAGE="http://ziproxy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="jpeg2k sasl xinetd"
+
+RDEPEND="
+ media-libs/giflib:0=
+ media-libs/libpng:0=
+ virtual/jpeg:0
+ sys-libs/zlib
+ jpeg2k? ( media-libs/jasper:= )
+ sasl? ( dev-libs/cyrus-sasl )
+ xinetd? ( virtual/inetd )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-giflib5.patch )
+
+pkg_setup() {
+ enewgroup ziproxy
+ enewuser ziproxy -1 -1 -1 ziproxy
+}
+
+src_prepare() {
+ default
+
+ # fix sample config file
+ sed -i \
+ -e "s:/var/ziproxy/:/var/lib/ziproxy/:g" \
+ -e "s:%j-%Y.log:/var/log/ziproxy/%j-%Y.log:g" \
+ etc/ziproxy/ziproxy.conf || die
+
+ # fix sample xinetd config
+ sed -i \
+ -e "s:/usr/bin/:/usr/sbin/:g" \
+ -e "s:\(.*port.*\):\1\n\ttype\t\t\t= UNLISTED:g" \
+ -e "s:root:ziproxy:g" \
+ etc/xinetd.d/ziproxy || die
+}
+
+src_configure() {
+ econf \
+ $(use_with jpeg2k jasper) \
+ $(use_with sasl sasl2) \
+ --with-cfgfile=/etc/ziproxy/ziproxy.conf
+}
+
+src_install() {
+ default
+
+ dodir /usr/sbin
+ mv -vf "${D}"usr/{,s}bin/ziproxy || die
+
+ dobin src/tools/ziproxy_genhtml_stats.sh
+
+ newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ use jpeg2k && dodoc JPEG2000.txt
+
+ insinto /etc
+ doins -r etc/ziproxy
+
+ insinto /var/lib/ziproxy/error
+ doins var/ziproxy/error/*.html
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ doins etc/xinetd.d/ziproxy
+ fi
+
+ diropts -m0750 -o ziproxy -g ziproxy
+ keepdir /var/log/ziproxy
+}