packages: davical/davical-lighttpd.conf (NEW), davical/davical.conf (NEW), ...

pawelz pawelz at pld-linux.org
Tue Sep 21 15:27:10 CEST 2010


Author: pawelz                       Date: Tue Sep 21 13:27:10 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Initial PLD release. NFY.

---- Files affected:
packages/davical:
   davical-lighttpd.conf (NONE -> 1.1)  (NEW), davical.conf (NONE -> 1.1)  (NEW), davical.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/davical/davical-lighttpd.conf
diff -u /dev/null packages/davical/davical-lighttpd.conf:1.1
--- /dev/null	Tue Sep 21 15:27:10 2010
+++ packages/davical/davical-lighttpd.conf	Tue Sep 21 15:27:04 2010
@@ -0,0 +1,3 @@
+alias.url += (
+        "/davical/"   => "/usr/share/davical/htdocs/",
+)

================================================================
Index: packages/davical/davical.conf
diff -u /dev/null packages/davical/davical.conf:1.1
--- /dev/null	Tue Sep 21 15:27:12 2010
+++ packages/davical/davical.conf	Tue Sep 21 15:27:04 2010
@@ -0,0 +1,11 @@
+Alias /davical /usr/share/davical/htdocs
+<Directory "/usr/share/davical/htdocs">
+	Options FollowSymLinks
+	AllowOverride None
+	Order allow,deny
+	Allow from all
+	# uncomment if using apache-mod_php
+	#php_admin_value open_basedir #"/etc/webapps/davical/:/usr/share/davical/htdocs/:/tmp"
+</Directory>
+
+# vi:ft=apache

================================================================
Index: packages/davical/davical.spec
diff -u /dev/null packages/davical/davical.spec:1.1
--- /dev/null	Tue Sep 21 15:27:12 2010
+++ packages/davical/davical.spec	Tue Sep 21 15:27:04 2010
@@ -0,0 +1,108 @@
+# $Revision$, $Date$
+# TODO:
+# - package docs?
+# - test lighttpd config
+Summary:	davical
+Summary(pl.UTF-8):	davical
+Name:		davical
+Version:	0.9.9.2
+Release:	0.1
+License:	GPL v2
+Group:		Applications
+Source0:	http://sourceforge.net/projects/rscds/files/davical/0.9.9.2/davical-0.9.9.2.tar.gz
+# Source0-md5:	c35047bab51ca86729cba94f81988db8
+Source1:	%{name}.conf
+Source2:	%{name}-lighttpd.conf
+BuildRequires:	php-awl
+BuildRequires:	php-pear-PhpDocumentor
+Requires:	php-awl
+Requires:	php-session
+Requires:	webapps
+Requires:	webserver(access)
+Requires:	webserver(alias)
+Suggests:	php-mysqli
+Suggests:	webserver(indexfile)
+Suggests:	webserver(php)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_appdir		%{_datadir}/%{name}
+%define		_webapps	/etc/webapps
+
+%description
+XXX
+
+%description -l pl.UTF-8
+XXX
+
+%prep
+%setup -q
+
+sed -i 's#^AWL_LOCATION="\.\./awl"$#AWL_LOCATION=%{php_data_dir}/awl#' scripts/po/rebuild-translations.sh
+sed -i /^================================================================/q COPYING
+
+%build
+scripts/build-always.sh < inc/always.php.in > htdocs/always.php
+phpdoc -c docs/api/phpdoc.ini
+scripts/po/rebuild-translations.sh
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_webapps}/%{name}
+install -d $RPM_BUILD_ROOT%{_appdir}
+
+cp -a config/example-config.php $RPM_BUILD_ROOT%{_webapps}/%{name}/config.php
+cp -a config/example-administration.yml $RPM_BUILD_ROOT%{_webapps}/%{name}/administration.yml
+cp -a htdocs $RPM_BUILD_ROOT%{_appdir}
+cp -a dba $RPM_BUILD_ROOT%{_appdir}
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{name}/httpd.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{name}/apache.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{name}/lighttpd.conf
+
+cp -a locale $RPM_BUILD_ROOT%{_datadir}
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{name}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{name}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{name}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{name}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{name}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{name}
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc COPYING ChangeLog CREDITS README TODO
+%dir %attr(750,root,http) %{_sysconfdir}/webapps/%{name}
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{name}/config.php
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{name}/administration.yml
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{name}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{name}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{name}/lighttpd.conf
+%dir %{_appdir}
+%{_appdir}/htdocs
+%{_appdir}/dba
+
+%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  2010/09/21 13:27:04  pawelz
+- Initial PLD release. NFY.
+
================================================================


More information about the pld-cvs-commit mailing list