SPECS: z-push.spec - basic config, works only with apache (apache_request_h...
glen
glen at pld-linux.org
Tue Sep 9 20:23:04 CEST 2008
Author: glen Date: Tue Sep 9 18:23:04 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- basic config, works only with apache (apache_request_headers() function used)
---- Files affected:
SPECS:
z-push.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/z-push.spec
diff -u SPECS/z-push.spec:1.2 SPECS/z-push.spec:1.3
--- SPECS/z-push.spec:1.2 Tue Sep 9 19:31:28 2008
+++ SPECS/z-push.spec Tue Sep 9 20:22:58 2008
@@ -2,14 +2,20 @@
Summary: An Implementation of the ActiveSync protocol
Name: z-push
Version: 1.2
-Release: 0.1
-License: GPL
+Release: 0.4
+License: GPL v2
Group: Applications/WWW
Source0: http://download.berlios.de/z-push/%{name}-%{version}.tar.gz
# Source0-md5: 17d57872b08f59e739e7e699db71ee86
+Patch0: %{name}.patch
URL: http://z-push.sourceforge.net/
BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
+Requires: php-pear-Mail
Requires: webapps
+Requires: webserver(access)
+Requires: webserver(alias)
+Requires: webserver(php)
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -19,39 +25,34 @@
%define _appdir %{_datadir}/%{_webapp}
%description
-Z-push is an implementation of the ActiveSync protocol, which is used 'over-the-air' for multi platform ActiveSync devices, including Windows Mobile, Ericsson and Nokia phones. With Z-push any groupware can be connected and synced with these devices.
+Z-push is an implementation of the ActiveSync protocol, which is used
+'over-the-air' for multi platform ActiveSync devices, including
+Windows Mobile, Ericsson and Nokia phones. With Z-push any groupware
+can be connected and synced with these devices.
%prep
%setup -q -n %{name}
+find -name '*.php' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
+%patch0 -p1
cat > apache.conf <<'EOF'
-Alias /%{name} %{_appdir}
+Alias /Microsoft-Server-ActiveSync %{_appdir}/index.php
<Directory %{_appdir}>
Allow from all
</Directory>
EOF
-cat > lighttpd.conf <<'EOF'
-alias.url += (
- "/%{name}" => "%{_appdir}",
-)
-EOF
-
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{backend,include,state}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
-cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
cp -a *.php $RPM_BUILD_ROOT%{_appdir}
cp -a backend $RPM_BUILD_ROOT%{_appdir}
cp -a include $RPM_BUILD_ROOT%{_appdir}
cp -a state $RPM_BUILD_ROOT%{_appdir}
-
-rm -f $RPM_BUILD_ROOT%{_appdir}/config.php
-install config.php $RPM_BUILD_ROOT%{_sysconfdir}/config.php
-ln -sf %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/config.php
+mv $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}/config.php
%triggerin -- apache1 < 1.3.37-3, apache1-base
%webapp_register apache %{_webapp}
@@ -65,21 +66,15 @@
%triggerun -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
-%triggerin -- lighttpd
-%webapp_register lighttpd %{_webapp}
-
-%triggerun -- lighttpd
-%webapp_unregister lighttpd %{_webapp}
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc INSTALL
%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
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php
%{_appdir}
@@ -89,6 +84,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2008/09/09 18:22:58 glen
+- basic config, works only with apache (apache_request_headers() function used)
+
Revision 1.2 2008/09/09 17:31:28 glen
- obvious trash removal
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/z-push.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list