1
0
mirror of https://aur.archlinux.org/overlook-fing.git synced 2020-11-18 19:37:31 -08:00

Initial Import

This commit is contained in:
Alain Spaite (Domspaite) 2015-06-08 11:37:31 +02:00
commit 7c1de021b4
4 changed files with 126 additions and 0 deletions

15
.SRCINFO Normal file
View File

@ -0,0 +1,15 @@
pkgbase = overlook-fing
pkgdesc = The ultimate tool for network discovery and scanning
pkgver = 2.2
pkgrel = 3
url = http://www.overlooksoft.com/
arch = i686
arch = x86_64
license = custom:Overlook Freeware license
depends = boost-libs
depends = openssl
depends = zlib
options = !strip
pkgname = overlook-fing

52
PKGBUILD Normal file
View File

@ -0,0 +1,52 @@
# 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=2.2
pkgrel=3
_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)
case $CARCH in
i686)
source=("${pkgname}-${pkgver}.tgz::http://www.overlooksoft.com/packages/linux32/${pkgname}-${pkgver}.tgz"
"fingbox-sentinel.service"
"fingbox-sentinel.script"
)
md5sums=('fa523c841daa6963fda51a32b5972bcd' '013488a7afe3048524df6b7527faae69' '95dbef149b9d3a9ea3bac0bd0c77b343')
;;
x86_64)
source=("${pkgname}-${pkgver}.tgz::http://www.overlooksoft.com/packages/linux64/${pkgname}-${pkgver}.tgz"
"fingbox-sentinel.service"
"fingbox-sentinel.script"
)
md5sums=('3e599f665442631657ebc8bef74d98e1' '013488a7afe3048524df6b7527faae69' '95dbef149b9d3a9ea3bac0bd0c77b343')
;;
esac
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/share/${_altpkgname}/template/conf/sentinel.txt "${pkgdir}"/var/data/${_altpkgname}/sentinel/
install -Dm644 ./usr/share/${_altpkgname}/template/conf/*.properties "${pkgdir}"/etc/${_altpkgname}/
# systemd & fingbox-sentinel
install -Dm755 fingbox-sentinel.service "${pkgdir}"/usr/lib/systemd/system/fingbox-sentinel.service
install -Dm755 fingbox-sentinel.script "${pkgdir}"/usr/lib/systemd/scripts/fingbox-sentinel
# license
install -dm755 "${pkgdir}"/usr/share/licenses/${_altpkgname}
ln -s /usr/share/${_altpkgname}/doc/license.txt "${pkgdir}"/usr/share/licenses/${_altpkgname}/license
}
# vim:set ts=2 sw=2 et ft=sh tw=100:

45
fingbox-sentinel.script Executable file
View File

@ -0,0 +1,45 @@
#!/usr/bin/env bash
#
# Copyright 2012 by Overlook
# description: Fingbox Sentinel
#
# Start the service
start() {
echo -n "Starting fingbox-sentinel: "
export LD_LIBRARY_PATH="/usr/lib/fing"
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
ulimit -n 1024
ulimit -c 0
nohup /usr/lib/fing/fing.bin --sentinel >/dev/null 2>/dev/null &
echo $! > /run/fingbox-sentinel.pid
### Create the lock file ###
touch /run/lock/subsys/fingbox-sentinel
#success $"fingbox-sentinel startup"
#echo
}
# Stop the service
stop() {
echo -n "Stopping fingbox-sentinel: "
killall fingbox-sentinel
### Now, delete the lock file ###
rm -f /run/lock/subsys/fingbox-sentinel
}
### main logic ###
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart|reload}"
exit 1
esac
exit 0

14
fingbox-sentinel.service Executable file
View File

@ -0,0 +1,14 @@
[Unit]
Description=Fingbox Sentinel
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/run/fingbox-sentinel.pid
ExecStart=/usr/lib/systemd/scripts/fingbox-sentinel start
ExecStop=/usr/lib/systemd/scripts/fingbox-sentinel stop
ExecReload=/usr/lib/systemd/scripts/fingbox-sentinel restart
[Install]
WantedBy=multi-user.target