1 |
Summary: Package to integrate GeneWeb (V5) into SME Server |
2 |
%define name smeserver-geneweb |
3 |
Name: %{name} |
4 |
%define version 2.0 |
5 |
%define release 5 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Applications/Internet |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
Patch1: smeserver-geneweb-2.0-pod-corrections.patch |
12 |
Patch2: smeserver-geneweb-2.0-ip_number-validation.patch |
13 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
14 |
BuildArchitectures: noarch |
15 |
Requires: geneweb >= 5.00 |
16 |
Requires: smeserver-release >= 7.0 |
17 |
BuildRequires: e-smith-devtools |
18 |
|
19 |
%description |
20 |
This RPM must be installed after the geneweb*.el4.sme.i386.rpm package |
21 |
to complete the integration for SME Server. |
22 |
|
23 |
%changelog |
24 |
* Tue Jan 15 2008 Craig Jensen <craig.d.jensen@gmail.com> 2.0-5 |
25 |
- geneweb.pm fix to correctly validate IP numbers 'and' localIP |
26 |
|
27 |
* Sun Jan 13 2008 Craig Jensen <craig.d.jensen@gmail.com> 2.0-4 |
28 |
- geneweb.pm edited for pod corrections (pass podchecker) |
29 |
|
30 |
* Thu Apr 12 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
31 |
- [2.0-1] First companion to Geneweb v5 w/panel for admin allowing |
32 |
for setting the desired IP on the LAN for Geneweb administrative |
33 |
access. |
34 |
|
35 |
%prep |
36 |
|
37 |
rm -rf $RPM_BUILD_ROOT |
38 |
|
39 |
%setup |
40 |
%patch1 -p1 |
41 |
%patch2 -p1 |
42 |
|
43 |
%build |
44 |
perl createlinks |
45 |
DEFAULTS=root/etc/e-smith/db/configuration/defaults/geneweb |
46 |
mkdir -p $DEFAULTS |
47 |
echo "service" > $DEFAULTS/type |
48 |
echo "disabled" > $DEFAULTS/status |
49 |
echo "127.0.0.1" >$DEFAULTS/only |
50 |
|
51 |
%install |
52 |
/bin/rm -rf $RPM_BUILD_ROOT |
53 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
54 |
/bin/rm -f %{name}-%{version}-filelist |
55 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
56 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
57 |
|
58 |
%files -f %{name}-%{version}-filelist |
59 |
|
60 |
%defattr(-,root,root) |
61 |
|
62 |
%clean |
63 |
rm -rf $RPM_BUILD_ROOT |
64 |
|
65 |
%pre |
66 |
|
67 |
%post |
68 |
/etc/e-smith/events/actions/navigation-conf |
69 |
#/etc/e-smith/events/actions/initialize-default-databases |
70 |
#mkdir -p /etc/e-smith/templates/etc/rc.d/init.d/masq |
71 |
#/bin/chmod 644 /etc/e-smith/templates/etc/rc.d/init.d/masq/45AllowGeneWeb |
72 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
73 |
#/etc/rc.d/init.d/masq restart |
74 |
true |
75 |
|
76 |
%preun |
77 |
/sbin/e-smith/db configuration setprop geneweb status disabled |
78 |
/etc/rc.d/init.d/gwd stop |
79 |
true |
80 |
|
81 |
%postun |
82 |
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
83 |
#/etc/rc.d/init.d/masq restart |