public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-vpn/peervpn/
@ 2017-09-14 21:58 Zac Medico
  0 siblings, 0 replies; 4+ messages in thread
From: Zac Medico @ 2017-09-14 21:58 UTC (permalink / raw
  To: gentoo-commits

commit:     d4a8e93f7acac4b31eec56c557eaa2e8877efed0
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 14 21:57:13 2017 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Sep 14 21:57:13 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4a8e93f

net-vpn/peervpn: tighten pkg_preinst chown/chmod calls

Package-Manager: Portage-2.3.8, Repoman-2.3.2

 net-vpn/peervpn/peervpn-0.044-r4.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/net-vpn/peervpn/peervpn-0.044-r4.ebuild b/net-vpn/peervpn/peervpn-0.044-r4.ebuild
index 158c4a4da2b..27b19165e23 100644
--- a/net-vpn/peervpn/peervpn-0.044-r4.ebuild
+++ b/net-vpn/peervpn/peervpn-0.044-r4.ebuild
@@ -57,9 +57,11 @@ src_install() {
 pkg_preinst() {
 	if ! has_version '>=net-vpn/peervpn-0.044-r4' && \
 		[[ -d ${EROOT}etc/${PN} &&
-		$(find "${EROOT}etc/peervpn" ! -user root -print) ]]; then
+		$(find "${EROOT}etc/${PN}" -user "${PN}" ! -type l -print) ]]; then
 		ewarn "Tightening '${EROOT}etc/${PN}' permissions for bug 629418"
-		chown -R root:${PN} "${EROOT}etc/${PN}" || die
-		chmod -R g+rX-w,o-rwx "${EROOT}etc/${PN}" || die
+		while read -r -d ''; do
+			chown root:${PN} "${REPLY}" || die
+			chmod g+rX-w,o-rwx "${REPLY}" || die
+		done < <(find "${EROOT}etc/${PN}" -user "${PN}" ! -type l -print0)
 	fi
 }


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-vpn/peervpn/
@ 2019-01-02 22:51 Zac Medico
  0 siblings, 0 replies; 4+ messages in thread
From: Zac Medico @ 2019-01-02 22:51 UTC (permalink / raw
  To: gentoo-commits

commit:     46752b8bcb7b83cc5f1fc37d9d84b244f0728dec
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  2 22:49:13 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Jan  2 22:49:21 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46752b8b

net-vpn/peervpn: require openssl 1.0.x or libressl (bug 674344)

Upstream does not support openssl 1.1.x.

Reported-by: Toralf Förster <toralf <AT> gentoo.org>
Closes: https://bugs.gentoo.org/674344
Package-Manager: Portage-2.3.53, Repoman-2.3.12
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 net-vpn/peervpn/peervpn-0.044-r4.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net-vpn/peervpn/peervpn-0.044-r4.ebuild b/net-vpn/peervpn/peervpn-0.044-r4.ebuild
index 27b19165e23..7d270551df8 100644
--- a/net-vpn/peervpn/peervpn-0.044-r4.ebuild
+++ b/net-vpn/peervpn/peervpn-0.044-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -13,8 +13,9 @@ SRC_URI="https://github.com/peervpn/peervpn/archive/${EGIT_COMMIT}.tar.gz -> ${P
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
-RDEPEND="dev-libs/openssl:0="
+IUSE="libressl"
+RDEPEND="libressl? ( dev-libs/libressl:0= )
+	!libressl? ( <dev-libs/openssl-1.1:0= )"
 DEPEND="${RDEPEND}"
 
 S=${WORKDIR}/${PN}-${EGIT_COMMIT}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-vpn/peervpn/
@ 2020-05-04  4:05 Zac Medico
  0 siblings, 0 replies; 4+ messages in thread
From: Zac Medico @ 2020-05-04  4:05 UTC (permalink / raw
  To: gentoo-commits

commit:     41725d13927f9012e1758ef662f3e5ba351423ac
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon May  4 04:00:28 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon May  4 04:02:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41725d13

net-vpn/peervpn: 0.044-r5 revbump for bug 630972

Tighten up permission adjustments related to bug 629418.

Bug: https://bugs.gentoo.org/630972
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 ...eervpn-0.044-r4.ebuild => peervpn-0.044-r5.ebuild} | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/net-vpn/peervpn/peervpn-0.044-r4.ebuild b/net-vpn/peervpn/peervpn-0.044-r5.ebuild
similarity index 67%
rename from net-vpn/peervpn/peervpn-0.044-r4.ebuild
rename to net-vpn/peervpn/peervpn-0.044-r5.ebuild
index 0415a2741e1..a768d8ee2ef 100644
--- a/net-vpn/peervpn/peervpn-0.044-r4.ebuild
+++ b/net-vpn/peervpn/peervpn-0.044-r5.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 inherit systemd toolchain-funcs user
 
@@ -57,12 +57,19 @@ src_install() {
 
 pkg_preinst() {
 	if ! has_version '>=net-vpn/peervpn-0.044-r4' && \
-		[[ -d ${EROOT}etc/${PN} &&
-		$(find "${EROOT}etc/${PN}" -user "${PN}" ! -type l -print) ]]; then
-		ewarn "Tightening '${EROOT}etc/${PN}' permissions for bug 629418"
+		[[ -d ${EROOT}/etc/${PN} && ! -L ${EROOT}/etc/${PN} &&
+		$(find "${EROOT}/etc/${PN}" -maxdepth 1 -user "${PN}" ! -type l -print) ]]; then
+		ewarn "Tightening '${EROOT}/etc/${PN}' permissions for bug 629418"
+		# Tighten the parent directory permissions first, in
+		# order to protect against race conditions involving a
+		# less-privileged user.
+		chown root:${PN} "${EROOT}/etc/${PN}"
+		chmod g+rX-w,o-rwx "${EROOT}/etc/${PN}"
+		# Don't chown/chmod the referent of a symlink
+		# owned by a less-privileged user.
 		while read -r -d ''; do
 			chown root:${PN} "${REPLY}" || die
 			chmod g+rX-w,o-rwx "${REPLY}" || die
-		done < <(find "${EROOT}etc/${PN}" -user "${PN}" ! -type l -print0)
+		done < <(find "${EROOT}/etc/${PN}" -mindepth 1 -maxdepth 1 -user "${PN}" ! -type l -print0)
 	fi
 }


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-vpn/peervpn/
@ 2020-09-11 17:13 Zac Medico
  0 siblings, 0 replies; 4+ messages in thread
From: Zac Medico @ 2020-09-11 17:13 UTC (permalink / raw
  To: gentoo-commits

commit:     02c01055966dd92ad7a1781512a84296b1e8c700
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 11 17:10:09 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Sep 11 17:13:03 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02c01055

net-vpn/peervpn: Remove self as maintainer

Upstream is inactive and does not support OpenSSL 1.1.

Bug: https://bugs.gentoo.org/741614
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 net-vpn/peervpn/metadata.xml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net-vpn/peervpn/metadata.xml b/net-vpn/peervpn/metadata.xml
index d4216eaa714..3e0eb5a02d5 100644
--- a/net-vpn/peervpn/metadata.xml
+++ b/net-vpn/peervpn/metadata.xml
@@ -1,9 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <maintainer type="person">
-    <email>zmedico@gentoo.org</email>
-  </maintainer>
+  <!-- maintainer-needed -->
   <upstream>
     <remote-id type="github">peervpn/peervpn</remote-id>
   </upstream>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-11 17:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-11 17:13 [gentoo-commits] repo/gentoo:master commit in: net-vpn/peervpn/ Zac Medico
  -- strict thread matches above, loose matches on Subject: below --
2020-05-04  4:05 Zac Medico
2019-01-02 22:51 Zac Medico
2017-09-14 21:58 Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox