|
|
|
@ -107,3 +107,19 @@ AutoReqProv: no
|
|
|
|
|
%clean |
|
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
|
|
|
|
|
%post |
|
|
|
|
%if "%{with_pam}" == "yes" |
|
|
|
|
# add PAM configuration entry |
|
|
|
|
if [ $1 -eq 1 ]; then |
|
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -a -s -n "pureftpd" |
|
|
|
|
fi |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%preun |
|
|
|
|
%if "%{with_pam}" == "yes" |
|
|
|
|
# remove PAM configuration entry |
|
|
|
|
if [ $1 -eq 0 ]; then |
|
|
|
|
$RPM_INSTALL_PREFIX/sbin/pamtool -r -s -n "pureftpd" |
|
|
|
|
fi |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|