]> git.pld-linux.org Git - packages/proftpd.git/blobdiff - proftpd.spec
- trigger to change configuration - remove obsolete option
[packages/proftpd.git] / proftpd.spec
index 7b014c4d3fac5138b724e70b01a1d585ed7f20b0..8767be3b0d0c307c78baab08dee70eb3a7078dc6 100644 (file)
@@ -16,7 +16,7 @@ Summary(pt_BR):       Servidor FTP profissional, com sintaxe de configura
 Summary(zh_CN):        Ò×ÓÚ¹ÜÀíµÄ,°²È«µÄ FTP ·þÎñÆ÷
 Name:          proftpd
 Version:       1.2.10
-Release:       1
+Release:       1.1
 Epoch:         1
 License:       GPL v2+
 Group:         Daemons
@@ -278,6 +278,16 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del proftpd
 fi
 
+%triggerpostun -- %{name}-inetd <= 1.2.10-1
+echo "Changing deprecated config uptions"
+cp /etc/ftpd/proftpd.conf /etc/ftpd/proftpd.conf.backup
+sed -i -e 's/AuthPAMAuthoritative\b/AuthPAM/' /etc/ftpd/proftpd.conf
+
+%triggerpostun -- %{name}-standalone <= 1.2.10-1
+echo "Changing deprecated config uption"
+cp /etc/ftpd/proftpd.conf /etc/ftpd/proftpd.conf.backup
+sed -i -e 's/AuthPAMAuthoritative\b/AuthPAM/' /etc/ftpd/proftpd.conf
+
 %files common
 %defattr(644,root,root,755)
 %doc sample-configurations/*.conf CREDITS ChangeLog NEWS
This page took 0.077853 seconds and 4 git commands to generate.