# ChangeLog for net-proxy/oops
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/oops/ChangeLog,v 1.13 2007/01/03 13:07:56 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/oops/ChangeLog,v 1.14 2007/04/12 08:53:26 mrness Exp $
+
+*oops-1.5.24_pre20050503-r2 (12 Apr 2007)
+
+ 12 Apr 2007; Alin Năstac <mrness@gentoo.org> +files/implicit-decl.patch,
+ +oops-1.5.24_pre20050503-r2.ebuild:
+ Fix multilib and QA notices.
03 Jan 2007; Alin Nastac <mrness@gentoo.org>
oops-1.5.24_pre20050503-r1.ebuild:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX implicit-decl.patch 304 RMD160 4a14c789a10040bd9d7c108f0ef21ebfd0365807 SHA1 36f77b311a26abd0cc2616c7ff9bb36d0d138691 SHA256 1f6b490904ec7597999f388a818782817aaf401c05b3ee8a6423de1ff751b30e
+MD5 fa8a81f820f7f7291eb1b4a9ae839b62 files/implicit-decl.patch 304
+RMD160 4a14c789a10040bd9d7c108f0ef21ebfd0365807 files/implicit-decl.patch 304
+SHA256 1f6b490904ec7597999f388a818782817aaf401c05b3ee8a6423de1ff751b30e files/implicit-decl.patch 304
AUX modules-as-needed.patch 938 RMD160 826cb10345b052147fbab23aead070749f977722 SHA1 112464fba1af28a7bfe3d6b2a1456896b73a7962 SHA256 38a8739282054477dc4488875a8989579565ba13b8f49ae83e2d6b09348117e1
MD5 1713d77ed9574b4428db71709b3a5ee2 files/modules-as-needed.patch 938
RMD160 826cb10345b052147fbab23aead070749f977722 files/modules-as-needed.patch 938
MD5 c4aa35abafebe48ce20ba58c09fcd66c oops-1.5.24_pre20050503-r1.ebuild 2604
RMD160 33caa3728b5e76b64be99f3953902be5e07d7b19 oops-1.5.24_pre20050503-r1.ebuild 2604
SHA256 6d494490ffeed1b8065487098776b745546e364cea89fb64f38aeaeff75ff1ce oops-1.5.24_pre20050503-r1.ebuild 2604
-MISC ChangeLog 3991 RMD160 45da4770d574b2be0c28d4e1968eaa7df2ae77c1 SHA1 0ef55e3e79b904239fc794a95ce68a1450885050 SHA256 42ce69c2b8dc57478a6b10beab819d9636856e66d85a376a41692ade1daa6e83
-MD5 a93438bb5689a8cb4b9c7f84c7cee0cb ChangeLog 3991
-RMD160 45da4770d574b2be0c28d4e1968eaa7df2ae77c1 ChangeLog 3991
-SHA256 42ce69c2b8dc57478a6b10beab819d9636856e66d85a376a41692ade1daa6e83 ChangeLog 3991
+EBUILD oops-1.5.24_pre20050503-r2.ebuild 2689 RMD160 6899300895241760880d7f435e06bc06a4cf0001 SHA1 7dd30263fad9bfbe8a8310c939494aca81c05a22 SHA256 6bff0d67bec5fd9d955cd78c62b1793e17d0cc5a97c457e80577fbd256946f9d
+MD5 233b56048960c3b50d13cb3f8052ad6b oops-1.5.24_pre20050503-r2.ebuild 2689
+RMD160 6899300895241760880d7f435e06bc06a4cf0001 oops-1.5.24_pre20050503-r2.ebuild 2689
+SHA256 6bff0d67bec5fd9d955cd78c62b1793e17d0cc5a97c457e80577fbd256946f9d oops-1.5.24_pre20050503-r2.ebuild 2689
+MISC ChangeLog 4180 RMD160 42c3051b1bffa05800d9b6e362dbefbdf917acf9 SHA1 0838cdcbacd0368ec6d90c9a914b0c23f92681c8 SHA256 1e825898a440524cf0467a73132d54c5e9fca76c7bea04de309cdbcce4fde8a7
+MD5 c88fb3a6909166aa898fcecdef89ddfa ChangeLog 4180
+RMD160 42c3051b1bffa05800d9b6e362dbefbdf917acf9 ChangeLog 4180
+SHA256 1e825898a440524cf0467a73132d54c5e9fca76c7bea04de309cdbcce4fde8a7 ChangeLog 4180
MISC metadata.xml 241 RMD160 49452806ed5c451d97e1fa0ea2502e0eee3c41d6 SHA1 e9ba513731cedbbad85c4e23eead942b5c34ccc8 SHA256 62971ad1585c672fdea039fe2b299a5655375b23f78d7c2149901e2b29407bd3
MD5 0bba18e763cee72e6af83a6bc6e1db87 metadata.xml 241
RMD160 49452806ed5c451d97e1fa0ea2502e0eee3c41d6 metadata.xml 241
MD5 f4aba49a377f0c83dc835a4831e4dcf8 files/digest-oops-1.5.24_pre20050503-r1 512
RMD160 eabf9ca7f832e3a75feae3f31d5ebc427cf77191 files/digest-oops-1.5.24_pre20050503-r1 512
SHA256 0a0c1cf95c181b9ac97b8cccf2de02faf359831d1c4cd66ef169d6d72fdb809d files/digest-oops-1.5.24_pre20050503-r1 512
+MD5 f4aba49a377f0c83dc835a4831e4dcf8 files/digest-oops-1.5.24_pre20050503-r2 512
+RMD160 eabf9ca7f832e3a75feae3f31d5ebc427cf77191 files/digest-oops-1.5.24_pre20050503-r2 512
+SHA256 0a0c1cf95c181b9ac97b8cccf2de02faf359831d1c4cd66ef169d6d72fdb809d files/digest-oops-1.5.24_pre20050503-r2 512
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
+Version: GnuPG v2.0.3 (GNU/Linux)
-iD8DBQFFm6q7JnxX6mF440QRAn4rAKDcIXeLhVFsdST0Pe00sIat6bwKQQCgt5A4
-+dB4pOeZqjYwFuYGlK4HtPw=
-=kh0Q
+iD8DBQFGHfORJnxX6mF440QRAgMBAKCdcbTB9o79Q+usynJuTEGUmzJrKwCcCbRp
+jsRadpSamrZz1fkOPIuSkxo=
+=LLVx
-----END PGP SIGNATURE-----
--- /dev/null
+MD5 bfa19752af517bb5a6cd746acf61064c oops-1.5.23.tar.gz 473290
+RMD160 295122ff9ce7e045cf7ddda035479056ba9e5881 oops-1.5.23.tar.gz 473290
+SHA256 b9ab7c0b5b11de7944f098d6f99158fe1b9c3b9cf82fe7827685c6cec8ccfa04 oops-1.5.23.tar.gz 473290
+MD5 8fbd0e763338eba31949d2a20217707a oops-1.5.24_pre20050503.patch.gz 101103
+RMD160 dffdc6842db8c78d87c26fe180302b56608f1f2e oops-1.5.24_pre20050503.patch.gz 101103
+SHA256 954e59d046096867a8e818bf47190ab06c8416abb80d151757825a664192aded oops-1.5.24_pre20050503.patch.gz 101103
--- /dev/null
+diff -Nru oops-1.5.23.orig/src/hash.c oops-1.5.23/src/hash.c
+--- oops-1.5.23.orig/src/hash.c 2001-01-28 14:34:43.000000000 +0200
++++ oops-1.5.23/src/hash.c 2007-04-11 14:19:26.000000000 +0300
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <string.h>
+ #include <strings.h>
+ #include "hash.h"
+
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/oops/oops-1.5.24_pre20050503-r2.ebuild,v 1.1 2007/04/12 08:53:26 mrness Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P="${PN}-1.5.23"
+
+DESCRIPTION="An advanced multithreaded caching web proxy"
+HOMEPAGE="http://zipper.paco.net/~igor/oops.eng/"
+SRC_URI="http://zipper.paco.net/~igor/oops/${MY_P}.tar.gz
+ mirror://gentoo/${P}.patch.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/libpcre
+ >=sys-libs/db-3"
+DEPEND="${RDEPEND}
+ sys-devel/flex"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewgroup oops
+ enewuser oops -1 -1 /var/lib/oops oops
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${WORKDIR}/${P}.patch"
+ epatch "${FILESDIR}/${P/_*}-textrel.patch"
+ epatch "${FILESDIR}/${P/_*}-pthread-rwlock.patch"
+ epatch "${FILESDIR}/modules-as-needed.patch"
+ epatch "${FILESDIR}/implicit-decl.patch"
+ sed -i -e 's:/usr/local/lib/libpcre:/usr/lib/libpcre:g' configure
+ sed -i -e 's:y\.tab\.h:y.tab.c:' src/Makefile.in
+}
+
+src_compile() {
+ econf \
+ --prefix=/usr \
+ --libdir=/usr/$(get_libdir)/oops \
+ --enable-oops-user=oops \
+ --sysconfdir=/etc/oops \
+ --sbindir=/usr/sbin \
+ --with-regexp=pcre \
+ --localstatedir=/var/run/oops \
+ --enable-large-files \
+ || die "configure problem"
+
+ sed -i -e '/STRERROR_R/d' src/config.h.in
+ sed -i \
+ -e "s|OOPS_LIBDIR = /usr/$(get_libdir)/oops|OOPS_LIBDIR = ${D}/usr/$(get_libdir)/oops|" \
+ -e "s|OOPS_SBINDIR = /usr/sbin|OOPS_SBINDIR = ${D}/usr/sbin|" \
+ -e "s|OOPS_SYSCONFDIR = /etc/oops|OOPS_SYSCONFDIR = ${D}/etc/oops|" \
+ -e "s|OOPS_LOCALSTATEDIR = /var/run/oops|OOPS_LOCALSTATEDIR = ${D}/var/run/oops|" \
+ -e "s|OOPSPATH=/usr/oops|OOPSPATH=${D}/usr/oops|" \
+ src/Makefile
+ sed -i \
+ -e "s|^\(LDFLAGS *= *\)${LDFLAGS}|\1$(raw-ldflags)|" \
+ src/modules/Makefile #modules makefile use ld directly
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ dodir /usr/sbin
+ einstall || die "install problem"
+
+ newinitd "${FILESDIR}/oops.initd" oops
+ diropts -m0750 -o root -g oops
+ dodir /etc/oops
+ insinto /etc/oops
+ doins "${FILESDIR}/oops.cfg"
+
+ diropts -m0755 -o oops -g oops
+ keepdir /var/run/oops
+ diropts -m0770 -o oops -g oops
+ keepdir /var/log/oops
+ keepdir /var/lib/oops/storage
+ keepdir /var/lib/oops/db
+
+ # cleanups
+ rm -rf "${D}/usr/oops"
+ rm -rf "${D}/usr/lib/oops/modules"
+}
+
+pkg_preinst() {
+ pkg_setup # create oops user and group
+}
+
+pkg_postinst() {
+ #Set proper owner/group if installed from binary package
+ chgrp oops "${ROOT}/etc/oops"
+ chown -R oops:oops "${ROOT}/var/run/oops" "${ROOT}/var/log/oops" "${ROOT}/var/lib/oops"
+}