mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +01:00
updated spec file
This commit is contained in:
parent
61c889866f
commit
07d0b54746
17
piler.spec
17
piler.spec
@ -1,6 +1,6 @@
|
|||||||
%define name piler
|
%define name piler
|
||||||
%define version 0.1.25
|
%define version 0.1.25
|
||||||
%define release 1
|
%define release 2
|
||||||
|
|
||||||
Summary: an email archiving application
|
Summary: an email archiving application
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
@ -21,16 +21,15 @@ piler is an email archiving application.
|
|||||||
%setup
|
%setup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --localstatedir=/var --enable-starttls --enable-tcpwrappers --with-database=mariadb
|
./configure --localstatedir=/var --enable-starttls --enable-tcpwrappers --with-database=mysql
|
||||||
make clean all
|
make clean all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
##mkdir -p /tmp/aa/etc/init.d
|
##mkdir -p /tmp/aa/etc/init.d
|
||||||
##make install DESTDIR=/tmp/aa
|
##make install DESTDIR=/tmp/aa
|
||||||
mkdir -p /root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64/etc/init.d
|
mkdir -p /root/rpmbuild/BUILDROOT/piler-0.1.25-2.x86_64/etc/init.d
|
||||||
mkdir -p /root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64/usr/local/lib
|
mkdir -p /root/rpmbuild/BUILDROOT/piler-0.1.25-2.x86_64/usr/local/lib
|
||||||
make install DESTDIR=/root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64
|
make install DESTDIR=/root/rpmbuild/BUILDROOT/piler-0.1.25-2.x86_64
|
||||||
cp /usr/local/lib/libmariadb* /root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64/usr/local/lib
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -55,9 +54,6 @@ cp /usr/local/lib/libmariadb* /root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64/usr
|
|||||||
/usr/local/sbin/piler
|
/usr/local/sbin/piler
|
||||||
/usr/local/sbin/pilergetd
|
/usr/local/sbin/pilergetd
|
||||||
/usr/local/sbin/pilerconf
|
/usr/local/sbin/pilerconf
|
||||||
/usr/local/lib/libmariadbclient.a
|
|
||||||
/usr/local/lib/libmariadb.so
|
|
||||||
/usr/local/lib/libmariadb.so.1
|
|
||||||
/usr/local/lib/libpiler.a
|
/usr/local/lib/libpiler.a
|
||||||
/usr/local/lib/libpiler.so
|
/usr/local/lib/libpiler.so
|
||||||
/usr/local/lib/libpiler.so.0
|
/usr/local/lib/libpiler.so.0
|
||||||
@ -94,6 +90,9 @@ groupdel piler
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 1 2013 Janos Suto
|
||||||
|
- Fixed a bug causing issues when reading the retention|archiving_rules tables
|
||||||
|
|
||||||
* 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
|
||||||
|
|
||||||
|
@ -109,6 +109,16 @@ ask() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
askNoEcho() {
|
||||||
|
PROMPT=$1
|
||||||
|
DEFAULT=$2
|
||||||
|
|
||||||
|
stty -echo
|
||||||
|
ask "$PROMPT" "$DEFAULT"
|
||||||
|
stty echo
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
askNonBlankNoEcho() {
|
askNonBlankNoEcho() {
|
||||||
PROMPT=$1
|
PROMPT=$1
|
||||||
DEFAULT=$2
|
DEFAULT=$2
|
||||||
@ -204,7 +214,7 @@ gather_mysql_account() {
|
|||||||
askNonBlank "Please enter mysql user name" "$MYSQL_USERNAME"
|
askNonBlank "Please enter mysql user name" "$MYSQL_USERNAME"
|
||||||
MYSQL_USERNAME=$response
|
MYSQL_USERNAME=$response
|
||||||
|
|
||||||
askNonBlankNoEcho "Please enter mysql password for $MYSQL_USERNAME" ""
|
askNoEcho "Please enter mysql password for $MYSQL_USERNAME" ""
|
||||||
MYSQL_PASSWORD=$response
|
MYSQL_PASSWORD=$response
|
||||||
|
|
||||||
askNonBlankNoEcho "Please enter mysql root password" ""
|
askNonBlankNoEcho "Please enter mysql root password" ""
|
||||||
|
Loading…
Reference in New Issue
Block a user