]> git.pld-linux.org Git - packages/ZoneAdmin.git/blame - ZoneAdmin.spec
- use system Smarty
[packages/ZoneAdmin.git] / ZoneAdmin.spec
CommitLineData
04457a35 1Summary: A Web-based administration interface for powerDNS
2Name: ZoneAdmin
d06d50f0 3Version: 0.2
04457a35 4Release: 0.1
5License: GPL
6Group: Applications/WWW
d06d50f0
SP
7Source0: http://dl.sourceforge.net/zoneadmin/%{name}-%{version}-beta1.tar.gz
8# Source0-md5: a848e14d947d41734d8a23d72d0196da
04457a35 9URL: http://open.megabit.net/index.php?section=pro_home&project=ZoneAdmin
10BuildRequires: rpmbuild(macros) >= 1.268
0304c045 11Requires: Smarty >= 2.6.18-2
04457a35 12Requires: webapps
0304c045 13Requires: webserver(php)
04457a35 14%if %{with trigger}
15Requires(triggerpostun): sed >= 4.0
16%endif
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _webapps /etc/webapps
21%define _webapp %{name}
22%define _sysconfdir %{_webapps}/%{_webapp}
23%define _appdir %{_datadir}/%{_webapp}
24
25%description
26ZoneAdmin is a Web interface for the powerDNS name server using the
27MySQL backend. It allows you to manage existing zones and add, remove,
28and alter new ones, supports on-the-fly input validation, and allows
29comments per zone and per record. Furthermore, it keeps a detailed
30history of changes and allows you to temporary enable or disable zones
31without having to remove them completely. New zones can use templates
32that contain predefined records. It is designed to be used with one of
33Apache's authentication methods.
34
35%prep
d06d50f0 36%setup -q -n %{name}-%{version}-beta1
04457a35 37
38cat > apache.conf <<'EOF'
39Alias /%{name} %{_appdir}
40<Directory %{_appdir}>
41 Allow from all
42</Directory>
43EOF
44
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
47
48install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
49install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
50install *.php $RPM_BUILD_ROOT%{_appdir}
51cp -a {contrib,img,includes,lang,templates_c,tpl} $RPM_BUILD_ROOT%{_appdir}
39b738a3
SP
52mv $RPM_BUILD_ROOT%{_appdir}/includes/config.php.dist $RPM_BUILD_ROOT%{_sysconfdir}/config.php
53ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/includes/config.php
04457a35 54
55%triggerin -- apache1 < 1.3.37-3, apache1-base
56%webapp_register apache %{_webapp}
57
58%triggerun -- apache1 < 1.3.37-3, apache1-base
59%webapp_unregister apache %{_webapp}
60
61%triggerin -- apache < 2.2.0, apache-base
62%webapp_register httpd %{_webapp}
63
64%triggerun -- apache < 2.2.0, apache-base
65%webapp_unregister httpd %{_webapp}
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
72%dir %attr(750,root,http) %{_sysconfdir}
73%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
74%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
39b738a3 75%attr(660,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php
04457a35 76%{_appdir}/*.php
77%dir %{_appdir}/contrib
78%{_appdir}/contrib/*.php
79%{_appdir}/contrib/*.sql
80%dir %{_appdir}/img
81%{_appdir}/img/*.gif
82%{_appdir}/img/*.png
83%dir %{_appdir}/includes
84%{_appdir}/includes/*.php
04457a35 85%dir %{_appdir}/includes/smarty/libs/
86%{_appdir}/includes/smarty/libs/*.php
87%{_appdir}/includes/smarty/libs/*.tpl
88%dir %{_appdir}/includes/smarty/libs/internals
89%{_appdir}/includes/smarty/libs/internals/*.php
90%dir %{_appdir}/includes/smarty/libs/plugins
91%{_appdir}/includes/smarty/libs/plugins/*.php
92%dir %{_appdir}/includes/smarty_plugins
93%{_appdir}/includes/smarty_plugins/*.php
94%dir %{_appdir}/lang
95%{_appdir}/lang/*.conf
96%dir %{_appdir}/templates_c
97%dir %{_appdir}/tpl/Boxes
98%{_appdir}/tpl/Boxes/*.css
99%{_appdir}/tpl/Boxes/*.js
100%{_appdir}/tpl/Boxes/*.tpl
101%dir %{_appdir}/tpl/Boxes/img
102%{_appdir}/tpl/Boxes/img/*.jpg
103%{_appdir}/tpl/Boxes/img/*.gif
21ded458 104%dir %attr(770,root,http) %{_appdir}/templates_c
This page took 0.080244 seconds and 4 git commands to generate.