new post_install() in strigi: it adds nepomuk optimization to /etc/sysctl.conf

This commit is contained in:
Giuseppe Calà 2010-11-22 13:30:26 +00:00
parent 00287d67e4
commit ca3ce0ed65
2 changed files with 22 additions and 4 deletions

View File

@ -1,10 +1,14 @@
# $Id: PKGBUILD 71665 2010-03-08 00:17:23Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=strigi
pkgver=0.7.2
pkgrel=2
pkgrel=3
pkgdesc="Fast crawling desktop search engine with Qt4 GUI"
arch=('i686' 'x86_64')
url="http://www.vandenoever.info/software/strigi/"
@ -14,6 +18,7 @@ makedepends=('cmake' 'pkgconfig')
source=("http://www.vandenoever.info/software/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('ca09ba176cf3ffe9afce4d92f38f9a85')
options=('!libtool')
install=$pkgname.install
build() {
cd $srcdir

13
strigi/strigi.install Normal file
View File

@ -0,0 +1,13 @@
post_install() {
if grep -q "fs.inotify.max_user_watches = 524288" "/etc/sysctl.conf" ; then
echo "nepomuk optimization found"
else
echo "fs.inotify.max_user_watches = 524288" >> /etc/sysctl.conf
fi
}
post_upgrade() {
post_install $1
}