commit:     8556914c29cb361a218796e3b68866eac5876d25
Author:     Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 17:12:25 2026 +0000
Commit:     Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 17:12:25 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8556914c

www-servers/caddy: remove unused patch

Signed-off-by: Michael Mair-Keimberger <mm1ke <AT> gentoo.org>

 .../remove-binary-altering-commands-2.7.5.patch    | 61 ----------------------
 1 file changed, 61 deletions(-)

diff --git 
a/www-servers/caddy/files/remove-binary-altering-commands-2.7.5.patch 
b/www-servers/caddy/files/remove-binary-altering-commands-2.7.5.patch
deleted file mode 100644
index 54d2c4d91df9..000000000000
--- a/www-servers/caddy/files/remove-binary-altering-commands-2.7.5.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-# Remove commands which can modify binary outside of Portage.
-# Inspired from:
-# 
https://src.fedoraproject.org/rpms/caddy/blob/rawhide/f/0001-Disable-commands-that-can-alter-the-binary.patch
-# 
https://salsa.debian.org/go-team/packages/caddy/-/blob/debian/sid/debian/patches/0005-Remove-obsolote-subcommands.patch?ref_type=heads
---- a/cmd/commands.go
-+++ a/cmd/commands.go
-@@ -393,54 +393,10 @@
-                       cmd.RunE = WrapCommandFuncForCobra(cmdFmt)
-               },
-       })
- 
-       RegisterCommand(Command{
--              Name:  "upgrade",
--              Short: "Upgrade Caddy (EXPERIMENTAL)",
--              Long: `
--Downloads an updated Caddy binary with the same modules/plugins at the
--latest versions. EXPERIMENTAL: May be changed or removed.
--`,
--              CobraFunc: func(cmd *cobra.Command) {
--                      cmd.Flags().BoolP("keep-backup", "k", false, "Keep the 
backed up binary, instead of deleting it")
--                      cmd.RunE = WrapCommandFuncForCobra(cmdUpgrade)
--              },
--      })
--
--      RegisterCommand(Command{
--              Name:  "add-package",
--              Usage: "<packages...>",
--              Short: "Adds Caddy packages (EXPERIMENTAL)",
--              Long: `
--Downloads an updated Caddy binary with the specified packages (module/plugin)
--added. Retains existing packages. Returns an error if the any of packages are
--already included. EXPERIMENTAL: May be changed or removed.
--`,
--              CobraFunc: func(cmd *cobra.Command) {
--                      cmd.Flags().BoolP("keep-backup", "k", false, "Keep the 
backed up binary, instead of deleting it")
--                      cmd.RunE = WrapCommandFuncForCobra(cmdAddPackage)
--              },
--      })
--
--      RegisterCommand(Command{
--              Name:  "remove-package",
--              Func:  cmdRemovePackage,
--              Usage: "<packages...>",
--              Short: "Removes Caddy packages (EXPERIMENTAL)",
--              Long: `
--Downloads an updated Caddy binaries without the specified packages 
(module/plugin).
--Returns an error if any of the packages are not included.
--EXPERIMENTAL: May be changed or removed.
--`,
--              CobraFunc: func(cmd *cobra.Command) {
--                      cmd.Flags().BoolP("keep-backup", "k", false, "Keep the 
backed up binary, instead of deleting it")
--                      cmd.RunE = WrapCommandFuncForCobra(cmdRemovePackage)
--              },
--      })
--
--      RegisterCommand(Command{
-               Name:  "manpage",
-               Usage: "--directory <path>",
-               Short: "Generates the manual pages for Caddy commands",
-               Long: `
- Generates the manual pages for Caddy commands into the designated directory

Reply via email to