diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-im/minbif |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-im/minbif')
-rw-r--r-- | net-im/minbif/Manifest | 9 | ||||
-rw-r--r-- | net-im/minbif/files/minbif-1.0.5-gcc47.patch | 76 | ||||
-rw-r--r-- | net-im/minbif/files/minbif-1.0.5-glib-single-includes.patch | 26 | ||||
-rw-r--r-- | net-im/minbif/files/minbif-1.0.5-rename-imlib-load-error.patch | 13 | ||||
-rw-r--r-- | net-im/minbif/files/minbif.initd | 23 | ||||
-rw-r--r-- | net-im/minbif/metadata.xml | 5 | ||||
-rw-r--r-- | net-im/minbif/minbif-1.0.5-r2.ebuild | 88 |
7 files changed, 240 insertions, 0 deletions
diff --git a/net-im/minbif/Manifest b/net-im/minbif/Manifest new file mode 100644 index 000000000000..87d42e2726d9 --- /dev/null +++ b/net-im/minbif/Manifest @@ -0,0 +1,9 @@ +AUX minbif-1.0.5-gcc47.patch 1835 SHA256 b95081452749405842c55d38f0093f1f01691fd510f3b8fb9e9df3c95e19b9f0 SHA512 673d82b856af74b16ec5e9db8e5d17521e07369fc8f34902bd72ee1d630ebd13b47de308d4591091029cfed37eaca8146b762185c5761a245acf82e3546b9b88 WHIRLPOOL a76d0cad3ee51dc758a5e59f8559ac1aefca6da151aabbab038965d1fbd8689503bd7cde345997e6d50312aa1d8971c78da500baa925edcc1e98b45e3bef3ceb +AUX minbif-1.0.5-glib-single-includes.patch 754 SHA256 65c27d01bd9d774da8ef38a1364bf74caf4ce5891776ac0cbb8e391cb57bab4e SHA512 fd7c27d1e171aa1e321e82f5e41e6908109101b52519dcad32a9107d14c95b0664dcf7d6ed1969dfce7397976712a6f094966bb06e36ff21fa0c75fe6d86ea91 WHIRLPOOL 9a42c62d9f9677d9768920dffcbd37690be34dc8ae9bd249b86d637aa013ebbc75596a232298826920f5d505e2ae92212dd01b5a0c9e6a4d704127c3851063c9 +AUX minbif-1.0.5-rename-imlib-load-error.patch 469 SHA256 175dad49e288528612ed1c2c929f6ed9bc8061ef6f210ce5ae30fa1c8781fe12 SHA512 5cfa90fe70a4f2f45967b928d1062ab10d45aa6f7dcd4dd1575abb66047984977482ec8943481cc3344cc172292ea81b33f639baefb771aa181b10ea5f740344 WHIRLPOOL 3a6acd053594d2eb8d4e314b6355904056cf68b8ef404f522ce3e834ff20d0619a5a180b93831b12db134a70b96e4bd83295e5ed8b438087951c66c409c72ed4 +AUX minbif.initd 457 SHA256 2c3300c295e40efc521b01f3157d777d48ac4ef974a78e6302cc01773d7b1178 SHA512 f845120e70b96fc307e5ba5e2fc439713da0040b87fa1cdfd2ea38707c47260381004f5d98ddc08b738a1c928335c0b807ecc09b4d3a3e0dec240cab3e6ff7b7 WHIRLPOOL a52fd09a7b129ccaa64014abc15659eade1edffbca93fd60f8046f760a8f45ebeae4da0b68196be4555f05c6121c5d86e910bda8ed61c608f285b1c8657d98d9 +DIST minbif-1.0.5.tar.gz 176039 SHA256 88271af203a89556165a9ebb4e00e55ea5b649146aea855dd799a79bd9e4befd SHA512 e84c6f38ad35a660f9c319b702ae5743cece167c8e116976a9ca0caf527ad23ea17ea8f518f9bd76536e87283362d2087201a5307128740fc7f05dccabacfbcd WHIRLPOOL 10e51abc809e16c65c86f5887867f9d4b680a60321921a2fdd58345ce100cdea8317d13a007df4efaae786a4ea1b1bdc0231fe186f877f6a5716dbfdc3c32aad +EBUILD minbif-1.0.5-r2.ebuild 1876 SHA256 627b3cb7021d3dcf3903374171a15921e345aac54bc9825d310b8c90fc1b11b1 SHA512 8b52fea7e4518f89d27b7342a191bd2e2c054500ea58d31c49dc5b75b3870978bcf2d5b625fe1e9e73ff6f75a80b85ae50ff8b763cdc0943c29f944202176889 WHIRLPOOL b0bc3c895c93c64c3ccff43c2f715bf5d168422bffd520d2b77a39d60023588be76ddf9c096aeb0e3aa6f202ee94845d12fbfbf5ccd52e9a0b965ae696ff93ce +MISC ChangeLog 4186 SHA256 67816280ab5a60baa1c5ec5f4ff207659a1c4882dd46c95ff39b4f395fea7dd1 SHA512 f6d717e8656a70bfa1ef8089dfbb1ec1794549cdf6e3537a6be2cfb23111c5645437d0e33398b7deed31e2c2ee45eb0b5b34fd72b7b974d5c3bdc8dfffde34a9 WHIRLPOOL cbb55233888ffe35cd5bd51729fef9c8a45da66579078c8977d29b93600e32fffb0aee018f8db570dd3d3c14e5343d430c2d36d70f1e21a0c08898cd07b6d2a4 +MISC ChangeLog-2015 3049 SHA256 e8c8aee1907b690c7876a4dee064ddc7e70a3052b16e04b177b8646d4264bf09 SHA512 d4f75cbe122155ebdf93c55e7128f8a7b7422b8e8afcc94a3816acbc7d0238a529d21f1b9550b1681bbcba8150330efc11d33b1ade07b649ddc868333dab10b1 WHIRLPOOL 56b4c4c259a0a0c9ecc977b2c8f94a30ead25248f1ec0bab7d36e23a31d948ebad5f33351c80c42cba4409fac6e63be32f343068388b05ac7467bca5c9025932 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-im/minbif/files/minbif-1.0.5-gcc47.patch b/net-im/minbif/files/minbif-1.0.5-gcc47.patch new file mode 100644 index 000000000000..8566406a318f --- /dev/null +++ b/net-im/minbif/files/minbif-1.0.5-gcc47.patch @@ -0,0 +1,76 @@ +commit fe71fd989a4501c77314b2906756f4e9a328ff31 +Author: Romain Bignon <romain@symlink.me> +Date: Tue May 8 16:46:35 2012 +0200 + + fixes for gcc 4.7 + +--- a/src/im/account.cpp ++++ b/src/im/account.cpp +@@ -18,6 +18,7 @@ + + #include <cassert> + #include <cstring> ++#include <unistd.h> + #ifdef HAVE_IMLIB + #include <Imlib2.h> + #endif /* HAVE_IMLIB */ +--- a/src/im/request.cpp ++++ b/src/im/request.cpp +@@ -18,6 +18,7 @@ + + #include <errno.h> + #include <string.h> ++#include <unistd.h> + + #include "request.h" + #include "buddy.h" +--- a/src/irc/dcc.cpp ++++ b/src/irc/dcc.cpp +@@ -23,6 +23,7 @@ + #include <string.h> + #include <sys/types.h> + #include <netinet/in.h> ++#include <unistd.h> + + #include "dcc.h" + #include "nick.h" +--- a/src/irc/irc.cpp ++++ b/src/irc/irc.cpp +@@ -246,7 +246,7 @@ Nick* IRC::getNick(string nickname, bool case_sensitive) const + Buddy* IRC::getNick(const im::Buddy& buddy) const + { + map<string, Nick*>::const_iterator it; +- Buddy* nb; ++ Buddy* nb = NULL; + for(it = users.begin(); + it != users.end() && (!(nb = dynamic_cast<Buddy*>(it->second)) || nb->getBuddy() != buddy); + ++it) +@@ -261,7 +261,7 @@ Buddy* IRC::getNick(const im::Buddy& buddy) const + ConvNick* IRC::getNick(const im::Conversation& conv) const + { + map<string, Nick*>::const_iterator it; +- ConvNick* n; ++ ConvNick* n = NULL; + for(it = users.begin(); + it != users.end() && (!(n = dynamic_cast<ConvNick*>(it->second)) || n->getConversation() != conv); + ++it) +--- a/src/server_poll/inetd.cpp ++++ b/src/server_poll/inetd.cpp +@@ -18,6 +18,7 @@ + + #include <cassert> + #include <glib.h> ++#include <unistd.h> + + #include "inetd.h" + #include "irc/irc.h" +--- a/src/sockwrap/sockwrap.cpp ++++ b/src/sockwrap/sockwrap.cpp +@@ -22,6 +22,7 @@ + # include "sockwrap_tls.h" + #endif + #include "core/util.h" ++#include <unistd.h> + + namespace sock + { diff --git a/net-im/minbif/files/minbif-1.0.5-glib-single-includes.patch b/net-im/minbif/files/minbif-1.0.5-glib-single-includes.patch new file mode 100644 index 000000000000..599355eb502c --- /dev/null +++ b/net-im/minbif/files/minbif-1.0.5-glib-single-includes.patch @@ -0,0 +1,26 @@ +Index: minbif-1.0.5/src/server_poll/daemon_fork.cpp +=================================================================== +--- minbif-1.0.5.orig/src/server_poll/daemon_fork.cpp ++++ minbif-1.0.5/src/server_poll/daemon_fork.cpp +@@ -20,7 +20,7 @@ + #include <cassert> + #include <cstring> + #include <cerrno> +-#include <glib/gmain.h> ++#include <glib.h> + #include <sys/socket.h> + #include <sys/stat.h> + #include <arpa/inet.h> +Index: minbif-1.0.5/src/server_poll/inetd.cpp +=================================================================== +--- minbif-1.0.5.orig/src/server_poll/inetd.cpp ++++ minbif-1.0.5/src/server_poll/inetd.cpp +@@ -17,7 +17,7 @@ + */ + + #include <cassert> +-#include <glib/gmain.h> ++#include <glib.h> + + #include "inetd.h" + #include "irc/irc.h" diff --git a/net-im/minbif/files/minbif-1.0.5-rename-imlib-load-error.patch b/net-im/minbif/files/minbif-1.0.5-rename-imlib-load-error.patch new file mode 100644 index 000000000000..e9fa875d247c --- /dev/null +++ b/net-im/minbif/files/minbif-1.0.5-rename-imlib-load-error.patch @@ -0,0 +1,13 @@ +diff --git a/src/im/account.cpp b/src/im/account.cpp +index f155334..f040fcd 100644 +--- a/src/im/account.cpp ++++ b/src/im/account.cpp +@@ -272,7 +272,7 @@ void Account::setBuddyIcon(string filename) + else + { + char** prpl_formats = g_strsplit(prplinfo->icon_spec.format,",",0); +- ImlibLoadError err = IMLIB_LOAD_ERROR_UNKNOWN; ++ Imlib_Load_Error err = IMLIB_LOAD_ERROR_UNKNOWN; + + close(temp_fd); + /* Try to encode in a supported format. */ diff --git a/net-im/minbif/files/minbif.initd b/net-im/minbif/files/minbif.initd new file mode 100644 index 000000000000..06cac415f61d --- /dev/null +++ b/net-im/minbif/files/minbif.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +MINBIF_EXEC="/usr/bin/minbif" + +depend() { + need logger net +} + +start() { + ebegin "Starting minbif" + start-stop-daemon --start --startas ${MINBIF_EXEC} \ + -c minbif:minbif --exec ${MINBIF_EXEC} -- \ + /etc/minbif/minbif.conf + eend $? +} + +stop() { + ebegin "Stopping minbif" + start-stop-daemon --stop --exec ${MINBIF_EXEC} + eend $? +} diff --git a/net-im/minbif/metadata.xml b/net-im/minbif/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-im/minbif/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-im/minbif/minbif-1.0.5-r2.ebuild b/net-im/minbif/minbif-1.0.5-r2.ebuild new file mode 100644 index 000000000000..1d5e71be66a7 --- /dev/null +++ b/net-im/minbif/minbif-1.0.5-r2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cmake-utils eutils user + +DESCRIPTION="an IRC gateway to IM networks" +HOMEPAGE="https://symlink.me/projects/minbif/wiki/" +SRC_URI="https://symlink.me/attachments/download/148/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="gnutls +imlib +libcaca pam xinetd" +REQUIRED_USE=" + libcaca? ( imlib ) +" + +DEPEND=" + >=net-im/pidgin-2.6 + libcaca? ( media-libs/libcaca media-libs/imlib2 ) + imlib? ( media-libs/imlib2 ) + pam? ( sys-libs/pam ) + gnutls? ( net-libs/gnutls ) +" +RDEPEND="${DEPEND} + virtual/logger + xinetd? ( sys-apps/xinetd ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.5-glib-single-includes.patch" + "${FILESDIR}/${PN}-1.0.5-gcc47.patch" + "${FILESDIR}/${PN}-1.0.5-rename-imlib-load-error.patch" +) + +pkg_setup() { + enewgroup minbif + enewuser minbif -1 -1 /var/lib/minbif minbif +} + +src_prepare() { + cmake-utils_src_prepare + + sed -i "s/-Werror//g" CMakeLists.txt || die "sed failed" + + sed -i "s#share/doc/minbif#share/doc/${P}#" \ + CMakeLists.txt || die "sed failed" + + if use xinetd; then + sed -i "s/type\s=\s[0-9]/type = 0/" \ + minbif.conf || die "sed failed" + fi +} + +src_configure() { + local mycmakeargs=( + -DCONF_PREFIX="${EPREFIX}"/etc/minbif + -DENABLE_VIDEO=OFF + $(cmake-utils_use_enable libcaca CACA) + $(cmake-utils_use_enable imlib IMLIB) + $(cmake-utils_use_enable pam PAM) + $(cmake-utils_use_enable gnutls TLS) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + keepdir /var/lib/minbif + fperms 700 /var/lib/minbif + fowners minbif:minbif /var/lib/minbif + + dodoc ChangeLog README + doman man/minbif.8 + + if use xinetd; then + insinto /etc/xinetd.d + newins doc/minbif.xinetd minbif + fi + + newinitd "${FILESDIR}"/minbif.initd minbif + + dodir /usr/share/minbif + insinto /usr/share/minbif + doins -r scripts +} |