aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/couchdb/couchdb.SlackBuild23
-rw-r--r--development/couchdb/couchdb.info8
2 files changed, 16 insertions, 15 deletions
diff --git a/development/couchdb/couchdb.SlackBuild b/development/couchdb/couchdb.SlackBuild
index 54e70c7947147..580ed7b574f89 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 \
diff --git a/development/couchdb/couchdb.info b/development/couchdb/couchdb.info
index 92bbb828d3d05..65ae68198779b 100644
--- a/development/couchdb/couchdb.info
+++ b/development/couchdb/couchdb.info
@@ -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"