updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / massh / PKGBUILD
blob58d57b0302c91942d74105445febf4b5bcc75f1a
1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
4 pkgname=massh
5 pkgver=1.0
6 pkgrel=3
7 pkgdesc="Mass ssh'er that allows for parallel execution of commands on remote systems"
8 arch=('any')
9 url="http://m.a.tt/er/massh.html"
10 license=('GPL3')
11 depends=('openssh')
12 source=("http://m.a.tt/er/$pkgname.tgz"
13         'fix-paths.patch')
14 md5sums=('edd5a0eb9d07af068474873145359e66'
15          '5990a49e673c0fda73a446bb7e562ddd')
17 build() {
18   msg "Nothing to compile for $pkgname"
21 package() {
22   cd "$srcdir/$pkgname-$pkgver"
24   # patch to fix paths
25   ( cd "usr/" && patch -p0 < "$srcdir/fix-paths.patch" )
27   mkdir -p $pkgdir/{etc,usr/{bin,share/doc/$pkgname},var/massh}
29   cp usr/local/bin/* $pkgdir/usr/bin/
30   cp usr/local/etc/* $pkgdir/etc/
31   cp usr/local/share/doc/massh/* $pkgdir/usr/share/doc/$pkgname/
33   # Create some example files
34   cat > $pkgdir/var/$pkgname/script.time << EOT
35 #!/bin/bash
37 # Name: time
38 # Author: Michael Marschall
39 # Modified: 2008.04.25
41 # I use this to check massh's script pushing and executing.
42 date +%Y%m%d%H%M > time.txt
43 date +%Y%m%d%H%M
44 EOT
45   chmod 755 $pkgdir/var/$pkgname/script.time
47   cat > $pkgdir/var/$pkgname/hosts.all << EOT
48 db1.mydomain.com
49 db2.mydomain.com
50 web[1..4].mydomain.com
51 gateway.google.com
52 203.45.133.[10..19]
53 EOT
55   cat > $pkgdir/var/$pkgname/file.motd << EOT
56 You are logged into a machine managed by maash
57 $url
58 EOT
61 # vim:set ts=2 sw=2 et: