mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:57:17 +08:00
new post_install() in strigi: it adds nepomuk optimization to /etc/sysctl.conf
This commit is contained in:
parent
00287d67e4
commit
ca3ce0ed65
@ -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
13
strigi/strigi.install
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user