From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A516959CA6 for ; Mon, 21 Mar 2016 13:11:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5359AE0874; Mon, 21 Mar 2016 13:11:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78671E0874 for ; Mon, 21 Mar 2016 13:11:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43108340A22 for ; Mon, 21 Mar 2016 13:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 40260853 for ; Mon, 21 Mar 2016 13:11:46 +0000 (UTC) From: "Ian Delaney" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ian Delaney" Message-ID: <1458565894.b837168389dc2e3be892704b59c2b2cf8e3ade0d.idella4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/znc/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-irc/znc/znc-1.6.1.ebuild X-VCS-Directories: net-irc/znc/ X-VCS-Committer: idella4 X-VCS-Committer-Name: Ian Delaney X-VCS-Revision: b837168389dc2e3be892704b59c2b2cf8e3ade0d X-VCS-Branch: master Date: Mon, 21 Mar 2016 13:11:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b7f19ac0-7d0c-47ff-b216-161176abe559 X-Archives-Hash: d55a354086f93aff263a4f49d9f2e357 commit: b837168389dc2e3be892704b59c2b2cf8e3ade0d Author: Louis Sautier gmail com> AuthorDate: Sat Mar 19 17:19:15 2016 +0000 Commit: Ian Delaney gentoo org> CommitDate: Mon Mar 21 13:11:34 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8371683 net-irc/znc: remove old Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/1086 net-irc/znc/znc-1.6.1.ebuild | 186 ------------------------------------------- 1 file changed, 186 deletions(-) diff --git a/net-irc/znc/znc-1.6.1.ebuild b/net-irc/znc/znc-1.6.1.ebuild deleted file mode 100644 index dc7a99d..0000000 --- a/net-irc/znc/znc-1.6.1.ebuild +++ /dev/null @@ -1,186 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python{3_3,3_4} ) -inherit eutils python-single-r1 systemd user - -MY_PV=${PV/_/-} -GTEST_VER="1.7.0" -GTEST_URL="https://googletest.googlecode.com/files/gtest-${GTEST_VER}.zip" -DESCRIPTION="An advanced IRC Bouncer" - -SRC_URI="http://znc.in/releases/${PN}-${MY_PV}.tar.gz - test? ( ${GTEST_URL} )" -KEYWORDS="~amd64 ~arm ~x86" - -HOMEPAGE="http://znc.in" -LICENSE="GPL-2" -SLOT="0" -IUSE="daemon debug ipv6 perl python ssl sasl tcl test" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - dev-libs/icu - sys-libs/zlib - perl? ( >=dev-lang/perl-5.10 ) - python? ( ${PYTHON_DEPS} ) - sasl? ( >=dev-libs/cyrus-sasl-2 ) - ssl? ( >=dev-libs/openssl-0.9.7d:0 ) - tcl? ( dev-lang/tcl:0= ) -" -DEPEND="${RDEPEND} - virtual/pkgconfig - perl? ( - >=dev-lang/swig-2.0.12 - ) - python? ( - >=dev-lang/swig-2.0.12 - ) -" - -S=${WORKDIR}/${PN}-${MY_PV} - -PATCHES=( - "${FILESDIR}"/${PN}-1.6.1-systemwideconfig.patch - "${FILESDIR}"/${PN}-1.6.1-create-pidfile-per-default.patch -) - -ZNC_DATADIR="${ZNC_DATADIR:-"/var/lib/znc"}" - -pkg_setup() { - if use python; then - python-single-r1_pkg_setup - fi - if use daemon; then - enewgroup ${PN} - enewuser ${PN} -1 -1 /dev/null ${PN} - fi -} - -src_unpack() { - default - - if use test; then - cd "${S}"/test || die "Failed to chdir into '${S}/test'" - unpack ${GTEST_URL##*/} - mv gtest-${GTEST_VER} gtest \ - || die "Failed to rename '${S}/test/gtest-${GTEST_VER}' dir" - fi -} - -src_prepare() { - epatch ${PATCHES[@]} -} - -src_configure() { - econf \ - --with-systemdsystemunitdir=$(systemd_get_unitdir) \ - $(use_enable debug) \ - $(use_enable ipv6) \ - $(use_enable perl) \ - $(use python && echo "--enable-python=python3") \ - $(use_enable sasl cyrus) \ - $(use_enable ssl openssl) \ - $(use_enable tcl tcl) \ - $(use_with test gtest "${S}/test/gtest") -} - -src_install() { - emake install DESTDIR="${D%/}" - dodoc NOTICE README.md - if use daemon; then - newinitd "${FILESDIR}"/znc.initd-r1 znc - newconfd "${FILESDIR}"/znc.confd-r1 znc - fi -} - -pkg_postinst() { - if use !daemon; then - elog - elog "Run 'znc --makeconf' as the user you want to run ZNC as" - elog "to make a configuration file" - elog - else - elog - elog "An init-script was installed in /etc/init.d" - elog "A config file was installed in /etc/conf.d" - if [[ ! -d "${EROOT}${ZNC_DATADIR}" ]]; then - elog - elog "Run 'emerge --config znc' under portage" - elog "or 'cave config znc' under paludis to configure ZNC" - elog "as a system-wide daemon." - elog - elog "To generate a new SSL certificate, run:" - elog " znc --system-wide-config-as znc --makepem -d ${ZNC_DATADIR}" - elog "as root" - elog - elog "If migrating from a user-based install" - elog "you can use your existing config files:" - elog " mkdir ${ZNC_DATADIR}" - elog " mv /home/\$USER/.znc/* ${ZNC_DATADIR}" - elog " rm -rf /home/\$USER/.znc" - elog " chown -R znc:znc ${ZNC_DATADIR}" - elog - elog "If you already have znc set up and want take advantage of the" - elog "init script but skip of all the above, you can also edit" - elog " /etc/conf.d/znc" - elog "and adjust the variables to your current znc user and config" - elog "location." - elog - elog "Please make sure that your existing configuration contains" - elog " PidFile = /run/znc/znc.pid" - elog "or that PidFile value matches the one in /etc/conf.d/znc" - if [[ -d "${EROOT}"/etc/znc ]]; then - elog - ewarn "/etc/znc exists on your system." - ewarn "Due to the nature of the contents of that folder," - ewarn "we have changed the default configuration to use" - ewarn " ${ZNC_DATADIR}" - ewarn "please move /etc/znc to ${ZNC_DATADIR}" - ewarn "or adjust /etc/conf.d/znc" - fi - else - elog "Existing config detected in ${ZNC_DATADIR}" - if ! systemd_is_booted; then - elog - elog "Please make sure that your existing configuration contains" - elog " PidFile = /run/znc/znc.pid" - elog "or that PidFile value matches the one in /etc/conf.d/znc" - else - elog "You're good to go :)" - fi - fi - elog - fi -} - -pkg_config() { - if use daemon && ! [[ -d "${EROOT}${ZNC_DATADIR}" ]]; then - einfo "Press ENTER to interactively create a new configuration file for znc." - einfo "To abort, press Control-C" - read - mkdir -p "${EROOT}${ZNC_DATADIR}" || die - chown -R ${PN}:${PN} "${EROOT}${ZNC_DATADIR}" || - die "Setting permissions failed" - "${EROOT}"/usr/bin/znc --system-wide-config-as znc -c -r -d "${EROOT}${ZNC_DATADIR}" || - die "Config failed" - echo - einfo "To start znc, run '/etc/init.d/znc start'" - einfo "or add znc to a runlevel:" - einfo " rc-update add znc default" - else - if use daemon; then - ewarn "${ZNC_DATADIR} already exists, aborting to avoid damaging" - ewarn "any existing configuration. If you are sure you want" - ewarn "to generate a new configuration, remove the folder" - ewarn "and try again." - else - ewarn "To configure znc as a system-wide daemon you have to" - ewarn "enable the 'daemon' use flag." - fi - fi -}