diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-p2p/dbhub | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-p2p/dbhub')
-rw-r--r-- | net-p2p/dbhub/Manifest | 1 | ||||
-rw-r--r-- | net-p2p/dbhub/dbhub-0.451-r1.ebuild | 39 | ||||
-rw-r--r-- | net-p2p/dbhub/files/dbhub-fix-buffer-overflows.patch | 53 | ||||
-rw-r--r-- | net-p2p/dbhub/files/dbhub-gentoo.patch | 25 | ||||
-rw-r--r-- | net-p2p/dbhub/files/dbhub-no-dynaloader.patch | 12 | ||||
-rw-r--r-- | net-p2p/dbhub/metadata.xml | 11 |
6 files changed, 141 insertions, 0 deletions
diff --git a/net-p2p/dbhub/Manifest b/net-p2p/dbhub/Manifest new file mode 100644 index 000000000000..0ab94ff97279 --- /dev/null +++ b/net-p2p/dbhub/Manifest @@ -0,0 +1 @@ +DIST dbhub-0.451.tbz2 239911 SHA256 941b384d11c181ed270d546f0867dc517693d05fdcdacb14b0b7c682022663b8 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..9b7009cd96e3 --- /dev/null +++ b/net-p2p/dbhub/dbhub-0.451-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..b801d1628357 --- /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> + <herd>net-p2p</herd> + <use> + <flag name="switch_user">Enable support for switching user</flag> + </use> + <upstream> + <remote-id type="sourceforge">dbhub</remote-id> + </upstream> +</pkgmetadata> |