diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2009-05-03 18:50:48 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2009-05-03 18:50:48 +0000 |
commit | 1cd2a21eedff6839691160b0e40473d49660a7fb (patch) | |
tree | 3ff89357736fca98c9f96013129fb4b381a3a33a /net-libs/libproxy | |
parent | amd64/x86 stable, bug #268317 (diff) | |
download | historical-1cd2a21eedff6839691160b0e40473d49660a7fb.tar.gz historical-1cd2a21eedff6839691160b0e40473d49660a7fb.tar.bz2 historical-1cd2a21eedff6839691160b0e40473d49660a7fb.zip |
liproxy is a library for automatic proxy configuration management, initial ebuild by nirbheek, closes bug #244028.
Package-Manager: portage-2.2_rc31/cvs/Linux x86_64
Diffstat (limited to 'net-libs/libproxy')
-rw-r--r-- | net-libs/libproxy/ChangeLog | 15 | ||||
-rw-r--r-- | net-libs/libproxy/Manifest | 18 | ||||
-rw-r--r-- | net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch | 12 | ||||
-rw-r--r-- | net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch | 31 | ||||
-rw-r--r-- | net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch | 26 | ||||
-rw-r--r-- | net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch | 22 | ||||
-rw-r--r-- | net-libs/libproxy/libproxy-0.2.3.ebuild | 76 | ||||
-rw-r--r-- | net-libs/libproxy/metadata.xml | 9 |
8 files changed, 209 insertions, 0 deletions
diff --git a/net-libs/libproxy/ChangeLog b/net-libs/libproxy/ChangeLog new file mode 100644 index 000000000000..027d7a591e6d --- /dev/null +++ b/net-libs/libproxy/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for net-libs/libproxy +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/ChangeLog,v 1.1 2009/05/03 18:50:48 eva Exp $ + +*libproxy-0.2.3 (03 May 2009) + + 03 May 2009; Gilles Dartiguelongue <eva@gentoo.org> + +files/libproxy-0.2.3-fix-as-needed-problem.patch, + +files/libproxy-0.2.3-fix-dbus-includes.patch, + +files/libproxy-0.2.3-fix-libxul-cflags.patch, + +files/libproxy-0.2.3-fix-python-automagic.patch, +metadata.xml, + +libproxy-0.2.3.ebuild: + libproxy is a library for automatic proxy configuration management, initial + ebuild by nirbheek, closes bug #244028. + diff --git a/net-libs/libproxy/Manifest b/net-libs/libproxy/Manifest new file mode 100644 index 000000000000..75740d2475c9 --- /dev/null +++ b/net-libs/libproxy/Manifest @@ -0,0 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX libproxy-0.2.3-fix-as-needed-problem.patch 570 RMD160 1ebdc1552919bea0ad62108e1ac3fc60a3b70a8c SHA1 c453c230a787ac9f7f9803329962a807fb2a0b14 SHA256 9b00f329db1ad6b398be47cee0eb32e34052bc2b589b7e57b92023c7b33c609e +AUX libproxy-0.2.3-fix-dbus-includes.patch 1387 RMD160 ae39dca04f17f58f1a0c36208ceed8190af82d95 SHA1 f43e6d39ecaf7847c3f11255f56d205383e982e6 SHA256 31be2886acd191a80d86a75c9aec090998dd2b21ec23e64d0cda51e73b71d60e +AUX libproxy-0.2.3-fix-libxul-cflags.patch 960 RMD160 16c5c40040fb81821914ff18e79560d828d57693 SHA1 08c3d1e983d313969905c1c40bf5f3e680020283 SHA256 5b91ca5403f9827d6961b31caf1a730f603e54b209b755514411a4505ef838ec +AUX libproxy-0.2.3-fix-python-automagic.patch 858 RMD160 ec182cb70c84ffbf7faa8a1ff8f68b95b2e57155 SHA1 842170203e449b6fcd704fa1183956d1a079bab8 SHA256 0d21b238b2476920c4fcdcff238526ddac4ab3022d359a918aab0e3315f105a4 +DIST libproxy-0.2.3.tar.gz 378773 RMD160 c86c4f8403cb879380e101d074af469c960b5c1c SHA1 2b2b00a179740548035a1145bbae600db9b0a2ce SHA256 59ded160b3547d29e37cc9d06359f7f37d94112214e4532430cd65e704c1339a +EBUILD libproxy-0.2.3.ebuild 1906 RMD160 502256e86785d9552e206cfa33ee511b0aa9ee9d SHA1 06e0fdb41cc75f6db71d2011db9ebe3959b2da1a SHA256 69a85c2aadea0213bce0a619cc56647b81be030866706c61c9ff10ef29c9f16a +MISC ChangeLog 654 RMD160 bead504e7b50246a3a2491c3dffec06f48e5c0f2 SHA1 f05ced9cedb4f89466855b7030dbd3c8be2fa2d3 SHA256 508483a12007c1931b13890c0138f37ddabc15280138245be39a0acd05933c2d +MISC metadata.xml 251 RMD160 384d1a935be87234a800bdb2d44054abd1cc51d3 SHA1 0078b5f5818a2a309b6c4b0ba9fc0f066fd46d49 SHA256 b8a43fb11d46f91c5bfa2cf7f202b7695b1d99880dcb91f3077d4a179db58794 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkn9540ACgkQ1fmVwcYIWAbGWQCdFaGr0xvQmCWehFv3IgWY8eTa +aHoAn12WeN3tQR2fY3ZezUrRbxgm299U +=1YWx +-----END PGP SIGNATURE----- diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch new file mode 100644 index 000000000000..9dca639de6c8 --- /dev/null +++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-as-needed-problem.patch @@ -0,0 +1,12 @@ +diff -Naur libproxy-0.2.3.orig/src/lib/Makefile.am libproxy-0.2.3/src/lib/Makefile.am +--- libproxy-0.2.3.orig/src/lib/Makefile.am 2008-06-06 02:26:15.000000000 +0530 ++++ libproxy-0.2.3/src/lib/Makefile.am 2009-01-30 13:47:53.365859960 +0530 +@@ -2,7 +2,7 @@ + libproxy_la_SOURCES = misc.c url.c pac.c dhcp.c dns.c slp.c wpad.c proxy_factory.c config_file.c \ + misc.h url.h pac.h dhcp.h dns.h slp.h wpad.h proxy_factory.h proxy.h config_file.h + libproxy_la_CFLAGS = -Wall +-libproxy_la_LDFLAGS = -lm ++libproxy_la_LDFLAGS = -lm -ldl + + include_HEADERS = proxy.h + diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch new file mode 100644 index 000000000000..e1148d341681 --- /dev/null +++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-dbus-includes.patch @@ -0,0 +1,31 @@ +--- libproxy-0.2.3.orig/configure.ac 2008-06-06 02:26:16.000000000 +0530 ++++ libproxy-0.2.3/configure.ac 2009-01-25 15:12:45.720319398 +0530 +@@ -21,6 +22,7 @@ + [PKG_CHECK_MODULES(mozjs, mozilla-js, have_mozjs=yes, have_mozjs=no)])]) + PKG_CHECK_MODULES(NetworkManager, NetworkManager, + have_networkmanager=yes, have_networkmanager=no) ++PKG_CHECK_MODULES(dbus, dbus-1, have_dbus=yes, have_dbus=no) + + # Environmental Variable + AC_ARG_WITH([envvar], +@@ -133,15 +135,15 @@ + [AS_HELP_STRING([--with-networkmanager], + [build NetworkManager plugin @<:@automatic@:>@])], + [], +- [test x$have_networkmanager == xyes && with_networkmanager=yes]) ++ [test x$have_networkmanager == xyes -a x$have_dbus == xyes && with_networkmanager=yes]) + if test x$with_networkmanager = xyes; then +- if test x$have_networkmanager == xyes; then +- NETWORKMANAGER_CFLAGS="$NetworkManager_CFLAGS" +- NETWORKMANAGER_LIBS="$NetworkManager_LIBS" ++ if test x$have_networkmanager == xyes -a x$have_dbus == xyes; then ++ NETWORKMANAGER_CFLAGS="$NetworkManager_CFLAGS $dbus_CFLAGS" ++ NETWORKMANAGER_LIBS="$NetworkManager_LIBS $dbus_LIBS" + AC_SUBST(NETWORKMANAGER_CFLAGS) + AC_SUBST(NETWORKMANAGER_LIBS) + else +- echo "NetworkManager plugin requires: NetworkManager!" ++ echo "NetworkManager plugin requires: NetworkManager and dbus!" + exit 1 + fi + else diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch new file mode 100644 index 000000000000..0ee34f0408a9 --- /dev/null +++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-libxul-cflags.patch @@ -0,0 +1,26 @@ + configure.ac | 5 +++-- + 1 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index bfea453..844896b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -23,6 +23,7 @@ PKG_CHECK_MODULES(mozjs, xulrunner-js, have_mozjs=yes, + PKG_CHECK_MODULES(NetworkManager, NetworkManager, + have_networkmanager=yes, have_networkmanager=no) + PKG_CHECK_MODULES(dbus, dbus-1, have_dbus=yes, have_dbus=no) ++PKG_CHECK_MODULES(libxul_unstable, libxul-unstable, have_mozjs=yes, have_mozjs=no) + + # Environmental Variable + AC_ARG_WITH([envvar], +@@ -117,8 +118,8 @@ AC_ARG_WITH([mozjs], + [test x$have_mozjs == xyes && with_mozjs=yes]) + if test x$with_mozjs = xyes; then + if test x$have_mozjs == xyes; then +- MOZJS_CFLAGS="$mozjs_CFLAGS" +- MOZJS_LIBS="$mozjs_LIBS" ++ MOZJS_CFLAGS="$mozjs_CFLAGS $libxul_unstable_CFLAGS" ++ MOZJS_LIBS="$mozjs_LIBS $libxul_unstable_LIBS" + AC_SUBST(MOZJS_CFLAGS) + AC_SUBST(MOZJS_LIBS) + else diff --git a/net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch b/net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch new file mode 100644 index 000000000000..f33f73b41052 --- /dev/null +++ b/net-libs/libproxy/files/libproxy-0.2.3-fix-python-automagic.patch @@ -0,0 +1,22 @@ +diff -Naur libproxy-0.2.3.orig/configure.ac libproxy-0.2.3/configure.ac +--- libproxy-0.2.3.orig/configure.ac 2008-06-06 02:26:16.000000000 +0530 ++++ libproxy-0.2.3/configure.ac 2009-01-25 13:56:15.335319374 +0530 +@@ -10,6 +10,7 @@ + AC_PROG_LIBTOOL + AC_PROG_LN_S + AC_PROG_MAKE_SET ++AM_PROG_CC_C_O + + ### Checks for libraries for plugins. + PKG_CHECK_MODULES(x11, x11, have_x11=yes, have_x11=no) +@@ -154,8 +155,8 @@ + AC_ARG_WITH([python], + [AS_HELP_STRING([--with-python], + [build Python bindings @<:@automatic@:>@])], +- [AM_PATH_PYTHON([2.5], with_python=yes)], +- [AM_PATH_PYTHON([2.5], with_python=yes, with_python=no)]) ++ [AM_PATH_PYTHON([2.5], have_python=yes, have_python=no)], ++ [have_python=yes && with_python=yes]) + AM_CONDITIONAL([WITH_PYTHON], [test x$with_python = xyes]) + + # Java diff --git a/net-libs/libproxy/libproxy-0.2.3.ebuild b/net-libs/libproxy/libproxy-0.2.3.ebuild new file mode 100644 index 000000000000..b44a007f7bf2 --- /dev/null +++ b/net-libs/libproxy/libproxy-0.2.3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.2.3.ebuild,v 1.1 2009/05/03 18:50:48 eva Exp $ + +EAPI="2" + +inherit autotools eutils python + +DESCRIPTION="Library for automatic proxy configuration management" +HOMEPAGE="http://code.google.com/p/libproxy/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnome kde networkmanager python webkit xulrunner" + +RDEPEND=" + gnome? ( + x11-libs/libX11 + x11-libs/libXmu + gnome-base/gconf ) + kde? ( + x11-libs/libX11 + x11-libs/libXmu ) + networkmanager? ( net-misc/networkmanager ) + python? ( >=dev-lang/python-2.5 ) + webkit? ( net-libs/webkit-gtk ) + xulrunner? ( net-libs/xulrunner ) +" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.19" + +src_prepare() { + # http://code.google.com/p/libproxy/issues/detail?id=23 + epatch "${FILESDIR}/${P}-fix-dbus-includes.patch" + + # http://code.google.com/p/libproxy/issues/detail?id=24 + epatch "${FILESDIR}/${P}-fix-python-automagic.patch" + + # http://code.google.com/p/libproxy/issues/detail?id=25 + epatch "${FILESDIR}/${P}-fix-as-needed-problem.patch" + + # http://bugs.gentoo.org/show_bug.cgi?id=259178 + epatch "${FILESDIR}/${P}-fix-libxul-cflags.patch" + + eautoreconf +} + +src_configure() { + econf --with-envvar \ + --with-file \ + --disable-static \ + $(use_with gnome) \ + $(use_with kde) \ + $(use_with webkit) \ + $(use_with xulrunner mozjs) \ + $(use_with networkmanager) \ + $(use_with python) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed!" + dodoc AUTHORS NEWS README ChangeLog || die "dodoc failed" +} + +pkg_postinst() { + if use python; then + python_need_rebuild + python_mod_optimize "$(python_get_sitedir)/${PN}.py" + fi +} + +pkg_postrm() { + python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}.py +} diff --git a/net-libs/libproxy/metadata.xml b/net-libs/libproxy/metadata.xml new file mode 100644 index 000000000000..b541ec81c030 --- /dev/null +++ b/net-libs/libproxy/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +<use> + <flag name='webkit'>Enable support for <pkg>net-libs/webkit-gtk</pkg>.</flag> +</use> +</pkgmetadata> + |