diff options
author | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2006-08-28 14:09:41 +0000 |
---|---|---|
committer | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2006-08-28 14:09:41 +0000 |
commit | b5bdce98b0f4270ad69694682aba2e2035528ea8 (patch) | |
tree | 4d57a82f9dfe3fabc6f0876ccf9b44bb23abf4ed /net-irc/psybnc | |
parent | Version bump. (diff) | |
download | gentoo-2-b5bdce98b0f4270ad69694682aba2e2035528ea8.tar.gz gentoo-2-b5bdce98b0f4270ad69694682aba2e2035528ea8.tar.bz2 gentoo-2-b5bdce98b0f4270ad69694682aba2e2035528ea8.zip |
Initial import of psybnc
(Portage version: 2.1.1_rc1-r1)
Diffstat (limited to 'net-irc/psybnc')
-rw-r--r-- | net-irc/psybnc/ChangeLog | 9 | ||||
-rw-r--r-- | net-irc/psybnc/Manifest | 32 | ||||
-rw-r--r-- | net-irc/psybnc/files/digest-psybnc-2.3.2.7 | 3 | ||||
-rw-r--r-- | net-irc/psybnc/files/psybnc-2.3.2.7-gentoo.diff | 11 | ||||
-rw-r--r-- | net-irc/psybnc/files/psybnc.conf | 17 | ||||
-rw-r--r-- | net-irc/psybnc/files/psybnc.confd | 3 | ||||
-rw-r--r-- | net-irc/psybnc/files/psybnc.initd | 32 | ||||
-rw-r--r-- | net-irc/psybnc/metadata.xml | 10 | ||||
-rw-r--r-- | net-irc/psybnc/psybnc-2.3.2.7.ebuild | 79 |
9 files changed, 196 insertions, 0 deletions
diff --git a/net-irc/psybnc/ChangeLog b/net-irc/psybnc/ChangeLog new file mode 100644 index 000000000000..3317de64045d --- /dev/null +++ b/net-irc/psybnc/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-irc/psybnc +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/ChangeLog,v 1.1 2006/08/28 14:09:41 gurligebis Exp $ + +*psybnc-2.3.2.7 (28 Aug 2006) + + 28 Aug 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 000000000000..e283a66c963f --- /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 2209 RMD160 c56936db93352371d2cb9bcb25ddb2006b3473b3 SHA1 cc0f241a9930b491dbe58212a9f0e4ba78dc0dc7 SHA256 361ae7f316b90669d8f30dcb2aea1869e4aef572aafeaa952dd617a0a75928df +MD5 05a3100a8c1a49c33721459237dc68c0 psybnc-2.3.2.7.ebuild 2209 +RMD160 c56936db93352371d2cb9bcb25ddb2006b3473b3 psybnc-2.3.2.7.ebuild 2209 +SHA256 361ae7f316b90669d8f30dcb2aea1869e4aef572aafeaa952dd617a0a75928df psybnc-2.3.2.7.ebuild 2209 +MISC ChangeLog 286 RMD160 03d7453a3ff7d3a0afb786aec58d1b7942ba1e15 SHA1 84251e94c604667582ca64bd7503a2deef651ee1 SHA256 4ae0a099c466dcda0a304efe7d315170a1406cf49227e85c32dd5ee017a7848b +MD5 bee438a6047a437fcd3936773a2909d1 ChangeLog 286 +RMD160 03d7453a3ff7d3a0afb786aec58d1b7942ba1e15 ChangeLog 286 +SHA256 4ae0a099c466dcda0a304efe7d315170a1406cf49227e85c32dd5ee017a7848b ChangeLog 286 +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 000000000000..d521eb7e80b0 --- /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 000000000000..2b24e8693a1b --- /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 000000000000..8a1ca8907e86 --- /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 000000000000..dfaaa010f277 --- /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 000000000000..add796fa7aae --- /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 000000000000..0a1292db0f73 --- /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 000000000000..92c7860afd4b --- /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: /var/cvsroot/gentoo-x86/net-irc/psybnc/psybnc-2.3.2.7.ebuild,v 1.1 2006/08/28 14:09:41 gurligebis Exp $ + +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-${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 "" +} |