[Git][debian-proftpd-team/proftpd][trixie] Debian #1103981 (first try).
Hilmar Preuße (@hilmar)
hille42 at debian.org
Wed Apr 30 23:00:47 BST 2025
Hilmar Preuße pushed to branch trixie at Debian ProFTPD Team / proftpd
Commits:
cc17cbcc by Hilmar Preuße at 2025-05-01T00:00:38+02:00
Debian #1103981 (first try).
- - - - -
2 changed files:
- debian/changelog
- debian/proftpd-core.postinst
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+proftpd-dfsg (1.3.8.c+dfsg-4) UNRELEASED; urgency=medium
+
+ * Add code to proftp postinst to force mod_ls.c & mod_xfer.c into
+ modules.conf in case of upgrades (Closes: #1103981).
+
+ -- Hilmar Preuße <hille42 at debian.org> Tue, 29 Apr 2025 22:22:09 +0200
+
proftpd-dfsg (1.3.8.c+dfsg-3) unstable; urgency=high
* Load modules mod_delay.c, mod_ls.c & mod_xfer.c in modules.conf,
=====================================
debian/proftpd-core.postinst
=====================================
@@ -97,6 +97,24 @@ add_mod_ident()
fi
}
+add_mod_ls()
+{
+ if [ -f $MODULES_NEW ] ; then
+ if ! egrep -qi "^[[:space:]]|#*LoadModule mod_ls.c" $MODULES_NEW ; then
+ perl -pi -e "s{^(ModulePath .*)}{\1\n# Debian #1103154: needed to make default config executable\n#\nLoadModule mod_ls.c\n}i;" $MODULES_NEW
+ fi
+ fi
+}
+
+add_mod_xfer()
+{
+ if [ -f $MODULES_NEW ] ; then
+ if ! egrep -qi "^[[:space:]]|#*LoadModule mod_xfer.c" $MODULES_NEW ; then
+ perl -pi -e "s{^(ModulePath .*)}{\1\n# Debian #1103154: needed to make default config executable\n#\nLoadModule mod_xfer.c\n}i;" $MODULES_NEW
+ fi
+ fi
+}
+
replace_file () {
file=$1
if [ ! -f ${file} ] ; then
@@ -181,6 +199,8 @@ if [ "$1" = "configure" ]; then
include_modules
identlookups
add_mod_ident
+ add_mod_ls
+ add_mod_xfer
# disable old cron jobs if needed
disable_script /etc/cron.monthly/proftpd
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/-/commit/cc17cbcc07ff5011c5784d7c9256b3b50d119e3d
--
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/-/commit/cc17cbcc07ff5011c5784d7c9256b3b50d119e3d
You're receiving this email because of your account on salsa.debian.org.
More information about the Pkg-proftpd-maintainers
mailing list