/[smecontribs]/rpms/smeserver-phpki/contribs7/smeserver-phpki.spec
ViewVC logotype

Contents of /rpms/smeserver-phpki/contribs7/smeserver-phpki.spec

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


Revision 1.1 - (show annotations) (download)
Mon Mar 2 23:39:36 2009 UTC (15 years, 2 months ago) by slords
Branch: MAIN
Initial import of smeserver-phpki

1 # Authority: vip-ire
2 # Name: Daniel Berteaud
3
4 Name: smeserver-phpki
5 Version: 0.1
6 Release: 4%{?dist}
7 Summary: php integration into SME server
8
9 Group: Applications/System
10 License: GPL
11 URL: http://phpki.sourceforge.net/
12 Source: %{name}-%{version}.tar.gz
13 Patch0: smeserver-phpki-0.1-userpanels.patch
14 Patch1: smeserver-phpki-0.1-signal_events.patch
15 Patch2: smeserver-phpki-0.1-bootstrap-console-save.patch
16 Patch3: smeserver-phpki-0.1-disable_auth_for_public.patch
17 Patch4: smeserver-phpki-0.1-server-manager_menue.patch
18 Patch5: smeserver-phpki-0.1-section_security.patch
19 Patch6: smeserver-phpki-0.1-fix_logrotate_event.patch
20
21 BuildRoot: %{_tmppath}/%{name}-%{version}
22 BuildArch: noarch
23
24 BuildRequires: e-smith-devtools
25
26 Requires: mod_auth_tkt
27 Requires: e-smith-base
28 Requires: phpki
29
30
31 %description
32 PHPki is an Open Source Web application for managing a multi-agency PKI for HIPAA compliance.
33 With it, you may create and centrally manage X.509 certificates for use with S/MIME enabled
34 e-mail clients, SSL servers, and VPN applications.
35 This package contains specific configuration for SME server
36
37
38 %changelog
39 * Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-4]
40 - Fix logrotate issue (send a sigusr1 signal to httpd-pki)
41
42 * Mon Dec 15 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
43 - Move server-manager panel to "security" section
44
45 * Wed Dec 10 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
46 - expand-templates in bootstrap-console-save instead of post-upgrade
47 - Disable authentication for the public part (so CRL can be updated automatically)
48 - Change the name of the menue in server-manager to certificate Management
49
50 * Tue Dec 02 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
51 - Restrict access to /phpki/ca for admin, ask for a valid user for /phpki
52 - expand-templates on signal events conf-userpanels and domain-modify
53
54 * Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-0]
55 - initial release
56
57
58 %prep
59 %setup -q -n %{name}-%{version}
60 %patch0 -p1
61 %patch1 -p1
62 %patch2 -p1
63 %patch3 -p1
64 %patch4 -p1
65 %patch5 -p1
66 %patch6 -p1
67
68 %build
69 perl createlinks
70
71 %install
72
73 %{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-pki/supervise
74 %{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-pki/log/supervise
75 %{__mkdir_p} $RPM_BUILD_ROOT/var/log/httpd-pki
76
77
78 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
79 /bin/rm -f %{name}-%{version}-filelist
80 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
81 --dir /var/service/httpd-pki 'attr(01755,root,root)' \
82 --file /var/service/httpd-pki/run 'attr(0700,root,root)' \
83 --dir /var/service/httpd-pki/supervise 'attr(0700,root,root)' \
84 --dir /var/service/httpd-pki/log 'attr(0755,root,root)' \
85 --file /var/service/httpd-pki/log/run 'attr(0755,root,root)' \
86 --dir /var/service/httpd-pki/log/supervise 'attr(0700,root,root)' \
87 --dir /var/log/httpd-pki 'attr(0750,smelog,smelog)' \
88 > %{name}-%{version}-filelist
89
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files -f %{name}-%{version}-filelist
95 %defattr(-,root,root)
96
97 %pre
98 #/sbin/e-smith/create-system-user phpki 455 'Phpki User' /opt/phpki /bin/false >& /dev/null || :
99
100 %preun
101
102 # Disable services, and stop them
103 if [ $1 = 0 ]; then # Uninstall only, not upgrade
104 db configuration setprop httpd-pki status disabled >& /dev/null || :
105 sv d /service/httpd-pki
106 fi
107
108 true
109

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