summaryrefslogtreecommitdiff
path: root/net-p2p/dbhub
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/dbhub')
-rw-r--r--net-p2p/dbhub/Manifest8
-rw-r--r--net-p2p/dbhub/dbhub-0.451-r1.ebuild38
-rw-r--r--net-p2p/dbhub/files/dbhub-fix-buffer-overflows.patch53
-rw-r--r--net-p2p/dbhub/files/dbhub-gentoo.patch25
-rw-r--r--net-p2p/dbhub/files/dbhub-no-dynaloader.patch12
-rw-r--r--net-p2p/dbhub/metadata.xml11
6 files changed, 147 insertions, 0 deletions
diff --git a/net-p2p/dbhub/Manifest b/net-p2p/dbhub/Manifest
new file mode 100644
index 000000000000..f104c9835e1a
--- /dev/null
+++ b/net-p2p/dbhub/Manifest
@@ -0,0 +1,8 @@
+AUX dbhub-fix-buffer-overflows.patch 1406 SHA256 3bb5980495f7d759d8256717322f1316ff89d24b98e518aa7555b5bb3026ce85 SHA512 f3f5c328f6a9b5ac5c57b2b556b628b11bb56616c4cc9d246798c0e47ad80ee90a9bfed31f11cb0e00e7596a342166214946ab52983118a3d1486e4299e31d89 WHIRLPOOL 2e0d2354e69f505aa5523ceb1288fbf45ede013046686d93730c1a277648bad47abbe2a8e13edfbd9475bf9856512105126f325af6cb866f39837e96a0d779b6
+AUX dbhub-gentoo.patch 769 SHA256 f66e623953bd0e8e73e184ae8054ec6412b0d89074497b6bdbcd27c9f24686b2 SHA512 8981d3d9ebf833cc5d82ac930d2fef0620743f370ec904c338a19e4b2950c198d669857e5f1e64d9cd00ab95cdd0adc3853dea48f69d2c94e88c1bbeae391159 WHIRLPOOL d21507d0de943a62824dfe018ef37f4db7ec19fee862203ec9a249abee7e55dc3a73203258edfa48eabc9924f4cf0bfc01670b37e412867a2c8235d7c7fec377
+AUX dbhub-no-dynaloader.patch 323 SHA256 5ba25453a1e3094b87b8dc64a91c081af7cf0cf0679972f85be77d3a27836e25 SHA512 395191e51ac3ce10908793bf1fe86f126a30595409dd6cfb642b2d551d3f7c9288418bf06a9f7a843f7cb7ed95d184ac46a38a49c9af6c18396eabaf01568072 WHIRLPOOL 57b93bab8112c099d65ff672e80eb93e25aedfccb4806dd95ff36e6731803caa484eea3066faeef18eeab7da781a454833c3197a1000d14b69f9c9e165779775
+DIST dbhub-0.451.tbz2 239911 SHA256 941b384d11c181ed270d546f0867dc517693d05fdcdacb14b0b7c682022663b8 SHA512 c596205b24204d0b319117aa0005cedb143a5d4859c2ea702a6141e82793ab6396c6e1903a3d0db7a164e8b9947471722b252be89df8ab05d36ffee5a1ac7a27 WHIRLPOOL c8d911bb859d7d554238859304e3247c65c720f0f6979f3571d82892f6a404ce4645432e15671291919e4bd2062c22f501d1063799e011b75da2b6aa40eccb3f
+EBUILD dbhub-0.451-r1.ebuild 820 SHA256 e716b3551718e023f638568b536399061021a20ba7abbcee1b15d6e77977ed0c SHA512 d286da2f33c3569fff7160acca45d2ce5bd0076f3fe6bd1abdfc73db3121aa4753babcedd6494c6e4cffd93d88679f682f7b87b4ca1c4d140af0f016318f7088 WHIRLPOOL 75379f77590fbd02726923c99b005ce912b14899f1ac269ec567035e0d5a8bf2feffb9dcceb9515c5ffa46e3b5127843f3d98c0e5536158ffb2b97c52be8c09b
+MISC ChangeLog 2559 SHA256 c7d7e14673a24e51b4b015d239a1f4a408027f3286849e79f822ab281580504d SHA512 bc60337ef632358f0f870ee13a160bec18b7c5e1ca7801d3c8ed4a1cee4fef18dccf2faf91201410f315da12b571fe7c17bc9a7f5a56a6d163a1b028da173cb2 WHIRLPOOL ee98886e3eddf354cdc786fea51d77fb37974f2f92004b84553255878afc7ce06589b7b54e32c4129c5837326e16cb6afaa2ecfeaea1b36d9cd593f01f3dd6a1
+MISC ChangeLog-2015 4917 SHA256 f69879ea317ffe69aa6aeea0ace1f9ad8f5e37302eeb5d8195748bc707e58199 SHA512 a8125349df09dba5dcdd915f09a65113db6b100f19e47b34c563314e0e5d6c7a072674028e5bc28ab7ae1faed4c0a17c6ab6d5d2ca6381fec5fe9d11edeb5bfb WHIRLPOOL 8a8dcb31db6d3e5e4ef66421d1d5ad43293d617e6a5965f9e02ef2d9bd6560d0d5a773eb873a442e1359e30861117a940279bf10d161fbb3ab125c53d460f56d
+MISC metadata.xml 334 SHA256 50f772dc73a3b3659d3aae6a1a656df9eef9b2a224eb907d093a66fe371f61b5 SHA512 c3cf4d865b92516b7cf7698743166d7b84589f9147153ad33459dc1fb806bce8448c0ec44e423bf960bfeccf752aa934aa3943180a0c0685418234639fa66c90 WHIRLPOOL 4b60f4f6f0415c050d8f323b8cee2fef4ee83e4007000915277b039d87e570e78505929d0f78ddcf6f8fc02a85ee3e5172aa76e5291c71adf75f585ac8c83260
diff --git a/net-p2p/dbhub/dbhub-0.451-r1.ebuild b/net-p2p/dbhub/dbhub-0.451-r1.ebuild
new file mode 100644
index 000000000000..7b53906e3d64
--- /dev/null
+++ b/net-p2p/dbhub/dbhub-0.451-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit autotools eutils
+
+DESCRIPTION="Hub software for Direct Connect, fork of opendchub"
+HOMEPAGE="http://www.dbhub.org"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tbz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="debug perl nls switch_user"
+
+DEPEND="perl? ( dev-lang/perl )
+ switch_user? ( sys-libs/libcap )"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-gentoo.patch \
+ "${FILESDIR}"/${PN}-no-dynaloader.patch \
+ "${FILESDIR}"/${PN}-fix-buffer-overflows.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable perl) \
+ $(use_enable switch_user) \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
diff --git a/net-p2p/dbhub/files/dbhub-fix-buffer-overflows.patch b/net-p2p/dbhub/files/dbhub-fix-buffer-overflows.patch
new file mode 100644
index 000000000000..8c4395d75d0a
--- /dev/null
+++ b/net-p2p/dbhub/files/dbhub-fix-buffer-overflows.patch
@@ -0,0 +1,53 @@
+From 6d52acedf13eba875ab064d1a3b6a0ac3afb24f3 Mon Sep 17 00:00:00 2001
+From: Stanislav Ochotnicky <sochotnicky@gentoo.org>
+Date: Wed, 19 Jan 2011 21:06:05 +0100
+Subject: [PATCH] Fix buffer overflows
+
+---
+ src/commands.c | 2 +-
+ src/main.c | 2 +-
+ src/main.h | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/commands.c b/src/commands.c
+index f66ad68..e0bc6a8 100644
+--- a/src/commands.c
++++ b/src/commands.c
+@@ -313,7 +313,7 @@ void chat(char *buf, struct user_t *user)
+ char kg2user[51];
+ char largestring[501];
+ char msgl[801];
+- char bigstring[1001];
++ char bigstring[4096];
+ char tempstring[151];
+ char nick[51];
+ char phrase[51];
+diff --git a/src/main.c b/src/main.c
+index dec3ef8..85dad68 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -506,7 +506,7 @@ void alarm_signal(int z){
+ void alarm_handler(void)
+ {
+ struct sock_t *human_user;
+- char sometxt[151];
++ char sometxt[250];
+ char somerec[21];
+ char showrec[251];
+ char recpath[MAX_FDP_LEN+1];
+diff --git a/src/main.h b/src/main.h
+index 886312e..da1ead5 100644
+--- a/src/main.h
++++ b/src/main.h
+@@ -430,7 +430,7 @@ int brokensr; /* 1 means share record was broken */
+ char recordshstr[120];
+ char recordusstr[120];
+
+-char clocknick[21];
++char clocknick[50];
+
+ //DB// Pointers that count various things and display them in !ui command to admins/owners
+ long long blocked_pm;
+--
+1.7.3.4
+
diff --git a/net-p2p/dbhub/files/dbhub-gentoo.patch b/net-p2p/dbhub/files/dbhub-gentoo.patch
new file mode 100644
index 000000000000..6e992cdb0129
--- /dev/null
+++ b/net-p2p/dbhub/files/dbhub-gentoo.patch
@@ -0,0 +1,25 @@
+--- configure.ac
++++ configure.ac
+@@ -115,7 +115,7 @@
+ AC_MSG_CHECKING([Perl LD Objs])
+ AC_MSG_RESULT([$perl_ldd])
+ CPPFLAGS="$CPPFLAGS $perl_ccflags"
+- LDFLAGS="$LDFLAGS $perl_ld"
++ LIBS="$LIBS $perl_ld"
+ MISSING_PERL_HEADERS=""
+ AC_CHECK_HEADERS([EXTERN.h perl.h],,HAVE_PERL="false"; MISSING_PERL_HEADERS="$ac_header $MISSING_PERL_HEADERS",[[#if HAVE_EXTERN_H
+ #include <EXTERN.h>
+@@ -141,13 +141,6 @@
+
+ AM_CONDITIONAL([BNLS],[test "$want_nls" = "yes"])
+
+-dnl Check if config directory exists.
+-if test ! -d $HOME/.dbhub; then
+- echo "creating config directory: $HOME/.dbhub"
+- mkdir $HOME/.dbhub
+- chmod 700 $HOME/.dbhub;
+-fi
+-
+ AC_OUTPUT(Makefile src/Makefile)
+
+ echo -e "\n\e@<:@1m-------------------------------------------------\e@<:@0m"
diff --git a/net-p2p/dbhub/files/dbhub-no-dynaloader.patch b/net-p2p/dbhub/files/dbhub-no-dynaloader.patch
new file mode 100644
index 000000000000..493b83a2943e
--- /dev/null
+++ b/net-p2p/dbhub/files/dbhub-no-dynaloader.patch
@@ -0,0 +1,12 @@
+http://bugs.gentoo.org/276928
+
+--- configure.ac
++++ configure.ac
+@@ -122,7 +122,6 @@
+ #endif
+ ]])
+ AC_CHECK_LIB([perl],[perl_run],,LIBPERL_MISSING="true";HAVE_PERL="false")
+- AC_CHECK_FILE("$perl_loader", [AC_SUBST(perl_ldd) HAVE_DYNLOAD="yes"], HAVE_DYNLOAD="no";HAVE_PERL="false")
+ else
+ HAVE_PERL="false"
+ fi
diff --git a/net-p2p/dbhub/metadata.xml b/net-p2p/dbhub/metadata.xml
new file mode 100644
index 000000000000..e865d6f7b584
--- /dev/null
+++ b/net-p2p/dbhub/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="switch_user">Enable support for switching user</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">dbhub</remote-id>
+ </upstream>
+</pkgmetadata>