1 # Maintainer: Aurelien Cedeyn <aurelien.cedeyn@gmail.com>
4 true && pkgname=(clustershell vim-clustershell)
7 pkgdesc="Python framework for efficient cluster administration"
9 url="http://clustershell.sourceforge.net"
10 license=('custom:CeCILL')
12 makedepends=('python2' 'setuptools')
13 source=(http://sourceforge.net/projects/clustershell/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz/download)
14 md5sums=('027506d825ecc4b361f49d0742e63332')
15 changelog=clustershell.changelog
18 echo "Directory: ${srcdir}/${pkgname}-${pkgver}"
19 cd ${srcdir}/${pkgname}-${pkgver}
20 python2 setup.py build
22 package_clustershell(){
23 optdepends=('openssh: Secure SHell client to connect to distant machines')
24 cd ${srcdir}/${pkgname}-${pkgver}
25 python2 setup.py install -O1 --skip-build --root="${pkgdir}"
27 install -d ${pkgdir}/etc/clustershell
28 install -p -m 0644 conf/*.conf ${pkgdir}/etc/clustershell/
31 install -d ${pkgdir}/usr/share/man/{man1,man5}
32 install -p -m 0644 doc/man/man1/clubak.1 ${pkgdir}/usr/share/man/man1/
33 install -p -m 0644 doc/man/man1/clush.1 ${pkgdir}/usr/share/man/man1/
34 install -p -m 0644 doc/man/man1/nodeset.1 ${pkgdir}/usr/share/man/man1/
35 install -p -m 0644 doc/man/man5/clush.conf.5 ${pkgdir}/usr/share/man/man5/
36 install -p -m 0644 doc/man/man5/groups.conf.5 ${pkgdir}/usr/share/man/man5/
37 install -D -m644 Licence_CeCILL-C_V1-en.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
40 package_vim-clustershell(){
42 local vimdatadir=/usr/share/vim/vimfiles
43 cd ${srcdir}/${pkgname}-${pkgver}
45 install -d ${pkgdir}/$vimdatadir/{ftdetect,syntax}
46 install -p -m 0644 doc/extras/vim/ftdetect/clustershell.vim ${pkgdir}/${vimdatadir}/ftdetect/
47 install -p -m 0644 doc/extras/vim/syntax/clushconf.vim ${pkgdir}/${vimdatadir}/syntax/
48 install -p -m 0644 doc/extras/vim/syntax/groupsconf.vim ${pkgdir}/${vimdatadir}/syntax/