diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-04-12 08:53:26 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-04-12 08:53:26 +0000 |
commit | a00e08fd7ed8bbb55e07193891b714f4c409b23b (patch) | |
tree | 830ba8515dbc80478a8f6bb405f6631ba9cfc9f3 | |
parent | Stable on alpha wrt security bug #172577 (diff) | |
download | gentoo-2-a00e08fd7ed8bbb55e07193891b714f4c409b23b.tar.gz gentoo-2-a00e08fd7ed8bbb55e07193891b714f4c409b23b.tar.bz2 gentoo-2-a00e08fd7ed8bbb55e07193891b714f4c409b23b.zip |
Fix multilib and QA notices.
(Portage version: 2.1.2.3)
-rw-r--r-- | net-proxy/oops/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/oops/files/digest-oops-1.5.24_pre20050503-r2 | 6 | ||||
-rw-r--r-- | net-proxy/oops/files/implicit-decl.patch | 9 | ||||
-rw-r--r-- | net-proxy/oops/oops-1.5.24_pre20050503-r2.ebuild | 101 |
4 files changed, 123 insertions, 1 deletions
diff --git a/net-proxy/oops/ChangeLog b/net-proxy/oops/ChangeLog index b556e67d169f..683b1e65dfff 100644 --- a/net-proxy/oops/ChangeLog +++ b/net-proxy/oops/ChangeLog @@ -1,6 +1,12 @@ # 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: diff --git a/net-proxy/oops/files/digest-oops-1.5.24_pre20050503-r2 b/net-proxy/oops/files/digest-oops-1.5.24_pre20050503-r2 new file mode 100644 index 000000000000..f1fbcce3d239 --- /dev/null +++ b/net-proxy/oops/files/digest-oops-1.5.24_pre20050503-r2 @@ -0,0 +1,6 @@ +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 diff --git a/net-proxy/oops/files/implicit-decl.patch b/net-proxy/oops/files/implicit-decl.patch new file mode 100644 index 000000000000..767814dd6a82 --- /dev/null +++ b/net-proxy/oops/files/implicit-decl.patch @@ -0,0 +1,9 @@ +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" + diff --git a/net-proxy/oops/oops-1.5.24_pre20050503-r2.ebuild b/net-proxy/oops/oops-1.5.24_pre20050503-r2.ebuild new file mode 100644 index 000000000000..f9cde4974dc1 --- /dev/null +++ b/net-proxy/oops/oops-1.5.24_pre20050503-r2.ebuild @@ -0,0 +1,101 @@ +# 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" +} |