/[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.3 by jcrisp, Mon Mar 8 13:37:51 2021 UTC Revision 1.13 by jcrisp, Thu Sep 30 16:31:50 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 3  %define         release 12
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 16  Group:                 SMEserver/addon Line 16  Group:                 SMEserver/addon
16  Source:         %{name}-%{version}.tar.gz  Source:         %{name}-%{version}.tar.gz
17  Patch1:         phpki-ng-0.84-fix-for-php74-code-tidy.patch  Patch1:         phpki-ng-0.84-fix-for-php74-code-tidy.patch
18  Patch2:         phpki-ng-0.84-fix-pregmatch-revoke-certs.patch  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    Patch7:         phpki-ng-0.84-fix-html-syntax-in-help.patch
24    Patch8:         phpki-ng-0.84-fix-final-redirect.patch
25    
26    
27  BuildArch:      noarch  BuildArch:      noarch
28  BuildRoot:      /var/tmp/%{name}-%{version}  BuildRoot:      /var/tmp/%{name}-%{version}
# Line 38  With it, you may create and centrally ma Line 45  With it, you may create and centrally ma
45  e-mail clients, SSL servers, and VPN applications.  e-mail clients, SSL servers, and VPN applications.
46    
47  %changelog  %changelog
48    * Thu Sep 30 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-12.sme
49    - Attempt to fix the final reload after CA creation [SME: 11192]
50    
51    * Thu Aug 05 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-11.sme
52    - Fix html syntax error in help - Thanks Mauro De Carolis [SME: 11688]
53    
54    * Tue Apr 06 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-10.sme
55    - And tidy up the copying wording. [SME: 11192]
56    - Credit to Terry Fage for persisting with testing
57    
58    * Mon Apr 05 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-9.sme
59    - Really fix the copy this time [SME: 11192]
60    
61    * Sat Apr 03 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-8.sme
62    - copy phpki-store as a backup instead of move [SME: 11192]
63    
64    * Thu Apr 01 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-7.sme
65    - Fix broken Download Certificate in Cert generation [SME: 11513]
66    
67    * Thu Mar 18 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-6.sme
68    - Update html header info [SME: 11192]
69    - Remove obsolete align
70    - Remove accidentally duplicated html
71    - Fix typo
72    - Fix directory check
73    - move function flush_exec to functions file
74    
75    * Tue Mar 09 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-5.sme
76    - Fix missing / [SME:11435]
77    - Update cert type detection for renew [SME: 11436]
78    - Code formatting
79    
80    * Mon Mar 08 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-4.sme
81    - Fix crl creation [SME: 11141]
82    - Extra notes in setup page
83    
84  * Mon Mar 08 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-3.sme  * Mon Mar 08 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-3.sme
85  - Fix Typo in certificate password [SME: 11435]  - Fix Typo in certificate password [SME: 11435]
86  - Fix typos and preg_match issues [SME: 11436]  - Fix typos and preg_match issues [SME: 11436]
87  - Add Certificate ctreation notification [SME: 11437]  - Add Certificate creation notification [SME: 11437]
88  - Bit of file fomatting  - Bit of file formatting
89    
90  * Wed Mar 07 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-2.sme  * Wed Mar 03 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-2.sme
91  - Change version to 0.84  - Change version to 0.84
92  - Fix undefined constant errors [SME: 11397]  - Fix undefined constant errors [SME: 11397]
93  - fix tempdir [SME: 11398]  - fix tempdir [SME: 11398]
# Line 158  e-mail clients, SSL servers, and VPN app Line 201  e-mail clients, SSL servers, and VPN app
201  %setup  -c -n %{name}  %setup  -c -n %{name}
202  %patch1 -p1  %patch1 -p1
203  %patch2 -p1  %patch2 -p1
204    %patch3 -p1
205    %patch4 -p1
206    %patch5 -p1
207    %patch6 -p1
208    %patch7 -p1
209    %patch8 -p1
210    
211  %build  %build
212  %{__mkdir_p} root/opt/phpki/html  %{__mkdir_p} root/opt/phpki/html
# Line 216  echo "*  This contrib now has higher lev Line 265  echo "*  This contrib now has higher lev
265  echo "* "  echo "* "
266  echo "*  We cannot upgrade your existing certificates"  echo "*  We cannot upgrade your existing certificates"
267  echo "* "  echo "* "
268  echo "*  If we detect an existing certificate store"  echo "*  If you have existing certificates you want to use"
269  echo "*  we are going to move it"  echo "*  then start with a new CA, backup up, and then restore"
270    echo "*  your phpki-store directory in /opt/phpki"
271  echo "* "  echo "* "
 echo "*  You can then start with a new CA and certificates"  
272  echo "******************************************************"  echo "******************************************************"
273  echo ""  echo ""
274    
# Line 228  if [ -d /opt/phpki/phpki-store ] ; then Line 277  if [ -d /opt/phpki/phpki-store ] ; then
277      RANDOM=$$      RANDOM=$$
278      PHPKIDIR=$(( 1 + $RANDOM%99999 ))      PHPKIDIR=$(( 1 + $RANDOM%99999 ))
279      echo "Number is $PHPKIDIR"      echo "Number is $PHPKIDIR"
280      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"
281      mv /opt/phpki/phpki-store "/opt/phpki/phpki-store.$PHPKIDIR"      /bin/cp -pr /opt/phpki/phpki-store "/opt/phpki/phpki-store.$PHPKIDIR"
282      echo "Directory moved...continuing installaton"      echo "Directory copied...continuing installaton"
283  else  else
284      echo "No directory detected...continuing installaton"      echo "No directory detected...continuing installaton"
285  fi  fi
286    
287  echo "Creating phpki user"  
288    
289  if ! /usr/bin/id phpki &>/dev/null; then  if ! /usr/bin/id phpki &>/dev/null; then
290    echo "Creating phpki user"
291          /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 || \
292                  %logmsg "Unexpected error adding user \"phpki\". Abort installation."                  %logmsg "Unexpected error adding user \"phpki\". Abort installation."
293  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