Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:heinlein-support:testing:mailtrace
mailtrace
mailtrace.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mailtrace.spec of Package mailtrace
# # spec file for package mailtrace # # Copyright (c) 2008 Heinlein Professional Linux Support GmbH # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: mailtrace %if %{defined suse_version} PreReq: %insserv_prereq, %fillup_prereq %endif License: Proprietary Group: Productivity/Networking/Email/Utilities Summary: Mailtrace Package by Heinlein Professional Linux Support GmbH Version: 3.0 Release: 117.0 BuildArch: noarch BuildRequires: pcre-devel %if %{defined suse_version} BuildRequires: cron apache2 %endif %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: cronie-noanacron httpd postfix %endif Url: http://www.heinlein-support.de/elements BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %{name}-%{version}.tar.gz Source1: %{name}-gui-httpd.conf Source2: Heinlein-Mailtrace-Admin-Handbuch.pdf Source3: mailtraced.cron Patch0: maildir-logpath.patch Packager: Peer Heinlein <p.heinlein@heinlein-support.de> %if %{defined suse_version} Suggests: mailtrace-daemon Suggests: mailtrace-gui %endif %define elementspath /opt/heinlein/mailtrace %define apache2_my_sysconfdir /etc/apache2 %description Heinlein ELEMENTS Mailtrace -- Daemon and GUI Authors: -------- Stefan Neben <s.neben@heinlein-support.de> Christoph Graupner <c.graupner@heinlein-support.de> Peer Heinlein <p.heinlein@heinlein-support.de> %prep %setup -q %patch0 -p1 %build %install # the binaries install -d %{buildroot}/%{_sbindir} install -m 0755 daemon/bin/mailtraced %{buildroot}/%{_sbindir}/mailtraced install -m 750 -d %{buildroot}/etc/mailtrace install -m 600 daemon/etc/mailtrace/mailtraced.cfg %{buildroot}/%{_sysconfdir}/mailtrace/mailtraced.cfg install -d %{buildroot}/etc/init.d install -m 755 daemon/doc/init.d/SUSE/mailtraced %{buildroot}/%{_sysconfdir}/init.d/mailtraced ln -sf /etc/init.d/mailtraced $RPM_BUILD_ROOT/usr/sbin/rcmailtraced install -m 755 -d %{buildroot}/usr/share/doc/packages/%{name} cp -ar daemon/doc/* %{buildroot}/usr/share/doc/packages/%{name} install -m 755 -d %{buildroot}/usr/share/doc/packages/mailtrace-daemon cp -ar %{buildroot}/usr/share/doc/packages/%{name}/heinlein-elements.cron %{buildroot}/usr/share/doc/packages/mailtrace-daemon/ mv %{buildroot}/usr/share/doc/packages/%{name}/init.d %{buildroot}/usr/share/doc/packages/mailtrace-daemon/ cp -ar %{buildroot}/usr/share/doc/packages/%{name}/README %{buildroot}/usr/share/doc/packages/mailtrace-daemon/ install -d %{buildroot}/%{perl_vendorlib}/Mailtrace/Daemon install daemon/lib/Mailtrace/Daemon/* %{buildroot}/%{perl_vendorlib}/Mailtrace/Daemon install -d %{buildroot}/%{perl_vendorlib}/Mailtrace/Database install daemon/lib/Mailtrace/Database/* %{buildroot}/%{perl_vendorlib}/Mailtrace/Database install -d %{buildroot}/%{perl_vendorlib}/Mailtrace/System install daemon/lib/Mailtrace/System/* %{buildroot}/%{perl_vendorlib}/Mailtrace/System ################## # the binaries install -d %{buildroot}/opt/heinlein/mailtrace cd webgui mkdir %{buildroot}/etc/cron.daily/ cp %{SOURCE3} %{buildroot}/etc/cron.daily/mailtraced cp %{SOURCE2} %{buildroot}/usr/share/doc/packages/%{name}/ cp -ar frontend/configs/HMT/SQL %{buildroot}/usr/share/doc/packages/%{name}/ mv frontend %{buildroot}/opt/heinlein/mailtrace mv libs %{buildroot}/opt/heinlein/mailtrace mv api %{buildroot}/opt/heinlein/mailtrace mkdir %{buildroot}/opt/heinlein/mailtrace/frontend/data/update # install httpd.conf file and adapt the configuration install -d -m 0755 %buildroot/%{apache2_my_sysconfdir}/conf.d sed -e "s#__MAILTRACEGUIPATH__#%{elementspath}#g" %{SOURCE1} > %buildroot/%{apache2_my_sysconfdir}/conf.d/%{name}.conf install -d %{buildroot}/%_defaultdocdir/%{name} %package -n mailtrace-daemon Requires: perl-Readonly perl-Cache-Memcached perl-Config-IniFiles perl-Date-Manip perl-DBD-Pg perl-DBD-mysql perl-DateTime memcached Group: Productivity/Networking/Email/Utilities Summary: Mailtrace-Daemon by Heinlein Support %description -n mailtrace-daemon Heinlein ELEMENTS Mailtrace -- Mailtrace-Daemon Authors: -------- Stefan Neben <s.neben@heinlein-support.de> Christoph Graupner <c.graupner@heinlein-support.de> Peer Heinlein <p.heinlein@heinlein-support.de> %files -n mailtrace-daemon %defattr(-,root,root) %attr(755,root,root) %{_sbindir}/* %attr(755,root,root) /etc/init.d/* %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{_sysconfdir}/mailtrace/* %attr(744,root,root) /etc/cron.daily/mailtraced %doc /usr/share/doc/packages/mailtrace-daemon %dir %attr(750,root,root) %{_sysconfdir}/mailtrace %dir %{perl_vendorlib}/Mailtrace %dir %{perl_vendorlib}/Mailtrace/Daemon %dir %{perl_vendorlib}/Mailtrace/Database %dir %{perl_vendorlib}/Mailtrace/System %{perl_vendorlib}/Mailtrace/Daemon/Parsing.pm %{perl_vendorlib}/Mailtrace/Database/Layer.pm %{perl_vendorlib}/Mailtrace/System/Basic.pm %{perl_vendorlib}/Mailtrace/System/Logging.pm ############################################################ %package -n mailtrace-gui Summary: Mailtrace-GUI by Heinlein Support Group: Productivity/Networking/Email/Utilities Requires: http_daemon mod_php_any php5-mysql php5-pgsql php5-sqlite php5-zip %description -n mailtrace-gui Heinlein ELEMENTS Mailtrace -- GUI Authors: -------- Stefan Neben <s.neben@heinlein-support.de> Christoph Graupner <c.graupner@heinlein-support.de> Peer Heinlein <p.heinlein@heinlein-support.de> Henri Schmidt <h.schmidt@heinlein-support.de> %files -n mailtrace-gui %defattr(-,root,root) %dir %attr(755,root,root) /opt/heinlein %doc %_defaultdocdir/%{name} # %dir %{apache2_my_sysconfdir} # %dir %{apache2_my_sysconfdir}/conf.d %config(noreplace) %{apache2_my_sysconfdir}/conf.d/%{name}.conf /opt/heinlein/%{name} # %attr(750,root,root) /etc/mailtrace/* %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/etc %config(noreplace) /opt/heinlein/mailtrace/frontend/etc/users.ini %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/etc/AC %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/etc/HMT %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/data/cache %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/data/cache/templates %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/data/cache/zend %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/data/cache/updates %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/data/cache/updates/export %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/data/cache/updates/import %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/data/session %dir %attr(755,wwwrun,root) /opt/heinlein/mailtrace/frontend/logs %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor