summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjarke Istrup Pedersen <gurligebis@gentoo.org>2006-07-08 14:53:03 +0000
committerBjarke Istrup Pedersen <gurligebis@gentoo.org>2006-07-08 14:53:03 +0000
commit93798d5a4b5cb66e77bb2eca7bf0335d6471e2c2 (patch)
treeedadbc6025f1876776eb692ce3593be15550ae76 /net-irc
parentapp-cdr/bonfire - remove manually (diff)
downloadsunrise-93798d5a4b5cb66e77bb2eca7bf0335d6471e2c2.tar.gz
sunrise-93798d5a4b5cb66e77bb2eca7bf0335d6471e2c2.tar.bz2
sunrise-93798d5a4b5cb66e77bb2eca7bf0335d6471e2c2.zip
net-irc/psybnc : Ebuild for bug #35887
svn path=/sunrise/; revision=557
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/psybnc/ChangeLog8
-rw-r--r--net-irc/psybnc/Manifest32
-rw-r--r--net-irc/psybnc/files/digest-psybnc-2.3.2.73
-rw-r--r--net-irc/psybnc/files/psybnc-2.3.2.7-gentoo.diff11
-rw-r--r--net-irc/psybnc/files/psybnc.conf17
-rw-r--r--net-irc/psybnc/files/psybnc.confd3
-rw-r--r--net-irc/psybnc/files/psybnc.initd32
-rw-r--r--net-irc/psybnc/metadata.xml10
-rw-r--r--net-irc/psybnc/psybnc-2.3.2.7.ebuild79
9 files changed, 195 insertions, 0 deletions
diff --git a/net-irc/psybnc/ChangeLog b/net-irc/psybnc/ChangeLog
new file mode 100644
index 000000000..d4c517b95
--- /dev/null
+++ b/net-irc/psybnc/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-irc/psybnc
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*psybnc-2.3.2.7 (08 Jul 2006)
+
+ 08 Jul 2006; Bjarke Istrup Pedersen <gurligebis@gentoo.org> :
+ Initial import. Based on ebuild by Lorenzo Grandi <popposoft@gmail.com>.
diff --git a/net-irc/psybnc/Manifest b/net-irc/psybnc/Manifest
new file mode 100644
index 000000000..96142b460
--- /dev/null
+++ b/net-irc/psybnc/Manifest
@@ -0,0 +1,32 @@
+AUX psybnc-2.3.2.7-gentoo.diff 814 RMD160 4c9989c41072265541b2c85d5b4281fed87d2063 SHA1 ae27819f1d19049bf49c659badc8b75d1427cae2 SHA256 06f45391d2114d8165895e0b5e70a0096653404a4dfbb29df51b82d64a0ea7bd
+MD5 f1c7af9bd1152e0ee6dcbd72c81e7a6b files/psybnc-2.3.2.7-gentoo.diff 814
+RMD160 4c9989c41072265541b2c85d5b4281fed87d2063 files/psybnc-2.3.2.7-gentoo.diff 814
+SHA256 06f45391d2114d8165895e0b5e70a0096653404a4dfbb29df51b82d64a0ea7bd files/psybnc-2.3.2.7-gentoo.diff 814
+AUX psybnc.conf 313 RMD160 446813d0753d5b6d3c7592bd90f83f821a993973 SHA1 f9149567abc499474f482ad46b34a16b5bf8dd90 SHA256 e4b04c86a4a1ed910b6cf21fa834eb1eeed166bb372cffbfe9674613f68a080f
+MD5 8d8566aeb360bde07a233ba58be31029 files/psybnc.conf 313
+RMD160 446813d0753d5b6d3c7592bd90f83f821a993973 files/psybnc.conf 313
+SHA256 e4b04c86a4a1ed910b6cf21fa834eb1eeed166bb372cffbfe9674613f68a080f files/psybnc.conf 313
+AUX psybnc.confd 62 RMD160 b19c1985f2e22876f06999ad4a9289a8ebef0871 SHA1 83aef04d84bad32fa53dea028c86381348936c00 SHA256 4bdb5cadd66d7fc361ab452ab572969a6323cc1d1ae358d4722c8c536dd3f568
+MD5 c944e12019b842806750370d9363ffdc files/psybnc.confd 62
+RMD160 b19c1985f2e22876f06999ad4a9289a8ebef0871 files/psybnc.confd 62
+SHA256 4bdb5cadd66d7fc361ab452ab572969a6323cc1d1ae358d4722c8c536dd3f568 files/psybnc.confd 62
+AUX psybnc.initd 564 RMD160 8d35e3b9eb8ccf8373f5b1af42e7dbb7097462b7 SHA1 d3af9b75eab45ce0aa22d1b86420ff37baefc6b3 SHA256 83ebe88abf3167fee1756b23e752fb46be9dc30e2d2c020a233b881698aea3ae
+MD5 2a31dac70369bbcb2b089e712eb1138e files/psybnc.initd 564
+RMD160 8d35e3b9eb8ccf8373f5b1af42e7dbb7097462b7 files/psybnc.initd 564
+SHA256 83ebe88abf3167fee1756b23e752fb46be9dc30e2d2c020a233b881698aea3ae files/psybnc.initd 564
+DIST psyBNC-2.3.2-7.tar.gz 312177 RMD160 6a7311a3219fa005219a815bbbac188c315bd2b2 SHA1 d3d06e05c447f7366761a85af204222eddb55e2d SHA256 be38468b374b0470a5728b154527019b7d613c90dc23a93053fda7cdd93f6519
+EBUILD psybnc-2.3.2.7.ebuild 2212 RMD160 3bc10698196250ea8c1f8e90b90bee2ae64a89e8 SHA1 775592a7da9e0227ef0d476062755dcd88124a0f SHA256 9ad9d993c6aed00404b2cdabdb8fc16be5ab076dae18001e0d00f1991df74b32
+MD5 1c9f48dee862b36cb2d1a5f87702e9f3 psybnc-2.3.2.7.ebuild 2212
+RMD160 3bc10698196250ea8c1f8e90b90bee2ae64a89e8 psybnc-2.3.2.7.ebuild 2212
+SHA256 9ad9d993c6aed00404b2cdabdb8fc16be5ab076dae18001e0d00f1991df74b32 psybnc-2.3.2.7.ebuild 2212
+MISC ChangeLog 287 RMD160 f10656abf3ed259c20ca97bbab198f69d02dabb3 SHA1 2ea65ff7e417d1a165f9ba9dda12fe2ed0d83331 SHA256 a0b89288afd7c14dcdbcb70c8b68457c41898ccdcb12878277e12ed0ffd9f232
+MD5 33456adcaa13151262ffa7514dc598c1 ChangeLog 287
+RMD160 f10656abf3ed259c20ca97bbab198f69d02dabb3 ChangeLog 287
+SHA256 a0b89288afd7c14dcdbcb70c8b68457c41898ccdcb12878277e12ed0ffd9f232 ChangeLog 287
+MISC metadata.xml 367 RMD160 d27fab183bd5537ddb6d546cf1e8e22d30dfe166 SHA1 1141940781391bccb9645a9534ca238b8f5ecbd2 SHA256 8addc1375cc69faafe6892005d9e1e73bd3b670ab4e5610484146fbd8287761f
+MD5 7b6337aba643cf53002436abd1d5495e metadata.xml 367
+RMD160 d27fab183bd5537ddb6d546cf1e8e22d30dfe166 metadata.xml 367
+SHA256 8addc1375cc69faafe6892005d9e1e73bd3b670ab4e5610484146fbd8287761f metadata.xml 367
+MD5 df094001a718a828a55f2ae1176dbeea files/digest-psybnc-2.3.2.7 244
+RMD160 24929b25c5a7708c7db81906a44e655c16e99e86 files/digest-psybnc-2.3.2.7 244
+SHA256 1de63a136d6e99e75dafd6723fb077542bc2e0160917f4d75ac277a49609289e files/digest-psybnc-2.3.2.7 244
diff --git a/net-irc/psybnc/files/digest-psybnc-2.3.2.7 b/net-irc/psybnc/files/digest-psybnc-2.3.2.7
new file mode 100644
index 000000000..d521eb7e8
--- /dev/null
+++ b/net-irc/psybnc/files/digest-psybnc-2.3.2.7
@@ -0,0 +1,3 @@
+MD5 c475f14b1b3a9280a123142e6e344dd8 psyBNC-2.3.2-7.tar.gz 312177
+RMD160 6a7311a3219fa005219a815bbbac188c315bd2b2 psyBNC-2.3.2-7.tar.gz 312177
+SHA256 be38468b374b0470a5728b154527019b7d613c90dc23a93053fda7cdd93f6519 psyBNC-2.3.2-7.tar.gz 312177
diff --git a/net-irc/psybnc/files/psybnc-2.3.2.7-gentoo.diff b/net-irc/psybnc/files/psybnc-2.3.2.7-gentoo.diff
new file mode 100644
index 000000000..2b24e8693
--- /dev/null
+++ b/net-irc/psybnc/files/psybnc-2.3.2.7-gentoo.diff
@@ -0,0 +1,11 @@
+--- tools/autoconf.c 2004-05-07 01:33:25.956597616 +0200
++++ tools/autoconf.c 2004-05-07 01:33:43.075995072 +0200
+@@ -462,7 +462,7 @@
+ fprintf(makefile," @echo \"* for the sake of correct Cert-Checking *\"\n");
+ fprintf(makefile," @echo \"*******************************************\"\n");
+ fprintf(makefile," @echo \"Generating certificate request .. \"\n");
+- fprintf(makefile," @%s req -new -config src/ssl.cnf -out key/psybnc.req.pem \\\n",sslbin);
++ fprintf(makefile," @%s req -batch -new -config src/ssl.cnf -out key/psybnc.req.pem \\\n",sslbin);
+ fprintf(makefile," -keyout key/psybnc.key.pem -nodes\n");
+ fprintf(makefile," @echo \"Generating self-signed certificate .. \"\n");
+ fprintf(makefile," @%s req -x509 -days 365 -in key/psybnc.req.pem \\\n",sslbin);
diff --git a/net-irc/psybnc/files/psybnc.conf b/net-irc/psybnc/files/psybnc.conf
new file mode 100644
index 000000000..8a1ca8907
--- /dev/null
+++ b/net-irc/psybnc/files/psybnc.conf
@@ -0,0 +1,17 @@
+# Name
+PSYBNC.SYSTEM.ME=Gentoo
+
+# Default listener
+PSYBNC.SYSTEM.PORT1=23998
+PSYBNC.SYSTEM.HOST1=*
+PSYBNC.HOSTALLOWS.ENTRY0=*;*
+
+# Default SSL listener
+PSYBNC.SYSTEM.PORT2=23889
+PSYBNC.SYSTEM.HOST2=S=*
+PSYBNC.HOSTALLOWS.ENTRY1=*;*
+
+# Default user
+USER1.USER.NICK=gentoo
+USER1.USER.PASS=gentoo
+USER1.USER.RIGHTS=1
diff --git a/net-irc/psybnc/files/psybnc.confd b/net-irc/psybnc/files/psybnc.confd
new file mode 100644
index 000000000..dfaaa010f
--- /dev/null
+++ b/net-irc/psybnc/files/psybnc.confd
@@ -0,0 +1,3 @@
+# psybnc start-up options
+USER="psybnc"
+BNCPATH="/opt/psybnc"
diff --git a/net-irc/psybnc/files/psybnc.initd b/net-irc/psybnc/files/psybnc.initd
new file mode 100644
index 000000000..add796fa7
--- /dev/null
+++ b/net-irc/psybnc/files/psybnc.initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+check_config() {
+ if [ -z "${USER}" ]
+ then
+ eerror "Please set \$USER in /etc/conf.d/psybnc!"
+ return 1
+ fi
+ if [ -z "${BNCPATH}" ]
+ then
+ eerror "Please set \$BNCPATH in /etc/conf.d/psybnc!"
+ return 1
+ fi
+}
+
+start() {
+ ebegin "Starting psybnc"
+ check_config || return 1
+ export HOME="${BNCPATH}"
+ start-stop-daemon -c ${USER} -S -q --chdir ${BNCPATH} -x ${BNCPATH}/psybnc 1>/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping psybnc"
+ start-stop-daemon -K -q --exec ${BNCPATH}/psybnc -s 9
+ eend $?
+}
diff --git a/net-irc/psybnc/metadata.xml b/net-irc/psybnc/metadata.xml
new file mode 100644
index 000000000..0a1292db0
--- /dev/null
+++ b/net-irc/psybnc/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-irc</herd>
+ <maintainer>
+ <email>gurligebis@gentoo.org</email>
+ <name>Bjarke Istrup Pedersen</name>
+ </maintainer>
+ <longdescription>PsyBNC is a multi-user and multi-server gateway to IRC networks</longdescription>
+</pkgmetadata>
diff --git a/net-irc/psybnc/psybnc-2.3.2.7.ebuild b/net-irc/psybnc/psybnc-2.3.2.7.ebuild
new file mode 100644
index 000000000..ec03a5301
--- /dev/null
+++ b/net-irc/psybnc/psybnc-2.3.2.7.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator
+MY_PV=$(replace_version_separator 3 '-')
+S=${WORKDIR}/${PN}
+INSTALLDIR="/opt/psybnc"
+
+DESCRIPTION="PsyBNC is a multi-user and multi-server gateway to IRC networks"
+HOMEPAGE="http://www.psybnc.at/index.html"
+SRC_URI="http://www.psybnc.at/download/beta/psyBNC-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND=">=dev-libs/openssl-0.9.7d"
+
+pkg_setup() {
+ enewgroup psybnc
+ enewuser psybnc -1 -1 ${INSTALLDIR} psybnc
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PF}-gentoo.diff
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodoc CHANGES COPYING FAQ README SCRIPTING TODO
+ dodir ${INSTALLDIR}/help ${INSTALLDIR}/key ${INSTALLDIR}/lang ${INSTALLDIR}/log ${INSTALLDIR}/motd ${INSTALLDIR}/scripts
+
+ insinto ${INSTALLDIR}/help
+ doins help/*
+ insinto ${INSTALLDIR}/key
+ doins key/*
+ insinto ${INSTALLDIR}/lang
+ doins lang/*
+ insinto ${INSTALLDIR}/log
+ doins log/*
+ insinto ${INSTALLDIR}/motd
+ doins motd/*
+ insinto ${INSTALLDIR}/scripts
+ doins scripts/*
+ insinto ${INSTALLDIR}
+ doins ${FILESDIR}/psybnc.conf config.h
+
+ exeinto ${INSTALLDIR}
+ doexe psybnc
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/psybnc.initd psybnc
+ insinto /etc/conf.d
+ newins ${FILESDIR}/psybnc.confd psybnc
+
+ chown -R psybnc:psybnc ${D}/${INSTALLDIR}
+}
+
+pkg_config() {
+ einfo "Generating certificate request..."
+ openssl req -new -out ${INSTALLDIR}/key/psybnc.req.pem -keyout ${INSTALLDIR}/key/psybnc.key.pem -nodes
+ einfo "Generating self-signed certificate..."
+ openssl req -x509 -days 365 -in ${INSTALLDIR}/key/psybnc.req.pem -key ${INSTALLDIR}/key/psybnc.key.pem -out ${INSTALLDIR}/key/psybnc.cert.pem
+ einfo "Generating fingerprint..."
+ openssl x509 -subject -dates -fingerprint -noout -in ${INSTALLDIR}/key/psybnc.cert.pem
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "Please run \"emerge --config =psybnc-${MY_PV}\" to create SSL certificates for your system."
+ einfo "You can connect to the bnc on port 23998, user=gentoo, pass=gentoo,"
+ einfo "please edit the psybnc configuration in ${INSTALLDIR}/psybnc.conf to change this."
+ einfo ""
+}