commit:     b43744922af93c7d8c6d51aa916031a8e39b8327
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 19 03:17:56 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 19 03:17:56 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4374492

net-ftp/proftpd: wire up verify-sig

Bug: https://bugs.gentoo.org/347598
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-ftp/proftpd/Manifest                |  1 +
 net-ftp/proftpd/proftpd-1.3.9-r2.ebuild | 14 ++++++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest
index e26fcb5447eb..690b5ce2a32d 100644
--- a/net-ftp/proftpd/Manifest
+++ b/net-ftp/proftpd/Manifest
@@ -6,6 +6,7 @@ DIST mod_vroot-0.9.12.tar.gz 112717 BLAKE2B 
60a59539ff9db190432a807f88236e37ab42
 DIST mod_vroot-0.9.4.tar.gz 29461 BLAKE2B 
eb4d3f6425ab0a1a61ca607e4655b5f8ff6ea342ca49d49598e7a4c5596382aa2c1d4e8228a1cdcfff324feb92dac80fcc58e35bbb77155069749afdd7cc41fb
 SHA512 
f5de392c9fe39f0a03b0783a7092bbfe17ea6db991f4b4e4a2d8f092f073d27ef2c64dd6484d5665b5abc808c0caba016d4fc3fab3da3810f5ebe5249bb4cbce
 DIST proftpd-1.3.8b.tar.gz 19752808 BLAKE2B 
3e8fdf5e0a27dd2284514a446496715e90c15d7be17824cceb4159e930d64705680320b33769f68ab6f3ce152322363aca6301190eea234de0bf4bb0cc6557e1
 SHA512 
291a91f220d711fefdbff18ef4e056080ad99c94dc4c71d0651f725932e1f2d9438fb75fbc2017e0f30a9a18a354b2d515788fbd538a80414f8c2d4eaaace396
 DIST proftpd-1.3.9.tar.gz 19837398 BLAKE2B 
30ad60148de79cd4198791ce89dc6c2204c75cb0966f7f17a0fefe25bf4678dd8ea7d373469fbf02f670ae0ca6879f4371ef97a65f4875ad131930d49d800b6f
 SHA512 
5cc53d7909f8b45718509b547aeffaf027cec66b1c34ed9f3a7de1ba561f9ca3d51bb991edb24c8f833bb47e0131619850a4bfd4fec509505769d123e78dc8b3
+DIST proftpd-1.3.9.tar.gz.asc 195 BLAKE2B 
521cf7ce628e73e1f25f6673f0c1ae9a17b29990c1c7f04193ba904f401ff30fc19472cc9e41069c537844bc32dae813f8397660a67f37d71e26fd15e2229b25
 SHA512 
4633b34400e3499d406a0f774904727b9b8fdebf4c6628c164820e3375f3bf7a66bcd88460ffab4e61e54d25d1c28aae676385cf279e2fab90714a819e2727ae
 DIST proftpd-mod-case-0.7.tar.gz 13184 BLAKE2B 
bf2118d9b8ed97a5b192b92b515d17ac7a0d75e154288e5afb3a1c3d686e635093df9501cc1c9b077f87c14326e31e8b9f751803dfca1eae9643f12333eb633f
 SHA512 
c08d13ef82fec36ae75aa3213dd02e0ce4045904849f422e152f039a9da66a45e4423751074b8bcf8ce347a40ce0e7bde798a85cbadc962fd872aeaa898261fc
 DIST proftpd-mod-diskuse-0.9.tar.gz 18596 BLAKE2B 
38c704c8607f0f93b080e77fe793cfe0125c88acc6f818ecb059c6c21a983e040ff5f2c1b91e34ef4ba2666a808d896018c364d1f12ea38f0c477e79bdaa2120
 SHA512 
d41976bf2810e4b783e775e8c767ca2030c3b5df116219fd31cbbac7feaf9922c315bf4ea092881b0d6cf43f2f4c5dbcae61be3c3a833058d12f962a3024b975
 DIST proftpd-mod-msg-0.4.1.tar.gz 8082 BLAKE2B 
970b46b19d25bac22ecb01495270a523997a0b7d5b53b9470b4744b919adcf03d5bcee2df85ba88c4a4c20a9fc30dc01459ffb58c5dae8e78a52a7379bf36f11
 SHA512 
38ea63b1d355e1e10a6a4477596bf3fa28529a871c9fb8dbf093b5317f0743ef9cb59b986d0b8c1c7ed932dad5d5d571883d596fad2d3b793431824db4487012

diff --git a/net-ftp/proftpd/proftpd-1.3.9-r2.ebuild 
b/net-ftp/proftpd/proftpd-1.3.9-r2.ebuild
index 161c155c3bbe..b5aac9e0fc22 100644
--- a/net-ftp/proftpd/proftpd-1.3.9-r2.ebuild
+++ b/net-ftp/proftpd/proftpd-1.3.9-r2.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit systemd tmpfiles toolchain-funcs
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/proftpd.asc
+inherit systemd tmpfiles toolchain-funcs verify-sig
 
 MOD_CASE="0.9.1"
 MOD_CLAMAV="0.14rc2"
@@ -27,6 +28,7 @@ SRC_URI="
        kerberos? ( 
https://downloads.sourceforge.net/gssmod/mod_gss-${MOD_GSS}.tar.gz )
        msg? ( 
https://github.com/Castaglia/${PN}-mod_msg/archive/v${MOD_MSG}.tar.gz -> 
mod_msg-${MOD_MSG}.tar.gz )
        vroot? ( 
https://github.com/Castaglia/${PN}-mod_vroot/archive/v${MOD_VROOT}.tar.gz -> 
mod_vroot-${MOD_VROOT}.tar.gz )
+       verify-sig? ( ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.gz.asc )
 "
 S="${WORKDIR}/${P/_/}"
 
@@ -83,6 +85,9 @@ RDEPEND="
        net-ftp/ftpbase
        selinux? ( sec-policy/selinux-ftp )
 "
+BDEPEND="
+       verify-sig? ( sec-keys/openpgp-keys-proftpd )
+"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.3.6-use-trace.patch
@@ -109,6 +114,11 @@ in_dir() {
        popd
 }
 
+src_unpack() {
+       use verify-sig && verify-sig_verify_detached 
"${DISTDIR}"/${P/_/}.tar.gz{,.asc}
+       default
+}
+
 src_prepare() {
        # Skip 'install-conf' / Support LINGUAS
        sed -i -e "/install-all/s/ install-conf//" Makefile.in || die

Reply via email to