SPECS: phpIP.spec - webapps

matowy matowy at pld-linux.org
Sun Jul 1 21:43:49 CEST 2007


Author: matowy                       Date: Sun Jul  1 19:43:49 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- webapps

---- Files affected:
SPECS:
   phpIP.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/phpIP.spec
diff -u SPECS/phpIP.spec:1.15 SPECS/phpIP.spec:1.16
--- SPECS/phpIP.spec:1.15	Tue Feb 13 09:06:40 2007
+++ SPECS/phpIP.spec	Sun Jul  1 21:43:44 2007
@@ -1,10 +1,9 @@
 # $Revision$, $Date$
-# TODO: webapps?
 Summary:	phpIP Manager - Management of IP Addresses
 Summary(pl.UTF-8):	phpIP Manager - zarządzanie adresami IP
 Name:		phpIP
 Version:	3.2
-Release:	3
+Release:	4
 License:	GPL v2
 Group:		Applications/Databases/Interfaces
 #Source0Download: http://www.vermeer.org/projects/phpip/
@@ -20,8 +19,10 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_phpdir		%{_datadir}/%{name}
-%define		_sysconfdir	/etc/%{name}
+%define		_appdir		%{_datadir}/%{name}
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
 
 %description
 phpIP Management is tool to manage IP addresses. It features
@@ -38,45 +39,54 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_phpdir}/{img,includes,style} \
-	   $RPM_BUILD_ROOT{%{_sysconfdir},/etc/httpd}
+install -d $RPM_BUILD_ROOT{%{_appdir}/{img,includes,style},%{_sysconfdir}}
 
-install *.php		$RPM_BUILD_ROOT%{_phpdir}
-install includes/*.php	$RPM_BUILD_ROOT%{_phpdir}/includes
-install style/*.css	$RPM_BUILD_ROOT%{_phpdir}/style
-install img/*.gif	$RPM_BUILD_ROOT%{_phpdir}/img
+install *.php		$RPM_BUILD_ROOT%{_appdir}
+install includes/*.php	$RPM_BUILD_ROOT%{_appdir}/includes
+install style/*.css	$RPM_BUILD_ROOT%{_appdir}/style
+install img/*.gif	$RPM_BUILD_ROOT%{_appdir}/img
+install includes/config_inc.php $RPM_BUILD_ROOT%{_sysconfdir}
 
-cp includes/config_inc.php $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 
-ln -sf %{_sysconfdir}/config_inc.php $RPM_BUILD_ROOT%{_phpdir}/includes/config_inc.php
+%clean
+rm -rf $RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/%{name}.conf
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
 
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
 
-%triggerpostun -- phpip
-if [ -f %{_sysconfdir}/config_inc.php.rpmsave ]; then
-	mv -f %{_sysconfdir}/config_inc.php.rpmsave %{_sysconfdir}/config_inc.php
-fi
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
 
 %files
 %defattr(644,root,root,755)
 %doc README ChangeLog TODO INSTALL sql/*
-%dir %{_sysconfdir}
-%dir %{_phpdir}
-%dir %{_phpdir}/img
-%dir %{_phpdir}/style
-%dir %{_phpdir}/includes
-%{_sysconfdir}/*.php
-%{_phpdir}/*.php
-%{_phpdir}/img/*.gif
-%{_phpdir}/style/*.css
-%config(noreplace) %verify(not md5 mtime size) %{_phpdir}/includes/config_inc.php
-%{_phpdir}/includes/[!c]*.php
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config_inc.php
+%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
+%dir %{_appdir}
+%dir %{_appdir}/img
+%dir %{_appdir}/style
+%dir %{_appdir}/includes
+%{_appdir}/*.php
+%{_appdir}/img/*.gif
+%{_appdir}/style/*.css
+%{_appdir}/includes/[!c]*.php
 
-%attr(640,http,http) /etc/httpd/%{name}.conf
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -84,6 +94,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2007/07/01 19:43:44  matowy
+- webapps
+
 Revision 1.15  2007/02/13 08:06:40  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/phpIP.spec?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list