mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:51:59 +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 version 0.1.25
|
||||
%define release 1
|
||||
%define release 2
|
||||
|
||||
Summary: an email archiving application
|
||||
Name: %{name}
|
||||
@ -21,16 +21,15 @@ piler is an email archiving application.
|
||||
%setup
|
||||
|
||||
%build
|
||||
./configure --localstatedir=/var --enable-starttls --enable-tcpwrappers --with-database=mariadb
|
||||
./configure --localstatedir=/var --enable-starttls --enable-tcpwrappers --with-database=mysql
|
||||
make clean all
|
||||
|
||||
%install
|
||||
##mkdir -p /tmp/aa/etc/init.d
|
||||
##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-1.x86_64/usr/local/lib
|
||||
make install DESTDIR=/root/rpmbuild/BUILDROOT/piler-0.1.25-1.x86_64
|
||||
cp /usr/local/lib/libmariadb* /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/etc/init.d
|
||||
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-2.x86_64
|
||||
|
||||
|
||||
%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/pilergetd
|
||||
/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.so
|
||||
/usr/local/lib/libpiler.so.0
|
||||
@ -94,6 +90,9 @@ groupdel piler
|
||||
|
||||
|
||||
%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
|
||||
- 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() {
|
||||
PROMPT=$1
|
||||
DEFAULT=$2
|
||||
@ -204,7 +214,7 @@ gather_mysql_account() {
|
||||
askNonBlank "Please enter mysql user name" "$MYSQL_USERNAME"
|
||||
MYSQL_USERNAME=$response
|
||||
|
||||
askNonBlankNoEcho "Please enter mysql password for $MYSQL_USERNAME" ""
|
||||
askNoEcho "Please enter mysql password for $MYSQL_USERNAME" ""
|
||||
MYSQL_PASSWORD=$response
|
||||
|
||||
askNonBlankNoEcho "Please enter mysql root password" ""
|
||||
|
Loading…
Reference in New Issue
Block a user