diff options
-rw-r--r-- | rkhunter/PKGBUILD | 44 | ||||
-rw-r--r-- | vim-nerdtree/PKGBUILD | 12 | ||||
-rw-r--r-- | vim-nerdtree/vimdoc.install | 2 |
3 files changed, 51 insertions, 7 deletions
diff --git a/rkhunter/PKGBUILD b/rkhunter/PKGBUILD new file mode 100644 index 0000000..a23cdb4 --- /dev/null +++ b/rkhunter/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Pierre Schmitz <pierre@archlinux.de> + +pkgname=rkhunter +pkgver=1.3.4 +pkgrel=2 +pkgdesc="An easy-to-use tool which checks machines running UNIX (clones) for the presence of rootkits and other unwanted tools." +arch=('i686' 'x86_64') +url="http://rkhunter.sourceforge.net/" +license=('GPL') +depends=('bash' 'perl' 'wget') +backup=(etc/rkhunter.conf) +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz) + +md5sums=('31eaacc4d01ad138d1a4283f105088e6') + +build() { + cd $srcdir/${pkgname}-${pkgver} + + install -d -m755 $pkgdir/usr + +# fix installer for x86_64 + sed -i -e "s/lib64/lib/g" installer.sh + +# install to /usr + ./installer.sh --layout custom $pkgdir/usr --striproot $pkgdir --install || return 1 + +# use /etc instead of /usr/etc + sed -i -e "s#/usr/etc/rkhunter.conf#/etc/rkhunter.conf#g" $pkgdir/usr/bin/rkhunter + mv $pkgdir/usr/etc $pkgdir/ + mv $pkgdir/usr/var $pkgdir/ + +# tmp dir path fix + sed -i -e "s#/usr/var/lib/rkhunter/db#/var/lib/rkhunter/db#g" \ + $pkgdir/etc/rkhunter.conf + sed -i -e "s#/usr/var/lib/rkhunter/tmp#/var/lib/rkhunter/tmp#g" \ + $pkgdir/etc/rkhunter.conf + +# cleanup + rm -f $pkgdir/var/lib/rkhunter/tmp/{group,passwd} + +# we trust in udev + sed -i 's|^#ALLOWHIDDENDIR=/dev/.udev$|ALLOWHIDDENDIR=/dev/.udev|' $pkgdir/etc/rkhunter.conf +} diff --git a/vim-nerdtree/PKGBUILD b/vim-nerdtree/PKGBUILD index 4e87897..c9d5671 100644 --- a/vim-nerdtree/PKGBUILD +++ b/vim-nerdtree/PKGBUILD @@ -1,10 +1,10 @@ # Maintainer: Laszlo Papp <djszapi @ gmail at com> pkgname=vim-nerdtree -pkgver=3.1.1 -_scriptid=10767 -pkgrel=4 +pkgver=4.0.0 +_scriptid=11500 +pkgrel=1 pkgdesc="A tree explorer plugin for navigating the filesystem" -arch=(i686 x86_64) +arch=('i686' 'x86_64') url="http://www.vim.org/scripts/script.php?script_id=1658" license=('custom') depends=(vim) @@ -16,9 +16,9 @@ md5sums=('985c217d687eceeb3146145a8bbe6cd9' 'efbd5986e691ce8c876fb86e8f5961ea') build() { - install -d ${pkgdir}/usr/share/vim/vimfiles/{doc,plugin} + install -d ${pkgdir}/usr/share/vim/vimfiles/{doc,plugin} || return 1 install -Dm755 ${srcdir}/doc/* ${pkgdir}/usr/share/vim/vimfiles/doc/ || return 1 install -Dm755 ${srcdir}/plugin/* ${pkgdir}/usr/share/vim/vimfiles/plugin/ || return 1 - install -Dm755 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt + install -Dm755 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt || return 1 } diff --git a/vim-nerdtree/vimdoc.install b/vim-nerdtree/vimdoc.install index 220693c..1140029 100644 --- a/vim-nerdtree/vimdoc.install +++ b/vim-nerdtree/vimdoc.install @@ -1,6 +1,6 @@ post_install() { echo -n "Updating vim help tags..." - /usr/bin/vim --noplugins -u NONE -U NONE \ + /usr/bin/vim/vimfiles --noplugins -u NONE -U NONE \ --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1 echo "done." } |