packages: openx/openx.spec (NEW) - initial, install worked

glen glen at
Wed Oct 28 17:30:07 CET 2009

Author: glen                         Date: Wed Oct 28 16:30:07 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial, install worked

---- Files affected:
   openx.spec (NONE -> 1.1)  (NEW)

---- Diffs:

Index: packages/openx/openx.spec
diff -u /dev/null packages/openx/openx.spec:1.1
--- /dev/null	Wed Oct 28 17:30:07 2009
+++ packages/openx/openx.spec	Wed Oct 28 17:30:02 2009
@@ -0,0 +1,212 @@
+# $Revision$, $Date$
+# - install doc:
+# - System PKGS
+#   - uses modified Smarty 2.6.18 ($oa_content arg to _compile_resource())
+#   - uses modified ZendFramework 1.5.2 (disabled empty array casts in Zend/XmlRpc/Client.php)
+# - FHS
+#   - OpenX needs to be able to write to the files in the openx/var and openx/www/images folder to complete the installation successfully.
+# - webapps
+Summary:	OpenX allows you to traffic, target, monetize and track the advertising on all of your websites
+Name:		openx
+Version:	2.8.1
+Release:	0.7
+License:	GPL v2
+Group:		Applications/WWW
+# Source0-md5:	9eed70d3ea24d06a11db03a546f0bf63
+BuildRequires:	rpmbuild(macros) >= 1.461
+Requires:	fonts-TTF-bitstream-vera
+Requires:	php-common >= 4:5.1.4
+Requires:	php-gd
+Requires:	php-mysql
+Requires:	php-zlib
+Requires:	webapps
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+%define		ttffontsdir	%{_fontsdir}/TTF
+OpenX is the world's leading independent ad server. It provides you
+with the simple tools you need to make money from advertising, whether
+from direct ad sales, OpenX Market, or third party ad networks (like
+%package setup
+Summary:	OpenX setup package
+Summary(pl.UTF-8):	Pakiet do wstępnej konfiguracji OpenX
+Group:		Applications/WWW
+Requires:	%{name} = %{version}-%{release}
+%description setup
+Install this package to configure initial OpenX installation. You
+should uninstall this package when you're done, as it considered
+insecure to keep the setup files in place.
+%description setup -l pl.UTF-8
+Ten pakiet należy zainstalować w celu wstępnej konfiguracji OpenX po
+pierwszej instalacji. Potem należy go odinstalować, jako że
+pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
+%setup -q
+rm LICENSE.txt # GPL v2
+rm var/UPGRADE # empty file
+cat > docs/DB-ACL.txt <<'EOF'
+# Database permissions needed:
+cat > apache.conf <<'EOF'
+Alias /%{name} %{_appdir}
+<Directory %{_appdir}>
+	Allow from all
+<Directory %{_appdir}/etc>
+	Deny from all
+<Directory %{_appdir}/lib>
+	Deny from all
+<Directory %{_appdir}/var>
+	Deny from all
+cat > lighttpd.conf <<'EOF'
+alias.url += (
+    "/%{name}" => "%{_appdir}",
+find -name .htaccess | xargs rm
+# fix doc urls. pointed out on:
+sed -i -e '
+#	s#".OX_PRODUCT_DOCSURL."/wizard/lock-config#
+	s#".OX_PRODUCT_DOCSURL."/wizard/lock-config#
+	s#".OX_PRODUCT_DOCSURL."/wizard/setup-cron#
+' lib/max/language/*/settings.lang.php
+# fonts-TTF-bitstream-vera
+sed -i -e "
+	s#MAX_PATH.'/lib/fonts/Bitstream/#'%{ttffontsdir}/#
+" lib/OA/Dashboard/Graph.php
+rm -rf lib/fonts
+# move all to docs subdir for easier packaging. except robots.txt
+mv *.txt docs
+mv docs/robots.txt .
+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 *.js *.txt $RPM_BUILD_ROOT%{_appdir}
+cp -a etc lib maintenance plugins scripts var www $RPM_BUILD_ROOT%{_appdir}
+%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}
+%doc docs/*
+%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}/*.php
+%dir %{_appdir}
+%dir %{_appdir}/scripts
+%dir %attr(775,root,http) %{_appdir}/var
+%dir %attr(775,root,http) %{_appdir}/var/cache
+%dir %attr(775,root,http) %{_appdir}/var/plugins
+%dir %attr(775,root,http) %{_appdir}/var/templates_compiled
+%dir %attr(775,root,http) %{_appdir}/plugins
+%dir %{_appdir}/www
+%dir %attr(775,root,http) %{_appdir}/www/images
+%dir %{_appdir}/www/admin
+%dir %attr(775,root,http) %{_appdir}/www/admin/plugins
+%files setup
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+* %{date} PLD Team <feedback at>
+All persons listed below can be reached at <cvs_login>
+Revision 1.1  2009/10/28 16:30:02  glen
+- initial, install worked

More information about the pld-cvs-commit mailing list