SPECS: ZoneAdmin.spec (NEW) - new

czarny czarny at pld-linux.org
Sat Sep 29 19:39:54 CEST 2007


Author: czarny                       Date: Sat Sep 29 17:39:54 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   ZoneAdmin.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ZoneAdmin.spec
diff -u /dev/null SPECS/ZoneAdmin.spec:1.1
--- /dev/null	Sat Sep 29 19:39:54 2007
+++ SPECS/ZoneAdmin.spec	Sat Sep 29 19:39:49 2007
@@ -0,0 +1,111 @@
+# $Revision$, $Date$
+Summary:	A Web-based administration interface for powerDNS
+Name:		ZoneAdmin
+Version:	0.1
+Release:	0.1
+License:	GPL
+Group:		Applications/WWW
+Source0:	http://dl.sourceforge.net/zoneadmin/%{name}-%{version}-stable.tar.gz
+# Source0-md5:	1552f1c4e179a9cba3b6eebaa4c0f431
+URL:		http://open.megabit.net/index.php?section=pro_home&project=ZoneAdmin
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	webapps
+%if %{with trigger}
+Requires(triggerpostun):	sed >= 4.0
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+
+%description
+ZoneAdmin is a Web interface for the powerDNS name server using the
+MySQL backend. It allows you to manage existing zones and add, remove,
+and alter new ones, supports on-the-fly input validation, and allows
+comments per zone and per record. Furthermore, it keeps a detailed
+history of changes and allows you to temporary enable or disable zones
+without having to remove them completely. New zones can use templates
+that contain predefined records. It is designed to be used with one of
+Apache's authentication methods.
+
+%prep
+%setup -q -n %{name}-%{version}-stable
+
+cat > apache.conf <<'EOF'
+Alias /%{name} %{_appdir}
+<Directory %{_appdir}>
+	Allow from all
+</Directory>
+EOF
+
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+
+install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install *.php	$RPM_BUILD_ROOT%{_appdir}
+cp -a {contrib,img,includes,lang,templates_c,tpl}	$RPM_BUILD_ROOT%{_appdir}
+
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%{_appdir}/*.php
+%dir %{_appdir}/contrib
+%{_appdir}/contrib/*.php
+%{_appdir}/contrib/*.sql
+%dir %{_appdir}/img
+%{_appdir}/img/*.gif
+%{_appdir}/img/*.png
+%dir %{_appdir}/includes
+%{_appdir}/includes/*.php
+%{_appdir}/includes/*.dist
+%dir %{_appdir}/includes/smarty/libs/
+%{_appdir}/includes/smarty/libs/*.php
+%{_appdir}/includes/smarty/libs/*.tpl
+%dir %{_appdir}/includes/smarty/libs/internals
+%{_appdir}/includes/smarty/libs/internals/*.php
+%dir %{_appdir}/includes/smarty/libs/plugins
+%{_appdir}/includes/smarty/libs/plugins/*.php
+%dir %{_appdir}/includes/smarty_plugins
+%{_appdir}/includes/smarty_plugins/*.php
+%dir %{_appdir}/lang
+%{_appdir}/lang/*.conf
+%dir %{_appdir}/templates_c
+%dir %{_appdir}/tpl/Boxes
+%{_appdir}/tpl/Boxes/*.css
+%{_appdir}/tpl/Boxes/*.js
+%{_appdir}/tpl/Boxes/*.tpl
+%dir %{_appdir}/tpl/Boxes/img
+%{_appdir}/tpl/Boxes/img/*.jpg
+%{_appdir}/tpl/Boxes/img/*.gif
+
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/09/29 17:39:49  czarny
+- new
+
================================================================


More information about the pld-cvs-commit mailing list