From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-900807-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id D7E44138330
	for <garchives@archives.gentoo.org>; Sun, 11 Sep 2016 04:30:02 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 14196E0BE4;
	Sun, 11 Sep 2016 04:30:02 +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 D6EC7E0BE4
	for <gentoo-commits@lists.gentoo.org>; Sun, 11 Sep 2016 04:30:01 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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 5F6073407AF
	for <gentoo-commits@lists.gentoo.org>; Sun, 11 Sep 2016 04:30:00 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C3CCA247C
	for <gentoo-commits@lists.gentoo.org>; Sun, 11 Sep 2016 04:29:57 +0000 (UTC)
From: "Nathan Phillip Brink" <binki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Nathan Phillip Brink" <binki@gentoo.org>
Message-ID: <1473568189.105756ed134874e41069815419a9db85e89014e2.binki@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/unrealircd/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-irc/unrealircd/unrealircd-4.0.5.ebuild
X-VCS-Directories: net-irc/unrealircd/
X-VCS-Committer: binki
X-VCS-Committer-Name: Nathan Phillip Brink
X-VCS-Revision: 105756ed134874e41069815419a9db85e89014e2
X-VCS-Branch: master
Date: Sun, 11 Sep 2016 04:29:57 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: d673c52c-8456-4a01-949f-5fcc0acf366a
X-Archives-Hash: ab97c09fd291552357ca67bc4e913f0d

commit:     105756ed134874e41069815419a9db85e89014e2
Author:     Nathan Phillip Brink <binki <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 11 04:29:49 2016 +0000
Commit:     Nathan Phillip Brink <binki <AT> gentoo <DOT> org>
CommitDate: Sun Sep 11 04:29:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=105756ed

net-irc/unrealircd: ssl is required in the 4.x branch for bug #593202.

Package-Manager: portage-2.2.28

 net-irc/unrealircd/unrealircd-4.0.5.ebuild | 37 +++++++++++++++---------------
 1 file changed, 18 insertions(+), 19 deletions(-)

diff --git a/net-irc/unrealircd/unrealircd-4.0.5.ebuild b/net-irc/unrealircd/unrealircd-4.0.5.ebuild
index b05a984..1740fed 100644
--- a/net-irc/unrealircd/unrealircd-4.0.5.ebuild
+++ b/net-irc/unrealircd/unrealircd-4.0.5.ebuild
@@ -4,6 +4,7 @@
 
 EAPI=6
 
+SSL_CERT_MANDATORY=1
 inherit eutils ssl-cert versionator multilib user
 
 DESCRIPTION="An advanced Internet Relay Chat daemon"
@@ -14,9 +15,9 @@ SLOT="0"
 LICENSE="GPL-2"
 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux"
 IUSE="class-nofakelag curl +extban-stacking +operoverride operoverride-verify +prefixaq
-	showlistmodes shunnotices ssl topicisnuhost +usermod"
+	showlistmodes shunnotices topicisnuhost +usermod"
 
-RDEPEND="ssl? ( dev-libs/openssl:= )
+RDEPEND="dev-libs/openssl:=
 	curl? ( net-misc/curl[adns] )
 	dev-libs/libpcre2
 	dev-libs/tre
@@ -69,9 +70,9 @@ src_configure() {
 		--with-system-pcre2 \
 		--with-system-tre \
 		--enable-dynamic-linking \
+		--enable-ssl="${EPREFIX}"/usr \
 		$(use_enable curl libcurl "${EPREFIX}"/usr) \
 		$(use_enable prefixaq) \
-		$(use_enable ssl ssl "${EPREFIX}"/usr) \
 		$(use_with showlistmodes) \
 		$(use_with topicisnuhost) \
 		$(use_with shunnotices) \
@@ -104,7 +105,7 @@ src_install() {
 	doins -r doc/conf/{aliases,help}
 	doins doc/conf/*.conf
 	newins doc/conf/examples/example.conf ${PN}.conf
-	use ssl && keepdir /etc/${PN}/ssl
+	keepdir /etc/${PN}/ssl
 
 	dodoc \
 		doc/{Changes.old,Changes.older,RELEASE-NOTES} \
@@ -116,7 +117,7 @@ src_install() {
 	# config should be read-only
 	fperms -R 0640 /etc/${PN}
 	fperms 0750 /etc/${PN}{,/aliases,/help}
-	use ssl && fperms 0750 /etc/${PN}/ssl
+	fperms 0750 /etc/${PN}/ssl
 	# state is editable but not owned by unrealircd directly
 	fperms 0770 /var/log/${PN}
 	fperms 0770 /var/lib/${PN}{,/tmp}
@@ -172,20 +173,18 @@ pkg_preinst() {
 pkg_postinst() {
 	# Move docert call from src_install() to install_cert in pkg_postinst for
 	# bug #201682
-	if use ssl ; then
-		if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then
-			if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then
-				ewarn "The location ${PN} looks for SSL certificates has changed"
-				ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."
-				ewarn "Please move your existing certificates."
-			else
-				(
-					umask 0037
-					install_cert /etc/${PN}/ssl/server.cert
-					chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*
-					ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem
-				)
-			fi
+	if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then
+		if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then
+			ewarn "The location ${PN} looks for SSL certificates has changed"
+			ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."
+			ewarn "Please move your existing certificates."
+		else
+			(
+				umask 0037
+				install_cert /etc/${PN}/ssl/server.cert
+				chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*
+				ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem
+			)
 		fi
 	fi