/[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.3 - (show annotations) (download)
Wed Jul 20 09:06:39 2011 UTC (12 years, 10 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-phpki-0_1-5_el4_sme
Changes since 1.2: +7 -2 lines
* Wed Jul 20 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme
- Protect by location (so we can set another location protected by LemonLDAP::NG)

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

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