diff options
author | Daniele Formichelli | 2015-06-09 09:37:26 +0200 |
---|---|---|
committer | Daniele Formichelli | 2015-06-09 09:37:26 +0200 |
commit | ace01410f7ecbd571c238b4bb6d801234d5d6c9a (patch) | |
tree | 190f5fb0f8ed48d960eda907223aff2ba477e17b | |
download | aur-portolan.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | portolan.install | 23 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0b575dff654c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = portolan + pkgdesc = Portolan internet measurement tool + pkgver = 1.0.1 + pkgrel = 1 + url = http://portolan.iet.unipi.it/ + install = portolan.install + arch = any + license = custom + depends = java-runtime>=6 + depends = wireless_tools + source = http://portolan.iet.unipi.it/wp-content/uploads/2014/11/portolan-1.0.1.tar.gz + sha512sums = SKIP + +pkgname = portolan + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..246fd074e8f7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: danyf90 <daniele.formichelli@gmail.com> + +pkgname=portolan +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Portolan internet measurement tool" +arch=('any') +depends=('java-runtime>=6' 'wireless_tools') +license=('custom') +url="http://portolan.iet.unipi.it/" +install=$pkgname.install +source=("http://portolan.iet.unipi.it/wp-content/uploads/2014/11/portolan-$pkgver.tar.gz") +sha512sums=('SKIP') + +package() { + cd $srcdir/$pkgname/linux + + # Remove final wait and set installation directory + sed -i "s/read.*//" install.sh + export DESTDIR=$pkgdir + + ./install.sh > /dev/null + + # Remove unused file + rm -r $pkgdir/etc + rm $pkgdir/usr/share/$pkgname/uninstall.sh +} diff --git a/portolan.install b/portolan.install new file mode 100644 index 000000000000..19ede8c91c13 --- /dev/null +++ b/portolan.install @@ -0,0 +1,23 @@ +post_install() { + systemctl daemon-reload + systemctl start portolan + systemctl enable portolan +} + +pre_upgrade() { + systemctl stop portolan +} + +post_upgrade() { + systemctl daemon-reload + systemctl start portolan +} + +pre_remove() { + systemctl stop portolan + systemctl disable portolan +} + +post_remove() { + rm -rf /usr/share/portolan +}
\ No newline at end of file |