development/couchdb: Updated for version 1.2.0.

Added a "su" option to the logrotate script, cleanups

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-16 23:07:30 +02:00 committed by dsomero
parent 0b8101c7c5
commit 71d6e5d82d
2 changed files with 16 additions and 15 deletions

View file

@ -6,7 +6,7 @@
# Heavily modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=couchdb
VERSION=0.11.0
VERSION=1.2.0
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -93,23 +93,24 @@ chown -R couchdb:couchdb $PKG/etc/couchdb $PKG/var/{lib,log,run}/couchdb
chmod 0770 $PKG/etc/couchdb $PKG/var/{lib,log,run}/couchdb
# Use the correct name for the init script and don't clobber it on upgrades
mv $PKG/etc/rc.d/couchdb $PKG/etc/rc.d/rc.couchdb.new
mv $PKG/etc/rc.d/{couchdb,rc.couchdb.new}
chmod 0755 $PKG/etc/rc.d/rc.couchdb.new
# Don't clobber a few other config files
mv $PKG/etc/couchdb/default.ini $PKG/etc/couchdb/default.ini.new
mv $PKG/etc/couchdb/local.ini $PKG/etc/couchdb/local.ini.new
mv $PKG/etc/couchdb/default.ini{,.new}
mv $PKG/etc/couchdb/local.ini{,.new}
mv $PKG/etc/default/couchdb{,.new}
# Don't clobber the logrotate script either
mv $PKG/etc/logrotate.d/couchdb $PKG/etc/logrotate.d/couchdb.new
# Don't clobber the logrotate script either and add a "su" command to it
mv $PKG/etc/logrotate.d/couchdb{,.new}
sed -i '6 a\
su couchdb couchdb' $PKG/etc/logrotate.d/couchdb.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \

View file

@ -1,10 +1,10 @@
PRGNAM="couchdb"
VERSION="0.11.0"
VERSION="1.2.0"
HOMEPAGE="http://couchdb.apache.org/"
DOWNLOAD="http://apache.crihan.fr/dist/couchdb/0.11.0/apache-couchdb-0.11.0.tar.gz"
MD5SUM="c1784e3850da01dc37dad20c5b1a85f8"
DOWNLOAD="http://apache.fastbull.org/couchdb/releases/1.2.0/apache-couchdb-1.2.0.tar.gz"
MD5SUM="a5cbbcaac288831b3d8a08b725657f10"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="js erlang-otp"
REQUIRES="erlang-otp"
MAINTAINER="Nicolas Steinmetz"
EMAIL="nsteinmetz@gmail.com"