megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
changeset 221:77fe2c26eb42
removed outdated ebuild still defined by now prohibited EAPI 4
Removed:
media-libs/xine-lib
media-video/lightworks
net-analyzer/nrpe
author | Daniel Neugebauer <dneuge@energiequant.de> |
---|---|
date | Sun, 15 Dec 2019 11:20:30 +0100 |
parents | 5fc6acd937e1 |
children | e74cbf10807d |
files | media-libs/xine-lib/Manifest media-libs/xine-lib/files/xine-lib-1.1.20-stat.patch media-libs/xine-lib/files/xine-lib-1.1.20-zlib-1.2.5.2.patch media-libs/xine-lib/xine-lib-1.1.20.ebuild media-video/lightworks/Manifest media-video/lightworks/lightworks-11.5.ebuild net-analyzer/nrpe/Manifest net-analyzer/nrpe/files/nrpe-2.15-multiline.patch net-analyzer/nrpe/files/nrpe-2.15-tcpd-et-al.patch net-analyzer/nrpe/files/nrpe.init net-analyzer/nrpe/files/nrpe.xinetd.2 net-analyzer/nrpe/nrpe-2.15.ebuild profiles/package.mask |
diffstat | 13 files changed, 0 insertions(+), 794 deletions(-) [+] |
line wrap: on
line diff
--- a/media-libs/xine-lib/Manifest Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -AUX xine-lib-1.1.20-stat.patch 607 SHA256 cfeb7d18ed8893644cc4aa717adcd163c328df2e86e7e66060e2d71823ee9ae5 SHA512 65d159c47b5707125cf47c8d1525ab1177e93c33035ad511bc5a2d955095f5cc94b959589f44525379d72f053d3dc2b8899a0015551fd29e02d42a5fe1435470 WHIRLPOOL d873553d6e8bfa1b913b578a1fe9c9a33b337aec16d6591d069dfca90473f07f6243b80c8049291b61d80e8b01d45a928aea9a8dd4f91980d3e0bb7a76fea3e2 -AUX xine-lib-1.1.20-zlib-1.2.5.2.patch 1155 SHA256 ca6e325684ba93cb4edc983b39a4fd3ab8f6b8cd856ead92cdea2c359af2ea63 SHA512 be4176352bc2414bb827b182a5f1d80150b4eafa1bfddac6ec41f54bd02af100302eec0321fcad6789d55126b3ed3daf381ad24d3169fde87375bbe879dbfa9d WHIRLPOOL 7e40f4f10ba859810c4ef5f04710f8465dab53bd1a643806dbc75e649f4201033502b4e1759b4be288c5f1d46b1580132df37a127ec41ea890a42b6405e6fb37 -DIST xine-lib-1.1.20.tar.xz 5957256 SHA256 da65da5831f5b93f02b4ec10049eaf044cf99944e2fd8e12d494dccefee124eb SHA512 3b004657c70b414f29ed3cf2b11bc27582fd73793582b9aa0c91339c871a69e7f2bbc1253a26a198ca65609ec782b1a90618e28a29b13cfbc73ee4726e927c73 WHIRLPOOL 2c7fe63a8b86ebaf894bd226a850c13585c742d32b16eeaf178e3c76311b54496b3252ad718cee925b7e0b710e7328fa6ec124a22f9199393a61c7a7105fb5b2 -EBUILD xine-lib-1.1.20.ebuild 5606 SHA256 134735e1f25b388c2c5c3c0a7d0ad7ba01dddff3048737d01b7842d31ea69457 SHA512 c5410c740c85ffe7f831b0f2604152536739295ef20a5cb12a95df39061aea30fa38e44dc8b52967d545ecb82a670838e8640a65f81c9ebee7ac768f537b0ce4 WHIRLPOOL 9f81b4e824d8ac70d3ba7c5e5e4165ad80fc9aefb04b776e5f4f73689fef46af434eef8c75bb29d7034ead5bff97d1f4caa21ff3034b7d91fc378c58de2d2329
--- a/media-libs/xine-lib/files/xine-lib-1.1.20-stat.patch Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -# HG changeset patch -# User Brad Smith <brad@comstyle.com> -# Date 1321165080 0 -# Node ID 2dfa82f9ff3526e7c22dc4c316af9b1c49f67851 -# Parent 1ba56a221c164082c69180aa41e5a6b88d520f72 -Need sys/stat.h for file audio output code to build on OpenBSD - -diff -r 1ba56a221c16 -r 2dfa82f9ff35 src/audio_out/audio_file_out.c ---- a/src/audio_out/audio_file_out.c Sun Nov 13 01:52:30 2011 +0000 -+++ b/src/audio_out/audio_file_out.c Sun Nov 13 06:18:00 2011 +0000 -@@ -30,6 +30,7 @@ - #include <math.h> - #include <unistd.h> - #include <inttypes.h> -+#include <sys/stat.h> - - #include "xine_internal.h" - #include "xineutils.h"
--- a/media-libs/xine-lib/files/xine-lib-1.1.20-zlib-1.2.5.2.patch Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -1.2.0 patch applied to 1.1.20 -https://bugs.gentoo.org/show_bug.cgi?id=401449 - ---- xine-lib-1.1.20-orig/src/xine-engine/osd.c -+++ xine-lib-1.1.20/src/xine-engine/osd.c -@@ -650,7 +650,7 @@ - osd->display_y = y; - } - --static uint16_t gzread_i16(gzFile *fp) { -+static uint16_t gzread_i16(gzFile fp) { - uint16_t ret; - ret = gzgetc(fp); - ret |= (gzgetc(fp)<<8); -@@ -663,7 +663,7 @@ - - static int osd_renderer_load_font(osd_renderer_t *this, char *filename) { - -- gzFile *fp; -+ gzFile fp; - osd_font_t *font = NULL; - int i, ret = 0; - ---- xine-lib-1.1.20-orig/misc/xine-fontconv.c -+++ xine-lib-1.1.20/misc/xine-fontconv.c -@@ -109,7 +109,7 @@ - osd_font_t font; - - --static int gzwrite_i16(gzFile *fp, uint16_t number) { -+static int gzwrite_i16(gzFile fp, uint16_t number) { - return gzputc(fp, number & 0xFF) != -1 && - gzputc(fp, (number >> 8) & 0xFF) != -1; - } -@@ -341,7 +341,7 @@ - - char filename[1024]; - FT_Bitmap *out_bitmap; -- gzFile *fp; -+ gzFile fp; - int error; - int error_counter; - int glyph_index;
--- a/media-libs/xine-lib/xine-lib-1.1.20.ebuild Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,180 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/xine-lib/Attic/xine-lib-1.1.20.ebuild,v 1.8 2012/04/17 08:54:54 ssuominen dead $ - -# modified by gentoo-overlay.megacoffee.net: -# - applied patch for zlib 1.2.5.2 (https://bugs.gentoo.org/show_bug.cgi?id=401449) - -EAPI=4 -inherit flag-o-matic toolchain-funcs multilib eutils - -# This should normally be empty string, unless a release has a suffix. -if [[ "${P/_pre/}" != "${P}" ]]; then - SRC_URI="mirror://gentoo/${P}.tar.xz" -else - MY_PKG_SUFFIX="" - MY_P="${PN}-${PV/_/-}${MY_PKG_SUFFIX}" - S="${WORKDIR}/${MY_P}" - - SRC_URI="mirror://sourceforge/xine/${MY_P}.tar.xz" -fi - -DESCRIPTION="Core libraries for Xine movie player" -HOMEPAGE="http://xine.sourceforge.net" - -LICENSE="GPL-2" -SLOT="1" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" - -IUSE="aalib libcaca win32codecs nls +css +X directfb +vorbis +alsa sdl speex +theora ipv6 altivec opengl aac fbcon +xv xvmc samba dxr3 vidix mng flac oss +v4l xinerama vcd +a52 +mad imagemagick +dts +modplug gtk pulseaudio mmap truetype wavpack +musepack +xcb jack real +vis" - -RDEPEND="X? ( x11-libs/libXext - x11-libs/libX11 ) - xv? ( x11-libs/libXv ) - xvmc? ( x11-libs/libXvMC ) - xinerama? ( x11-libs/libXinerama ) - win32codecs? ( >=media-libs/win32codecs-0.50 ) - css? ( >=media-libs/libdvdcss-1.2.7 ) - alsa? ( media-libs/alsa-lib ) - aalib? ( media-libs/aalib ) - directfb? ( >=dev-libs/DirectFB-0.9.9 ) - flac? ( >=media-libs/flac-1.1.2 ) - sdl? ( >=media-libs/libsdl-1.1.5 ) - dxr3? ( >=media-libs/libfame-0.9.0 ) - vorbis? ( media-libs/libogg media-libs/libvorbis ) - theora? ( media-libs/libogg media-libs/libvorbis >=media-libs/libtheora-1.0_alpha6 ) - speex? ( media-libs/libogg media-libs/libvorbis media-libs/speex ) - libcaca? ( >=media-libs/libcaca-0.99_beta14 ) - samba? ( net-fs/samba ) - mng? ( media-libs/libmng ) - vcd? ( media-video/vcdimager - dev-libs/libcdio[-minimal] ) - a52? ( >=media-libs/a52dec-0.7.4-r5 ) - mad? ( media-libs/libmad ) - imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick ) ) - dts? ( media-libs/libdca ) - aac? ( >=media-libs/faad2-2.6.1 ) - virtual/ffmpeg - modplug? ( >=media-libs/libmodplug-0.8.8.1 ) - nls? ( virtual/libintl ) - gtk? ( x11-libs/gtk+:2 ) - pulseaudio? ( media-sound/pulseaudio ) - truetype? ( media-libs/freetype:2 media-libs/fontconfig ) - virtual/libiconv - wavpack? ( >=media-sound/wavpack-4.31 ) - musepack? ( >=media-sound/musepack-tools-444 ) - xcb? ( >=x11-libs/libxcb-1.0 ) - jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) - real? ( - x86? ( media-libs/win32codecs ) - x86-fbsd? ( media-libs/win32codecs ) - amd64? ( media-libs/amd64codecs ) ) - v4l? ( media-libs/libv4l )" -DEPEND="${RDEPEND} - app-arch/xz-utils - X? ( x11-libs/libXt - x11-proto/xproto - x11-proto/videoproto - x11-proto/xf86vidmodeproto - xinerama? ( x11-proto/xineramaproto ) ) - v4l? ( virtual/os-headers ) - dev-util/pkgconfig - sys-devel/libtool - nls? ( sys-devel/gettext )" - -src_prepare() { - epatch "${FILESDIR}/${P}-stat.patch" - epatch "${FILESDIR}/${P}-zlib-1.2.5.2.patch" -} - -src_configure() { - #prevent quicktime crashing - append-flags -frename-registers -ffunction-sections - - # Specific workarounds for too-few-registers arch... - if [[ $(tc-arch) == "x86" ]]; then - filter-flags -fforce-addr - filter-flags -momit-leaf-frame-pointer # break on gcc 3.4/4.x - filter-flags -fno-omit-frame-pointer #breaks per bug #149704 - is-flag -O? || append-flags -O2 - fi - - # Set the correct win32 dll path, bug #197236 - local win32dir - if has_multilib_profile ; then - win32dir=/usr/$(ABI="x86" get_libdir)/win32 - else - win32dir=/usr/$(get_libdir)/win32 - fi - - # Too many file names are the same (xine_decoder.c), change the builddir - # So that the relative path is used to identify them. - mkdir "${WORKDIR}"/build - - ECONF_SOURCE=${S} econf \ - --disable-gnomevfs \ - $(use_enable nls) \ - $(use_enable ipv6) \ - $(use_enable samba) \ - $(use_enable altivec) \ - $(use_enable v4l) \ - $(use_enable v4l libv4l) \ - $(use_enable mng) \ - $(use_with imagemagick) \ - $(use_enable gtk gdkpixbuf) \ - $(use_enable aac faad) --with-external-libfaad \ - $(use_with flac libflac) \ - $(use_with vorbis) \ - $(use_with speex) \ - $(use_with theora) \ - $(use_with wavpack) \ - $(use_enable modplug) \ - $(use_enable a52 a52dec) --with-external-a52dec \ - $(use_enable mad) --with-external-libmad \ - $(use_enable dts) --with-external-libdts \ - $(use_enable musepack) --with-external-libmpcdec \ - $(use_with X x) \ - $(use_enable xinerama) \ - $(use_enable vidix) \ - $(use_enable dxr3) \ - $(use_enable directfb) \ - $(use_enable fbcon fb) \ - $(use_enable opengl) \ - $(use_enable aalib) \ - $(use_with libcaca caca) \ - $(use_with sdl) \ - $(use_enable xvmc) \ - $(use_with xcb) \ - $(use_enable oss) \ - $(use_with alsa) \ - --without-arts \ - --without-esound \ - $(use_with pulseaudio) \ - $(use_with jack) \ - $(use_enable vcd) --without-internal-vcdlibs \ - $(use_enable win32codecs w32dll) \ - $(use_enable real real-codecs) \ - $(use_enable mmap) \ - $(use_with truetype freetype) $(use_with truetype fontconfig) \ - $(use_enable vis) \ - --enable-asf \ - --with-external-ffmpeg \ - --disable-optimizations \ - --disable-syncfb \ - --with-xv-path=/usr/$(get_libdir) \ - --with-w32-path=${win32dir} \ - --with-real-codecs-path=/usr/$(get_libdir)/codecs \ - --enable-fast-install -} - -src_install() { - emake \ - DESTDIR="${D}" \ - docdir="/usr/share/doc/${PF}" \ - htmldir="/usr/share/doc/${PF}/html" \ - install - - dodoc ChangeLog - - rm -f "${D}"usr/lib*/libxine.la -}
--- a/media-video/lightworks/Manifest Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -DIST lwks-11.5-amd64.deb 62011078 SHA256 e6e58f6a26346e6f841d94c850ecd89f8cd71985c0fce076c386993c44189da1 SHA512 b7705c06064ada713bc86fa6e4c29e885548106bdc981f490e8716a4351d230095ced6279d506512afbf5a114297dec17aac96aaad3a7f8ca7ccf38af5ec876c WHIRLPOOL 00120d9f8a037fbca79484988398a11f80f3db03f45d490d371fdbf7a25c2fdf3e61a8fc657e76d9f882bcc454f9fd7dcfe3eed13aa783b4e0337a4c5ce360e8 -EBUILD lightworks-11.5.ebuild 2986 SHA256 5fd1225143c5b2d19c6c2e99f38ec30b1715cb6ffc060168e1e3b0d877840af3 SHA512 4aff12f1ef9f04440bb3d2e18de830e4d31421e49eded1fb3b381000a2cc99dc698f9708090e80d9e5c74b401269129fa6f5f2f138386a382e1ff83d7223b606 WHIRLPOOL acd2abc926c4cc1e4654beb3c7a61836ccffaf20ee4add4565a0b6cafd05eefa5ca60ae76b14915ee070b8ff141d8963b0269b7a6738753da306d668c9d1453e
--- a/media-video/lightworks/lightworks-11.5.ebuild Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -# ToDo list: -# -# - figure out runtime dependencies -# - try to move Lightworks to /opt as it is only available as a pre-compiled binary -# (not sure if possible since it is intended to be installed to /usr) -# - try to silence QA notices -# - 32 bit version, maybe? -# - figure out if high load/memory usage (memleak?) of ntcardvt process are specific to Gentoo - -inherit font - -DESCRIPTION="feature-rich non-linear video editor (NLE)" -HOMEPAGE="http://www.lwks.com/" -SRC_URI="lwks-11.5-amd64.deb" - -LICENSE="Lightworks" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -DEPEND="app-arch/dpkg sys-apps/sed" -RDEPEND="" - -S="${WORKDIR}" - -pkg_nofetch() { - einfo "Please visit ${HOMEPAGE} to download Lightworks ${PV} and place ${SRC_URI} in ${DISTDIR}." -} - -src_unpack() { - /usr/bin/dpkg-deb -x ${DISTDIR}/${SRC_URI} ${WORKDIR} -} - -src_prepare() { - # .desktop entry: "Version" attribute is invalid (must be specification version, not app version number) - # see: http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html - /bin/sed -i -e 's/^Version=/X-Version=/' usr/share/applications/lightworks.desktop || die 'failed to fix lightworks.desktop' -} - -src_install() { - insinto /lib/udev/rules.d - doins lib/udev/rules.d/20-lightworks.rules - - exeinto /usr/bin - doexe usr/bin/lightworks - - insinto /usr/lib64/lightworks - doins -r usr/lib/lightworks/* - - exeinto /usr/lib64/lightworks - doexe usr/lib/lightworks/spawn - doexe usr/lib/lightworks/ntcardvt - - insinto /usr/share/applications - doins usr/share/applications/lightworks.desktop - - insinto /usr/share/doc/lightworks - doins -r usr/share/doc/lightworks/* - - insinto /usr/share/fonts/truetype - doins usr/share/fonts/truetype/lw2.ttf - - insinto /usr/share/lightworks - doins -r usr/share/lightworks/* -} - -pkg_postinst() { - # update font cache because we installed a TTF file - font_pkg_postinst - - # 1 2 3 4 5 6 7 8 - # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 - einfo "" - einfo "Please ignore all QA notices printed above." - einfo "" - einfo "You will need to register an account at ${HOMEPAGE} in order to use Lightworks." - einfo "Some features are restricted on free accounts but can be unlocked for a fee if" - einfo "needed." - einfo "" - einfo "If you are running PulseAudio, you may want to use pasuspender around Lightworks" - einfo "if you experience high audio latency." - einfo "" - ewarn "Please monitor memory usage and CPU load during your first sessions with" - ewarn "Lightworks as ntcardvt *may* run wild and cause your system to fall into swap." - ewarn "If you can spare a few moments of your time and want to help, please contact us" - ewarn "at gentoo-overlay@megacoffee.net for trying to identify the cause of that" - ewarn "behaviour (reports about everything running fine are welcome as well). :)" -} \ No newline at end of file
--- a/net-analyzer/nrpe/Manifest Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -AUX nrpe-2.15-multiline.patch 6806 SHA256 0e980f84044ddc955ad0f2086caf7102cc115193971bb21ec819bed45af5713a SHA512 09c0cc6a4610d674b0ed0da8cdc96f3653f98b54fc98802c33a1cc0b09755d3d0d6afd7fe6b25e1713e6b27af2ba1fa5063988691bc3b5364fa0bfd137d54546 WHIRLPOOL 02e237b3fcacf51e7fd61c25d661e91ff6a3aeb99a6e6ebe752e52f3407b7c8b8f0317693922fa20c48111b7c7eb1803aaa66fc97b8c7c0c8bcf7e066b762199 -AUX nrpe-2.15-tcpd-et-al.patch 3167 SHA256 ab4778246e1b679cf62d401207542ccb4d4ec53aab75f1239a791731b914d4d6 SHA512 f398c3388af6dc793607b9079fba9077bee6fa2f03f6e8cdfca6b53531747a874f1edee2434d6f5955e19dbd63f2d863d09e99c7b6b902a874b95a79eee5bb99 WHIRLPOOL 236e41878dad5e7064f2e25f45d1961fc8099a4fa742434457d381df2ddddf6aa19ec9135220e7e60b25f6fd4fa85dedb62d27e16e2c7d7651ff69dd607370d0 -AUX nrpe.init 649 SHA256 45e60dba135cb1a317908036ad7f98e1a8909015544e7b16fc23e4bc54741523 SHA512 4f8f825260de6188926598fa40f1baa3eddd9fbfd3b6554fc43b04cbf7551ea9b41ed0aabe7ad398824547a2d702e10cb1ef0af8b4af33f6f220fc4f29def2cb WHIRLPOOL 8d2afab78baacdb736f1780757b022ecb0dfca9f5948d2447a5f4b72cd725be4762159c238b85dc75c9493ecf9ac5bdca14a41efa50b2fae0e49c2b380231d14 -AUX nrpe.xinetd.2 245 SHA256 9b58e79ec14f538a2750875a49fdbc153c5919b2b97cdc9380ae9d11dbf65c28 SHA512 d687cb2a5babfd28a97d3a5f1ac665758341ecc37fdd0193dbf0df4cba68c88aa24776a33a706989843fa5356b2e3e995662a823ceb2b86ba8f846f8c47e18fb WHIRLPOOL 60a96b00f18dd3305794f81288ed781b19b471e1838243970672762682d56e34ff4d325a62a77178d229ff67b9b39c9a9da7ef0dd78b8fbdb541b2e983d4f9d4 -DIST nrpe-2.15.tar.gz 419695 SHA256 66383b7d367de25ba031d37762d83e2b55de010c573009c6f58270b137131072 SHA512 03ce9774b5112d03235dc9da075770d89d1bcc5ffa5faf221ff7ea8ec5c92ded1e1ae9222581a87cf53736d190ac047e1acce7edc2f31f26c432d786cdef0e73 WHIRLPOOL f97ad7431138fd96588bb4e9d13404a0425bbdb8582c7c472cb20621bb77a9e9ecdeed88b9247ea20815da33c5b123368a540c5a0a058921e59367c2ce2a2b10 -EBUILD nrpe-2.15.ebuild 3610 SHA256 e467cdbd250fc99d44ed47b40c2972febf62dacc0b1a4bc00d7555a76fd932b8 SHA512 426a56840cd65b3be0bc2c7de204698a089203d26852f6c2386f5ebf1900f36f97c77c19a81c7fe79ae5c5bb855ed07bd8b0a35b481daa31a115bd8c9c2c9d01 WHIRLPOOL 7698724428e21f8d2af784273e7e29e1393df9d62915338bdfdf50e5760cceeb4ec0582b42c24779a4e0e047d7f8642288230eed6449734e5af81ab9b6d24ab1
--- a/net-analyzer/nrpe/files/nrpe-2.15-multiline.patch Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,204 +0,0 @@ -Add support for large output - -http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.htmlIndex: nrpe-2.14/include/common.h -=================================================================== -Index: nrpe-2.14/include/common.h -=================================================================== ---- nrpe-2.14.orig/include/common.h -+++ nrpe-2.14/include/common.h -@@ -41,7 +41,7 @@ - #define DEFAULT_SOCKET_TIMEOUT 10 /* timeout after 10 seconds */ - #define DEFAULT_CONNECTION_TIMEOUT 300 /* timeout if daemon is waiting for connection more than this time */ - --#define MAX_INPUT_BUFFER 2048 /* max size of most buffers we use */ -+#define MAX_INPUT_BUFFER 16384 /* max size of most buffers we use */ - #define MAX_FILENAME_LENGTH 256 - - #define MAX_HOST_ADDRESS_LENGTH 256 /* max size of a host address */ -@@ -55,12 +55,14 @@ - - #define QUERY_PACKET 1 /* id code for a packet containing a query */ - #define RESPONSE_PACKET 2 /* id code for a packet containing a response */ -+#define RESPONSE_PACKET_WITH_MORE 3 /* id code for a packet containing a response, with more data to follow */ - - #define NRPE_PACKET_VERSION_3 3 /* packet version identifier */ - #define NRPE_PACKET_VERSION_2 2 - #define NRPE_PACKET_VERSION_1 1 /* older packet version identifiers (no longer supported) */ - - #define MAX_PACKETBUFFER_LENGTH 1024 /* max amount of data we'll send in one query/response */ -+ /* WARNING - do not change this as older clients/servers will not work */ - - typedef struct packet_struct{ - int16_t packet_version; -Index: nrpe-2.14/src/check_nrpe.c -=================================================================== ---- nrpe-2.14.orig/src/check_nrpe.c -+++ nrpe-2.14/src/check_nrpe.c -@@ -221,6 +221,11 @@ int main(int argc, char **argv){ - return STATE_UNKNOWN; - } - -+ /* Altinity patch: Allow multiple packets to be received */ -+ /* Indentation not corrected to allow simpler patching */ -+ /* START MULTI_PACKET LOOP */ -+ do { -+ - /* wait for the response packet */ - bytes_to_recv=sizeof(receive_packet); - if(use_ssl==FALSE) -@@ -233,31 +238,24 @@ int main(int argc, char **argv){ - /* reset timeout */ - alarm(0); - -- /* close the connection */ --#ifdef HAVE_SSL -- if(use_ssl==TRUE){ -- SSL_shutdown(ssl); -- SSL_free(ssl); -- SSL_CTX_free(ctx); -- } --#endif -- graceful_close(sd,1000); -- - /* recv() error */ - if(rc<0){ - printf("CHECK_NRPE: Error receiving data from daemon.\n"); -+ graceful_close(sd,1000); - return STATE_UNKNOWN; - } - - /* server disconnected */ - else if(rc==0){ - printf("CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.\n"); -+ graceful_close(sd,1000); - return STATE_UNKNOWN; - } - - /* receive underflow */ - else if(bytes_to_recv<sizeof(receive_packet)){ - printf("CHECK_NRPE: Receive underflow - only %d bytes received (%d expected).\n",bytes_to_recv,sizeof(receive_packet)); -+ graceful_close(sd,1000); - return STATE_UNKNOWN; - } - -@@ -271,21 +269,21 @@ int main(int argc, char **argv){ - calculated_crc32=calculate_crc32((char *)&receive_packet,sizeof(receive_packet)); - if(packet_crc32!=calculated_crc32){ - printf("CHECK_NRPE: Response packet had invalid CRC32.\n"); -- close(sd); -+ graceful_close(sd,1000); - return STATE_UNKNOWN; - } - - /* check packet version */ - if(ntohs(receive_packet.packet_version)!=NRPE_PACKET_VERSION_2){ - printf("CHECK_NRPE: Invalid packet version received from server.\n"); -- close(sd); -+ graceful_close(sd,1000); - return STATE_UNKNOWN; - } - - /* check packet type */ -- if(ntohs(receive_packet.packet_type)!=RESPONSE_PACKET){ -+ if(ntohs(receive_packet.packet_type)!=RESPONSE_PACKET && ntohs(receive_packet.packet_type)!=RESPONSE_PACKET_WITH_MORE){ - printf("CHECK_NRPE: Invalid packet type received from server.\n"); -- close(sd); -+ graceful_close(sd,1000); - return STATE_UNKNOWN; - } - -@@ -297,8 +295,18 @@ int main(int argc, char **argv){ - if(!strcmp(receive_packet.buffer,"")) - printf("CHECK_NRPE: No output returned from daemon.\n"); - else -- printf("%s\n",receive_packet.buffer); -- } -+ printf("%s",receive_packet.buffer); -+ -+ } while (ntohs(receive_packet.packet_type)==RESPONSE_PACKET_WITH_MORE); -+ /* END MULTI_PACKET LOOP */ -+ -+ /* Finish output with newline */ -+ printf("\n"); -+ -+ /* close the connection */ -+ graceful_close(sd,1000); -+ -+ } - - /* reset the alarm */ - else -@@ -434,6 +442,14 @@ int graceful_close(int sd, int timeout){ - struct timeval tv; - char buf[1000]; - -+#ifdef HAVE_SSL -+ if(use_ssl==TRUE){ -+ SSL_shutdown(ssl); -+ SSL_free(ssl); -+ SSL_CTX_free(ctx); -+ } -+#endif -+ - /* send FIN packet */ - shutdown(sd,SHUT_WR); - for(;;){ -Index: nrpe-2.14/src/nrpe.c -=================================================================== ---- nrpe-2.14.orig/src/nrpe.c -+++ nrpe-2.14/src/nrpe.c -@@ -1056,6 +1056,8 @@ void handle_connection(int sock){ - char processed_command[MAX_INPUT_BUFFER]; - int result=STATE_OK; - int early_timeout=FALSE; -+ int bytes_copied=0; -+ char *pbuffer=&buffer[0]; - int rc; - int x; - #ifdef DEBUG -@@ -1272,6 +1274,14 @@ void handle_connection(int sock){ - if(buffer[strlen(buffer)-1]=='\n') - buffer[strlen(buffer)-1]='\x0'; - -+ /* Altinity patch to allow multi packet responses */ -+ /* Loop not indented to allow easier patching */ -+ /* START MULTI_PACKET LOOP */ -+ do { -+ -+ if(debug==TRUE) -+ syslog(LOG_DEBUG,"Sending response - bytes left: %d", strlen(pbuffer)); -+ - /* clear the response packet buffer */ - bzero(&send_packet,sizeof(send_packet)); - -@@ -1280,11 +1290,17 @@ void handle_connection(int sock){ - - /* initialize response packet data */ - send_packet.packet_version=(int16_t)htons(NRPE_PACKET_VERSION_2); -- send_packet.packet_type=(int16_t)htons(RESPONSE_PACKET); - send_packet.result_code=(int16_t)htons(result); -- strncpy(&send_packet.buffer[0],buffer,MAX_PACKETBUFFER_LENGTH); -+ strncpy(&send_packet.buffer[0],pbuffer,MAX_PACKETBUFFER_LENGTH); - send_packet.buffer[MAX_PACKETBUFFER_LENGTH-1]='\x0'; -- -+ -+ bytes_copied = strlen(&send_packet.buffer[0]); -+ pbuffer = pbuffer+bytes_copied; -+ if(strlen(pbuffer)>0) -+ send_packet.packet_type=(int16_t)htons(RESPONSE_PACKET_WITH_MORE); -+ else -+ send_packet.packet_type=(int16_t)htons(RESPONSE_PACKET); -+ - /* calculate the crc 32 value of the packet */ - send_packet.crc32_value=(u_int32_t)0L; - calculated_crc32=calculate_crc32((char *)&send_packet,sizeof(send_packet)); -@@ -1303,6 +1319,9 @@ void handle_connection(int sock){ - SSL_write(ssl,&send_packet,bytes_to_send); - #endif - -+ } while (strlen(pbuffer) > 0); -+ /* END MULTI_PACKET LOOP */ -+ - #ifdef HAVE_SSL - if(ssl){ - complete_SSL_shutdown( ssl);
--- a/net-analyzer/nrpe/files/nrpe-2.15-tcpd-et-al.patch Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ ---- nrpe-2.15/configure.in 2013-09-06 17:27:13.000000000 +0200 -+++ nrpe-2.15-patched/configure.in 2014-03-17 15:39:21.242830288 +0100 -@@ -1,12 +1,8 @@ - dnl Process this -*-m4-*- file with autoconf to produce a configure script. - --dnl Disable caching --define([AC_CACHE_LOAD],) --define([AC_CACHE_SAVE],) -- - AC_INIT([nrpe],[2.15],[nagios-users@lists.sourceforge.net],[nrpe],[http://www.nagios.org]) - AC_CONFIG_SRCDIR([src/nrpe.c]) --AC_CONFIG_HEADERS([include/config.h]) -+ - AC_CONFIG_FILES([Makefile - subst - src/Makefile -@@ -16,7 +12,8 @@ - init-script.suse - nrpe.spec - sample-config/nrpe.cfg -- sample-config/nrpe.xinetd]) -+ sample-config/nrpe.xinetd -+ include/config.h]) - AC_PREFIX_DEFAULT(/usr/local/nagios) - - PKG_NAME=nrpe -@@ -45,7 +42,7 @@ - AC_HEADER_STDC - AC_HEADER_TIME - AC_HEADER_SYS_WAIT --AC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h tcpd.h unistd.h arpa/inet.h netinet/in.h socket.h sys/types.h sys/time.h sys/resource.h sys/wait.h sys/socket.h sys/stat.h) -+AC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h unistd.h arpa/inet.h netinet/in.h socket.h sys/types.h sys/time.h sys/resource.h sys/wait.h sys/socket.h sys/stat.h) - - dnl Checks for typedefs, structures, and compiler characteristics. - AC_C_CONST -@@ -164,11 +161,20 @@ - AC_CHECK_LIB(nsl,main,SOCKETLIBS="$SOCKETLIBS -lnsl") - AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket") - AC_SUBST(SOCKETLIBS) --AC_CHECK_LIB(wrap,main,[ -- LIBWRAPLIBS="$LIBWRAPLIBS -lwrap" -+ -+AC_ARG_ENABLE([tcp-wrapper], -+ AS_HELP_STRING([--disable-tcp-wrapper], [Disable building with TCP wrappers. *** DISABLING IS A SECURITY RISK! *** Read the SECURITY file before using this option! @<:@default=enable@:>@])) -+ -+LIBWRAPLIBS="" -+AS_IF([test "x$enable_tcp_wrapper" != "xno"], [ -+ AC_CHECK_LIB([wrap],[hosts_access],[ -+ LIBWRAPLIBS="$LIBWRAPLIBS -lwrap" - AC_DEFINE(HAVE_LIBWRAP,[1],[Have the TCP wrappers library]) -- ]) -+ AC_DEFINE(HAVE_TCPD_H,[1],[Have the TCP wrappers library]) -+ ]) -+]) - AC_SUBST(LIBWRAPLIBS) -+ - AC_CHECK_FUNCS(strdup strstr strtoul initgroups closesocket) - - dnl socklen_t check - from curl -@@ -440,8 +446,11 @@ - AC_SUBST(TARGET_PLATFORM) - - AC_ARG_ENABLE([command-args], -- AS_HELP_STRING([--enable-command-args],[allows clients to specify command arguments. *** THIS IS A SECURITY RISK! *** Read the SECURITY file before using this option!]), -- AC_DEFINE_UNQUOTED(ENABLE_COMMAND_ARGUMENTS,[1],[Enable command-line arguments])) -+ AS_HELP_STRING([--enable-command-args],[allows clients to specify command arguments. *** THIS IS A SECURITY RISK! *** Read the SECURITY file before using this option!])) -+ -+AS_IF([test "x$enable_command_args" = "xyes"], [ -+ AC_DEFINE(ENABLE_COMMAND_ARGUMENTS,[1],[Enable command-line arguments]) -+]) - - AC_ARG_ENABLE([bash-command-substitution], - AS_HELP_STRING([--enable-bash-command-substitution],[allows clients to pass bash command substitutions of the form $(command). *** THIS IS A HIGH SECURITY RISK! *** Read the SECURITY file before using this option!]),
--- a/net-analyzer/nrpe/files/nrpe.init Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/files/nrpe.init,v 1.3 2013/01/25 17:43:36 flameeyes Exp $ - -: ${CFGFILE:=/etc/nagios/nrpe.cfg} - -get_config() { - [ -f ${CFGFILE} ] || return 1 - - sed -n -e 's:^[ \t]*'$1'=\([^#]\+\).*:\1:p' \ - ${CFGFILE} -} - -extra_started_commands="reload" - -command=/usr/libexec/${SVCNAME} -command_args="-c ${CFGFILE} --daemon" -pidfile=$(get_config pid_file) - -depend() { - config ${CFGFILE} -} - -reload() { - ebegin "Reloading ${SVCNAME}" - kill -HUP `cat ${pidfile}` - eend $? -}
--- a/net-analyzer/nrpe/files/nrpe.xinetd.2 Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -service nrpe { - socket_type = stream - protocol = tcp - wait = no - user = nagios - group = nagios - server = /usr/libexec/nrpe - server_args = -c /etc/nagios/nrpe.cfg --inetd -# only_from = 127.0.0.1 - disabled = yes -}
--- a/net-analyzer/nrpe/nrpe-2.15.ebuild Sat Dec 29 16:31:18 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,124 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/nrpe-2.14.ebuild,v 1.8 2013/03/09 19:09:06 ago Exp $ - -EAPI=4 - -inherit eutils toolchain-funcs multilib user autotools - -DESCRIPTION="Nagios Remote Plugin Executor" -HOMEPAGE="http://www.nagios.org/" -SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -#KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86" -KEYWORDS="~amd64" -IUSE="command-args ssl tcpd minimal" - -DEPEND="ssl? ( dev-libs/openssl ) - !minimal? ( tcpd? ( sys-apps/tcp-wrappers ) )" -RDEPEND="${DEPEND} - !minimal? ( >=net-analyzer/nagios-plugins-1.3.0 )" - -pkg_setup() { - enewgroup nagios - enewuser nagios -1 /bin/bash /dev/null nagios - - elog "If you plan to use \"nrpe_check_control\" then you may want to specify" - elog "different command and services files. You can override the defaults" - elog "through the \"NAGIOS_COMMAND_FILE\" and \"NAGIOS_SERVICES_FILE\" environment variables." - elog "NAGIOS_COMMAND_FILE=${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}" - elog "NAGIOS_SERVICES_FILE=${NAGIOS_SERVICES_FILE:-/etc/services.cfg}" -} - -src_prepare() { - # Add support for large output, - # http://www.opsview.com/whats-new/blog/enhancing-nrpe-large-output - epatch "${FILESDIR}"/${P}-multiline.patch - # fix configure, among others #326367, #397603 - epatch "${FILESDIR}"/${P}-tcpd-et-al.patch - - sed -i -e '/define \(COMMAND\|SERVICES\)_FILE/d' contrib/nrpe_check_control.c || die - - # change the default location of the pid file - sed -i -e '/pid_file/s:/var/run:/run:' sample-config/nrpe.cfg.in || die - - # fix TFU handling of autoheader - sed -i -e '/#undef/d' include/config.h.in || die - - eautoreconf -} - -src_configure() { - local myconf - if use minimal; then - myconf="--disable-tcp-wrapper --disable-command-args" - else - myconf="$(use_enable tcpd tcp-wrapper) $(use_enable command-args)" - fi - - econf \ - --libexecdir=/usr/$(get_libdir)/nagios/plugins \ - --localstatedir=/var/nagios \ - --sysconfdir=/etc/nagios \ - --with-nrpe-user=nagios \ - --with-nrpe-group=nagios \ - $(use_enable ssl) \ - ${myconf} -} - -src_compile() { - emake -C src check_nrpe $(use minimal || echo nrpe) - - # Add nifty nrpe check tool - $(tc-getCC) ${CPPFLAGS} ${CFLAGS} \ - -DCOMMAND_FILE=\"${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}\" \ - -DSERVICES_FILE=\"${NAGIOS_SERVICES_FILE:-/etc/services.cfg}\" \ - ${LDFLAGS} -o nrpe_check_control contrib/nrpe_check_control.c || die -} - -src_install() { - dodoc LEGAL Changelog README SECURITY \ - contrib/README.nrpe_check_control \ - $(use ssl && echo README.SSL) - - exeinto /usr/$(get_libdir)/nagios/plugins - doexe src/check_nrpe nrpe_check_control - - use minimal && return 0 - - ## NON-MINIMAL INSTALL FOLLOWS ## - - insinto /etc/nagios - newins sample-config/nrpe.cfg nrpe.cfg - fowners root:nagios /etc/nagios/nrpe.cfg - fperms 0640 /etc/nagios/nrpe.cfg - - exeinto /usr/libexec - doexe src/nrpe - - newinitd "${FILESDIR}"/nrpe.init nrpe - - insinto /etc/xinetd.d/ - newins "${FILESDIR}/nrpe.xinetd.2" nrpe - - if use tcpd; then - sed -i -e '/^reload()/, /^}/ d' -e '/extra_started_commands/s:reload::' \ - "${D}"/etc/init.d/nrpe - fi -} - -pkg_postinst() { - elog "If you are using the nrpe daemon, remember to edit" - elog "the config file /etc/nagios/nrpe.cfg" - - if use command-args ; then - ewarn "" - ewarn "You have enabled command-args for NRPE. This enables" - ewarn "the ability for clients to supply arguments to commands" - ewarn "which should be run. " - ewarn "THIS IS CONSIDERED A SECURITY RISK!" - ewarn "Please read /usr/share/doc/${PF}/SECURITY.bz2 for more info" - fi -}
--- a/profiles/package.mask Sat Dec 29 16:31:18 2018 +0100 +++ b/profiles/package.mask Sun Dec 15 11:20:30 2019 +0100 @@ -1,9 +1,3 @@ -# Daniel Neugebauer <dneuge@energiequant.de> (11 Oct 2012) -# for gentoo-overlay.megacoffee.net -# ebuild was restored from official portage tree after deletion and should -# only be used as a last resort -=media-libs/xine-lib-1.1.20 - # Daniel Neugebauer <dneuge@energiequant.de> (21 Oct 2018) # for gentoo-overlay.megacoffee.net # Kallithea versions before 0.3.5 are vulnerable to several security issues