summaryrefslogtreecommitdiff
path: root/development/couchdb/couchdb.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-16 23:07:30 +0200
committerdsomero <xgizzmo@slackbuilds.org>2012-09-16 19:44:43 -0400
commit71d6e5d82d257c97b054f7865eb0b6aa4dc49194 (patch)
treea9c1982cf20de69b0009a57fc70ca07ea0943e96 /development/couchdb/couchdb.SlackBuild
parent0b8101c7c5c679b25249b6a854a81c64753becd0 (diff)
downloadslackbuilds-71d6e5d82d257c97b054f7865eb0b6aa4dc49194.tar.gz
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>
Diffstat (limited to 'development/couchdb/couchdb.SlackBuild')
-rw-r--r--development/couchdb/couchdb.SlackBuild23
1 files changed, 12 insertions, 11 deletions
diff --git a/development/couchdb/couchdb.SlackBuild b/development/couchdb/couchdb.SlackBuild
index 54e70c7947..580ed7b574 100644
--- a/development/couchdb/couchdb.SlackBuild
+++ b/development/couchdb/couchdb.SlackBuild
@@ -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 \