diff options
Diffstat (limited to 'development/couchdb/couchdb.SlackBuild')
-rw-r--r-- | development/couchdb/couchdb.SlackBuild | 23 |
1 files changed, 12 insertions, 11 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 \ |