summaryrefslogtreecommitdiff
path: root/net-irc/bnc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-irc/bnc
reinit the tree, so we can have metadata
Diffstat (limited to 'net-irc/bnc')
-rw-r--r--net-irc/bnc/Manifest7
-rw-r--r--net-irc/bnc/bnc-2.9.4-r1.ebuild46
-rw-r--r--net-irc/bnc/files/bnc-2.9.3-64bit.patch20
-rw-r--r--net-irc/bnc/files/respect-cflags-ldflags.patch90
-rw-r--r--net-irc/bnc/metadata.xml5
5 files changed, 168 insertions, 0 deletions
diff --git a/net-irc/bnc/Manifest b/net-irc/bnc/Manifest
new file mode 100644
index 000000000000..310c95498c6a
--- /dev/null
+++ b/net-irc/bnc/Manifest
@@ -0,0 +1,7 @@
+AUX bnc-2.9.3-64bit.patch 402 SHA256 738ab7203502e4e02b2c0255945d2f83f379eb65557b2a39dda04864ba9b5d9e SHA512 e257416b88fa147ab532389893ecbf3ee5c47a3680bf8c3c54fb03408fb97b04ffd01222ce8e6c0a1257f9618c18dd95f3eb1799ae3a83922617a630b557604f WHIRLPOOL c87360dc11b28fea835ab842834c014a7739dec75cdc0978eb6035d42f9f82fa5a7a22aa60f3fe3e290f216a20d35bbcc42826ad057797b23c5f2afead4784cb
+AUX respect-cflags-ldflags.patch 2766 SHA256 3cbdc5566b08189fed9a5c1c69eb6ae4983be1124efbab683c1a992a30e91116 SHA512 2b865f67d1999cc7c5ab85c828b8d442906306df23f48fdff17ffb7e7f4f5279a5f0aed0acce3708b558b4cd2e7d7885a585b0cae06b2a78425430ee786362ed WHIRLPOOL 50101b24a32818cab48686606c6e7083c3513dc141b800ecbb9a2a2d8613596351387012a9ea412e8a212c0c3ffc1ad221d06da374ba55b63dd4fba49323b122
+DIST bnc2.9.4.tar.gz 76896 SHA256 af0e95c97feb1f2d231c570a658be8e42a91aafab6e6dfeb04b7e9fcc360b74b SHA512 131c25624c2a72494f900c6247e5569df48700223664487944ac42b0d892ea62f7d0e67a9ba4609cd936718365075c428e756074e349e1e041186c43cd16da23 WHIRLPOOL 5899dce7edb2bb3dfd4598579753acc8936889e5ef2c3d9cec61d25aa0f93f883c270aa929683ad8011f0d08cd098d0c5f90d4c37b8c00c09bc5e02f86b8af3b
+EBUILD bnc-2.9.4-r1.ebuild 969 SHA256 df9a930926b90e49c821baee2af2a5812fe1f7b903b420dc7f10ff10a0cf88b9 SHA512 72b8f54014329394dabd78e2dc791e38143eeb37e7212cabab3338b1ed3d02ecfa761b9bbdb68fa8ef09f792c643e0d216b32f34c5994bc245e762c4d12288fc WHIRLPOOL f4965bdec685c2490f2fd16ba4d1230736e15bd2c60a6e1784b6f9480021c951e0633afc0df81bb80c7c426f6c785804e9d7ae1b137656368bbff5a893cb5177
+MISC ChangeLog 3029 SHA256 c16e1d411ecacbd4272e866f645be372aff3a9ad9654dd350f95b573182b4084 SHA512 5ebe5a49066fc9ba601c098f8cc3ee27a454e4ac6033868b62bc8e2bf4387d388cbbc7caf3c8eb3cfe59813a1c5d9802fdc69cadaea20c767267e04cfe023498 WHIRLPOOL f7a0e931d870299dc9e1ec92299929b54f7c992613de83a7b0029da4721d2faad532382d9a278391a83a454aa6cd81f23ae9d36ab2fd79785669a63ecd8b1515
+MISC ChangeLog-2015 4547 SHA256 663b9ea7bfc5f668d96f751d394a3127baacb1d677bdd72afd2a378fd4e4e447 SHA512 fde1da22d3d1c42a089fb585560b2cd01dc92910602b201a80c47ec1a384ba4aa88d58db2069ff69f0a868812b2458362277da460e36805ead0bf23aa9059828 WHIRLPOOL a621a43caa11e9f8476e749616d85cd50a32f4027f7b71bcedba138c375272fc628d1dee98462a526c900bfeee2a03faa37a70bc68a1d488a366503bfff48364
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-irc/bnc/bnc-2.9.4-r1.ebuild b/net-irc/bnc/bnc-2.9.4-r1.ebuild
new file mode 100644
index 000000000000..73bbb522e5cd
--- /dev/null
+++ b/net-irc/bnc/bnc-2.9.4-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${P/-/}"
+DESCRIPTION="BNC (BouNCe) is used as a gateway to an IRC Server"
+HOMEPAGE="http://gotbnc.com/"
+SRC_URI="http://gotbnc.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ppc ppc64 ~s390 sparc x86"
+IUSE="ssl"
+
+DEPEND="ssl? ( dev-libs/openssl:0 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/respect-cflags-ldflags.patch"
+ "${FILESDIR}/${PN}-2.9.3-64bit.patch"
+)
+
+src_prepare() {
+ default
+ sed -i -e 's:./mkpasswd:/usr/bin/bncmkpasswd:' bncsetup \
+ || die 'failed to rename mkpasswd in bncsetup'
+}
+
+src_configure() {
+ econf $(use_with ssl)
+}
+
+src_install() {
+ default
+ mv "${D}"/usr/bin/{,bnc}mkpasswd \
+ || die 'failed to rename the mkpasswd executable'
+ dodoc example.conf motd
+}
+
+pkg_postinst() {
+ einfo 'You can find an example motd/conf file here:'
+ einfo " /usr/share/doc/${PF}"
+}
diff --git a/net-irc/bnc/files/bnc-2.9.3-64bit.patch b/net-irc/bnc/files/bnc-2.9.3-64bit.patch
new file mode 100644
index 000000000000..0eb94a4817ce
--- /dev/null
+++ b/net-irc/bnc/files/bnc-2.9.3-64bit.patch
@@ -0,0 +1,20 @@
+--- bnc2.9.3-orig/server.c 2005-02-07 01:29:11.000000000 +0000
++++ bnc2.9.3/server.c 2005-09-22 18:10:18.000000000 +0100
+@@ -398,7 +398,7 @@
+ int send_queued(struct lsock *ls)
+ {
+ int res;
+- int length;
++ size_t length;
+ char *msg;
+
+ while(sbuf_getlength(&ls->sendq) > 0)
+@@ -1114,7 +1114,7 @@
+ int dccsend(int fd, struct sbuf *sendq)
+ {
+ int res;
+- int length;
++ size_t length;
+ char *msg;
+
+
diff --git a/net-irc/bnc/files/respect-cflags-ldflags.patch b/net-irc/bnc/files/respect-cflags-ldflags.patch
new file mode 100644
index 000000000000..ce3c30ecf63d
--- /dev/null
+++ b/net-irc/bnc/files/respect-cflags-ldflags.patch
@@ -0,0 +1,90 @@
+From e5663f7b7bd506b7af2ee7ab2e68722ade1f2a03 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Sun, 28 Aug 2016 16:06:09 -0400
+Subject: [PATCH 1/1] autotools: fix --with-ssl option and respect
+ {C,CPP,LD}FLAGS.
+
+Patch the build system to support LDFLAGS. This is a new revision of
+an existing Gentoo patch that made the build system support CFLAGS,
+and incorporates binki's patch from our bugzilla to add CPPFLAGS
+support.
+
+The --with-ssl option is also fixed in configure.in (it was
+missing a dash).
+
+Gentoo-Bug: 338181
+---
+ Makefile.in | 32 +++++++++++++++++++++-----------
+ configure.in | 2 +-
+ 2 files changed, 22 insertions(+), 12 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index b7c9733..f28a355 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -1,28 +1,38 @@
+ LIBS=@LIBS@
+-CFLAGS=-O3 -Wall -include config.h
++CFLAGS=@CFLAGS@ -Wall
++CPPFLAGS = -include config.h @CPPFLAGS@
+ CC=@CC@
+
+-ALL: bnc mkpasswd
++DESTDIR =
++prefix = @prefix@
++exec_prefix = @exec_prefix@
++bindir = @bindir@
++
++all ALL: bnc mkpasswd
++
++install: bnc mkpasswd
++ install -m 755 -d $(DESTDIR)$(bindir)
++ install -m 755 bnc mkpasswd bncchk bncsetup $(DESTDIR)$(bindir)
+
+ mkpasswd:mkpasswd.c
+- ${CC} ${CFLAGS} -o mkpasswd mkpasswd.c ${LIBS}
++ ${CC} ${CFLAGS} -o mkpasswd mkpasswd.c ${LIBS} ${LDFLAGS}
+ bnc: bnc.o conf.o server.o cmds.o ctcp.o send.o sbuf.o Makefile
+- ${CC} -o bnc bnc.o conf.o server.o cmds.o ctcp.o sbuf.o send.o ${LIBS}
++ ${CC} -o bnc bnc.o conf.o server.o cmds.o ctcp.o sbuf.o send.o ${LIBS} ${LDFLAGS}
+
+ bnc.o: config.h struct.h bnc.c Makefile
+- ${CC} ${CFLAGS} -c bnc.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} -c bnc.c
+ conf.o: config.h struct.h conf.c Makefile
+- ${CC} ${CFLAGS} -c conf.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} -c conf.c
+ cmds.o: config.h struct.h cmds.c Makefile
+- ${CC} ${CFLAGS} -c cmds.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} -c cmds.c
+ ctcp.o: config.h ctcp.c Makefile
+- ${CC} ${CFLAGS} -c ctcp.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} -c ctcp.c
+ server.o: config.h struct.h server.c Makefile
+- ${CC} ${CFLAGS} -c server.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} -c server.c
+ send.o: send.c send.h Makefile
+- ${CC} ${CFLAGS} -c send.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} -c send.c
+ sbuf.o: sbuf.c
+- ${CC} ${CFLAGS} -c sbuf.c
++ ${CC} ${CPPFLAGS} ${CFLAGS} -c sbuf.c
+
+ clean:
+ rm -rf *.o *~ core bnc mkpasswd
+diff --git a/configure.in b/configure.in
+index be17af3..3552eb1 100644
+--- a/configure.in
++++ b/configure.in
+@@ -35,7 +35,7 @@ AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt",)
+ dnl Check for SSL support.
+ AC_MSG_CHECKING(whether to enable SSL support)
+ AC_ARG_WITH(ssl,
+-[ -with-ssl Enable SSL support],
++[ --with-ssl Enable SSL support],
+ [ case "$withval" in
+ yes)
+ AC_MSG_RESULT(yes)
+--
+2.7.3
+
diff --git a/net-irc/bnc/metadata.xml b/net-irc/bnc/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-irc/bnc/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>