SPECS: lightbox.spec - apache integration

glen glen at pld-linux.org
Sat Sep 6 16:54:06 CEST 2008


Author: glen                         Date: Sat Sep  6 14:54:06 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- apache integration

---- Files affected:
SPECS:
   lightbox.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/lightbox.spec
diff -u SPECS/lightbox.spec:1.3 SPECS/lightbox.spec:1.4
--- SPECS/lightbox.spec:1.3	Fri Aug 29 11:56:51 2008
+++ SPECS/lightbox.spec	Sat Sep  6 16:54:00 2008
@@ -4,7 +4,7 @@
 Summary:	Simple, unobtrusive script used to overlay images on the webpage
 Name:		lightbox
 Version:	2.04
-Release:	0.2
+Release:	0.3
 License:	Creative Commons Attribution 2.5
 Group:		Applications/WWW
 Source0:	http://www.lokeshdhakar.com/projects/lightbox2/releases/%{name}%{version}.zip
@@ -28,17 +28,41 @@
 %{__sed} -i -e 's,\r$,,' *.html
 install -d %{name}
 mv css images js *.html %{name}
+cat > apache.conf <<'EOF'
+Alias /%{name} %{_appdir}
+<Directory %{_appdir}>
+	Allow from all
+</Directory>
+EOF
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_appdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
 cp -a %{name}/* $RPM_BUILD_ROOT%{_appdir}
 
+cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%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}
+
 %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}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -47,6 +71,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2008/09/06 14:54:00  glen
+- apache integration
+
 Revision 1.3  2008/08/29 09:56:51  glen
 - license
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/lightbox.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list