summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-20 23:40:11 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-20 23:40:11 +0000
commit850837cf2d3990d09b06c11a89722f91be8b7022 (patch)
tree4bfdd5a741a0d58a9e7d15036e6ad798cf6c9923 /sys-block/mbuffer
parent(Portage version: 2.0.51.19) (Manifest recommit) (diff)
downloadgentoo-2-850837cf2d3990d09b06c11a89722f91be8b7022.tar.gz
gentoo-2-850837cf2d3990d09b06c11a89722f91be8b7022.tar.bz2
gentoo-2-850837cf2d3990d09b06c11a89722f91be8b7022.zip
Version bump #86048 by Nuno Alexandre.
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-block/mbuffer')
-rw-r--r--sys-block/mbuffer/ChangeLog8
-rw-r--r--sys-block/mbuffer/files/digest-mbuffer-200501251
-rw-r--r--sys-block/mbuffer/files/mbuffer-20050125-configure.patch54
-rw-r--r--sys-block/mbuffer/mbuffer-20050125.ebuild42
4 files changed, 104 insertions, 1 deletions
diff --git a/sys-block/mbuffer/ChangeLog b/sys-block/mbuffer/ChangeLog
index 2ca2a0690c13..0c428957d27d 100644
--- a/sys-block/mbuffer/ChangeLog
+++ b/sys-block/mbuffer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-block/mbuffer
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/mbuffer/ChangeLog,v 1.2 2005/03/06 11:56:47 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/mbuffer/ChangeLog,v 1.3 2005/03/20 23:40:11 vapier Exp $
+
+*mbuffer-20050125 (20 Mar 2005)
+
+ 20 Mar 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/mbuffer-20050125-configure.patch, +mbuffer-20050125.ebuild:
+ Version bump #86048 by Nuno Alexandre.
*mbuffer-20011008 (05 Mar 2005)
diff --git a/sys-block/mbuffer/files/digest-mbuffer-20050125 b/sys-block/mbuffer/files/digest-mbuffer-20050125
new file mode 100644
index 000000000000..2c583bf3f352
--- /dev/null
+++ b/sys-block/mbuffer/files/digest-mbuffer-20050125
@@ -0,0 +1 @@
+MD5 788c922ef8073172e0a99a0307564a5e mbuffer-20050125.tgz 75224
diff --git a/sys-block/mbuffer/files/mbuffer-20050125-configure.patch b/sys-block/mbuffer/files/mbuffer-20050125-configure.patch
new file mode 100644
index 000000000000..249fdb19d832
--- /dev/null
+++ b/sys-block/mbuffer/files/mbuffer-20050125-configure.patch
@@ -0,0 +1,54 @@
+Remove CFLAG crap and clean up the --enable-{debug,md5} options
+to work correctly.
+
+--- mbuffer-20050125/configure.in
++++ mbuffer-20050125/configure.in
+@@ -23,17 +23,6 @@
+ AC_SEARCH_LIBS(sem_init,rt posix,,AC_MSG_ERROR(could not find semaphore functions!))
+ AC_PATH_PROG(MT,mt,AC_MSG_WARN(could not find the program mt - you might need this if you want autoloader support))
+
+-if test -n "$GCC"; then
+- CFLAGS="$CFLAGS -Wall"
+- case "$target_cpu" in
+- i586*)
+- CFLAGS="$CFLAGS -march=pentium"
+- ;;
+- i686*)
+- CFLAGS="$CFLAGS -march=pentiumpro"
+- ;;
+- esac
+-fi
+
+ AC_TYPE_SIGNAL
+ AC_FUNC_MMAP
+@@ -49,15 +38,26 @@
+
+ AC_ARG_ENABLE(debug,
+ --disable-debug disable verbose logging to console for debugging purpose,
+- ,AC_DEFINE_UNQUOTED(DEBUG),
++ ,enable_debug=yes
+ )
++if test x$enable_debug = xyes ; then
++ AC_DEFINE_UNQUOTED(DEBUG)
++fi
+
+ AC_ARG_ENABLE(md5,
+ --disable-md5 disable md5 hash generation,
+- ,
+- AC_SEARCH_LIBS(mhash_init,mhash,AC_DEFINE_UNQUOTED(MHASH),
+- AC_SEARCH_LIBS(MD5Init,md5,AC_DEFINE_UNQUOTED(MD5),AC_MSG_WARN(could not find the mhash library containing the md5 hash functions - md5 support disabled)))
++ ,enable_md5=auto
+ )
++if test x$enable_md5 != xno ; then
++ AC_SEARCH_LIBS(mhash_init,mhash,AC_DEFINE_UNQUOTED(HAVE_MHASH),
++ AC_SEARCH_LIBS(MD5Init,md5,AC_DEFINE_UNQUOTED(MD5),
++ if test x$enable_md5 = xauto ; then
++ AC_MSG_WARN(could not find the mhash library containing the md5 hash functions - md5 support disabled)
++ else
++ AC_MSG_ERROR(could not find the mhash library)
++ fi
++ ))
++fi
+
+ AC_SUBST(DEBUG)
+ AC_DEFINE_UNQUOTED(PACKAGE,"${PACKAGE}")
diff --git a/sys-block/mbuffer/mbuffer-20050125.ebuild b/sys-block/mbuffer/mbuffer-20050125.ebuild
new file mode 100644
index 000000000000..2bb3aafd1868
--- /dev/null
+++ b/sys-block/mbuffer/mbuffer-20050125.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/mbuffer/mbuffer-20050125.ebuild,v 1.1 2005/03/20 23:40:11 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="M(easuring)buffer is a replacement for buffer with additional functionality."
+HOMEPAGE="http://www.rcs.ei.tum.de/~maierkom/privat/software/mbuffer/"
+SRC_URI="http://www.rcs.ei.tum.de/~maierkom/privat/software/mbuffer/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug mhash"
+
+RDEPEND="mhash? ( app-crypt/mhash )"
+DEPEND="${RDEPEND}
+ ~sys-devel/autoconf-2.13"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-configure.patch
+ sed -i \
+ -e 's:MHASH:HAVE_MHASH:g' \
+ configure.in mbuffer.c
+ autoconf-2.13 || die "autoconf failed"
+}
+
+src_compile() {
+ econf \
+ $(use_enable mhash md5) \
+ $(use_enable debug) \
+ || die "econf failed"
+ emake || die "compile problem"
+}
+
+src_install() {
+ dodir /usr/bin
+ einstall exec_prefix="${D}"/usr || die "install failed"
+ dodoc AUTHORS INSTALL NEWS README ChangeLog
+}