]> git.pld-linux.org Git - packages/ZoneAdmin.git/blame - ZoneAdmin.spec
- pl, cleanup
[packages/ZoneAdmin.git] / ZoneAdmin.spec
CommitLineData
04457a35 1Summary: A Web-based administration interface for powerDNS
66f218ed 2Summary(pl.UTF-8): Interfejs administracyjny WWW do serwera powerDNS
04457a35 3Name: ZoneAdmin
d06d50f0 4Version: 0.2
04457a35 5Release: 0.1
6License: GPL
7Group: Applications/WWW
d06d50f0
SP
8Source0: http://dl.sourceforge.net/zoneadmin/%{name}-%{version}-beta1.tar.gz
9# Source0-md5: a848e14d947d41734d8a23d72d0196da
5e90a685 10Patch0: %{name}-smarty.patch
04457a35 11URL: http://open.megabit.net/index.php?section=pro_home&project=ZoneAdmin
12BuildRequires: rpmbuild(macros) >= 1.268
0304c045 13Requires: Smarty >= 2.6.18-2
04457a35 14Requires: webapps
0304c045 15Requires: webserver(php)
04457a35 16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define _webapps /etc/webapps
20%define _webapp %{name}
5e90a685 21%define _smartyplugindir /usr/share/php/Smarty/plugins
04457a35 22%define _sysconfdir %{_webapps}/%{_webapp}
56c886e1 23%define _zavar /var/lib/%{name}
04457a35 24%define _appdir %{_datadir}/%{_webapp}
25
26%description
27ZoneAdmin is a Web interface for the powerDNS name server using the
28MySQL backend. It allows you to manage existing zones and add, remove,
29and alter new ones, supports on-the-fly input validation, and allows
30comments per zone and per record. Furthermore, it keeps a detailed
31history of changes and allows you to temporary enable or disable zones
32without having to remove them completely. New zones can use templates
33that contain predefined records. It is designed to be used with one of
34Apache's authentication methods.
35
66f218ed
JB
36%description -l pl.UTF-8
37ZoneAdmin to interfejs WWW do serwera nazw powerDNS wykorzystującego
38backend MySQL. Pozwala na zarządzanie istniejącymi strefami oraz
39dodawanie, usuwanie i zmianę nowych; obsługuje sprawdzanie poprawności
40danych wejściowych w locie, pozwala na dodawanie komentarzy dla całej
41strefy oraz dla każdego rekordu. Ponadto utrzymuje szczegółową
42historię zmian i pozwala na tymczasowe włączanie i wyłączanie stref
43bez potrzeby całkowitego usuwania ich. Nowe strefy mogą wykorzystywać
44szablony z predefiniowanymi rekordami. Interfejs jest zaprojektowany
45do używania z jedną z metod uwierzytelniania serwera Apache.
46
04457a35 47%prep
d06d50f0 48%setup -q -n %{name}-%{version}-beta1
5e90a685
SP
49%patch0 -p1
50
04457a35 51cat > apache.conf <<'EOF'
52Alias /%{name} %{_appdir}
53<Directory %{_appdir}>
54 Allow from all
55</Directory>
56EOF
57
58rm -rf $RPM_BUILD_ROOT
56c886e1 59install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_smartyplugindir},%{_zavar}/templates_c,%{_appdir}}
04457a35 60
61install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
62install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
63install *.php $RPM_BUILD_ROOT%{_appdir}
2bdbe46a
SP
64cp -a {contrib,img,includes,lang,tpl} $RPM_BUILD_ROOT%{_appdir}
65cp -a includes/smarty/libs/plugins/* $RPM_BUILD_ROOT%{_smartyplugindir}
39b738a3
SP
66mv $RPM_BUILD_ROOT%{_appdir}/includes/config.php.dist $RPM_BUILD_ROOT%{_sysconfdir}/config.php
67ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/includes/config.php
04457a35 68
66f218ed
JB
69%clean
70rm -rf $RPM_BUILD_ROOT
71
04457a35 72%triggerin -- apache1 < 1.3.37-3, apache1-base
73%webapp_register apache %{_webapp}
74
75%triggerun -- apache1 < 1.3.37-3, apache1-base
76%webapp_unregister apache %{_webapp}
77
78%triggerin -- apache < 2.2.0, apache-base
79%webapp_register httpd %{_webapp}
80
81%triggerun -- apache < 2.2.0, apache-base
82%webapp_unregister httpd %{_webapp}
83
04457a35 84%files
85%defattr(644,root,root,755)
86%dir %attr(750,root,http) %{_sysconfdir}
87%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
88%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
504ac462 89%attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php
04457a35 90%{_appdir}/*.php
91%dir %{_appdir}/contrib
92%{_appdir}/contrib/*.php
93%{_appdir}/contrib/*.sql
94%dir %{_appdir}/img
95%{_appdir}/img/*.gif
96%{_appdir}/img/*.png
97%dir %{_appdir}/includes
98%{_appdir}/includes/*.php
04457a35 99%dir %{_appdir}/includes/smarty/libs/
100%{_appdir}/includes/smarty/libs/*.php
101%{_appdir}/includes/smarty/libs/*.tpl
102%dir %{_appdir}/includes/smarty/libs/internals
103%{_appdir}/includes/smarty/libs/internals/*.php
2bdbe46a
SP
104#%dir %{_appdir}/includes/smarty/libs/plugins
105#%{_appdir}/includes/smarty/libs/plugins/*.php
106#%dir %{_appdir}/includes/smarty_plugins
107#%{_appdir}/includes/smarty_plugins/*.php
04457a35 108%dir %{_appdir}/lang
109%{_appdir}/lang/*.conf
04457a35 110%dir %{_appdir}/tpl/Boxes
111%{_appdir}/tpl/Boxes/*.css
112%{_appdir}/tpl/Boxes/*.js
113%{_appdir}/tpl/Boxes/*.tpl
114%dir %{_appdir}/tpl/Boxes/img
115%{_appdir}/tpl/Boxes/img/*.jpg
116%{_appdir}/tpl/Boxes/img/*.gif
5e90a685 117%{_smartyplugindir}/*
56c886e1
SP
118%dir %{_zavar}
119%attr(770,root,http) %{_zavar}/templates_c
This page took 0.115385 seconds and 4 git commands to generate.