summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-04-11 22:41:20 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-04-11 22:52:31 +0200
commitccf77485fc1789d5ce706feaed6948344acb5195 (patch)
treee6b336f85937338b7906c663a4f1c505c05bc2e1 /net-irc
parentnet-irc/psybnc: migrate to GLEP 81 (diff)
downloadgentoo-ccf77485fc1789d5ce706feaed6948344acb5195.tar.gz
gentoo-ccf77485fc1789d5ce706feaed6948344acb5195.tar.bz2
gentoo-ccf77485fc1789d5ce706feaed6948344acb5195.zip
net-irc/psybnc: drop old version
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/psybnc/psybnc-2.3.2.9-r3.ebuild167
1 files changed, 0 insertions, 167 deletions
diff --git a/net-irc/psybnc/psybnc-2.3.2.9-r3.ebuild b/net-irc/psybnc/psybnc-2.3.2.9-r3.ebuild
deleted file mode 100644
index 5a3deaeb55fe..000000000000
--- a/net-irc/psybnc/psybnc-2.3.2.9-r3.ebuild
+++ /dev/null
@@ -1,167 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs user
-
-MY_PV="$(ver_rs 3 -)"
-PSYBNC_HOME="/var/lib/psybnc"
-
-DESCRIPTION="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"
-S="${WORKDIR}/${PN}"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE="ipv6 ssl oidentd scripting multinetwork"
-
-DEPEND="
- ssl? ( >=dev-libs/openssl-0.9.7d:= )
- oidentd? ( >=net-misc/oidentd-2.0 )
-"
-RDEPEND="${DEPEND}"
-
-pkg_setup() {
- enewgroup psybnc
- enewuser psybnc -1 -1 ${PSYBNC_HOME} psybnc
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}" || die
-
- # Useless files
- rm -f */INFO || die
-
- # Pretend we already have a certificate, we generate it in pkg_config
- touch key/psybnc.cert.pem || die
-
- if [[ -f "${EPREFIX}"/usr/share/psybnc/salt.h ]]; then
- einfo "Using existing salt.h for password encryption"
- cp "${EPREFIX}"/usr/share/psybnc/salt.h salt.h || die
- fi
-}
-
-src_prepare() {
- default
-
- eapply "${FILESDIR}/compile.diff"
- eapply "${FILESDIR}/ldflags-fix.patch"
-
- # add oidentd
- use oidentd && eapply "${FILESDIR}/${P}-oidentd.patch"
-
- # add scripting support
- use scripting && eapply "${FILESDIR}/${P}-scripting.patch"
-
- # add multinetwork support
- use multinetwork && eapply "${FILESDIR}/${P}-multinetwork.patch"
-
- # Prevent stripping the binary
- sed -i -e "/@strip/ d" tools/autoconf.c || die
-}
-
-src_compile() {
- if use ipv6; then
- rm -f tools/chkipv6.c || die
- fi
-
- if use ssl; then
- rm -f tools/chkssl.c || die
- fi
-
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
-}
-
-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 || die
- 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 "${EROOT}"/etc/psybnc/ssl/psybnc.cert.pem || -f "${EROOT}"/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 || die
-
- 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 || die
-
- einfo "Setting permissions on files..."
- chown root:psybnc "${ROOT}"/etc/psybnc/ssl/psybnc.{cert,key,req}.pem || die
- chmod 0640 "${ROOT}"/etc/psybnc/ssl/psybnc.{cert,key,req}.pem || die
- fi
-}
-
-pkg_postinst() {
- if use ssl; then
- elog
- elog "Please run \"emerge --config =${CATEGORY}/${PF}\" to create the needed SSL certificates."
- fi
-
- if use oidentd; then
- elog
- elog "You have enabled oidentd-support. You will need to set"
- elog "up your ${EROOT}/etc/oident.conf file before running psybnc. An example"
- elog "for psyBNC can be found under ${EROOT}/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 ${EROOT}/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 ${EROOT}/usr/share/psybnc/salt.h when compiling a new"
- elog "version of psyBNC. It is needed for password encryption and decryption."
- elog
-}