From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- net-irc/psybnc/Manifest | 2 +- net-irc/psybnc/psybnc-2.3.2.9-r3.ebuild | 167 -------------------------------- net-irc/psybnc/psybnc-2.3.2.9-r4.ebuild | 164 +++++++++++++++++++++++++++++++ 3 files changed, 165 insertions(+), 168 deletions(-) delete mode 100644 net-irc/psybnc/psybnc-2.3.2.9-r3.ebuild create mode 100644 net-irc/psybnc/psybnc-2.3.2.9-r4.ebuild (limited to 'net-irc/psybnc') diff --git a/net-irc/psybnc/Manifest b/net-irc/psybnc/Manifest index 82394e8102c3..9cf58526ac4d 100644 --- a/net-irc/psybnc/Manifest +++ b/net-irc/psybnc/Manifest @@ -9,5 +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-r3.ebuild 4673 BLAKE2B 7755b8b8b6eab39fb4720e304ff51622dad4dccac092488a181e6459efba499a81e50f8abd399834a6b361a3b2343ec4d40c112add1b67db234d2cce0a54fb83 SHA512 ab1d4a4e25085a63c35802da6930e8cf12f5bb09e0bd87bedc07a94535608ffec7b95672025bfc3d53a88de74f85fd2225c4e399f654de105e03a1933f16408c +EBUILD psybnc-2.3.2.9-r4.ebuild 4625 BLAKE2B 2571a726868eb83cce5f8bc571c30337c0ed34b4901401cc7cb285a444532a01013e5d985b357f5be46f62c9360506a5c0149d64d01e801a1863083cf846f912 SHA512 e2517c73bf434eaa1a826f2665ebb9f3748d6da4eb7ffd52c10296ebb6354e8669d9c6e26c51cb6cc1a15e80a3175fbceab72cc558bb26e1e5d5e8d5ca64626d MISC metadata.xml 360 BLAKE2B c3cbefd59c47603f27e542da342a855416fd79da62af69f30721929a7e25055ed5f5d46a2b99259589a0d0584fe68a837a4abdf2f0722d0eb3a1d02215f387a7 SHA512 7bcf4c1c7acd11782e8c2f19a179ac753967d4b6609aaf15b3b41ce7a492312db6006ba229b0169976f013d440f46d65c39cfa8f6276ef195339ff858958c135 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 -} diff --git a/net-irc/psybnc/psybnc-2.3.2.9-r4.ebuild b/net-irc/psybnc/psybnc-2.3.2.9-r4.ebuild new file mode 100644 index 000000000000..eaa17997c338 --- /dev/null +++ b/net-irc/psybnc/psybnc-2.3.2.9-r4.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +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=" + acct-group/psybnc + acct-user/psybnc + ssl? ( >=dev-libs/openssl-0.9.7d:= ) + oidentd? ( >=net-misc/oidentd-2.0 ) +" +RDEPEND="${DEPEND}" + +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 +} -- cgit v1.2.3