1 |
Summary: smserver rpm to setup jinzora jukebox |
2 |
%define name smeserver-jinzora |
3 |
Name: %{name} |
4 |
%define version 0.9 |
5 |
%define release 7 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
URL: http://www.dungog.net/sme |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
BuildArchitectures: noarch |
13 |
BuildRoot: /var/tmp/%{name}-%{version} |
14 |
Requires: e-smith-release >= 7.0 |
15 |
Requires: jinzora |
16 |
BuildRequires: e-smith-devtools |
17 |
AutoReqProv: no |
18 |
|
19 |
%description |
20 |
smserver rpm to setup jinzora jukebox |
21 |
|
22 |
%changelog |
23 |
* Fri Apr 6 2007 Stephen Noble <stephen@dungog.net> |
24 |
- revert mysql password creation |
25 |
- [0.9-7] |
26 |
|
27 |
* Sun Feb 4 2007 Stephen Noble <support@dungog.net> |
28 |
- remove phpinfo |
29 |
- simplify mysql password creation |
30 |
- don't alias / in httpd for nul values in URL |
31 |
- [0.9-6] |
32 |
|
33 |
* Mon Dec 11 2006 Stephen Noble <support@dungog.net> |
34 |
- rpm %post events reordered, to enable clean install |
35 |
- [0.9-5] |
36 |
|
37 |
* Thu Nov 9 2006 Stephen Noble <support@dungog.net> |
38 |
- http PublicAccess setting added |
39 |
- [0.9-4] |
40 |
|
41 |
* Tue May 2 2006 Stephen Noble <support@dungog.net> |
42 |
- :/tmp added to open_basedir |
43 |
- php settings in httpd increased |
44 |
- todo, still get timed out and error syncing to mpeg errors |
45 |
- possible cause of httpd slowing down requiring |
46 |
- /etc/rc.d/init.d/httpd-e-smith restart |
47 |
- [0.9-3] |
48 |
|
49 |
* Tue May 2 2006 Stephen Noble <support@dungog.net> |
50 |
- permissions script removed |
51 |
- actions moved to post from webapp-upgrade |
52 |
- [0.9-2] |
53 |
|
54 |
* Sun Apr 16 2006 Stephen Noble <support@dungog.net> |
55 |
- initial release |
56 |
- [0.9-1] |
57 |
|
58 |
%prep |
59 |
%setup |
60 |
|
61 |
%build |
62 |
perl createlinks |
63 |
mkdir -p root/etc/e-smith/db/accounts/defaults/jinzora |
64 |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/jinzora/type |
65 |
|
66 |
mkdir -p root/etc/e-smith/db/configuration/defaults/jinzora |
67 |
echo "Jinzora Jukebox" > root/etc/e-smith/db/configuration/defaults/jinzora/Name |
68 |
echo "local" > root/etc/e-smith/db/configuration/defaults/jinzora/PublicAccess |
69 |
|
70 |
%install |
71 |
rm -rf $RPM_BUILD_ROOT |
72 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
73 |
rm -f %{name}-%{version}-filelist |
74 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
75 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
76 |
|
77 |
%clean |
78 |
cd .. |
79 |
rm -rf %{name}-%{version} |
80 |
|
81 |
%pre |
82 |
|
83 |
%preun |
84 |
|
85 |
%post |
86 |
/etc/e-smith/events/actions/initialize-default-databases |
87 |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80jinzora.sql |
88 |
/etc/rc.d/init.d/mysql.init start |
89 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
90 |
/usr/local/bin/svc -h /service/httpd-e-smith |
91 |
|
92 |
echo "" |
93 |
echo "see www.dungog.net/sme/webapp.php" |
94 |
echo "current settings 'config show jinzora'..." |
95 |
/sbin/e-smith/config show jinzora |
96 |
|
97 |
%postun |
98 |
#uninstall |
99 |
if [ $1 = 0 ] ; then |
100 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
101 |
/usr/local/bin/svc -h /service/httpd-e-smith |
102 |
fi |
103 |
|
104 |
%files -f %{name}-%{version}-filelist |
105 |
%defattr(-,root,root) |
106 |
|