packages: js-webapps-common/apache.conf (NEW), js-webapps-common/js-webapps...

glen glen at pld-linux.org
Tue Dec 27 12:41:18 CET 2011


Author: glen                         Date: Tue Dec 27 11:41:18 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/js-webapps-common:
   apache.conf (NONE -> 1.1)  (NEW), js-webapps-common.spec (NONE -> 1.1)  (NEW), lighttpd.conf (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/js-webapps-common/apache.conf
diff -u /dev/null packages/js-webapps-common/apache.conf:1.1
--- /dev/null	Tue Dec 27 12:41:18 2011
+++ packages/js-webapps-common/apache.conf	Tue Dec 27 12:41:12 2011
@@ -0,0 +1,5 @@
+Alias /js/ /usr/share/js/
+<Directory /usr/share/js/>
+	Allow from all
+	Options +FollowSymLinks
+</Directory>

================================================================
Index: packages/js-webapps-common/js-webapps-common.spec
diff -u /dev/null packages/js-webapps-common/js-webapps-common.spec:1.1
--- /dev/null	Tue Dec 27 12:41:18 2011
+++ packages/js-webapps-common/js-webapps-common.spec	Tue Dec 27 12:41:12 2011
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+Summary:	Common dirs and webserver aliases for JavaScript libraries
+Summary(pl.UTF-8):	Wspólne katalogi dla różnych wersji PHP
+Name:		js-webapps-common
+Version:	1.0
+Release:	1
+License:	GPL
+Group:		Base
+Source1:	apache.conf
+Source2:	lighttpd.conf
+BuildRequires:	rpmbuild(macros) >= 1.461
+Requires:	webapps
+Requires:	webserver(access)
+Requires:	webserver(alias)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapps	/etc/webapps
+%define		_webapp		js
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+
+%description
+Common dirs and webserver aliases for JavaScript libraries.
+
+%prep
+%setup -qcT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,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}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_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
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
+%dir %{_appdir}
+
+%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  2011/12/27 11:41:12  glen
+- new

================================================================
Index: packages/js-webapps-common/lighttpd.conf
diff -u /dev/null packages/js-webapps-common/lighttpd.conf:1.1
--- /dev/null	Tue Dec 27 12:41:18 2011
+++ packages/js-webapps-common/lighttpd.conf	Tue Dec 27 12:41:12 2011
@@ -0,0 +1,3 @@
+alias.url += (
+    "/js/" => "/usr/share/js/"
+)
================================================================


More information about the pld-cvs-commit mailing list