/[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.1 by jcrisp, Tue Nov 24 16:17:15 2020 UTC Revision 1.11 by jcrisp, Tue Apr 6 00:24:42 2021 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 1  %define         release 10
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 14  URL:           http://sourceforge.net/projects/p Line 14  URL:           http://sourceforge.net/projects/p
14  Group:          SMEserver/addon  Group:          SMEserver/addon
15  #wget           http://www.fooweb.com/downloads/foo-3.6.431.tar.gz  #wget           http://www.fooweb.com/downloads/foo-3.6.431.tar.gz
16  Source:         %{name}-%{version}.tar.gz  Source:         %{name}-%{version}.tar.gz
17    Patch1:         phpki-ng-0.84-fix-for-php74-code-tidy.patch
18    Patch2:         phpki-ng-0.84-fix-pregmatch-revoke-certs.patch
19    Patch3:         phpki-ng-0.84-fix-crl.patch
20    Patch4:         phpki-ng-0.84-fix-missing-slash-certtype-detection.patch
21    Patch5:         phpki-ng-0.84-fix-html-directory-check.patch
22    Patch6:         phpki-ng-0.84-fix-download-cert.patch
23    
24  BuildArch:      noarch  BuildArch:      noarch
25  BuildRoot:      /var/tmp/%{name}-%{version}  BuildRoot:      /var/tmp/%{name}-%{version}
26    
27  BuildRequires:  e-smith-devtools  BuildRequires:  e-smith-devtools
28    
29  Requires:       e-smith-release >= 9.0  Requires:       e-smith-release >= 10.0
30  Requires:       php  Requires:       php74-php-fpm
31  Requires:       openssl  Requires:       openssl
32  Requires:       openvpn  Requires:       openvpn
33  Conflicts:      phpki  Conflicts:      phpki
# Line 30  AutoReqProv:   no Line 36  AutoReqProv:   no
36  %description  %description
37  http://sourceforge.net/projects/phpki/  http://sourceforge.net/projects/phpki/
38  https://github.com/radicand/phpki  https://github.com/radicand/phpki
39    https://github.com/reetp/phpki
40  PHPki is an Open Source Web application for managing a multi-agency PKI for HIPAA compliance.  PHPki is an Open Source Web application for managing a multi-agency PKI for HIPAA compliance.
41  With it, you may create and centrally manage X.509 certificates for use with S/MIME enabled  With it, you may create and centrally manage X.509 certificates for use with S/MIME enabled
42  e-mail clients, SSL servers, and VPN applications.  e-mail clients, SSL servers, and VPN applications.
43    
44  %changelog  %changelog
45    * Tue Apr 06 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-9.sme
46    - And tidy up the copying wording. [SME: 11192]
47    - Credit to Terry Fage for persisting with testing
48    
49    * Mon Apr 05 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-9.sme
50    - Really fix the copy this time [SME: 11192]
51    
52    * Sat Apr 03 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-8.sme
53    - copy phpki-store as a backup instead of move [SME: 11192]
54    
55    * Thu Apr 01 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-7.sme
56    - Fix broken Download Certificate in Cert generation [SME: 11513]
57    
58    * Thu Mar 18 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-6.sme
59    - Update html header info [SME: 11192]
60    - Remove obsolete align
61    - Remove accidentally duplicated html
62    - Fix typo
63    - Fix directory check
64    - move function flush_exec to functions file
65    
66    * Tue Mar 09 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-5.sme
67    - Fix missing / [SME:11435]
68    - Update cert type detection for renew [SME: 11436]
69    - Code formatting
70    
71    * Mon Mar 08 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-4.sme
72    - Fix crl creation [SME: 11141]
73    - Extra notes in setup page
74    
75    * Mon Mar 08 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-3.sme
76    - Fix Typo in certificate password [SME: 11435]
77    - Fix typos and preg_match issues [SME: 11436]
78    - Add Certificate creation notification [SME: 11437]
79    - Bit of file formatting
80    
81    * Wed Mar 03 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-2.sme
82    - Change version to 0.84
83    - Fix undefined constant errors [SME: 11397]
84    - fix tempdir [SME: 11398]
85    - update code to be PHP 7.4+ compliant
86    - format with CodeSniff to PSR2
87    
88  * Wed Apr 01 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-1.sme  * Wed Apr 01 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-1.sme
89  - Rename to php-ng 0.84  - Rename to php-ng 0.84 [SME: 11192]
90  - Fix date sorting in certificates  - Fix date sorting in certificates
91    
92  * Thu Mar 19 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.83-9.sme  * Thu Mar 19 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.83-9.sme
# Line 68  e-mail clients, SSL servers, and VPN app Line 118  e-mail clients, SSL servers, and VPN app
118  * Fri Feb 28 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.83-1.sme  * Fri Feb 28 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.83-1.sme
119  - Update to 0.83  - Update to 0.83
120    
121  * Sat Nov 17 2018 Terry Fage <tfage@yahoo.com.au>  * Sat Nov 17 2018 Terry Fage <tfage@yahoo.com.au> 0.82-19.sme
122  - Fix preg_match warnings [SME:10622]  - Fix preg_match warnings [SME:10622]
123    
124  * Mon Oct 8 2018 Daniel B. <daniel@firewall-services.com> 0.82-18.sme  * Mon Oct 8 2018 Daniel B. <daniel@firewall-services.com> 0.82-18.sme
# Line 140  e-mail clients, SSL servers, and VPN app Line 190  e-mail clients, SSL servers, and VPN app
190    
191  %prep  %prep
192  %setup  -c -n %{name}  %setup  -c -n %{name}
193    %patch1 -p1
194    %patch2 -p1
195    %patch3 -p1
196    %patch4 -p1
197    %patch5 -p1
198    %patch6 -p1
199    
200  %build  %build
201  %{__mkdir_p} root/opt/phpki/html  %{__mkdir_p} root/opt/phpki/html
# Line 154  cat <<"HERE" > root/%{_sysconfdir}/cron. Line 210  cat <<"HERE" > root/%{_sysconfdir}/cron.
210  #!/bin/bash  #!/bin/bash
211    
212  cd /opt/phpki/bin  cd /opt/phpki/bin
213  php ./gen_crl.php 2>&1 > /dev/null  /usr/bin/php74 ./gen_crl.php 2>&1 > /dev/null
214    
215  HERE  HERE
216    
# Line 198  echo "*  This contrib now has higher lev Line 254  echo "*  This contrib now has higher lev
254  echo "* "  echo "* "
255  echo "*  We cannot upgrade your existing certificates"  echo "*  We cannot upgrade your existing certificates"
256  echo "* "  echo "* "
257  echo "*  If we detect an existing certificate store"  echo "*  If you have existing certificates you want to use"
258  echo "*  we are going to move it"  echo "*  then start with a new CA, backup up, and then restore"
259    echo "*  your phpki-store directory in /opt/phpki"
260  echo "* "  echo "* "
 echo "*  You can then start with a new CA and certificates"  
261  echo "******************************************************"  echo "******************************************************"
262  echo ""  echo ""
263    
# Line 210  if [ -d /opt/phpki/phpki-store ] ; then Line 266  if [ -d /opt/phpki/phpki-store ] ; then
266      RANDOM=$$      RANDOM=$$
267      PHPKIDIR=$(( 1 + $RANDOM%99999 ))      PHPKIDIR=$(( 1 + $RANDOM%99999 ))
268      echo "Number is $PHPKIDIR"      echo "Number is $PHPKIDIR"
269      echo "moving from /opt/phpki/phpki-store to /opt/phpki/phpki-store.$PHPKIDIR"      echo "Copying from /opt/phpki/phpki-store to /opt/phpki/phpki-store.$PHPKIDIR"
270      mv /opt/phpki/phpki-store "/opt/phpki/phpki-store.$PHPKIDIR"      /bin/cp -pr /opt/phpki/phpki-store "/opt/phpki/phpki-store.$PHPKIDIR"
271      echo "Directory moved...continuing installaton"      echo "Directory copied...continuing installaton"
272  else  else
273      echo "No directory detected...continuing installaton"      echo "No directory detected...continuing installaton"
274  fi  fi
275    
276  echo "Creating phpki user"  
277    
278  if ! /usr/bin/id phpki &>/dev/null; then  if ! /usr/bin/id phpki &>/dev/null; then
279    echo "Creating phpki user"
280          /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \          /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \
281                  %logmsg "Unexpected error adding user \"phpki\". Abort installation."                  %logmsg "Unexpected error adding user \"phpki\". Abort installation."
282  fi  fi


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