Skip to content

Commit

Permalink
Add OpenRA & other ebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
cerebrum committed Oct 29, 2010
1 parent 472dff5 commit 52fbfcc
Show file tree
Hide file tree
Showing 30 changed files with 1,094 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app-dicts/stardict-tools/Manifest
@@ -0,0 +1,4 @@
AUX gcc_new.patch 2872 RMD160 19256432f24c52bd3b9183457ac693f4ab9d610d SHA1 b13f9fc2ee4eb531a542ca76c857430954f850a6 SHA256 8656010888409264ea32c915440bbaa2c694f2f32a8dda1412739f268c9e31f7
AUX gconf-m4.diff 1720 RMD160 e4fea58f8730207a2de6d64f33c563f2fb758011 SHA1 a1fff45ee0ee30fa27ac9e512c9a9b7539117d9b SHA256 dac7841720aa693fc65150beff507120346b1a6b1040a33baf26cb7485cf5939
DIST stardict-tools-3.0.1.tar.bz2 410209 RMD160 4cc1b40b862aadd24f9dd3f97b258ffaf3e45760 SHA1 5a859fcf8aed39372cdabbac1310eb700f26c9a4 SHA256 9aa89b78ae09d68ff0218c76c8de0763225718a5b372aa8274c33e9a3fd60a20
EBUILD stardict-tools-3.0.1-r2.ebuild 2409 RMD160 1aa8571917f735013c26630741ba1b79428291bd SHA1 e13d9b5af8a6232d31077b63bd69832b8a830e85 SHA256 f78779864f48b39ca002d26eda3caa6880e861e1812154465b3d4f19256e8883
82 changes: 82 additions & 0 deletions app-dicts/stardict-tools/files/gcc_new.patch
@@ -0,0 +1,82 @@
diff -ur stardict-tools-3.0.1.orig/src/bgl_babylon.h stardict-tools-3.0.1/src/bgl_babylon.h
--- stardict-tools-3.0.1.orig/src/bgl_babylon.h 2007-08-16 11:52:38.000000000 +0400
+++ stardict-tools-3.0.1/src/bgl_babylon.h 2009-10-09 16:58:15.476323120 +0400
@@ -24,6 +24,8 @@
#include <stdlib.h>
#include <zlib.h>

+#include <cstring>
+
#include <string>
#include <vector>

diff -ur stardict-tools-3.0.1.orig/src/bgl_stardictbuilder.h stardict-tools-3.0.1/src/bgl_stardictbuilder.h
--- stardict-tools-3.0.1.orig/src/bgl_stardictbuilder.h 2007-08-01 08:00:59.000000000 +0400
+++ stardict-tools-3.0.1/src/bgl_stardictbuilder.h 2009-10-09 16:59:00.480324090 +0400
@@ -22,6 +22,8 @@

#include "bgl_dictbuilder.h"

+#include <cstring>
+
#include <map>
#include <fstream>

Only in stardict-tools-3.0.1/src/: .deps
diff -ur stardict-tools-3.0.1.orig/src/dictbuilder.cpp stardict-tools-3.0.1/src/dictbuilder.cpp
--- stardict-tools-3.0.1.orig/src/dictbuilder.cpp 2007-07-10 11:16:06.000000000 +0400
+++ stardict-tools-3.0.1/src/dictbuilder.cpp 2009-10-09 17:01:51.524324446 +0400
@@ -6,6 +6,8 @@
#include <string>
#include <vector>

+#include <cstring>
+
#include <libgen.h>
#include <glib.h>

diff -ur stardict-tools-3.0.1.orig/src/libbgl2txt.h stardict-tools-3.0.1/src/libbgl2txt.h
--- stardict-tools-3.0.1.orig/src/libbgl2txt.h 2007-08-01 07:00:35.000000000 +0400
+++ stardict-tools-3.0.1/src/libbgl2txt.h 2009-10-09 16:57:07.480323049 +0400
@@ -2,6 +2,7 @@
#define _LIBBGL2TXT_H_

#include <string>
+#include <cstring>

extern void convert_bglfile(std::string infile, std::string source_charset, std::string target_charset);

Only in stardict-tools-3.0.1/src/: Makefile
diff -ur stardict-tools-3.0.1.orig/src/tabfile2sql.cpp stardict-tools-3.0.1/src/tabfile2sql.cpp
--- stardict-tools-3.0.1.orig/src/tabfile2sql.cpp 2007-08-15 09:56:06.000000000 +0400
+++ stardict-tools-3.0.1/src/tabfile2sql.cpp 2009-10-09 17:02:34.151321792 +0400
@@ -8,6 +8,7 @@
#include <mysql.h>

#include <string>
+#include <cstring>

void print_info(const char *info)
{
diff -ur stardict-tools-3.0.1.orig/src/wordnet.cpp stardict-tools-3.0.1/work/stardict-tools-3.0.1/src/wordnet.cpp
--- stardict-tools-3.0.1.orig/src/wordnet.cpp 2007-09-10 11:49:15.000000000 +0400
+++ stardict-tools-3.0.1/work/stardict-tools-3.0.1/src/wordnet.cpp 2009-10-09 17:39:01.011322372 +0400
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <glib.h>
#include <string>
+#include <cstring>


static int hexalpha_to_int(int c)
diff -ur stardict-tools-3.0.1.orig/src/wubi.cpp stardict-tools-3.0.1/src/wubi.cpp
--- stardict-tools-3.0.1.orig/src/wubi.cpp 2007-07-10 11:16:06.000000000 +0400
+++ stardict-tools-3.0.1/src/wubi.cpp 2009-10-09 17:03:19.420323247 +0400
@@ -5,6 +5,7 @@
#include <unistd.h>
#include <glib.h>
#include <string>
+#include <cstring>

void convert(const char *filename)
{
43 changes: 43 additions & 0 deletions app-dicts/stardict-tools/files/gconf-m4.diff
@@ -0,0 +1,43 @@
diff -urN stardict-3.0.0.orig/m4/gconf-2.m4 stardict-3.0.0/m4/gconf-2.m4
--- m4/gconf-2.m4 1970-01-01 08:00:00.000000000 +0800
+++ m4/gconf-2.m4 2007-11-10 14:48:00.000000000 +0800
@@ -0,0 +1,39 @@
+dnl AM_GCONF_SOURCE_2
+dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
+dnl (i.e. pass to gconftool-2
+dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
+dnl you should install foo.schemas files
+dnl
+
+AC_DEFUN([AM_GCONF_SOURCE_2],
+[
+ if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
+ GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+ else
+ GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
+ fi
+
+ AC_ARG_WITH(gconf-source,
+ [ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
+
+ AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
+ AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
+
+ if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
+ GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
+ fi
+
+ AC_ARG_WITH(gconf-schema-file-dir,
+ [ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
+
+ AC_SUBST(GCONF_SCHEMA_FILE_DIR)
+ AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
+
+ AC_ARG_ENABLE(schemas-install,
+ [ --disable-schemas-install Disable the schemas installation],
+ [case ${enableval} in
+ yes|no) ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
+ esac])
+ AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
+])
91 changes: 91 additions & 0 deletions app-dicts/stardict-tools/stardict-tools-3.0.1-r2.ebuild
@@ -0,0 +1,91 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/stardict-3.0.1-r2.ebuild,v 1.4 2009/08/19 14:20:00 betelgeuse Exp $

EAPI="2"

inherit gnome2 eutils autotools

# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
# their indexes seem to be in a different format. So we'll keep them
# seperate for now.

IUSE="festival espeak gnome gucharmap qqwry pronounce spell"
DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
HOMEPAGE="http://stardict.sourceforge.net/"
SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2"

RESTRICT="test"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"

DEP="gnome? ( >=gnome-base/libbonobo-2.2.0
>=gnome-base/libgnome-2.2.0
pronounce? ( >=gnome-base/libgnome-2.2.0[esd] )
>=gnome-base/libgnomeui-2.2.0
>=gnome-base/gconf-2
>=gnome-base/orbit-2.6
app-text/scrollkeeper )
spell? ( app-text/enchant )
gucharmap? ( >=gnome-extra/gucharmap-1.4.0 )
>=sys-libs/zlib-1.1.4
>=x11-libs/gtk+-2.12"

RDEPEND="${DEP}
espeak? ( >=app-accessibility/espeak-1.29 )
festival? ( ~app-accessibility/festival-1.96_beta )"

DEPEND="${DEP}
>=dev-util/intltool-0.22
dev-util/pkgconfig"

src_prepare() {
# epatch "${FILESDIR}"/${P}-configure.in-EST.diff
epatch "${FILESDIR}"/gconf-m4.diff
epatch "${FILESDIR}"/gcc_new.patch
# epatch "${FILESDIR}"/${P}-gcc43.patch
# epatch "${FILESDIR}"/${P}-transparent_trayicon.patch
# epatch "${FILESDIR}"/${P}-changelog-minor-typo-fixes.patch
# epatch "${FILESDIR}"/${P}-gcc44.patch

# Fix compatibility with gucharmap-2, bug #240728
# epatch "${FILESDIR}/${P}-gucharmap2.patch"

AT_M4DIR="m4" eautoreconf
gnome2_omf_fix
}

src_configure() {
export PKG_CONFIG=$(type -P pkg-config)
# Festival plugin crashes, bug 188684. Disable for now.
G2CONF="$(use_enable gnome gnome-support)
$(use_enable spell)
$(use_enable gucharmap)
$(use_enable espeak)
$(use_enable qqwry)
--disable-festival
--disable-advertisement
--disable-updateinfo"
gnome2_src_configure
}

src_install() {
gnome2_src_install
}

#
#src_unpack() {
# unpack ${A}
# cd ${S}
#}
#
#src_compile() {
# AT_M4DIR="m4" eautoreconf
# econf --with-posix-regex
# emake || die "emake failed"
#}
#
#src_install() {
# emake DESTDIR="${D}" install || die "make install failed"
#}
12 changes: 12 additions & 0 deletions dev-util/eclipse-cdt-bin/Manifest
@@ -0,0 +1,12 @@
DIST org.eclipse.cdt-3.1.1-linux.x86.tar.gz 12106538 RMD160 671c32803fbd5a469f4e2de5f226fd2c15e764c5 SHA1 56ec525c1995a278b6d3092362205eac3b8af331 SHA256 8e038477533b598cb965373b944b64ea9a697b98d11da66cff32f24dc65bb203
EBUILD eclipse-cdt-bin-3.1.1-r99.ebuild 1245 RMD160 82c0233d11b734d0405bfe50f7356279d075e6b4 SHA1 432fdea5aab6105a68eb34dbdfab084e335e525c SHA256 72ea6aa923ca41afa5b1f1b6193b973e31d2cafd6115645987c27e7c39a8b516
MD5 e4cc4e41eba1b5796d0d168147070182 eclipse-cdt-bin-3.1.1-r99.ebuild 1245
RMD160 82c0233d11b734d0405bfe50f7356279d075e6b4 eclipse-cdt-bin-3.1.1-r99.ebuild 1245
SHA256 72ea6aa923ca41afa5b1f1b6193b973e31d2cafd6115645987c27e7c39a8b516 eclipse-cdt-bin-3.1.1-r99.ebuild 1245
MISC eclipse-cdt-bin-3.1.1-r99.ebuild~ 1116 RMD160 de18d8ac58111903dc722ac86d858cef48d074e0 SHA1 c0870e59796d6c43e0535f82238011ba4cdc1a0e SHA256 9e136c973cda67096568d3d785314ed36cc662a4c6790e6c7d99e21a820a1fed
MD5 ea91d2a85acc24dbf6d0333f3ced62b1 eclipse-cdt-bin-3.1.1-r99.ebuild~ 1116
RMD160 de18d8ac58111903dc722ac86d858cef48d074e0 eclipse-cdt-bin-3.1.1-r99.ebuild~ 1116
SHA256 9e136c973cda67096568d3d785314ed36cc662a4c6790e6c7d99e21a820a1fed eclipse-cdt-bin-3.1.1-r99.ebuild~ 1116
MD5 89e3e10eec19a689a7d049de83ee04f5 files/digest-eclipse-cdt-bin-3.1.1-r99 301
RMD160 7185c9606024a8cdbe691b9c3f43c605b4db79ff files/digest-eclipse-cdt-bin-3.1.1-r99 301
SHA256 3cc1cd9070841186eb052f62a3badb9fe7bf11f809ba2c4d17459145adcd7403 files/digest-eclipse-cdt-bin-3.1.1-r99 301
35 changes: 35 additions & 0 deletions dev-util/eclipse-cdt-bin/eclipse-cdt-bin-3.1.1-r99.ebuild
@@ -0,0 +1,35 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-cdt-bin/eclipse-cdt-bin-3.0.2.ebuild,v 1.1 2006/06/26 19:04:09 ribosome Exp $

inherit eclipse-ext

DESCRIPTION="C/C++ Development Tools for Eclipse"
LICENSE="CPL-1.0"
HOMEPAGE="http://www.eclipse.org/cdt"
#SRC_URI="amd64? ( http://download.eclipse.org/tools/cdt/releases/eclipse3.1/dist/${PV}/org.eclipse.cdt-${PV}-linux.x86_64.tar.gz )
#x86? ( http://download.eclipse.org/tools/cdt/releases/eclipse3.1/dist/${PV}/org.eclipse.cdt-${PV}-linux.x86.tar.gz )"
SRC_URI="x86? ( http://download.eclipse.org/tools/cdt/releases/eclipse3.1/dist/${PV}/org.eclipse.cdt-${PV}-linux.x86.tar.gz )"

SLOT="0"
IUSE=""
KEYWORDS="-* ~x86 ~amd64"

DEPEND=">=dev-util/eclipse-sdk-3.1"

S="${WORKDIR}/eclipse"

src_compile() {
einfo "${P} is a binary package"
}

src_install () {
cd "${S}"
eclipse-ext_require-slot 3.1 || die \
"Failed to find suitable Eclipse installation"

eclipse-ext_create-ext-layout binary || die "Failed to create layout"

eclipse-ext_install-features features/* || die "Failed to install features"
eclipse-ext_install-plugins plugins/* || die "Failed to install plugins"
}
@@ -0,0 +1,3 @@
MD5 c8b1589a45ac696bc3e8d7a6a8023048 org.eclipse.cdt-3.1.1-linux.x86.tar.gz 12106538
RMD160 671c32803fbd5a469f4e2de5f226fd2c15e764c5 org.eclipse.cdt-3.1.1-linux.x86.tar.gz 12106538
SHA256 8e038477533b598cb965373b944b64ea9a697b98d11da66cff32f24dc65bb203 org.eclipse.cdt-3.1.1-linux.x86.tar.gz 12106538
20 changes: 20 additions & 0 deletions net-libs/libpcap/Manifest
@@ -0,0 +1,20 @@
AUX libpcap-0.8.1-fPIC.patch 298 RMD160 4cf97341a5da39c97553871312c9381f30457bdb SHA1 e63657730f2a1d2f04ca50947ea01485f1d5994e SHA256 cd4cbc5aa3ba94095e85cf026b015f20af9ed77c05b529b2cb902e5ba365a7c3
AUX libpcap-0.9.3-whitespace.diff 679 RMD160 70ccf92874b1665253608ffeffa7de89c2af48d7 SHA1 a50d6467d5805a53809e9fdcc197377b76d21559 SHA256 4ff701485da6f577980048b9b91810ba7aa529c3be021dea30c8205b0a130606
AUX libpcap-0.9.8-arptype-65534.patch 870 RMD160 be267ff32f5a59d0e8028da030131605beb50c49 SHA1 0fb37d5925b51f3beaae1dc66b5db4553d987cc9 SHA256 854e08c83f8615a4e5d12e3c2d0130ca23e38cd8216105495cf8f2968f2bb0a4
AUX libpcap-0.9.8-largefile.patch 202 RMD160 4ac6ffcc15c8c80ae6f1eb2586f03f92d4ecf348 SHA1 d3caaaa062518ed636cc60715332aaa2e0deb0d8 SHA256 ab377d1d9ed24e5eb4fda8db55cb93cdab0f4844ea7f0e098075eac29417e9f7
AUX libpcap-0.9.8-pcap_compile.patch 1487 RMD160 f801931d825896d31af6828668841787016dd47c SHA1 ee99e218f8d715f00d1f4d56497fd6dbb5747dbf SHA256 5665ae26fd002dfdd5289bbaac2c42d1b5e9f99fabc608cf1b76517ab510a804
AUX libpcap-1.0.0-LDFLAGS.patch 410 RMD160 fe677c8b5e7c9bd62eeaad6e4baa733e10e1b4b2 SHA1 2bb315b365f78405a2cd7be32249bbc20f956e26 SHA256 ea3fffb83db4878bd6086e580e669eda4754df80dae9fef1b36ba444819068bd
AUX libpcap-1.0.0-bindir.patch 508 RMD160 565810d2b8a46fb7c3c47c5eeca29ac7e82e1289 SHA1 5ea64bb60ffed019a213bc943634cbac2f3d3411 SHA256 677269478a1c4a7cb786fefb3353d565d8ea032b03aa40b9d771cf702152d6f4
AUX libpcap-1.0.0-cross-linux.patch 1079 RMD160 76d9460f8cd4d022cd5e50ec23c95599f68b161e SHA1 b33c25ee785123a09347da4db5b04e8e63e2093a SHA256 2946f4336a40227caa1904e243cf388aa7ef70926aea881748dd7f3f9305bcfb
AUX libpcap-1.0.0-fix-any-intf.diff 4535 RMD160 53a68c553978cc5aaf8cd40a6124a9b296b0b01c SHA1 b1bb8cf8a6dda7f35a92ede144ee81f391f4c7b0 SHA256 6a26fbc56107a7384bc77fb3f9513bf0ff7049b42987066beaa0e47052868196
AUX libpcap-1.0.0-freebsd-pic.patch 210 RMD160 e208e84b89c43f890a744d782ab4162db4c10577 SHA1 d83140682f0f3d748d96cd8d2befb20297fd78bf SHA256 b2772a18e81d455e5adccc3fdd1eaccef9047c737c1749d20ee850defc633dc7
AUX libpcap-1.0.0-install-bindir.patch 493 RMD160 2e30779a1b45cbbeaeec98e2d9b61cd896114d86 SHA1 b950a7c5157652d8e99ca09c58682e1f299038f1 SHA256 17d4a14dbf8a5d12570f5b72cf5b5848988d64a2b60e4dd7a3363daea92b9a5b
AUX libpcap-1.0.0-install-headers.patch 1447 RMD160 c68db41d4417a57c4b51613699b748a4524781c3 SHA1 83c5496eed2e3f4cc262aa6613596d80883eb9d2 SHA256 4e913dd0a4d460fdf5d57c4ebc67cc379178dcd06c8ef33422661c174ffd7e27
AUX libpcap-1.0.0-optional-bluetooth.patch 5394 RMD160 df5093800385df09e5a0f9a22d359c5e04269a5f SHA1 bdeb0237b720e40585c463fabc3a305f99170024 SHA256 53b01de2108b00c74e2eda513ae8f5253e2b7d960cb8ab22494cbe0631cb3056
AUX libpcap-1.0.0-whitespace.patch 679 RMD160 6a62d2e5737a8627e43b853a687b31c5b4275b96 SHA1 49fa8750e8fe92c13bbb5f111c8d78b173313c4a SHA256 684b4407b3055336478507f7642bd4f83cf10f3cd1d0fd41971cad1f1a12b6bb
AUX libpcap-1.0.1-autoconf.patch 560 RMD160 84f326621b6a3de48516a449c5a9a48b95a99874 SHA1 39edc57982ea1a303d212a317f4258e909f0359f SHA256 cdd38a908723e272d834eda1d032f97e2b890949c1a24e24be6a178815258b27
AUX libpcap-1.0.1_pre20090708-libnl-automagic.patch 1018 RMD160 75c7caeca86951426b0fc140cc8919e0215a8471 SHA1 7fb4a68bfcd1f884907ca2e71c9340eff21b4548 SHA256 8b29e765a244161545f02ea702f555303a9914ccde73548258d79900691778f5
AUX libpcap-1.0.1_pre20090812-poll-cpu-usage.patch 1060 RMD160 b4821a0b146dda4ff8cce822e5d86f3196ab0894 SHA1 1b017ce2e2edc978b757c886326da6cc7f6898d2 SHA256 44776d07b759061f27be568f1fef7eb3400f1a10ad11fe14557f676a0dbd04b9
AUX libpcap-cross-linux.patch 1114 RMD160 e76fd1ea94d34e8533416c476d95166ad13579ec SHA1 0853cb1cf102c6d9b41d22b4c62b0e1bac6d73a8 SHA256 4b3fe1e2b7ecefbf82e20120f8c3bf9c5050cb7ccc1e0be77a04af5ef7cbb459
DIST libpcap-1.0.0.tar.gz 524273 RMD160 20857fe6af5dc70fffb19da46e0fee908f55b3ea SHA1 9893654027ae11033d785045ff35583da43fe8fa SHA256 a214c4e1d7e22a758f66fe1d08f0ce41c3ba801a4c13dd1188e1e38288ac73c0
EBUILD libpcap-1.0.0-r3.ebuild 1787 RMD160 85b7583f329eebd9eec956c1ba94d48a360fbcc6 SHA1 d3841958478d09baf457f11d02bacadc6c05ec46 SHA256 a04a910f0385f5e6b99f0b1c9344d2f406b40d562b8b380fc1b47f8a7a2da79f
11 changes: 11 additions & 0 deletions net-libs/libpcap/files/libpcap-0.8.1-fPIC.patch
@@ -0,0 +1,11 @@
--- Makefile.in 2004-01-03 12:51:50.914715352 +0000
+++ Makefile.in 2004-01-03 13:04:17.524952464 +0000
@@ -48,7 +48,7 @@
LIBS = @V_LIBS@

# Standard CFLAGS
-CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
+CFLAGS = $(CCOPT) $(INCLS) $(DEFS) -fPIC

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
22 changes: 22 additions & 0 deletions net-libs/libpcap/files/libpcap-0.9.3-whitespace.diff
@@ -0,0 +1,22 @@
diff --exclude='*~' -Naur libpcap-0.9.3.orig/pcap.h libpcap-0.9.3/pcap.h
--- libpcap-0.9.3.orig/pcap.h 2005-09-11 16:43:56.000000000 -0300
+++ libpcap-0.9.3/pcap.h 2005-09-11 16:45:06.000000000 -0300
@@ -38,13 +38,13 @@
#define lib_pcap_h

#if defined(WIN32)
- #include <pcap-stdinc.h>
+#include <pcap-stdinc.h>
#elif defined(MSDOS)
- #include <sys/types.h>
- #include <sys/socket.h> /* u_int, u_char etc. */
+#include <sys/types.h>
+#include <sys/socket.h> /* u_int, u_char etc. */
#else /* UN*X */
- #include <sys/types.h>
- #include <sys/time.h>
+#include <sys/types.h>
+#include <sys/time.h>
#endif /* WIN32/MSDOS/UN*X */

#ifndef PCAP_DONT_INCLUDE_PCAP_BPF_H
31 changes: 31 additions & 0 deletions net-libs/libpcap/files/libpcap-0.9.8-arptype-65534.patch
@@ -0,0 +1,31 @@
Source: upstream developer Guy Harris
https://www.wireshark.org/lists/wireshark-users/200806/msg00206.html
Reason: avoid messages: arptype 65534 not supported by libpcap - falling back to cooked socket.

Index: pcap-linux.c
===================================================================
RCS file: /tcpdump/master/libpcap/pcap-linux.c,v
retrieving revision 1.148
diff -c -r1.148 pcap-linux.c
*** pcap-linux.c 14 Apr 2008 21:04:51 -0000 1.148
--- pcap-linux.c 24 Jun 2008 06:43:49 -0000
***************
*** 1539,1544 ****
--- 1539,1555 ----
handle->linktype = DLT_LINUX_LAPD;
break;

+ #ifndef ARPHRD_NONE
+ #define ARPHRD_NONE 0xFFFE
+ #endif
+ case ARPHRD_NONE:
+ /*
+ * No link-layer header; packets are just IP
+ * packets, so use DLT_RAW.
+ */
+ handle->linktype = DLT_RAW;
+ break;
+
default:
handle->linktype = -1;
break;
11 changes: 11 additions & 0 deletions net-libs/libpcap/files/libpcap-0.9.8-largefile.patch
@@ -0,0 +1,11 @@
--- configure.in.orig 2008-04-02 03:15:24.000000000 +1100
+++ configure.in 2008-04-02 03:15:45.000000000 +1100
@@ -786,6 +786,8 @@

esac

+AC_SYS_LARGEFILE
+
AC_PROG_RANLIB

AC_LBL_DEVEL(V_CCOPT)

0 comments on commit 52fbfcc

Please sign in to comment.