commit:     abb59e1418a0001e2961cd584850ca7172741085
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu May  3 22:51:27 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu May  3 22:52:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abb59e14

sys-block/mbuffer: Bump to v20180410

Package-Manager: Portage-2.3.33, Repoman-2.3.9

 sys-block/mbuffer/Manifest                         |  1 +
 .../files/mbuffer-20180410-sysconfdir.patch        | 26 +++++++++
 sys-block/mbuffer/mbuffer-20180410.ebuild          | 65 ++++++++++++++++++++++
 3 files changed, 92 insertions(+)

diff --git a/sys-block/mbuffer/Manifest b/sys-block/mbuffer/Manifest
index a66a11ce042..03129a42e2c 100644
--- a/sys-block/mbuffer/Manifest
+++ b/sys-block/mbuffer/Manifest
@@ -1,3 +1,4 @@
 DIST mbuffer-20150412.tgz 122935 BLAKE2B 
c57708861a9fc049fd4f3aa9c1229798a82e866a503e9ab78b1581fca7d60d0fd5cf2d80e8a8bcbb7fc6b000c9a38fb0bfd0d5184cd6bc2b7dca486bd87fb2b1
 SHA512 
cef64f1229872e2207e678aa77dc95e0c24f54e4a88a57a0e797d10b07a16d1f5fa96c8cfa3876ff65dd97c114eff87b683917fa1d39cdb4f08c864325e4223c
 DIST mbuffer-20171011.tgz 136630 BLAKE2B 
ba69435684b8c844701a51c5a77d0f5ecbf8bef3ca9b9739a63309524b14d0cbbeba422cee1c5d69f1029a42c18d089cea0bcc46dbeba7f51767df3a815f7de7
 SHA512 
398d7545388a94b4f8961193192cd5e1139b84f31c7699c2b7f66b84a40488a2e70c88a2a70578bd95375e11efc87978a5f6fec805dbbc5f1fea460b3a9c68c4
 DIST mbuffer-20180318.tgz 137259 BLAKE2B 
bec1f6acc68c3c9cf617dd7a752644628d088541c20816737ea1533eb0e9c92b76ef2dd037912501c29056994443e3ad66b1e7f4456e0f40687b32e4c6a12cf1
 SHA512 
ac71876aa0bea3acce8ea00c3848783b752991a0e60ebc4245277fd435c2c9e08c79cc5f47c996e590e711ca1bd652ded075c24ca820efe845f578b106c43594
+DIST mbuffer-20180410.tgz 140026 BLAKE2B 
d271b4c744d5c54aebaea9a68a674df184ac460f879ac4788afaca732466c95dd958145ffcb42155ed998cab771a5b0e70a57a6b479d244156afe6232c37b154
 SHA512 
88fdad5b767bc4dabdbe3300cf3de99a56d137ac991aa5be7ba383fc2447ec01cb43853f31ec88be3bf0cfa736753afe8bd5ef0a5abb386521f2d3316b781d74

diff --git a/sys-block/mbuffer/files/mbuffer-20180410-sysconfdir.patch 
b/sys-block/mbuffer/files/mbuffer-20180410-sysconfdir.patch
new file mode 100644
index 00000000000..560f4c516df
--- /dev/null
+++ b/sys-block/mbuffer/files/mbuffer-20180410-sysconfdir.patch
@@ -0,0 +1,26 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -12,6 +12,7 @@ OBJDUMP              = @OBJDUMP@
+ VPATH         = @srcdir@
+ prefix                = @prefix@
+ exec_prefix     = @exec_prefix@
++sysconfdir      = @sysconfdir@
+ datarootdir   = @datarootdir@
+ bindir          = @bindir@
+ mandir                = @mandir@/man1
+@@ -46,11 +47,11 @@ distclean: clean
+       -$(RM) $(TARGET) config.h config.log \
+       config.status Makefile mbuffer.1 core
+ 
+-$(DESTDIR)$(etcdir)/mbuffer.rc:
+-      -$(INSTALL) -d -m 755 $(DESTDIR)$(etcdir)
+-      $(INSTALL) -m 644 mbuffer.rc $(DESTDIR)$(etcdir)
++$(DESTDIR)$(sysconfdir)/mbuffer.rc:
++      -$(INSTALL) -d -m 755 $(DESTDIR)$(sysconfdir)
++      $(INSTALL) -m 644 mbuffer.rc $(DESTDIR)$(sysconfdir)/
+ 
+-install: $(TARGET) $(DESTDIR)$(etcdir)/mbuffer.rc
++install: $(TARGET) $(DESTDIR)$(sysconfdir)/mbuffer.rc
+       -$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
+       $(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(bindir)/
+       -$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)

diff --git a/sys-block/mbuffer/mbuffer-20180410.ebuild 
b/sys-block/mbuffer/mbuffer-20180410.ebuild
new file mode 100644
index 00000000000..3b1fd2aa6a9
--- /dev/null
+++ b/sys-block/mbuffer/mbuffer-20180410.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="M(easuring)buffer is a replacement for buffer with additional 
functionality"
+HOMEPAGE="http://www.maier-komor.de/mbuffer.html";
+SRC_URI="http://www.maier-komor.de/software/mbuffer/${P}.tgz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug ssl test"
+
+RDEPEND="ssl? ( dev-libs/openssl:0= )"
+DEPEND="${RDEPEND}
+       test? ( dev-libs/openssl:0 )"
+
+REQUIRED_USE="test? ( ssl )"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-20180410-sysconfdir.patch"
+)
+
+src_prepare() {
+       ln -s "${DISTDIR}"/${P}.tgz test.tar #258881
+
+       # Enforce MAKEOPTS=-j1 because src_test() spawns multiple listener
+       # using same port and src_install may have problems (with /etc folder)
+       export MAKEOPTS=-j1
+
+       default
+
+       mv configure.in configure.ac || die
+
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable ssl md5)
+               $(use_enable debug)
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_test() {
+       if has usersandbox ${FEATURES} || has network-sandbox ${FEATURES}; then
+               ewarn "Some tests may fail with FEATURES=usersandbox or"
+               ewarn "FEATURES=network-sandbox; Skipping tests because"
+               ewarn "test suite would hang forever in such environments!"
+               return 0;
+       fi
+
+       default
+}
+
+pkg_postinst() {
+       if ! has_version "app-arch/mt-st"; then
+               elog ""
+               elog "If you want autoloader support you need to install 
\"app-arch/mt-st\" in addition!"
+       fi
+}

Reply via email to