1 |
Summary: base for SME server |
2 |
%define name smeserver-base |
3 |
Name: %{name} |
4 |
%define version 1.2.2 |
5 |
%define release 1 |
6 |
Version: %{version} |
7 |
Release: %{release} |
8 |
Copyright: Freely distributable |
9 |
Group: Apache |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
#Patch0: %{name}-%{version}.patch.yyyymmddnn |
12 |
Packager: Michel Van hees <michel@vanhees.cc> |
13 |
BuildRoot: /var/tmp/e-smith-buildroot |
14 |
BuildRequires: e-smith-devtools |
15 |
BuildArchitectures: noarch |
16 |
Requires: smeserver-release >= 7, smeserver-snort > 2.4 |
17 |
AutoReqProv: no |
18 |
|
19 |
%changelog |
20 |
* Sat Mar 03 2006 Michel Van hees <mvanhees@vanhees.homeip.net> |
21 |
- initial release |
22 |
|
23 |
%description |
24 |
SME server - base for snort |
25 |
|
26 |
%prep |
27 |
%setup |
28 |
#%patch0 -p1 |
29 |
#%patch1 -p1 |
30 |
|
31 |
%build |
32 |
perl createlinks |
33 |
|
34 |
%install |
35 |
rm -rf $RPM_BUILD_ROOT |
36 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
37 |
rm -f %{name}-%{version}-filelist |
38 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
39 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
40 |
|
41 |
%clean |
42 |
rm -rf $RPM_BUILD_ROOT |
43 |
|
44 |
%pre |
45 |
|
46 |
%preun |
47 |
|
48 |
%post |
49 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
50 |
/sbin/e-smith/expand-template /opt/administration/base/base_conf.php |
51 |
service httpd-e-smith restart |
52 |
echo ---------------------------------------------------------------- |
53 |
echo -- modify database to fit with base -- |
54 |
echo ---------------------------------------------------------------- |
55 |
mysql snort_log < /opt/administration/base/sql/create_base_tbls_mysql.sql |
56 |
mysql snort_archive < /opt/administration/base/sql/create_base_tbls_mysql.sql |
57 |
echo ---------------------------------------------------------------- |
58 |
echo -- installing pear package -- |
59 |
echo ---------------------------------------------------------------- |
60 |
/usr/bin/pear install /opt/administration/base/add_pkgs/Image_Color-1.0.2.tgz |
61 |
/usr/bin/pear install /opt/administration/base/add_pkgs/Image_Canvas-0.3.0.tgz |
62 |
/usr/bin/pear install /opt/administration/base/add_pkgs/Numbers_Roman-1.0.1.tgz |
63 |
/usr/bin/pear install /opt/administration/base/add_pkgs/Numbers_Words-0.14.0.tgz |
64 |
/usr/bin/pear install /opt/administration/base/add_pkgs/Image_Graph-0.7.2.tgz |
65 |
echo ---------------------------------------------------------------- |
66 |
echo -- -- |
67 |
echo -- Installation complete -- |
68 |
echo -- -- |
69 |
echo -- Now you can acces base interface at -- |
70 |
echo -- https://server-ip-adress/base -- |
71 |
echo -- -- |
72 |
echo ---------------------------------------------------------------- |
73 |
|
74 |
|
75 |
%postun |
76 |
|
77 |
%files -f %{name}-%{version}-filelist |
78 |
%defattr(-,root,root) |