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