summaryrefslogtreecommitdiff
path: root/net-irc/psybnc
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/psybnc')
-rw-r--r--net-irc/psybnc/Manifest1
-rw-r--r--net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild158
2 files changed, 0 insertions, 159 deletions
diff --git a/net-irc/psybnc/Manifest b/net-irc/psybnc/Manifest
index 471c450491f4..152d35ad6b47 100644
--- a/net-irc/psybnc/Manifest
+++ b/net-irc/psybnc/Manifest
@@ -9,6 +9,5 @@ AUX psybnc.conf 313 BLAKE2B c56022b42942b100479b6c539e9da85178db679b6596fc2b4162
AUX psybnc.confd 113 BLAKE2B e4fddc3cb37c5b9defea0d4d6e6c2b26f34bf50fbbe51679b8f0e686b504c2caf980c5a97864fac86a251431126c5a0338bb50a8eba9d3976156cf1eaf1b7681 SHA512 e58704dec299271d9a450eb243d0af1323aca58d555b61fc3aa899324a6bdc9aa82afc0597c190dc07c278f22c7cb448592a271e9ee6e4aa3552518ce6254753
AUX psybnc.initd 898 BLAKE2B 7be60ef0dda81cb917e23e06e3fec88af952d71c2eef4255c316baf5a218e8bdc2d8d8bc4eb353ab7c19a697e97685441ec2a0c3503e4f22adf0d55c9a895e13 SHA512 2ea77dfd515b81d53d7fe1b38fe3069d7d2081d939fdbb2c6ff97cd859a86ad8a52dd1b40e0b592a9368488759a3fb35741e25c6a5ade3045eb7159acd64bbbd
DIST psyBNC-2.3.2-9.tar.gz 318676 BLAKE2B 0197aa3bc8c770738a7d4d5a5a79b77f7a0cafeef60ccca1167172b28af05c0cd9836f7e9816c873dafa2e55b0bf9ce54cfbe3958939405f58f7f3874ec7ea64 SHA512 b664f57610e54fadd938b359a0e8052b8fe3dd36bd1ee339f36ee22ae4d36a76e803425c5133f925ac18c01767ffbc8a2f471c014b5b76b05894cfea9fe5416b
-EBUILD psybnc-2.3.2.9-r2.ebuild 4582 BLAKE2B 620329b195a3d03503fb72a38f78e9e125d091c3d7143a0a29fa3b3ddb006ac0b77bd68f6e3545b51a5d36f1185d53577648b7a0f0415148dbc767966fb549d5 SHA512 f4c18d8ec6bb989006fa6d81c9cff3a5cc7aa91ec5894b22e16d11948e02c24b5238d9d706f474f31a17d5020eb2621ad2f4a6af70799cbace0fb3ac96854374
EBUILD psybnc-2.3.2.9-r3.ebuild 4618 BLAKE2B d27e82e18d1cb713f282278dacdb1a9fb61b92ce8bbbe3698355bfa353fce156204567a1f816ba0f712f98e1c016ac8166a3054efd095c0aace4e54cf4592ed2 SHA512 5c9500a9f673200841ba7cf14aa46889ba4b42312d7ce3a11158b640ec4e9fe1d8eb4539353cab767f7380c82c25d4b4aebd09b1da5c21fca4713ad75a639ebb
MISC metadata.xml 434 BLAKE2B 7e478f33125a86a9298854d4f3196e74cdf7b7138139048d4d20bcb9a15b88ef988776fabacdbf247dbf08c99a5756007283e6e6ba20ec38529dc34c106a4abd SHA512 79ea36967c0e1d45d332e64c054e45114689f66d5c290bb1eb9c901244fb2f9a3629564d67581589cfee2e8764b9887bde66f07cc2d74e7abfaeb290ceac2286
diff --git a/net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild b/net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild
deleted file mode 100644
index 22fce24e47d3..000000000000
--- a/net-irc/psybnc/psybnc-2.3.2.9-r2.ebuild
+++ /dev/null
@@ -1,158 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="2"
-
-inherit eutils versionator toolchain-funcs flag-o-matic user
-MY_PV="$(replace_version_separator 3 -)"
-PSYBNC_HOME="/var/lib/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="~amd64 ~sparc ~x86 ~ppc"
-IUSE="ipv6 ssl oidentd scripting multinetwork"
-
-DEPEND="ssl? ( >=dev-libs/openssl-0.9.7d )
- oidentd? ( >=net-misc/oidentd-2.0 )"
-RDEPEND="${DEPEND}"
-S="${WORKDIR}"/"${PN}"
-
-pkg_setup() {
- enewgroup psybnc
- enewuser psybnc -1 -1 ${PSYBNC_HOME} psybnc
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Useless files
- rm -f */INFO
-
- # Pretend we already have a certificate, we generate it in pkg_config
- mkdir key
- touch key/psybnc.cert.pem
-
- if [[ -f ${ROOT}/usr/share/psybnc/salt.h ]]
- then
- einfo "Using existing salt.h for password encryption"
- cp "${ROOT}"/usr/share/psybnc/salt.h salt.h
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}/compile.diff"
- epatch "${FILESDIR}/ldflags-fix.patch"
-
- # add oidentd
- use oidentd && epatch "${FILESDIR}/${P}-oidentd.patch"
-
- # add scripting support
- use scripting && epatch "${FILESDIR}/${P}-scripting.patch"
-
- # add multinetwork support
- use multinetwork && epatch "${FILESDIR}/${P}-multinetwork.patch"
-
- # Prevent stripping the binary
- sed -i -e "/@strip/ d" tools/autoconf.c
-}
-
-src_compile() {
- use ipv6 || rm -f tools/chkipv6.c
- use ssl || rm -f tools/chkssl.c
-
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
-}
-
-src_install() {
- dobin psybnc
-
- insinto /usr/share/psybnc
- doins -r help lang salt.h
- fperms 0600 /usr/share/psybnc/salt.h
-
- insinto /etc/psybnc
- doins "${FILESDIR}"/psybnc.conf
-
- keepdir "${PSYBNC_HOME}"/{log,motd,scripts}
- dosym /usr/share/psybnc/lang "${PSYBNC_HOME}"/lang
- dosym /usr/share/psybnc/help "${PSYBNC_HOME}"/help
-
- fowners psybnc:psybnc "${PSYBNC_HOME}"/{,log,motd,scripts} /etc/psybnc/psybnc.conf
- fperms 0750 "${PSYBNC_HOME}"/{,log,motd,scripts}
- fperms 0640 /etc/psybnc/psybnc.conf
-
- if use ssl
- then
- keepdir /etc/psybnc/ssl
- dosym /etc/psybnc/ssl "${PSYBNC_HOME}"/key
- else
- # Drop SSL listener from psybnc.conf
- sed -i -e "/^# Default SSL listener$/,+4 d" "${D}"/etc/psybnc/psybnc.conf
- fi
-
- if use oidentd
- then
- insinto /etc
- doins "${FILESDIR}"/oidentd.conf.psybnc
- fperms 640 /etc/oidentd.conf.psybnc
- # install init-script with oidentd-support
- newinitd "${FILESDIR}"/psybnc-oidentd.initd psybnc
- else
- # install init-script without oidentd-support
- newinitd "${FILESDIR}"/psybnc.initd psybnc
- fi
-
- newconfd "${FILESDIR}"/psybnc.confd psybnc
-
- dodoc CHANGES FAQ README SCRIPTING TODO
- docinto example-script
- dodoc scripts/example/DEFAULT.SCRIPT
-}
-
-pkg_config() {
- if use ssl
- then
- if [[ -f ${ROOT}/etc/psybnc/ssl/psybnc.cert.pem || -f ${ROOT}/etc/psybnc/ssl/psybnc.key.pem ]]
- then
- ewarn "Existing /etc/psybnc/psybnc.cert.pem or /etc/psybnc/psybnc.key.pem found!"
- ewarn "Remove /etc/psybnc/psybnc.*.pem and run emerge --config =${CATEGORY}/${PF} again."
- return
- fi
-
- einfo "Generating certificate request..."
- openssl req -new -out "${ROOT}"/etc/psybnc/ssl/psybnc.req.pem -keyout "${ROOT}"/etc/psybnc/ssl/psybnc.key.pem -nodes
- einfo "Generating self-signed certificate..."
- openssl req -x509 -days 365 -in "${ROOT}"/etc/psybnc/ssl/psybnc.req.pem -key "${ROOT}"/etc/psybnc/ssl/psybnc.key.pem -out "${ROOT}"/etc/psybnc/ssl/psybnc.cert.pem
- einfo "Setting permissions on files..."
- chown root:psybnc "${ROOT}"/etc/psybnc/ssl/psybnc.{cert,key,req}.pem
- chmod 0640 "${ROOT}"/etc/psybnc/ssl/psybnc.{cert,key,req}.pem
- fi
-}
-
-pkg_postinst() {
- if use ssl
- then
- elog
- elog "Please run \"emerge --config =${CATEGORY}/${PF}\" to create needed SSL certificates."
- fi
- if use oidentd
- then
- elog
- elog "You have enabled oidentd-support. You will need to set"
- elog "up your /etc/oident.conf file before running psybnc. An example"
- elog "for psyBNC can be found under /etc/oidentd.conf.psybnc"
- fi
- elog
- elog "You can connect to psyBNC on port 23998 with user gentoo and password gentoo."
- elog "Please edit the psyBNC configuration at /etc/psybnc/psybnc.conf to change this."
- elog
- elog "To be able to reuse an existing psybnc.conf, you need to make sure that the"
- elog "old salt.h is available at /usr/share/psybnc/salt.h when compiling a new"
- elog "version of psyBNC. It is needed for password encryption and decryption."
- elog
-}