summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c477a61ddf37619fd89d1e859ce6ce5ebbb0d889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# Created: 08/12/2010
# Maintainer: Salan54 <salan at fremenil dot com>
# Modified: 05/16/2013
pkgname=overlook-fing
pkgver=3.0
pkgrel=2
_altpkgname=fing
pkgdesc='The ultimate tool for network discovery and scanning'
arch=('i686' 'x86_64')
url='http://www.overlooksoft.com/'
license=('custom:Overlook Freeware license')
depends=('boost-libs' 'openssl' 'zlib')
options=(!strip)
source_i686=("${pkgname}-${arch}-${pkgver}.tgz::https://www.fingbox.com/download?plat=lx32&ext=tgz"
    "fingbox-sentinel.service"
    "fingbox-sentinel.script"
    )
md5sums_i686=('152c9d622736b2d493ec5dfbe77b8dd7' '013488a7afe3048524df6b7527faae69' '95dbef149b9d3a9ea3bac0bd0c77b343')
source_x86_64=("${pkgname}-${arch}-${pkgver}.tgz::https://www.fingbox.com/download?plat=lx64&ext=tgz"
    "fingbox-sentinel.service"
    "fingbox-sentinel.script"
    )
md5sums_x86_64=('0350ae0d059856ca4e2d417cd655db22' '013488a7afe3048524df6b7527faae69' '95dbef149b9d3a9ea3bac0bd0c77b343')

package() {
  cd "$srcdir"
  cp -r usr $pkgdir/
  install -dm755 "${pkgdir}"/etc/${_altpkgname}
  install -dm755 "${pkgdir}"/var/data/${_altpkgname}/{box,sentinel}
  install -dm755 "${pkgdir}"/var/log/${_altpkgname}

  install -Dm644 ./usr/local/share/${_altpkgname}/template/conf/sentinel.txt "${pkgdir}"/var/data/${_altpkgname}/sentinel/
  install -Dm644 ./usr/local/share/${_altpkgname}/template/conf/*.properties "${pkgdir}"/etc/${_altpkgname}/

  # systemd & fingbox-sentinel
  install -Dm755 fingbox-sentinel.service "${pkgdir}"/usr/local/lib/systemd/system/fingbox-sentinel.service
  install -Dm755 fingbox-sentinel.script "${pkgdir}"/usr/local/lib/systemd/scripts/fingbox-sentinel

  # license
  install -dm755 "${pkgdir}"/usr/local/share/licenses/${_altpkgname}
  ln -s /usr/local/share/${_altpkgname}/doc/license.txt "${pkgdir}"/usr/local/share/licenses/${_altpkgname}/license
}

# vim:set ts=2 sw=2 et ft=sh tw=100: