mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:20:11 +01:00
rpm fixes
This commit is contained in:
parent
14347acc9c
commit
2e3b00753c
13
piler.spec
13
piler.spec
@ -9,11 +9,10 @@ Release: %{release}
|
|||||||
License: gpl
|
License: gpl
|
||||||
Group: Networking/Mail
|
Group: Networking/Mail
|
||||||
Source0: master.tar.gz
|
Source0: master.tar.gz
|
||||||
Source1: %{name}.init
|
|
||||||
URL: http://www.mailpiler.org/
|
URL: http://www.mailpiler.org/
|
||||||
Buildroot: /tmp/aa
|
Buildroot: /tmp/aa
|
||||||
BuildRequires: openssl-devel, tcp_wrappers, poppler-utils, libzip-devel, catdoc, mysql-devel, tnef, unrtf, tre-devel
|
BuildRequires: openssl-devel, tcp_wrappers, poppler-utils, libzip-devel, catdoc, mysql-devel, tnef, unrtf, tre-devel
|
||||||
Requires: mysql, openssl, tcp_wrappers, libzip
|
Requires: mysql, openssl, tcp_wrappers, libzip, poppler-utils, catdoc, tnef, unrtf, tre
|
||||||
|
|
||||||
%description
|
%description
|
||||||
piler is an email archiving application.
|
piler is an email archiving application.
|
||||||
@ -38,7 +37,9 @@ cp /usr/local/lib/libmariadb* /root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64/usr
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /var/piler
|
%dir /var/piler
|
||||||
%dir /var/piler/tmp
|
%dir /var/piler/tmp
|
||||||
|
%dir /var/piler/sphinx
|
||||||
%dir /var/piler/store
|
%dir /var/piler/store
|
||||||
|
%dir /var/piler/stat
|
||||||
%dir /var/run/piler
|
%dir /var/run/piler
|
||||||
%attr(0655,piler,piler) /usr/local/bin/pileraget
|
%attr(0655,piler,piler) /usr/local/bin/pileraget
|
||||||
%attr(0655,piler,piler) /usr/local/bin/pilerexport
|
%attr(0655,piler,piler) /usr/local/bin/pilerexport
|
||||||
@ -49,7 +50,7 @@ cp /usr/local/lib/libmariadb* /root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64/usr
|
|||||||
/etc/init.d/rc.piler
|
/etc/init.d/rc.piler
|
||||||
/etc/init.d/rc.pilergetd
|
/etc/init.d/rc.pilergetd
|
||||||
/etc/init.d/rc.searchd
|
/etc/init.d/rc.searchd
|
||||||
/usr/local/etc/piler.conf
|
%attr(0640,root,piler) /usr/local/etc/piler.conf
|
||||||
/usr/local/etc/sphinx.conf.dist
|
/usr/local/etc/sphinx.conf.dist
|
||||||
/usr/local/sbin/piler
|
/usr/local/sbin/piler
|
||||||
/usr/local/sbin/pilergetd
|
/usr/local/sbin/pilergetd
|
||||||
@ -81,8 +82,11 @@ if [ -d /var/piler ]; then chmod 755 /var/piler; fi
|
|||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
chown -R piler:piler /var/run/piler /var/piler
|
||||||
|
echo /usr/local/lib > /etc/ld.so.conf.d/piler.conf
|
||||||
|
ldconfig
|
||||||
echo this is the postinstall stuff...
|
echo this is the postinstall stuff...
|
||||||
|
echo run /usr/local/libexec/piler/postinstall.sh manually to configure piler
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
userdel piler
|
userdel piler
|
||||||
@ -93,3 +97,4 @@ groupdel piler
|
|||||||
* Fri Oct 25 2013 Janos Suto
|
* Fri Oct 25 2013 Janos Suto
|
||||||
- First release of the rpm package based on build 846
|
- First release of the rpm package based on build 846
|
||||||
|
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ gather_mysql_account() {
|
|||||||
|
|
||||||
gather_sphinx_data() {
|
gather_sphinx_data() {
|
||||||
|
|
||||||
if [ $INDEXER = "/usr/bin/indexer" ]; then SPHINXCFG="/etc/sphinx.conf"; fi
|
if [ $INDEXER = "/usr/bin/indexer" ]; then SPHINXCFG="/etc/sphinx/sphinx.conf"; fi
|
||||||
|
|
||||||
if test -f /etc/sphinxsearch/sphinx.conf || test -f /etc/sphinxsearch/sphinx.conf.sample ; then SPHINXCFG="/etc/sphinxsearch/sphinx.conf"; fi
|
if test -f /etc/sphinxsearch/sphinx.conf || test -f /etc/sphinxsearch/sphinx.conf.sample ; then SPHINXCFG="/etc/sphinxsearch/sphinx.conf"; fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user