parent
4969dedf91
commit
67c5ee6ba4
@ -1,2 +1,3 @@
|
||||
DIST hivex-1.3.1.tar.gz 1078397 RMD160 5f42e555fae7c694421714b7e7e9909888b5b2f3 SHA1 71b54636b516f7c08767c826c2c630358f9e52de SHA256 dc18d94c88f088b9423ed429fe2fd95bab51fc66f86b6081a7c73e4093913328
|
||||
DIST hivex-1.3.2.tar.gz 1082330 RMD160 4c762ee80b5347497559af0c78d7f3962487ca2d SHA1 cdd53de1f6f17a98333b0bde8193458d409fe861 SHA256 e02d664b262f616e842d58a3787315ceb239c5986ff0652b37af9aeed483025c
|
||||
DIST hivex-1.3.3.tar.gz 1135870 RMD160 16b0cd574435164628ad69facdadf4fe0553f073 SHA1 4565d6e3d94c5ad558f403ab2aa0ad19e7ccf738 SHA256 c6342ad9f3cd55fa4eb2f5d3acbeeb9701c94f0ad31eb9809639f8f6fc2c1676
|
||||
|
@ -0,0 +1,70 @@
|
||||
From: Hilko Bengen <bengen@debian.org>
|
||||
Date: Thu, 1 Dec 2011 22:07:26 +0100
|
||||
Subject: Fixed gnulib integration for hivexml
|
||||
|
||||
---
|
||||
lib/Makefile.am | 5 ++++-
|
||||
sh/Makefile.am | 1 +
|
||||
xml/Makefile.am | 3 ++-
|
||||
xml/hivexml.c | 2 ++
|
||||
4 files changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/Makefile.am b/lib/Makefile.am
|
||||
index cfd2e05..a339a00 100644
|
||||
--- a/lib/Makefile.am
|
||||
+++ b/lib/Makefile.am
|
||||
@@ -39,7 +39,10 @@ libhivex_la_LDFLAGS = \
|
||||
$(LTLIBINTL) \
|
||||
$(LTLIBTHREAD)
|
||||
libhivex_la_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
-libhivex_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(srcdir)
|
||||
+libhivex_la_CPPFLAGS = \
|
||||
+ -I$(top_srcdir)/gnulib/lib \
|
||||
+ -I$(top_builddir)/gnulib/lib \
|
||||
+ -I$(srcdir)
|
||||
|
||||
include_HEADERS = hivex.h
|
||||
|
||||
diff --git a/sh/Makefile.am b/sh/Makefile.am
|
||||
index 0898370..a6f5ae6 100644
|
||||
--- a/sh/Makefile.am
|
||||
+++ b/sh/Makefile.am
|
||||
@@ -38,6 +38,7 @@ hivexsh_SOURCES = \
|
||||
hivexsh_LDADD = ../lib/libhivex.la ../gnulib/lib/libgnu.la $(LIBREADLINE)
|
||||
hivexsh_CFLAGS = \
|
||||
-I$(top_srcdir)/gnulib/lib \
|
||||
+ -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
diff --git a/xml/Makefile.am b/xml/Makefile.am
|
||||
index b2af45d..67ba248 100644
|
||||
--- a/xml/Makefile.am
|
||||
+++ b/xml/Makefile.am
|
||||
@@ -23,10 +23,11 @@ bin_PROGRAMS = hivexml
|
||||
hivexml_SOURCES = \
|
||||
hivexml.c
|
||||
|
||||
-hivexml_LDADD = ../lib/libhivex.la $(LIBXML2_LIBS)
|
||||
+hivexml_LDADD = ../lib/libhivex.la ../gnulib/lib/libgnu.la $(LIBXML2_LIBS)
|
||||
hivexml_CFLAGS = \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/gnulib/lib \
|
||||
+ -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
diff --git a/xml/hivexml.c b/xml/hivexml.c
|
||||
index 5030c24..d38e9d4 100644
|
||||
--- a/xml/hivexml.c
|
||||
+++ b/xml/hivexml.c
|
||||
@@ -32,6 +32,8 @@
|
||||
#include <libintl.h>
|
||||
#endif
|
||||
|
||||
+#include <getopt.h>
|
||||
+
|
||||
#include <libxml/xmlwriter.h>
|
||||
|
||||
#include "hivex.h"
|
||||
--
|
@ -0,0 +1,67 @@
|
||||
From: Hilko Bengen <bengen@debian.org>
|
||||
Date: Thu, 1 Dec 2011 22:08:07 +0100
|
||||
Subject: automake
|
||||
|
||||
---
|
||||
lib/Makefile.in | 6 +++++-
|
||||
sh/Makefile.in | 1 +
|
||||
xml/Makefile.in | 6 ++++--
|
||||
3 files changed, 10 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/lib/Makefile.in b/lib/Makefile.in
|
||||
index 65734dd..5cf7bde 100644
|
||||
--- a/lib/Makefile.in
|
||||
+++ b/lib/Makefile.in
|
||||
@@ -1045,7 +1045,11 @@ libhivex_la_LDFLAGS = \
|
||||
$(LTLIBTHREAD)
|
||||
|
||||
libhivex_la_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
-libhivex_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(srcdir)
|
||||
+libhivex_la_CPPFLAGS = \
|
||||
+ -I$(top_srcdir)/gnulib/lib \
|
||||
+ -I$(top_builddir)/gnulib/lib \
|
||||
+ -I$(srcdir)
|
||||
+
|
||||
include_HEADERS = hivex.h
|
||||
man_MANS = hivex.3
|
||||
noinst_DATA = \
|
||||
diff --git a/sh/Makefile.in b/sh/Makefile.in
|
||||
index 109c8e8..0308a32 100644
|
||||
--- a/sh/Makefile.in
|
||||
+++ b/sh/Makefile.in
|
||||
@@ -995,6 +995,7 @@ hivexsh_SOURCES = \
|
||||
hivexsh_LDADD = ../lib/libhivex.la ../gnulib/lib/libgnu.la $(LIBREADLINE)
|
||||
hivexsh_CFLAGS = \
|
||||
-I$(top_srcdir)/gnulib/lib \
|
||||
+ -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
diff --git a/xml/Makefile.in b/xml/Makefile.in
|
||||
index ed4cd72..5cb647f 100644
|
||||
--- a/xml/Makefile.in
|
||||
+++ b/xml/Makefile.in
|
||||
@@ -119,7 +119,8 @@ PROGRAMS = $(bin_PROGRAMS)
|
||||
am_hivexml_OBJECTS = hivexml-hivexml.$(OBJEXT)
|
||||
hivexml_OBJECTS = $(am_hivexml_OBJECTS)
|
||||
am__DEPENDENCIES_1 =
|
||||
-hivexml_DEPENDENCIES = ../lib/libhivex.la $(am__DEPENDENCIES_1)
|
||||
+hivexml_DEPENDENCIES = ../lib/libhivex.la ../gnulib/lib/libgnu.la \
|
||||
+ $(am__DEPENDENCIES_1)
|
||||
AM_V_lt = $(am__v_lt_$(V))
|
||||
am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
|
||||
am__v_lt_0 = --silent
|
||||
@@ -976,10 +977,11 @@ EXTRA_DIST = \
|
||||
hivexml_SOURCES = \
|
||||
hivexml.c
|
||||
|
||||
-hivexml_LDADD = ../lib/libhivex.la $(LIBXML2_LIBS)
|
||||
+hivexml_LDADD = ../lib/libhivex.la ../gnulib/lib/libgnu.la $(LIBXML2_LIBS)
|
||||
hivexml_CFLAGS = \
|
||||
-DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
||||
-I$(top_srcdir)/gnulib/lib \
|
||||
+ -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
--
|
@ -0,0 +1,105 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -183,11 +183,19 @@
|
||||
AC_CHECK_FUNC([open_memstream])
|
||||
AM_CONDITIONAL([HAVE_HIVEXSH],[test "x$ac_cv_func_open_memstream" = "xyes"])
|
||||
|
||||
+
|
||||
dnl Check for OCaml (optional, for OCaml bindings).
|
||||
+AC_ARG_ENABLE([ocaml],
|
||||
+ AS_HELP_STRING([--with-ocaml],[build Ocaml binding]))
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
AC_PROG_OCAML
|
||||
AC_PROG_FINDLIB
|
||||
AM_CONDITIONAL([HAVE_OCAML],
|
||||
- [test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno"])
|
||||
+ [test "x$OCAMLC" != "xno" -a "x$OCAMLFIND" != "xno" -a "x$enable_ocaml" = "xyes"])
|
||||
+
|
||||
AM_CONDITIONAL([HAVE_OCAMLOPT],
|
||||
[test "x$OCAMLOPT" != "xno" && test "x$OCAMLFIND" != "xno"])
|
||||
|
||||
@@ -227,21 +235,32 @@
|
||||
dnl Check for Perl modules that must be present to compile and
|
||||
dnl test the Perl bindings.
|
||||
missing_perl_modules=no
|
||||
-for pm in Test::More ExtUtils::MakeMaker IO::Stringy; do
|
||||
- AC_MSG_CHECKING([for $pm])
|
||||
- if ! perl -M$pm -e1 >/dev/null 2>&1; then
|
||||
- AC_MSG_RESULT([no])
|
||||
- missing_perl_modules=yes
|
||||
- else
|
||||
- AC_MSG_RESULT([yes])
|
||||
- fi
|
||||
-done
|
||||
-if test "x$missing_perl_modules" = "xyes"; then
|
||||
- AC_MSG_WARN([some Perl modules required to compile or test the Perl bindings are missing])
|
||||
-fi
|
||||
+AC_ARG_ENABLE([perl],
|
||||
+ AS_HELP_STRING([--with-perl],[build Perl binding]))
|
||||
+
|
||||
+
|
||||
+PERL=
|
||||
+AS_IF([test "x$enable_perl" != "xno" ],[
|
||||
+ AC_CHECK_PROG([PERL],[perl],[yes],[no])
|
||||
+
|
||||
+ for pm in Test::More ExtUtils::MakeMaker IO::Stringy; do
|
||||
+ AC_MSG_CHECKING([for $pm])
|
||||
+ if ! perl -M$pm -e1 >/dev/null 2>&1; then
|
||||
+ AC_MSG_RESULT([no])
|
||||
+ missing_perl_modules=yes
|
||||
+ else
|
||||
+ AC_MSG_RESULT([yes])
|
||||
+ fi
|
||||
+ done
|
||||
+
|
||||
+ AS_IF([test "x$missing_perl_modules" = "xyes"],
|
||||
+ [AC_MSG_FAILURE([some Perl modules required to compile or test the Perl bindings are missing])],
|
||||
+ )
|
||||
+])
|
||||
|
||||
AM_CONDITIONAL([HAVE_PERL],
|
||||
- [test "x$PERL" != "xno" && test "x$missing_perl_modules" != "xyes"])
|
||||
+ [test "x$PERL" != "xno" -a "x$missing_perl_modules" != "xyes" -a "x$enable_perl" = "xyes"])
|
||||
+
|
||||
|
||||
dnl Check for Python (optional, for Python bindings).
|
||||
PYTHON_PREFIX=
|
||||
@@ -251,6 +270,7 @@
|
||||
|
||||
AC_CHECK_PROG([PYTHON],[python],[python],[no])
|
||||
|
||||
+
|
||||
if test "x$PYTHON" != "xno"; then
|
||||
AC_MSG_CHECKING([Python prefix])
|
||||
PYTHON_PREFIX=`$PYTHON -c "import sys; print (sys.prefix)"`
|
||||
@@ -308,15 +328,24 @@
|
||||
AC_SUBST(PYTHON_INCLUDEDIR)
|
||||
AC_SUBST(PYTHON_INSTALLDIR)
|
||||
|
||||
+AC_ARG_ENABLE([python],
|
||||
+ AS_HELP_STRING([--with-python],[build Python binding]))
|
||||
+
|
||||
AM_CONDITIONAL([HAVE_PYTHON],
|
||||
- [test "x$PYTHON" != "xno" && test "x$PYTHON_INCLUDEDIR" != "x" && test "x$PYTHON_INSTALLDIR" != "x"])
|
||||
+ [test "x$PYTHON_INCLUDEDIR" != "x" -a "x$PYTHON_SITE_PACKAGES" != "x" -a "x$enable_python" = "xyes"])
|
||||
+
|
||||
+
|
||||
|
||||
dnl Check for Ruby and rake (optional, for Ruby bindings).
|
||||
+AC_ARG_ENABLE([ruby],
|
||||
+ AS_HELP_STRING([--with-ruby],[build Ruby binding]))
|
||||
+
|
||||
AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0])
|
||||
AC_CHECK_PROG([RAKE],[rake],[rake],[no])
|
||||
|
||||
AM_CONDITIONAL([HAVE_RUBY],
|
||||
- [test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY"])
|
||||
+ [test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY" -a "x$enable_ruby" = "xyes"])
|
||||
+
|
||||
|
||||
dnl dnl Check for Java.
|
||||
dnl AC_ARG_WITH(java_home,
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/hivex/hivex-1.3.3.ebuild,v 1.1 2012/02/26 19:56:32 maksbotan Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
WANT_AUTOMAKE="1.11"
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
PYTHON_DEPEND="python? 2:2.6"
|
||||
inherit base autotools-utils perl-app python
|
||||
|
||||
DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files"
|
||||
HOMEPAGE="http://libguestfs.org"
|
||||
SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ocaml readline perl python test static-libs ruby"
|
||||
|
||||
RDEPEND="virtual/libiconv
|
||||
virtual/libintl
|
||||
dev-libs/libxml2:2
|
||||
ocaml? ( dev-lang/ocaml[ocamlopt]
|
||||
dev-ml/findlib[ocamlopt]
|
||||
)
|
||||
readline? ( sys-libs/readline )
|
||||
perl? ( dev-perl/IO-stringy )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
perl? (
|
||||
test? ( dev-perl/Pod-Coverage
|
||||
dev-perl/Test-Pod-Coverage ) )
|
||||
ruby? ( dev-ruby/rake )
|
||||
"
|
||||
PATCHES=("${FILESDIR}"/"${PV}")
|
||||
DOCS=(README)
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
python_need_rebuild
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_SUFFIX=patch EPATCH_FORCE=yes base_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with readline)
|
||||
$(use_enable ocaml)
|
||||
$(use_enable perl)
|
||||
--enable-nls
|
||||
$(use_enable python)
|
||||
$(use_enable ruby)
|
||||
--disable-rpath )
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
autotools-utils_src_compile check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
strip-linguas -i po
|
||||
|
||||
autotools-utils_src_install "LINGUAS=""${LINGUAS}"""
|
||||
|
||||
if use perl; then
|
||||
fixlocalpod
|
||||
fi
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/nut/nut-17.4-r1.ebuild,v 1.1 2012/02/27 00:51:22 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Record what you eat and analyze your nutrient levels"
|
||||
HOMEPAGE="http://nut.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/fltk:1
|
||||
x11-libs/libXpm
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-16.12-makefile.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC) FOODDIR=\\\"/usr/share/nut\\\"
|
||||
if use X ; then
|
||||
cd fltk
|
||||
emake CXX=$(tc-getCXX) FOODDIR=\\\"/usr/share/nut\\\"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/nut
|
||||
doins raw.data/*
|
||||
dobin nut
|
||||
doman nut.1
|
||||
if use X ; then
|
||||
dobin fltk/Nut
|
||||
doicon nut.xpm
|
||||
make_desktop_entry Nut nut nut Education
|
||||
fi
|
||||
}
|
@ -1,455 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.3.4.ebuild,v 1.8 2011/11/10 21:11:30 scarabeus Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
WANT_AUTOMAKE="1.9"
|
||||
|
||||
KDE_REQUIRED="optional"
|
||||
CMAKE_REQUIRED="never"
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
PYTHON_USE_WITH="threads"
|
||||
|
||||
inherit autotools bash-completion check-reqs db-use eutils fdo-mime flag-o-matic gnome2-utils java-pkg-opt-2 kde4-base multilib pax-utils python toolchain-funcs
|
||||
|
||||
IUSE="binfilter cups -custom-cflags dbus debug eds gnome gstreamer gtk kde ldap nsplugin odk opengl templates"
|
||||
|
||||
MY_PV=3.3.4.1
|
||||
MY_P="${PN}-build-${MY_PV}"
|
||||
PATCHLEVEL=OOO320
|
||||
SRC=OOo_${PV}_src
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DEVPATH="http://download.documentfoundation.org/libreoffice/src/${PV}/"
|
||||
CONFFILE=${S}/distro-configs/Gentoo.conf.in
|
||||
BASIS=basis3.3
|
||||
|
||||
DESCRIPTION="LibreOffice, a full office productivity suite."
|
||||
HOMEPAGE="http://www.libreoffice.org"
|
||||
SRC_URI="${DEVPATH}/${PN}-build-${MY_PV}.tar.gz
|
||||
templates? (
|
||||
http://extensions.services.openoffice.org/files/273/0/Sun_ODF_Template_Pack_en-US.oxt
|
||||
http://extensions.services.openoffice.org/files/295/1/Sun_ODF_Template_Pack_de.oxt
|
||||
http://extensions.services.openoffice.org/files/299/0/Sun_ODF_Template_Pack_it.oxt
|
||||
http://extensions.services.openoffice.org/files/297/0/Sun_ODF_Template_Pack_fr.oxt
|
||||
http://extensions.services.openoffice.org/files/301/1/Sun_ODF_Template_Pack_es.oxt
|
||||
ftp://ftp.devall.hu/kami/go-oo//Sun_ODF_Template_Pack_hu.oxt
|
||||
)
|
||||
odk? ( java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) )
|
||||
http://download.go-oo.org/SRC680/extras-3.1.tar.bz2
|
||||
http://download.go-oo.org/SRC680/biblio.tar.bz2"
|
||||
|
||||
# Shiny split sources with so many packages...
|
||||
MODULES="artwork base bootstrap calc components extensions extras filters help
|
||||
impress libs-core libs-extern libs-extern-sys libs-gui postprocess sdk testing
|
||||
ure writer l10n"
|
||||
|
||||
for mod in ${MODULES}; do
|
||||
SRC_URI+=" ${DEVPATH}/${PN}-${mod}-${MY_PV}.tar.bz2"
|
||||
done
|
||||
|
||||
# addons
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/128cfc86ed5953e57fe0f5ae98b62c2e-libtextcat-2.2.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/24be19595acad0a2cae931af77a0148a-LICENSE_source-9.0.0.7-bj.html"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/ca4870d899fd7e943ffc310a5421ad4d-liberation-fonts-ttf-1.06.0.20100721.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/377a60170e5185eb63d3ed2fae98e621-README_silgraphite-2.3.1.txt"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/48470d662650c3c074e1c3fabbc67bbd-README_source-9.0.0.7-bj.txt"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/5aba06ede2daa9f2c11892fbd7bc3057-libserializer.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/79600e696a98ff95c2eba976f7a8dfbb-liblayout.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/8294d6c42e3553229af9934c5c0ed997-stax-api-1.0-2-sources.jar"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/8ea307d71d11140574bfb9fcc2487e33-libbase.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/a06a496d7a43cbdc35e69dbe678efadb-libloader.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/a4d9b30810a434a3ed39fc0003bbd637-LICENSE_stax-api-1.0-2-sources.html"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/bc702168a2af16869201dbe91e46ae48-LICENSE_Python-2.6.1"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/d0b5af6e408b8d2958f3d83b5244f5e8-hyphen-2.4.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/d1a3205871c3c52e8a50c9f18510ae12-libformula.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/d4c4d91ab3a8e52a2e69d48d34ef4df4-core.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/dbb3757275dc5cc80820c0b4dd24ed95-librepository.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/e0707ff896045731ff99e99799606441-README_db-4.7.25.NC-custom.txt"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/f3e2febd267c8e4b13df00dac211dd6d-flute.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/f7925ba8491fe570e5164d2c72791358-libfonts.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/fb7ba5c2182be4e73748859967455455-README_stax-api-1.0-2-sources.txt"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/37282537d0ed1a087b1c8f050dc812d9-dejavu-fonts-ttf-2.32.zip"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/067201ea8b126597670b5eff72e1f66c-mythes-1.2.0.tar.gz"
|
||||
ADDONS_SRC+=" http://hg.services.openoffice.org/binaries/cf8a6967f7de535ae257fa411c98eb88-mdds_0.3.0.tar.bz2"
|
||||
ADDONS_SRC+=" http://download.go-oo.org/src/47e1edaa44269bc537ae8cabebb0f638-JLanguageTool-1.0.0.tar.bz2"
|
||||
ADDONS_SRC+=" http://download.go-oo.org/src/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2"
|
||||
ADDONS_SRC+=" http://download.go-oo.org/src/0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz"
|
||||
ADDONS_SRC+=" http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll"
|
||||
ADDONS_SRC+=" http://download.go-oo.org/src/5ff846847dab351604ad859e2fd4ed3c-libwpd-0.9.1.tar.bz2"
|
||||
ADDONS_SRC+=" http://download.go-oo.org/src/5ba6a61a2f66dfd5fee8cdd4cd262a37-libwpg-0.2.0.tar.bz2"
|
||||
ADDONS_SRC+=" http://download.go-oo.org/src/9e436bff44c60dc8b97cba0c7fc11a5c-libwps-0.2.0.tar.bz2"
|
||||
ADDONS_SRC+=" http://www.numbertext.org/linux/881af2b7dca9b8259abbca00bbbc004d-LinLibertineG-20110101.zip"
|
||||
SRC_URI+=" ${ADDONS_SRC}"
|
||||
|
||||
LANGS1="af ar as ast be_BY bg bn bo br brx bs ca ca_XV cs cy da de dgo dz el en en_GB en_ZA eo es et eu fa fi fr ga gd gl gu he hi hr hu id is it ja ka kk km kn ko kok ks ku ky lo lt lv mai mk ml mn mni mr ms my nb ne nl nn nr ns oc om or pa_IN pap pl ps pt pt_BR ro ru rw sa_IN sat sd sh si sk sl sq sr ss st sv sw_TZ ta te tg th ti tn tr ts ug uk uz ve vi xh zh_CN zh_TW zu"
|
||||
LANGS="${LANGS1} en en_US"
|
||||
|
||||
for X in ${LANGS} ; do
|
||||
IUSE+=" linguas_${X}"
|
||||
done
|
||||
|
||||
# intersection of available linguas and app-dicts/myspell-* dictionaries
|
||||
SPELL_DIRS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk nb nl nn pl pt ru sk sl sv tn zu"
|
||||
SPELL_DIRS_DEPEND=""
|
||||
for X in ${SPELL_DIRS} ; do
|
||||
SPELL_DIRS_DEPEND+=" linguas_${X}? ( app-dicts/myspell-${X} )"
|
||||
done
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
COMMON_DEPEND="!app-office/libreoffice-bin
|
||||
!app-office/openoffice-bin
|
||||
!app-office/openoffice
|
||||
cups? ( net-print/cups )
|
||||
dbus? ( >=dev-libs/dbus-glib-0.71 )
|
||||
eds? ( >=gnome-extra/evolution-data-server-1.2 )
|
||||
gnome? ( >=x11-libs/gtk+-2.10:2
|
||||
gnome-base/gconf:2 )
|
||||
gtk? ( >=x11-libs/gtk+-2.10:2 )
|
||||
gstreamer? ( >=media-libs/gstreamer-0.10
|
||||
>=media-libs/gst-plugins-base-0.10 )
|
||||
java? ( >=dev-java/bsh-2.0_beta4
|
||||
dev-java/lucene:2.3
|
||||
dev-java/lucene-analyzers:2.3 )
|
||||
ldap? ( net-nds/openldap )
|
||||
nsplugin? ( net-libs/xulrunner:1.9
|
||||
>=dev-libs/nspr-4.6.6
|
||||
>=dev-libs/nss-3.11-r1 )
|
||||
opengl? ( virtual/opengl )
|
||||
app-arch/zip
|
||||
app-arch/unzip
|
||||
>=app-text/hunspell-1.1.4-r1
|
||||
>=app-text/poppler-0.12.3-r3[xpdf-headers]
|
||||
dev-libs/expat
|
||||
>=dev-libs/glib-2.18
|
||||
>=dev-libs/icu-4.0
|
||||
>=dev-lang/perl-5.0
|
||||
>=net-libs/neon-0.24.7
|
||||
>=dev-libs/openssl-0.9.8g
|
||||
dev-libs/redland[ssl]
|
||||
>=media-libs/freetype-2.1.10-r2
|
||||
>=media-libs/fontconfig-2.3.0
|
||||
>=media-libs/vigra-1.4
|
||||
media-libs/libpng
|
||||
>=sys-libs/db-4.3
|
||||
virtual/jpeg
|
||||
>=x11-libs/cairo-1.0.2
|
||||
x11-libs/libXaw
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr"
|
||||
|
||||
RDEPEND="java? ( >=virtual/jre-1.5 )
|
||||
${SPELL_DIRS_DEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* )
|
||||
>=dev-java/ant-core-1.7 )
|
||||
>=dev-libs/boost-1.36
|
||||
>=dev-libs/libxml2-2.0
|
||||
dev-perl/Archive-Zip
|
||||
dev-libs/libxslt
|
||||
dev-util/cppunit
|
||||
>=dev-util/gperf-3
|
||||
dev-util/intltool
|
||||
dev-util/pkgconfig
|
||||
>=net-misc/curl-7.12
|
||||
>=sys-apps/findutils-4.1.20-r1
|
||||
sys-devel/bison
|
||||
sys-apps/coreutils
|
||||
sys-devel/flex
|
||||
sys-libs/zlib
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-proto/printproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
# sys-libs/db version used
|
||||
local db_ver=$(db_findver '>=sys-libs/db-4.3')
|
||||
|
||||
kde4-base_pkg_setup
|
||||
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
|
||||
unpack ${MY_P}.tar.gz
|
||||
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
|
||||
if use custom-cflags; then
|
||||
ewarn " You are using custom CFLAGS, which is NOT supported and can cause "
|
||||
ewarn " all sorts of build and runtime errors. "
|
||||
ewarn
|
||||
ewarn " Before reporting a bug, please make sure you rebuild and try with "
|
||||
ewarn " basic CFLAGS, otherwise the bug will not be accepted. "
|
||||
ewarn
|
||||
fi
|
||||
|
||||
ewarn
|
||||
ewarn " If you experience a build break, please make sure to retry "
|
||||
ewarn " with MAKEOPTS="-j1" before filing a bug. "
|
||||
ewarn
|
||||
|
||||
# Check if we have enough RAM and free diskspace to build this beast
|
||||
CHECKREQS_MEMORY="512M"
|
||||
use debug && CHECKREQS_DISK_BUILD="12G" || CHECKREQS_DISK_BUILD="7G"
|
||||
check-reqs_pkg_setup
|
||||
|
||||
strip-linguas ${LANGS}
|
||||
|
||||
# en_US is built by default, upstream needs us to use --with-lang="" in this case though, so strip it out
|
||||
export LINGUAS_TEMP=$(echo ${LINGUAS} | sed -e 's/\ben_US\b//g;s/en//g;s/_GB/en_GB/g;s/_ZA/en_ZA/g')
|
||||
|
||||
if [[ -z "${LINGUAS_TEMP}" ]] || [[ ${LINGUAS_TEMP} == " " ]]; then
|
||||
export LINGUAS_OOO=""
|
||||
else
|
||||
# always build en-US as a fallback (needed for broken code / translations)
|
||||
export LINGUAS_OOO="en-US ${LINGUAS_TEMP//_/-}"
|
||||
fi
|
||||
|
||||
if use !java; then
|
||||
ewarn " You are building with java-support disabled, this results in some "
|
||||
ewarn " of the LibreOffice functionality being disabled. "
|
||||
ewarn " If something you need does not work for you, rebuild with "
|
||||
ewarn " java in your USE-flags. "
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if use !gtk && use !gnome; then
|
||||
ewarn " If you want the LibreOffice systray quickstarter to work "
|
||||
ewarn " activate either the 'gtk' or 'gnome' use flags. "
|
||||
ewarn
|
||||
fi
|
||||
|
||||
# Some fixes for our patchset
|
||||
epatch "${FILESDIR}/gentoo-3.3.2.diff"
|
||||
epatch "${FILESDIR}/gentoo-pythonpath.diff"
|
||||
epatch "${FILESDIR}/env_log.diff"
|
||||
epatch "${FILESDIR}/fix-ooo-collision.diff"
|
||||
epatch "${FILESDIR}/scrap-pixmap-links.diff"
|
||||
epatch "${FILESDIR}/enable-startup-notification.diff"
|
||||
use java && cp -f "${FILESDIR}/sdext-presenter.diff" "${S}/patches/hotfixes"
|
||||
cp -f "${FILESDIR}/${PN}-3.3.0_libxmlsec_fix_extern_c.diff" "${S}/patches/hotfixes"
|
||||
cp -f "${FILESDIR}/${PN}-3.3-libpng-1.5.diff" "${S}/patches/hotfixes"
|
||||
cp -f "${FILESDIR}/${PN}-3.3.1-neon_remove_SSPI_support.diff" "${S}/patches/hotfixes"
|
||||
cp -f "${FILESDIR}/${PN}-libdb5-fix-check.diff" "${S}/patches/hotfixes"
|
||||
cp -f "${FILESDIR}/${PN}-3.3.2-bison25.diff" "${S}/patches/hotfixes"
|
||||
# Bug #387735
|
||||
use java && cp -f "${FILESDIR}/${PN}-3.3.4-poppler-0.18.0.diff" "${S}/patches/hotfixes"
|
||||
|
||||
#Use flag checks
|
||||
if use java ; then
|
||||
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
|
||||
echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
|
||||
echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
|
||||
echo "--with-jvm-path=/usr/$(get_libdir)/" >> ${CONFFILE}
|
||||
echo "--with-system-beanshell" >> ${CONFFILE}
|
||||
echo "--with-system-lucene" >> ${CONFFILE}
|
||||
echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
|
||||
echo "--with-lucene-core-jar=$(java-pkg_getjar lucene-2.3 lucene-core.jar)" >> ${CONFFILE}
|
||||
echo "--with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar)" >> ${CONFFILE}
|
||||
fi
|
||||
|
||||
echo $(use_enable nsplugin mozilla) >> ${CONFFILE}
|
||||
echo $(use_with nsplugin system-mozilla libxul) >> ${CONFFILE}
|
||||
|
||||
echo $(use_enable binfilter) >> ${CONFFILE}
|
||||
echo $(use_enable cups) >> ${CONFFILE}
|
||||
echo $(use_enable dbus) >> ${CONFFILE}
|
||||
echo $(use_enable eds evolution2) >> ${CONFFILE}
|
||||
echo $(use_enable gnome gconf) >> ${CONFFILE}
|
||||
echo $(use_enable gnome gio) >> ${CONFFILE}
|
||||
echo "--disable-gnome-vfs" >> ${CONFFILE}
|
||||
echo $(use_enable gnome lockdown) >> ${CONFFILE}
|
||||
echo $(use_enable gstreamer) >> ${CONFFILE}
|
||||
echo $(use_enable gtk systray) >> ${CONFFILE}
|
||||
echo $(use_enable ldap) >> ${CONFFILE}
|
||||
echo $(use_enable opengl) >> ${CONFFILE}
|
||||
echo $(use_with ldap openldap) >> ${CONFFILE}
|
||||
echo $(use_enable debug crashdump) >> ${CONFFILE}
|
||||
echo $(use_enable debug strip-solver) >> ${CONFFILE}
|
||||
|
||||
# Extension stuff, disabled when building without java for bug #352812
|
||||
if use java; then
|
||||
echo "--with-extension-integration" >> ${CONFFILE}
|
||||
echo "--enable-pdfimport" >> ${CONFFILE}
|
||||
echo "--enable-minimizer" >> ${CONFFILE}
|
||||
echo "--enable-presenter-console" >> ${CONFFILE}
|
||||
echo "--enable-presenter-extra-ui" >> ${CONFFILE}
|
||||
#still necessary
|
||||
echo "--enable-presenter-screen" >> ${CONFFILE}
|
||||
fi
|
||||
|
||||
# Misc stuff
|
||||
echo "--disable-graphite" >> ${CONFFILE}
|
||||
echo "--with-system-cppunit" >> ${CONFFILE}
|
||||
echo "--with-system-openssl" >> ${CONFFILE}
|
||||
echo "--with-system-redland" >> ${CONFFILE}
|
||||
echo "--without-junit" >> ${CONFFILE}
|
||||
|
||||
#fix desktop files bug #352955
|
||||
sed -i 's/Exec=oo/Exec=lo/g' "${S}"/desktop/*.desktop.in.in || die "Could not fix desktop files"
|
||||
|
||||
# needed for sun-templates patch
|
||||
eautoreconf
|
||||
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
use kde && export KDE4DIR="${KDEDIR}"
|
||||
use kde && export QT4LIB="/usr/$(get_libdir)/qt4"
|
||||
|
||||
# Use multiprocessing by default now, it gets tested by upstream
|
||||
export JOBS=$(echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/")
|
||||
|
||||
# compiler flags
|
||||
use custom-cflags || strip-flags
|
||||
use debug || filter-flags "-g*"
|
||||
# silent miscompiles; LO/OOo adds -O2/1/0 where appropriate
|
||||
filter-flags "-O*"
|
||||
|
||||
if [[ $(gcc-major-version) -lt 4 ]]; then
|
||||
filter-flags "-fstack-protector"
|
||||
filter-flags "-fstack-protector-all"
|
||||
replace-flags "-fomit-frame-pointer" "-momit-leaf-frame-pointer"
|
||||
fi
|
||||
|
||||
# Now for our optimization flags ...
|
||||
export ARCH_FLAGS="${CXXFLAGS}"
|
||||
use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
|
||||
|
||||
# Make sure gnome-users get gtk-support
|
||||
local GTKFLAG="--disable-gtk"
|
||||
{ use gtk || use gnome; } && GTKFLAG="--enable-gtk"
|
||||
|
||||
cd "${S}"
|
||||
./configure --with-distro="Gentoo" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--sysconfdir="${EPREFIX}"/etc \
|
||||
--with-arch="${ARCH}" \
|
||||
--with-srcdir="${DISTDIR}" \
|
||||
--with-lang="${LINGUAS_OOO}" \
|
||||
--with-num-cpus="${JOBS}" \
|
||||
--without-binsuffix \
|
||||
--with-installed-ooo-dirname="libreoffice" \
|
||||
--with-drink="True Blood" \
|
||||
--without-git \
|
||||
--with-split \
|
||||
${GTKFLAG} \
|
||||
--enable-cairo \
|
||||
--with-system-cairo \
|
||||
--disable-mono \
|
||||
--disable-kde \
|
||||
$(use_enable kde kde4) \
|
||||
$(use_enable !debug strip) \
|
||||
$(use_enable odk) \
|
||||
$(use_with java) \
|
||||
$(use_with templates sun-templates) \
|
||||
--disable-access \
|
||||
--disable-post-install-scripts \
|
||||
$(use_enable java extensions) \
|
||||
--without-system-libwpd \
|
||||
--without-system-libwpg \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
|| die "Configuration failed!"
|
||||
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
make || die "Build failed"
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
export PYTHONPATH=""
|
||||
|
||||
einfo "Preparing Installation"
|
||||
make DESTDIR="${D}" install || die "Installation failed!"
|
||||
|
||||
# Fix the permissions for security reasons
|
||||
chown -RP root:0 "${ED}"
|
||||
|
||||
# record java libraries
|
||||
if use java; then
|
||||
java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}/${BASIS}/program/classes/*.jar
|
||||
java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}/ure/share/java/*.jar
|
||||
fi
|
||||
|
||||
# Upstream places the bash-completion module in /etc. Gentoo places them in
|
||||
# /usr/share/bash-completion. bug 226061
|
||||
dobashcompletion "${ED}"/etc/bash_completion.d/libreoffice.sh libreoffice
|
||||
rm -rf "${ED}"/etc/bash_completion.d/ || die "rm failed"
|
||||
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
|
||||
{ use gtk || use gnome; } && gnome2_icon_savelist
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
# Cache updates
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
{ use gtk || use gnome; } && gnome2_icon_cache_update
|
||||
|
||||
BASHCOMPLETION_NAME=libreoffice && bash-completion_pkg_postinst
|
||||
|
||||
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
|
||||
|
||||
# Add available & useful jars to LibreOffice classpath
|
||||
use java && "${EPREFIX}"/usr/$(get_libdir)/${PN}/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
|
||||
|
||||
kde4-base_pkg_postinst
|
||||
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
|
||||
fdo-mime_desktop_database_update
|
||||
{ use gtk || use gnome; } && gnome2_icon_cache_update
|
||||
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST tbb22_013oss_src.tgz 1519663 RMD160 158b62914b9467054eaf45c064fd0a940fe3a8d2 SHA1 b8e11fc8df5b6e27eec86a0588d9b376e520dfb5 SHA256 fc156e63cb4dbf4f31b412780ea798b95ecb5cbeb5f5f0f0a9510769f5205562
|
||||
DIST tbb30_221oss_src.tgz 1856676 RMD160 17cabfb522b2b3acc98fa4717c17accad91d04c5 SHA1 79c6b347f457e3176a5beae598a14b3a25bac4a0 SHA256 7bd3ecac7ef0ed13b1d71080006676ef31f7c08fb20c787208d94138bdf4e676
|
||||
DIST tbb40_278oss_src.tgz 2083516 RMD160 1b328f47a0afd14d50404b0079a958f0ae510d89 SHA1 d04ca01332d3f0148f91f6b5d8e69fa68edd8a6d SHA256 dd5c93a457acc1ef21c2d4c4008441ddc5b75e6be82cdd3c15fa1eda3656e4ef
|
||||
DIST tbb40_297oss_src.tgz 2097295 RMD160 492234b9ad7a8584c9e779117dca21f9a9b3ce92 SHA1 e5ef5ad3427fbdd700b0117cfba563178a1314e3 SHA256 2d1d10564e536c0ecf50d2db984f9fd9c615909bab13531936f0ca2c0e7cc2c2
|
||||
|
@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/tbb-2.2.013-r1.ebuild,v 1.1 2010/04/20 20:35:04 bicatali Exp $
|
||||
|
||||
EAPI=2
|
||||
inherit eutils versionator toolchain-funcs alternatives
|
||||
# url number
|
||||
MYU="78/147"
|
||||
# release update
|
||||
MYR="3"
|
||||
|
||||
PV1="$(get_version_component_range 1)"
|
||||
PV2="$(get_version_component_range 2)"
|
||||
PV3="$(get_version_component_range 3)"
|
||||
MYP="${PN}${PV1}${PV2}_${PV3}oss"
|
||||
|
||||
DESCRIPTION="High level abstract threading library"
|
||||
HOMEPAGE="http://www.threadingbuildingblocks.org/"
|
||||
SRC_URI="http://www.threadingbuildingblocks.org/uploads/${MYU}/${PV1}.${PV2}%20update%20${MYR}/${MYP}_src.tgz"
|
||||
LICENSE="GPL-2-with-exceptions"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug doc examples"
|
||||
|
||||
DEPEND="!<=dev-cpp/tbb-2.1.016"
|
||||
RDEPEND="${DEPEND}"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "s/-O2/${CXXFLAGS}/g" \
|
||||
build/*.inc \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ $(tc-getCXX) == *g++ ]]; then
|
||||
myconf="compiler=gcc"
|
||||
elif [[ $(tc-getCXX) == *ic*c ]]; then
|
||||
myconf="compiler=icc"
|
||||
fi
|
||||
# from the Makefile, split debug
|
||||
cd src
|
||||
emake ${myconf} tbb_release tbbmalloc_release || die "emake failed"
|
||||
if use debug || use examples; then
|
||||
emake ${myconf} tbb_debug tbbmalloc_debug || die "emake debug failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd src
|
||||
emake ${myconf} test_release || die "emake test failed"
|
||||
if use debug || use examples; then
|
||||
emake ${myconf} test_debug tbbmalloc_test_debug || die "emake test debug failed"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_install(){
|
||||
for l in $(find build -name lib\*.so.\*); do
|
||||
dolib.so ${l} || die
|
||||
local bl=$(basename ${l})
|
||||
dosym ${bl} /usr/$(get_libdir)/${bl%.*}
|
||||
done
|
||||
insinto /usr
|
||||
doins -r include || die
|
||||
|
||||
dodoc README CHANGES doc/Release_Notes.txt
|
||||
if use doc ; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r doc/html || die
|
||||
fi
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/examples/build
|
||||
doins build/*.inc || die
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/tbb/tbb-4.0.297.ebuild,v 1.1 2012/02/27 02:28:55 bicatali Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils versionator toolchain-funcs
|
||||
|
||||
# those 2 below change pretty much every release
|
||||
# url number
|
||||
MYU="78/181"
|
||||
# release update
|
||||
MYR="%20update%203"
|
||||
|
||||
PV1="$(get_version_component_range 1)"
|
||||
PV2="$(get_version_component_range 2)"
|
||||
PV3="$(get_version_component_range 3)"
|
||||
MYP="${PN}${PV1}${PV2}_${PV3}oss"
|
||||
|
||||
DESCRIPTION="High level abstract threading library"
|
||||
HOMEPAGE="http://www.threadingbuildingblocks.org/"
|
||||
SRC_URI="http://www.threadingbuildingblocks.org/uploads/${MYU}/${PV1}.${PV2}${MYR}/${MYP}_src.tgz"
|
||||
LICENSE="GPL-2-with-exceptions"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug doc examples"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-3.0.104-tests.patch
|
||||
# use fully qualified compilers. do not force pentium4 for x86 users
|
||||
local CC="$(tc-getCC)"
|
||||
sed -i \
|
||||
-e "s/-O2/${CXXFLAGS}/g" \
|
||||
-e 's/^\(CPLUS = \)g++ $/\1'"$(tc-getCXX)/" \
|
||||
-e 's/^\(CONLY = \)gcc$/\1'"${CC}/" \
|
||||
-e 's/\(shell \)gcc\( --version\)/\1'"${CC}"'\2/' \
|
||||
-e '/CPLUS_FLAGS +=/s/-march=pentium4//' \
|
||||
build/*.inc || die
|
||||
# - Strip the $(shell ... >$(NUL) 2>$(NUL)) wrapping, leaving just the
|
||||
# actual command.
|
||||
# - Force generation of version_string.tmp immediately after the directory
|
||||
# is created. This avoids a race when the user builds tbb and tbbmalloc
|
||||
# concurrently. The choice of Makefile.tbb (instead of
|
||||
# Makefile.tbbmalloc) is arbitrary.
|
||||
sed -i \
|
||||
-e 's/^\t\$(shell \(.*\) >\$(NUL) 2>\$(NUL))\s*/\t\1/' \
|
||||
-e 's!^\t@echo Created \$(work_dir)_\(debug\|release\).*$!&\n\t$(MAKE) -C "$(work_dir)_\1" -r -f $(tbb_root)/build/Makefile.tbb cfg=\1 tbb_root=$(tbb_root) version_string.tmp!' \
|
||||
src/Makefile || die
|
||||
find include -name \*.html -delete
|
||||
|
||||
cat <<-EOF > ${PN}.pc
|
||||
prefix=${EPREFIX}/usr
|
||||
libdir=\${prefix}/$(get_libdir)
|
||||
includedir=\${prefix}/include
|
||||
Name: ${PN}
|
||||
Description: ${DESCRIPTION}
|
||||
Version: ${PV}
|
||||
URL: ${HOMEPAGE}
|
||||
Libs: -L\${libdir} -ltbb -ltbbmalloc
|
||||
Cflags: -I\${includedir}/tbb
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ $(tc-getCXX) == *g++ ]]; then
|
||||
myconf="compiler=gcc"
|
||||
elif [[ $(tc-getCXX) == *ic*c ]]; then
|
||||
myconf="compiler=icc"
|
||||
fi
|
||||
local ccconf="${myconf}"
|
||||
if use debug || use examples; then
|
||||
ccconf="${ccconf} tbb_debug tbbmalloc_debug"
|
||||
fi
|
||||
emake -C src ${ccconf} tbb_release tbbmalloc_release
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local ccconf="${myconf}"
|
||||
if use debug || use examples; then
|
||||
${ccconf}="${myconf} test_debug tbbmalloc_test_debug"
|
||||
fi
|
||||
emake -C src ${ccconf} test_release
|
||||
}
|
||||
|
||||
src_install(){
|
||||
local l
|
||||
for l in $(find build -name lib\*.so.\*); do
|
||||
dolib.so ${l}
|
||||
local bl=$(basename ${l})
|
||||
dosym ${bl} /usr/$(get_libdir)/${bl%.*}
|
||||
done
|
||||
insinto /usr
|
||||
doins -r include
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins ${PN}.pc
|
||||
dodoc README CHANGES doc/Release_Notes.txt
|
||||
use doc && dohtml -r doc/html/*
|
||||
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/examples/build
|
||||
doins build/*.inc
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
--- src/main/main.c.orig 2012-02-23 21:57:10.478788427 +0100
|
||||
+++ src/main/main.c 2012-02-23 21:56:12.186789729 +0100
|
||||
@@ -674,7 +674,7 @@
|
||||
#ifdef ENABLE_NLS
|
||||
char localedir[PATH_MAX+20];
|
||||
#endif
|
||||
- char deferred_warnings[6][250];
|
||||
+ char deferred_warnings[11][250];
|
||||
volatile int ndeferred_warnings = 0;
|
||||
|
||||
InitConnections(); /* needed to get any output at all */
|
||||
|
@ -1 +0,0 @@
|
||||
DIST open64-4.2.1-0.src.tar.bz2 75936612 RMD160 34618826d466860f9ff367560323385fec32b1af SHA1 e9938701091ec1b9a2cde18f8cdd682ca68fc661 SHA256 1639aa289e0df33b82104fe9cd809a7e756890ba80275b0ea63baaa4c0ecae24
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>patrick@gentoo.org</email>
|
||||
<name>Patrick Lauer</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/open64/open64-4.2.1.ebuild,v 1.1 2009/04/28 13:11:03 patrick Exp $
|
||||
|
||||
EAPI="2"
|
||||
SLOT="4.2.1"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
DESCRIPTION="The open64 compiler suite, based on Pathscale's EKO compiler"
|
||||
HOMEPAGE="http://open64.net"
|
||||
|
||||
# we build the fortran bits unconditionally for now. Makefile does autodetection.
|
||||
DEPEND="app-shells/tcsh
|
||||
=sys-devel/bison-2.3*
|
||||
<=sys-devel/gcc-4.2[fortran]"
|
||||
RDEPEND=""
|
||||
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-0.src.tar.bz2"
|
||||
S=$WORKDIR/${P}-0
|
||||
|
||||
src_install() {
|
||||
export TOOLROOT="${D}"
|
||||
emake install || die
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST nspr-4.8.6.tar.gz 1202257 RMD160 31de6eeecd4cc2315cfb84d02cb9730cd3c09729 SHA1 54ca3cbe14cc8a2a59cb48d4961034ce35c8f223 SHA256 d9040bb01536fa63881c423c4fa831ea459696b32d2097f614842f824e1a9f6d
|
||||
DIST nspr-4.8.7.tar.gz 1244150 RMD160 b9b71fad399949bb9faafa863d72483c3678ddc3 SHA1 34d9eb75b47a3d19b57ef1ed5aef2004e79b5fc4 SHA256 eb9459c31d43d1000fb1304f1e0cedab0bdac3c54c71988259c1ac10c1fe16a3
|
||||
DIST nspr-4.8.8.tar.gz 1246068 RMD160 a058982a067fb3348b908eaf6f06f0ba17385c55 SHA1 f5fd346b0f5f6ceac3677ce18cb94490992717ad SHA256 92f3f4ded2ee313e396c180d5445cc3c718ff347d86c06b7bf14a1b5e049d4c9
|
||||
DIST nspr-4.8.9.tar.gz 1235265 RMD160 6c7089a9d798367b8d559e5dea8e732e73b47df2 SHA1 509785e68f52542778c770445329cc4db15c749b SHA256 ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce
|
||||
DIST nspr-4.9.tar.gz 1218528 RMD160 35298a4752aa657196b9d2f41ad46f1bef7e22a2 SHA1 57a6bb09ccb90d14303c3d9a6ec2592d8a5c0752 SHA256 ecc632bc578c125650999776673eeff952096afa6d151f6d91f6c3a93e1e716a
|
||||
|
@ -0,0 +1,90 @@
|
||||
diff -urN a/mozilla/nsprpub/config/config.mk b/mozilla/nsprpub/config/config.mk
|
||||
--- a/mozilla/nsprpub/config/config.mk 2011-10-13 09:00:06.000000000 -0500
|
||||
+++ b/mozilla/nsprpub/config/config.mk 2012-02-20 17:52:11.364823693 -0600
|
||||
@@ -183,6 +183,7 @@
|
||||
RELEASE_INCLUDE_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/include
|
||||
RELEASE_BIN_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/bin
|
||||
RELEASE_LIB_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/lib
|
||||
+RELEASE_PC_DIR = $(RELEASE_LIB_DIR)/pkgconfig
|
||||
|
||||
# autoconf.mk sets OBJ_SUFFIX to an error to avoid use before including
|
||||
# this file
|
||||
diff -urN a/mozilla/nsprpub/config/Makefile.in b/mozilla/nsprpub/config/Makefile.in
|
||||
--- a/mozilla/nsprpub/config/Makefile.in 2009-03-03 16:04:23.000000000 -0600
|
||||
+++ b/mozilla/nsprpub/config/Makefile.in 2012-02-20 17:53:06.490819923 -0600
|
||||
@@ -52,9 +52,10 @@
|
||||
|
||||
# autoconf.mk must be deleted last (from the top-level directory)
|
||||
# because it is included by every makefile.
|
||||
-DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config
|
||||
+DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config nspr.pc
|
||||
|
||||
RELEASE_BINS = nspr-config
|
||||
+RELEASE_PC = nspr.pc
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
diff -urN a/mozilla/nsprpub/config/nspr-config.in b/mozilla/nsprpub/config/nspr-config.in
|
||||
--- a/mozilla/nsprpub/config/nspr-config.in 2005-05-10 19:53:41.000000000 -0500
|
||||
+++ b/mozilla/nsprpub/config/nspr-config.in 2012-02-20 17:55:10.947811413 -0600
|
||||
@@ -92,13 +92,13 @@
|
||||
|
||||
# Set variables that may be dependent upon other variables
|
||||
if test -z "$exec_prefix"; then
|
||||
- exec_prefix=@exec_prefix@
|
||||
+ exec_prefix=`pkg-config --variable=exec_prefix nspr`
|
||||
fi
|
||||
if test -z "$includedir"; then
|
||||
- includedir=@includedir@
|
||||
+ includedir=`pkg-config --variable=includedir nspr`
|
||||
fi
|
||||
if test -z "$libdir"; then
|
||||
- libdir=@libdir@
|
||||
+ libdir=`pkg-config --variable=libdir nspr`
|
||||
fi
|
||||
|
||||
if test "$echo_prefix" = "yes"; then
|
||||
diff -urN a/mozilla/nsprpub/config/nspr.pc.in b/mozilla/nsprpub/config/nspr.pc.in
|
||||
--- a/mozilla/nsprpub/config/nspr.pc.in 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/mozilla/nsprpub/config/nspr.pc.in 2012-02-20 18:00:14.609790649 -0600
|
||||
@@ -0,0 +1,10 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=@exec_prefix@
|
||||
+libdir=@libdir@
|
||||
+includedir=@includedir@
|
||||
+
|
||||
+Name: NSPR
|
||||
+Description: The Netscape Portable Runtime
|
||||
+Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
|
||||
+Libs: -L@libdir@ -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ @OS_LIBS@
|
||||
+Cflags: -I@includedir@
|
||||
diff -urN a/mozilla/nsprpub/config/rules.mk b/mozilla/nsprpub/config/rules.mk
|
||||
--- a/mozilla/nsprpub/config/rules.mk 2011-08-29 12:02:51.000000000 -0500
|
||||
+++ b/mozilla/nsprpub/config/rules.mk 2012-02-20 18:11:56.112742680 -0600
|
||||
@@ -207,10 +207,14 @@
|
||||
rm -rf $(wildcard *.OBJ *.OBJD) dist $(ALL_TRASH) $(DIST_GARBAGE)
|
||||
+$(LOOP_OVER_DIRS)
|
||||
|
||||
-install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS)
|
||||
+install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS) $(RELEASE_PC)
|
||||
ifdef RELEASE_BINS
|
||||
$(NSINSTALL) -t -m 0755 $(RELEASE_BINS) $(DESTDIR)$(bindir)
|
||||
endif
|
||||
+ifdef RELEASE_PC
|
||||
+ $(NSINSTALL) -D $(DESTDIR)$(libdir)/pkgconfig
|
||||
+ $(NSINSTALL) -t -m 0644 $(RELEASE_PC) $(DESTDIR)$(libdir)/pkgconfig/
|
||||
+endif
|
||||
ifdef RELEASE_HEADERS
|
||||
$(NSINSTALL) -t -m 0644 $(RELEASE_HEADERS) $(DESTDIR)$(includedir)/$(include_subdir)
|
||||
endif
|
||||
diff -urN a/mozilla/nsprpub/configure.in b/mozilla/nsprpub/configure.in
|
||||
--- a/mozilla/nsprpub/configure.in 2012-02-14 13:06:00.000000000 -0600
|
||||
+++ b/mozilla/nsprpub/configure.in 2012-02-20 18:09:55.776750908 -0600
|
||||
@@ -3357,6 +3357,7 @@
|
||||
config/nsprincl.mk
|
||||
config/nsprincl.sh
|
||||
config/nspr-config
|
||||
+ config/nspr.pc
|
||||
lib/Makefile
|
||||
lib/ds/Makefile
|
||||
lib/libc/Makefile
|
@ -1,104 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.8.6.ebuild,v 1.7 2010/09/20 19:47:39 jlec Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils multilib toolchain-funcs versionator
|
||||
|
||||
MIN_PV="$(get_version_component_range 2)"
|
||||
|
||||
DESCRIPTION="Netscape Portable Runtime"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug"
|
||||
|
||||
src_prepare() {
|
||||
mkdir build inst
|
||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8-pkgconfig-gentoo-3.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
||||
# make sure it won't find Perl out of Prefix
|
||||
sed -i -e "s/perl5//g" mozilla/nsprpub/configure || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
||||
mozilla/nsprpub/config/rules.mk
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cd "${S}"/build
|
||||
|
||||
echo > "${T}"/test.c
|
||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
||||
case $(file "${T}"/test.o) in
|
||||
*64-bit*|*ppc64*|*x86_64*) myconf="${myconf} --enable-64bit";;
|
||||
*32-bit*|*ppc*|*i386*|*"RISC System/6000"*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
|
||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
||||
|
||||
ECONF_SOURCE="../mozilla/nsprpub" econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable !debug optimize) \
|
||||
${myconf} || die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/build
|
||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
# Their build system is royally confusing, as usual
|
||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
||||
cd "${S}"/build
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
cd "${ED}"/usr/$(get_libdir)
|
||||
for file in *.a; do
|
||||
einfo "removing static libraries as upstream has requested!"
|
||||
rm -f ${file} || die "failed to remove static libraries."
|
||||
done
|
||||
|
||||
local n=
|
||||
# aix-soname.patch does this already
|
||||
[[ ${CHOST} == *-aix* ]] ||
|
||||
for file in *$(get_libname); do
|
||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
||||
mv ${file} ${n} || die "failed to mv files around"
|
||||
ln -s ${n} ${file} || die "failed to symlink files."
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# install nspr-config
|
||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
||||
|
||||
# create pkg-config file
|
||||
insinto /usr/$(get_libdir)/pkgconfig/
|
||||
doins "${S}"/build/config/nspr.pc || die "failed to insall nspr pkg-config file"
|
||||
|
||||
# Remove stupid files in /usr/bin
|
||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn
|
||||
ewarn "Please make sure you run revdep-rebuild after upgrade."
|
||||
ewarn "This is *extremely* important to ensure your system nspr works properly."
|
||||
ewarn
|
||||
}
|
@ -1,105 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.8.7.ebuild,v 1.7 2011/05/14 16:18:14 xarthisius Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils multilib toolchain-funcs versionator
|
||||
|
||||
MIN_PV="$(get_version_component_range 2)"
|
||||
|
||||
DESCRIPTION="Netscape Portable Runtime"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/nspr/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug"
|
||||
|
||||
src_prepare() {
|
||||
mkdir build inst
|
||||
epatch "${FILESDIR}"/${PN}-4.8-config.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8-pkgconfig-gentoo-3.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
|
||||
# Patch needs updating
|
||||
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
|
||||
# make sure it won't find Perl out of Prefix
|
||||
sed -i -e "s/perl5//g" mozilla/nsprpub/configure || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
|
||||
mozilla/nsprpub/config/rules.mk
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cd "${S}"/build
|
||||
|
||||
echo > "${T}"/test.c
|
||||
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
|
||||
case $(scanelf -BF'%M' "${T}"/test.o)$(scanmacho -BF'%M' "${T}"/test.o) in
|
||||
ELFCLASS64*|POWERPC64*|X86_64*) myconf="${myconf} --enable-64bit";;
|
||||
ELFCLASS32*|POWERPC*|I386*|ARM*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
|
||||
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
|
||||
|
||||
ECONF_SOURCE="../mozilla/nsprpub" econf \
|
||||
$(use_enable debug) \
|
||||
$(use_enable !debug optimize) \
|
||||
${myconf} || die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/build
|
||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
# Their build system is royally confusing, as usual
|
||||
MINOR_VERSION=${MIN_PV} # Used for .so version
|
||||
cd "${S}"/build
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
cd "${ED}"/usr/$(get_libdir)
|
||||
for file in *.a; do
|
||||
einfo "removing static libraries as upstream has requested!"
|
||||
rm -f ${file} || die "failed to remove static libraries."
|
||||
done
|
||||
|
||||
local n=
|
||||
# aix-soname.patch does this already
|
||||
[[ ${CHOST} == *-aix* ]] ||
|
||||
for file in *$(get_libname); do
|
||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
||||
mv ${file} ${n} || die "failed to mv files around"
|
||||
ln -s ${n} ${file} || die "failed to symlink files."
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# install nspr-config
|
||||
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
|
||||
|
||||
# create pkg-config file
|
||||
insinto /usr/$(get_libdir)/pkgconfig/
|
||||
doins "${S}"/build/config/nspr.pc || die "failed to insall nspr pkg-config file"
|
||||
|
||||
# Remove stupid files in /usr/bin
|
||||
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn
|
||||
ewarn "Please make sure you run revdep-rebuild after upgrade."
|
||||
ewarn "This is *extremely* important to ensure your system nspr works properly."
|
||||
ewarn
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
DIST nss-3.12.10.tar.gz 6008914 RMD160 08c82ce0f4dc4c1806944cbc74adcad137878bf3 SHA1 229f65c8d4e2c1b34e145253bceddada5a82a142 SHA256 634f294507de6da93a5c3e08006156a469ff8d8af9ac9153f608800f4d20206e
|
||||
DIST nss-3.12.11.tar.gz 5944840 RMD160 4528d4be996bce801ff5f4c978457bd17c8e8625 SHA1 187ae83a8368512bb8729c206da2ed34db1725ad SHA256 d043f8d44212bc9418b6a954ca88e05b8ab2a71f8c59e6829a9a36d8a28e9f16
|
||||
DIST nss-3.12.9.with.ckbi.1.82.tar.gz 6012144 RMD160 a5392169f240fe804aa4d55229a246c7f4997c65 SHA1 32d8c607c2301bdf053ab5d4fea7ec5af9d5d35a SHA256 b55ea655f3029737b4236f27301c1eb48b417714ff45ac8b8b67963ea80787a3
|
||||
DIST nss-3.13.1-add_cacert_ca_certs.patch 71117 RMD160 1d5a90f1afe3b645ac75c38540454d011f06985e SHA1 d9fc8c3ba90f4470cfdaeac457d2bc8d073ef5b4 SHA256 c9a38ebbafc49ec5eda87af4528e7c91bf13c49c9894b9a37464978c9b8eaf64
|
||||
DIST nss-3.13.1.tar.gz 5985329 RMD160 c1743308c380169d666e5c08b23a455f86b360bd SHA1 d8e7ee9f9f1e0bfa2ea8b72d25727634fea130a6 SHA256 95d933b59be466f19f90f595a35b4b92213fef084caecafeb89f4e2ce7160660
|
||||
DIST nss-3.13.1.with.ckbi.1.88.tar.gz 6065634 RMD160 20bf77259d92cb054a4e4c40fbd931da335fc58c SHA1 ebc0258c8d1a3c2fe80941bd991b766552464fc6 SHA256 456fd2ad036976660ae7e4e24edddc49f2f47e7ca490c1c5372771bbb5207879
|
||||
DIST nss-3.13.2-add_cacert_ca_certs-ported.patch 70938 RMD160 75e402553dd80382af2aa5676bf62dda62b733a2 SHA1 c2d342a9bc4690609b0cfe5924bde52e25d6b73c SHA256 bd3e14436695c903279c2cf8982c8df0f20ab34cbe1a7f955aaf861f19a3bf25
|
||||
DIST nss-3.13.2.tar.gz 6082528 RMD160 06efef91bbcff0425000d945dda73234ec12aadb SHA1 ad80109b135ebe8467ca2b2c2b9cc4b0bf885505 SHA256 92eafdbb62e3071afe71beeaca94c9f33b0b8d11654cbf1797c84aa9f7c1c8e5
|
||||
|
@ -1,206 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.12.10.ebuild,v 1.6 2011/09/04 10:14:47 maekke Exp $
|
||||
|
||||
EAPI=3
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
NSPR_VER="4.8.8"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="utils"
|
||||
|
||||
DEPEND="dev-util/pkgconfig"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
||||
>=dev-db/sqlite-3.5"
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.12.5-gentoo-fixups.diff"
|
||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
||||
|
||||
cd "${S}"/mozilla/security/coreconf
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
"${S}"/mozilla/security/nss/config/Makefile
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-3.12.4-solaris-gcc.patch # breaks non-gnu tools
|
||||
# dirty hack
|
||||
cd "${S}"/mozilla/security/nss
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
# Support Linux 3.0, bug #372001
|
||||
cd "${S}"/mozilla/security/coreconf/
|
||||
ln -sf Linux2.6.mk Linux3.0.mk || die "failed to symlink Linux2.6.mk"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
|
||||
echo > "${T}"/test.c
|
||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
|
||||
case $(file "${T}"/test.o) in
|
||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
|
||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export XCFLAGS="${CFLAGS}"
|
||||
export FREEBL_NO_DEPEND=1
|
||||
|
||||
cd "${S}"/mozilla/security/coreconf
|
||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
||||
cd "${S}"/mozilla/security/dbm
|
||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
||||
cd "${S}"/mozilla/security/nss
|
||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
src_install () {
|
||||
MINOR_VERSION=12
|
||||
cd "${S}"/mozilla/security/dist
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
# We generate these after stripping the libraries, else they don't match.
|
||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
cd "${ED}"/usr/$(get_libdir)
|
||||
local n=
|
||||
for file in *$(get_libname); do
|
||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
||||
mv ${file} ${n}
|
||||
ln -s ${n} ${file}
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
||||
fi
|
||||
done
|
||||
|
||||
local nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
cd "${S}"/mozilla/security/dist/*/bin/
|
||||
for f in $nssutils; do
|
||||
dobin ${f}
|
||||
done
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
declare -a libs
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss"
|
||||
unset libs liblist
|
||||
doenvd "${T}/90nss"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "We have reverted back to using upstreams soname."
|
||||
elog "Please run revdep-rebuild --library libnss3.so.12 , this"
|
||||
elog "will correct most issues. If you find a binary that does"
|
||||
elog "not run please re-emerge package to ensure it properly"
|
||||
elog " links after upgrade."
|
||||
elog
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
@ -1,206 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.12.9-r1.ebuild,v 1.7 2011/10/23 11:54:47 armin76 Exp $
|
||||
|
||||
EAPI=3
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
NSPR_VER="4.8.7"
|
||||
RTM_NAME="NSS_${PV//./_}_WITH_CKBI_1_82_RTM"
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.with.ckbi.1.82.tar.gz"
|
||||
|
||||
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="utils"
|
||||
|
||||
DEPEND="dev-util/pkgconfig"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}
|
||||
>=dev-db/sqlite-3.5"
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.12.5-gentoo-fixups.diff"
|
||||
epatch "${FILESDIR}/${PN}-3.12.6-gentoo-fixup-warnings.patch"
|
||||
|
||||
cd "${S}"/mozilla/security/coreconf
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I'"${EPREFIX}"'/usr/include/nspr -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "s:gentoo\/nss:$(get_libdir):" "${S}"/mozilla/security/nss/config/Makefile || die "Failed to fix for multilib"
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
"${S}"/mozilla/security/nss/config/Makefile
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-3.12.4-solaris-gcc.patch # breaks non-gnu tools
|
||||
# dirty hack
|
||||
cd "${S}"/mozilla/security/nss
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
# Support Linux 3.0, bug #372001
|
||||
cd "${S}"/mozilla/security/coreconf/
|
||||
ln -sf Linux2.6.mk Linux3.0.mk || die "failed to symlink Linux2.6.mk"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
|
||||
echo > "${T}"/test.c
|
||||
$(tc-getCC) ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
|
||||
case $(file "${T}"/test.o) in
|
||||
*64-bit*|*ppc64*|*x86_64*) export USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
|
||||
export NSPR_INCLUDE_DIR=`nspr-config --includedir`
|
||||
export NSPR_LIB_DIR=`nspr-config --libdir`
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export XCFLAGS="${CFLAGS}"
|
||||
export FREEBL_NO_DEPEND=1
|
||||
|
||||
cd "${S}"/mozilla/security/coreconf
|
||||
emake -j1 CC="$(tc-getCC)" || die "coreconf make failed"
|
||||
cd "${S}"/mozilla/security/dbm
|
||||
emake -j1 CC="$(tc-getCC)" || die "dbm make failed"
|
||||
cd "${S}"/mozilla/security/nss
|
||||
emake -j1 CC="$(tc-getCC)" || die "nss make failed"
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
src_install () {
|
||||
MINOR_VERSION=12
|
||||
cd "${S}"/mozilla/security/dist
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
# We generate these after stripping the libraries, else they don't match.
|
||||
#cp -L */lib/*.chk "${ED}"/usr/$(get_libdir) || die "copying chk files failed"
|
||||
cp -L */lib/libcrmf.a "${ED}"/usr/$(get_libdir) || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
cd "${ED}"/usr/$(get_libdir)
|
||||
local n=
|
||||
for file in *$(get_libname); do
|
||||
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION})
|
||||
mv ${file} ${n}
|
||||
ln -s ${n} ${file}
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die
|
||||
fi
|
||||
done
|
||||
|
||||
local nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
cd "${S}"/mozilla/security/dist/*/bin/
|
||||
for f in $nssutils; do
|
||||
dobin ${f}
|
||||
done
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
declare -a libs
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
OLD_IFS="${IFS}" IFS=":" ; liblist="${libs[*]}" ; IFS="${OLD_IFS}"
|
||||
echo -e "PRELINK_PATH_MASK=${liblist}" >"${T}/90nss"
|
||||
unset libs liblist
|
||||
doenvd "${T}/90nss"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "We have reverted back to using upstreams soname."
|
||||
elog "Please run revdep-rebuild --library libnss3.so.12 , this"
|
||||
elog "will correct most issues. If you find a binary that does"
|
||||
elog "not run please re-emerge package to ensure it properly"
|
||||
elog " links after upgrade."
|
||||
elog
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
generate_chk "${EROOT}"/usr/bin/shlibsign "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST ucommon-5.2.1.tar.gz 785843 RMD160 95802b2d8b190b4a95f9a976597590441fca75da SHA1 3d41433896546137df8a3ab94b5ba6c938d98083 SHA256 b4630f4c9489420f10b9772508f05f9fb582de07470e98f1c21691e083f18823
|
@ -0,0 +1,18 @@
|
||||
--- Doxyfile.orig 2010-03-14 04:33:22.303087693 +0200
|
||||
+++ Doxyfile 2010-03-14 04:34:34.495254330 +0200
|
||||
@@ -37,13 +37,13 @@
|
||||
GENERATE_HTMLHELP = YES
|
||||
GENERATE_TREEVIEW = YES
|
||||
TREEVIEW_WIDTH = 256
|
||||
-GENERATE_LATEX = YES
|
||||
+GENERATE_LATEX = NO
|
||||
COMPACT_LATEX = YES
|
||||
PDF_HYPERLINKS = YES
|
||||
USE_PDFLATEX = NO
|
||||
LATEX_BATCHMODE = YES
|
||||
LATEX_HIDE_INDICES = NO
|
||||
-GENERATE_RTF = YES
|
||||
+GENERATE_RTF = NO
|
||||
COMPACT_RTF = YES
|
||||
RTF_HYPERLINKS = NO
|
||||
GENERATE_MAN = NO
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>andreis.vinogradovs@gmail.com</email>
|
||||
<name>Andrei Vinogradov</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>maksbotan@gentoo.org</email>
|
||||
<name>Maxim Koltsov</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name='socks'>Build with socks proxy support</flag>
|
||||
<flag name='ssl'>Build with openssl as crypt library</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-5.2.1.ebuild,v 1.1 2012/02/26 19:29:12 maksbotan Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools-utils
|
||||
|
||||
DESCRIPTION="Portable C++ runtime for threads and sockets"
|
||||
HOMEPAGE="http://www.gnu.org/software/commoncpp"
|
||||
SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux"
|
||||
IUSE="doc static-libs socks +cxx debug ssl gnutls"
|
||||
|
||||
RDEPEND="ssl? ( dev-libs/openssl )"
|
||||
|
||||
DEPEND="dev-util/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=(README NEWS SUPPORT ChangeLog AUTHORS)
|
||||
PATCHES=( "${FILESDIR}"/disable_rtf_gen_doxy.patch )
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
if ! use ssl && ! use gnutls; then
|
||||
myconf=" --with-sslstack=nossl "
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
myconf=" --with-sslstack=ssl "
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable socks)
|
||||
$(use_enable cxx stdcpp)
|
||||
${myconf}
|
||||
--enable-atomics
|
||||
--with-pkg-config
|
||||
--enable-posix-timers
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-utils_src_compile
|
||||
use doc && autotools-utils_src_compile doxy
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
if use doc; then
|
||||
dohtml doc/html/*
|
||||
fi
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/CUFlow/CUFlow-1.5.ebuild,v 1.7 2008/02/02 15:18:40 hollow Exp $
|
||||
|
||||
inherit depend.apache eutils
|
||||
|
||||
DESCRIPTION="Provides an API for reading and analysing raw flow files"
|
||||
HOMEPAGE="http://www.columbia.edu/acis/networks/advanced/CUFlow/CUFlow.html"
|
||||
SRC_URI="http://www.columbia.edu/acis/networks/advanced/${PN}/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
net-analyzer/FlowScan"
|
||||
DEPEND=""
|
||||
|
||||
need_apache
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
sed -i "s%my \$rrddir = \"/cflow/reports/rrds\";%my \$rrddir = \"/var/lib/flows/rrds\";%" CUGrapher.pl \
|
||||
|| die "sed failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /var/lib/flows/bin
|
||||
doins "${FILESDIR}"/CUFlow.cf
|
||||
exeinto /var/lib/flows/bin
|
||||
doexe CUFlow.pm
|
||||
exeinto /var/www/localhost/cgi-bin
|
||||
doexe CUGrapher.pl
|
||||
ewarn "CUGrapher.pl has been placed in /var/www/localhost/cgi-bin"
|
||||
ewarn "If this is not where your cgi-bin directory is then you must"
|
||||
ewarn "move it manually"
|
||||
dodoc README.txt
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
chown flows:flows /var/lib/flows/bin/CUFlow.pm
|
||||
chown flows:flows /var/lib/flows/bin/CUFlow.cf
|
||||
elog
|
||||
elog "Edit /var/lib/flows/bin/CUFlow.cf for your site"
|
||||
elog "You will need to add the following line to flowscan.cf:"
|
||||
elog " ReportClasses CUFlow"
|
||||
elog "You must also comment out any other lines that contain"
|
||||
elog "ReportClasses."
|
||||
elog
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST CUFlow-1.5.tgz 28223 RMD160 56a34a06e24227a5e7b97f62e6a92a87f7940c20 SHA1 713d194985da724be5eea2787bbdbc65f97cca3e SHA256 37ea562f09f1e9b668e71bbef81825575c13132a7cf79bea13a9e80c4a0cd9af
|
@ -1,76 +0,0 @@
|
||||
# Sample CUFlow.cf file
|
||||
|
||||
# These are the subnets in our network
|
||||
# These are used only to determine whether a packet is inbound our
|
||||
# outbound
|
||||
Subnet 10.0.0.0/16
|
||||
|
||||
# These are networks we are particularly interested in, and want to
|
||||
# get separate rrd's for their aggregate traffic
|
||||
Network 10.0.1.0/24 special
|
||||
|
||||
# Where to put the rrd's
|
||||
# Make sure this is the same as $rrddir in CUGrapher.pl
|
||||
OutputDir /var/lib/flows/rrds
|
||||
|
||||
# Track multicast traffic
|
||||
Multicast
|
||||
|
||||
# Keep top N lists
|
||||
# Show the top ten talkers, storing reports in /cflow/flows/reports
|
||||
# and keeping the current report in /etc/httpd/data/reports/topten.html
|
||||
#Scoreboard 10 /cflow/reports/scoreboard /var/www/html/topten.html
|
||||
Scoreboard 25 /var/lib/flows/scoreboard /var/lib/flows/scoreboard/toptalkers.html
|
||||
|
||||
# Same, but build an over-time average top N list
|
||||
#AggregateScore 10 /cflow/reports/scoreboard/agg.dat /var/www/html/overall.html
|
||||
AggregateScore 25 /var/lib/flows/rrds/agg.dat /var/lib/flows/scoreboard/overall.html
|
||||
|
||||
# Our two netflow exporters. Produce service and protocol reports for the
|
||||
# total, and each of these.
|
||||
Router 10.0.1.2 router2
|
||||
|
||||
# Services we are interested in
|
||||
Service 20-21/tcp ftp
|
||||
Service 22/tcp ssh
|
||||
Service 23/tcp telnet
|
||||
Service 25/tcp smtp
|
||||
Service 53/udp,53/tcp dns
|
||||
Service 80/tcp http
|
||||
Service 110/tcp pop3
|
||||
Service 123/udp ntp
|
||||
Service 143/tcp imap
|
||||
Service 161/udp snmp
|
||||
#Service 412/tcp,412/udp dc
|
||||
Service 389/tcp ldap
|
||||
Service 443/tcp https
|
||||
Service 636/tcp ldaps
|
||||
#Service 1214/tcp kazaa
|
||||
#Service 4661-4662/tcp,4665/udp edonkey
|
||||
#Service 6346-6347/tcp gnutella
|
||||
Service 993/tcp imaps
|
||||
Service 994/tcp irc
|
||||
Service 995/tcp pop3s
|
||||
Service 5223/tcp jabbers
|
||||
#Service 54320/tcp bo2k
|
||||
Service 7070/tcp,554/tcp,6970-7170/udp real
|
||||
|
||||
# protocols we are interested in
|
||||
Protocol 1 icmp
|
||||
Protocol 4 ipinip
|
||||
Protocol 6 tcp
|
||||
Protocol 17 udp
|
||||
Protocol 47 gre
|
||||
Protocol 50 esp
|
||||
Protocol 51 ah
|
||||
Protocol 57 skip
|
||||
Protocol 88 eigrp
|
||||
Protocol 169
|
||||
Protocol 255
|
||||
|
||||
# ToS bit percentages to graph
|
||||
TOS 0 normal
|
||||
TOS 1-255 other
|
||||
|
||||
# Interested in traffic to/from AS 1
|
||||
#ASNumber 1 Genuity
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/JKFlow/JKFlow-3.4.2.ebuild,v 1.5 2008/02/02 15:22:29 hollow Exp $
|
||||
|
||||
inherit depend.apache eutils
|
||||
|
||||
MY_PN="${PN/JKF/jkf}"
|
||||
MY_P="${MY_PN}-v${PV}"
|
||||
|
||||
DESCRIPTION="XML configurable FlowScan module for processing flows"
|
||||
HOMEPAGE="http://users.telenet.be/jurgen.kobierczynski/jkflow/JKFlow.html"
|
||||
SRC_URI="http://users.telenet.be/jurgen.kobierczynski/${MY_PN}/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
net-analyzer/FlowScan
|
||||
dev-perl/XML-Simple
|
||||
dev-perl/Net-Patricia"
|
||||
DEPEND=""
|
||||
|
||||
need_apache
|
||||
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
cd "${S}"
|
||||
sed -i "s%my \$rrddir = \"/var/flows/reports/rrds/\";%my \$rrddir = \"/var/lib/flows/rrds/\";%" JKGrapher.pl \
|
||||
|| die "sed failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /var/lib/flows/bin
|
||||
doexe JKFlow.pm
|
||||
insinto /var/lib/flows/bin
|
||||
doins JKFlow_example_routers.xml JKFlow_example_sites.xml
|
||||
exeinto /var/www/localhost/cgi-bin
|
||||
doexe JKGrapher.pl
|
||||
ewarn "JKGrapher.pl has been placed in /var/www/localhost/cgi-bin"
|
||||
ewarn "If this is not where your cgi-bin directory is then you must"
|
||||
ewarn "move it manually"
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
chown flows:flows /var/lib/flows/bin/JKFlow.pm
|
||||
chown flows:flows /var/lib/flows/bin/JKFlow_example_routers.xml
|
||||
chown flows:flows /var/lib/flows/bin/JKFlow_example_sites.xml
|
||||
elog
|
||||
elog "You will need to add the following line to flowscan.cf:"
|
||||
elog " ReportClasses JKFlow"
|
||||
elog "You must also comment out any other lines that contain"
|
||||
elog "ReportClasses."
|
||||
elog
|
||||
elog "JKFlows configuration is complex. You should review"
|
||||
elog "the two sample configuration files in /var/lib/flows/bin"
|
||||
elog "and use them as a basis for configuration for your own"
|
||||
elog "network. More information can be found at:"
|
||||
elog "http://users.telenet.be/jurgen.kobierczynski/jkflow/eindwerk.pdf"
|
||||
elog
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/JKFlow/JKFlow-3.5.2.ebuild,v 1.1 2009/11/01 23:07:04 jer Exp $
|
||||
|
||||
inherit depend.apache eutils
|
||||
|
||||
MY_PN="${PN/JKF/jkf}"
|
||||
MY_P="${MY_PN}-v${PV}"
|
||||
|
||||
DESCRIPTION="XML configurable FlowScan module for processing flows"
|
||||
HOMEPAGE="http://users.telenet.be/jurgen.kobierczynski/jkflow/JKFlow.html"
|
||||
SRC_URI="http://users.telenet.be/jurgen.kobierczynski/${MY_PN}/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
net-analyzer/FlowScan
|
||||
dev-perl/XML-Simple
|
||||
dev-perl/Net-Patricia"
|
||||
DEPEND=""
|
||||
|
||||
need_apache
|
||||
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
cd "${S}"
|
||||
sed -i "s%my \$rrddir = \"/var/flows/reports/rrds/\";%my \$rrddir = \"/var/lib/flows/rrds/\";%" JKGrapher.pl \
|
||||
|| die "sed failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /var/lib/flows/bin
|
||||
doexe JKFlow.pm
|
||||
insinto /var/lib/flows/bin
|
||||
doins JKFlow_example_routers.xml JKFlow_example_sites.xml
|
||||
exeinto /var/www/localhost/cgi-bin
|
||||
doexe JKGrapher.pl
|
||||
ewarn "JKGrapher.pl has been placed in /var/www/localhost/cgi-bin"
|
||||
ewarn "If this is not where your cgi-bin directory is then you must"
|
||||
ewarn "move it manually"
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
chown flows:flows /var/lib/flows/bin/JKFlow.pm
|
||||
chown flows:flows /var/lib/flows/bin/JKFlow_example_routers.xml
|
||||
chown flows:flows /var/lib/flows/bin/JKFlow_example_sites.xml
|
||||
elog
|
||||
elog "You will need to add the following line to flowscan.cf:"
|
||||
elog " ReportClasses JKFlow"
|
||||
elog "You must also comment out any other lines that contain"
|
||||
elog "ReportClasses."
|
||||
elog
|
||||
elog "JKFlows configuration is complex. You should review"
|
||||
elog "the two sample configuration files in /var/lib/flows/bin"
|
||||
elog "and use them as a basis for configuration for your own"
|
||||
elog "network. More information can be found at:"
|
||||
elog "http://users.telenet.be/jurgen.kobierczynski/jkflow/eindwerk.pdf"
|
||||
elog
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
DIST jkflow-v3.4.2.tgz 22238 RMD160 1d5fdbb1fb0424924816f46d3815ac2f2f3f9303 SHA1 122289a9bb3c79f6b7fb6159ed09ee5644748c5f SHA256 cf668839c6d8ac7c5202d36bdc9eb2ad74d0906237eba2793927baf3796f8b45
|
||||
DIST jkflow-v3.5.2.tgz 24539 RMD160 ae02067093b9d4acf474bdaf07af5161364fe63b SHA1 21513be72243ad8098512ad515b837c1eccfd1d8 SHA256 8148e9f920c3e2a2d562813092673974caf9afa13cda0a58e79f3f623a2d6892
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>netmon</herd>
|
||||
</pkgmetadata>
|
@ -1,2 +1,2 @@
|
||||
DIST MIME_Type-1.0.0.tgz 4404 RMD160 5650819d36d39896d6992f388ba7cc2f39e20e1c SHA1 07c15a5b60c47d898dbad23b8a63d84ec4f66b9f SHA256 1eb67b8e46992f72f312113787dd99c5ebe6d9eacc7641c6983fc82ac108f229
|
||||
DIST MIME_Type-1.3.0.tgz 12591 RMD160 d8aa32d9f02f60c5f1228f9f3c66a848566eb844 SHA1 a30a3cb86201dace4ee6e0c0079da346d30b25c9 SHA256 8ead856eab86082f77d82ef5b58419fdc67ff40fa2ba390e73f07b7aafd34de2
|
||||
DIST MIME_Type-1.3.1.tgz 12941 RMD160 63b9807797fb5aa51cb19bdeb3adabcfd44a1401 SHA1 62de329361de3707cf041a63594789c04ab6fd9a SHA256 7e2446c91e04ba90dcc7cc8ba37c25c06ed4ee74b761db0ee202435facbfc46d
|
||||
|
@ -1,12 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-MIME_Type/PEAR-MIME_Type-1.0.0.ebuild,v 1.10 2010/01/26 22:09:48 ulm Exp $
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="Utility class for dealing with MIME types."
|
||||
LICENSE="PHP-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ~ppc64 ~sparc x86"
|
||||
IUSE=""
|
||||
RDEPEND=">=dev-php/PEAR-System_Command-1.0.2-r1"
|
@ -0,0 +1,14 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-MIME_Type/PEAR-MIME_Type-1.3.1.ebuild,v 1.1 2012/02/26 16:39:54 olemarkus Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="Utility class for dealing with MIME types."
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
RDEPEND="dev-php/PEAR-System_Command"
|
@ -1 +1,2 @@
|
||||
DIST premake-4.3-src.zip 514366 RMD160 8c414790cb7481809ef65f0dcac023d77ed0381d SHA1 8f37a3599121580f18b578811162b9b49a2e122f SHA256 36536490f8928d8ecde135da80cd8b751ea5bebe50cabba5c0de49cd41cb2780
|
||||
DIST premake-src-3.5.zip 384472 RMD160 5b2e8ba6da0c3b9e6b82ef3b0c0ebe5f47061790 SHA1 2bb3f94edd9915c4de6c2f9eb4530b2b85097e57 SHA256 ae51d699076e515d2517aef771c5de01f61ce5f504b79dea7653018885186c72
|
||||
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/premake/premake-3.5.ebuild,v 1.3 2012/02/26 22:38:57 titanofold Exp $
|
||||
|
||||
DESCRIPTION="A makefile generation tool"
|
||||
HOMEPAGE="http://premake.berlios.de/"
|
||||
SRC_URI="mirror://sourceforge/premake/${PN}-src-${PV}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND=""
|
||||
|
||||
S=${WORKDIR}/${P/p/P}
|
||||
|
||||
src_install() {
|
||||
dobin bin/premake || die
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
> Permission to use, copy, modify, and/or distribute this software for any
|
||||
> purpose with or without fee is hereby granted, provided that the above
|
||||
> copyright notice and this permission notice appear in all copies.
|
||||
>
|
||||
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue