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