/[smecontribs]/rpms/phpki-ng/contribs10/phpki-ng.spec
ViewVC logotype

Diff of /rpms/phpki-ng/contribs10/phpki-ng.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.15 by jpp, Wed Dec 14 18:32:49 2022 UTC Revision 1.18 by jpp, Wed Dec 28 20:13:45 2022 UTC
# Line 4  Line 4 
4    
5  %define         name phpki-ng  %define         name phpki-ng
6  %define         version 0.84  %define         version 0.84
7  %define         release 14  %define         release 16
8  Summary:        Phpki is a simple certificate management suite  Summary:        Phpki is a simple certificate management suite
9  Name:           %{name}  Name:           %{name}
10  Version:        %{version}  Version:        %{version}
# Line 23  Patch6:         phpki-ng-0.84-fix-downlo Line 23  Patch6:         phpki-ng-0.84-fix-downlo
23  Patch7:         phpki-ng-0.84-fix-html-syntax-in-help.patch  Patch7:         phpki-ng-0.84-fix-html-syntax-in-help.patch
24  Patch8:         phpki-ng-0.84-fix-final-redirect.patch  Patch8:         phpki-ng-0.84-fix-final-redirect.patch
25  Patch9:         phpki-ng-bz12272-bz12273-crl-whitespacepass.patch  Patch9:         phpki-ng-bz12272-bz12273-crl-whitespacepass.patch
26    Patch10:        phpki-ng-bz12274-regex-secu.patch
27    
28  BuildArch:      noarch  BuildArch:      noarch
29  BuildRoot:      /var/tmp/%{name}-%{version}  BuildRoot:      /var/tmp/%{name}-%{version}
# Line 45  With it, you may create and centrally ma Line 46  With it, you may create and centrally ma
46  e-mail clients, SSL servers, and VPN applications.  e-mail clients, SSL servers, and VPN applications.
47    
48  %changelog  %changelog
49    * Sat Dec 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.84-16.sme
50    - add dl_crl_pem.php [SME: 12272]
51    
52    * Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.84-15.sme
53    - fix regex and potential code injection [SME: 12274]
54    
55  * Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.84-14.sme  * Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.84-14.sme
56  - add easy and safe access to crl download [SME: 12272]  - add easy and safe access to crl download [SME: 12272]
57  - fix revoke certificate failing on whitespace pass [SME: 12273]  - fix revoke certificate failing on whitespace pass [SME: 12273]
# Line 217  e-mail clients, SSL servers, and VPN app Line 224  e-mail clients, SSL servers, and VPN app
224  %patch7 -p1  %patch7 -p1
225  %patch8 -p1  %patch8 -p1
226  %patch9 -p1  %patch9 -p1
227    %patch10 -p1
228    
229  %build  %build
230  %{__mkdir_p} root/opt/phpki/html  %{__mkdir_p} root/opt/phpki/html
# Line 266  cd .. Line 274  cd ..
274  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
275    
276  %pre  %pre
277    if ! /usr/bin/id phpki &>/dev/null; then
278      echo "Creating phpki user"
279      /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \
280                    %logmsg "Unexpected error adding user \"phpki\". Abort installation."
281    fi
282    
283  echo "******************************************************"  echo "******************************************************"
284  echo "* "  echo "* "
285  echo "*       !!! IMPORTANT - READ THIS NOW !!! "  echo "*       !!! IMPORTANT - READ THIS NOW !!! "
# Line 312  else Line 326  else
326  fi  fi
327    
328    
   
 if ! /usr/bin/id phpki &>/dev/null; then  
   echo "Creating phpki user"  
   /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \  
                 %logmsg "Unexpected error adding user \"phpki\". Abort installation."  
 fi  
   
329  %preun  %preun
330    
331    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed