-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
above: add package. #4465
base: master
Are you sure you want to change the base?
above: add package. #4465
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,36 @@ | ||||||||||||||||||||||||||||||||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||||||||||||||||||||||||||||||||
# See COPYING for license details. | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
pkgname=above | ||||||||||||||||||||||||||||||||
pkgver=222.4789d6e | ||||||||||||||||||||||||||||||||
pkgrel=1 | ||||||||||||||||||||||||||||||||
pkgdesc='Network Protocols Sniffer.' | ||||||||||||||||||||||||||||||||
arch=('any') | ||||||||||||||||||||||||||||||||
groups=('blackarch' 'blackarch-sniffer' 'blackarch-scanner' | ||||||||||||||||||||||||||||||||
'blackarch-fingerprint' 'blackarch-networking' 'blackarch-recon' | ||||||||||||||||||||||||||||||||
'blackarch-voip') | ||||||||||||||||||||||||||||||||
url='https://github.com/casterbyte/Above' | ||||||||||||||||||||||||||||||||
license=('GPL3') | ||||||||||||||||||||||||||||||||
depends=('python' 'python-virtualenv' 'scapy' 'python-colorama') | ||||||||||||||||||||||||||||||||
makedepends=('git' 'python-setuptools' 'python-pip') | ||||||||||||||||||||||||||||||||
source=("$pkgname::git+https://github.com/casterbyte/Above.git") | ||||||||||||||||||||||||||||||||
sha512sums=('SKIP') | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
pkgver() { | ||||||||||||||||||||||||||||||||
cd $pkgname | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) | ||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||
Comment on lines
+19
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
ref. https://github.com/BlackArch/blackarch-pkgbuilds/blob/master/PKGBUILD-generic-git there are git tags https://github.com/casterbyte/Above/tags |
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
build() { | ||||||||||||||||||||||||||||||||
cd "$pkgname" | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
python setup.py build | ||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
package() { | ||||||||||||||||||||||||||||||||
cd "$pkgname" | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build | ||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
post_install() { | ||
set -e | ||
cd /usr/share/above | ||
python -m venv venv | ||
source venv/bin/activate && | ||
pip install --isolated --root="/usr/share/above" --prefix='venv' \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the dependencies look simple, why use a virtual env? https://github.com/casterbyte/Above/blob/4789d6eed0dce7aaf6103852fe7915c6e1d56a5d/setup.py#L16-L18 |
||
above | ||
} | ||
|
||
post_upgrade() { | ||
post_install "$@" | ||
} | ||
|
||
post_remove() { | ||
rm -r /usr/share/above | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SPDX identifiers please https://spdx.org/licenses/
ref. https://wiki.archlinux.org/title/PKGBUILD#license