-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dnswatch: add package * Create dnswatch.install * Update to-release * Update packages/dnswatch/PKGBUILD Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update PKGBUILD --------- Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dnswatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=dnswatch | ||
pkgver=dnswatch.1.r16.gea62872 | ||
pkgrel=1 | ||
pkgdesc='DNS Traffic Sniffer and Analyzer.' | ||
arch=('any') | ||
groups=('blackarch' 'blackarch-sniffer') | ||
url='https://github.com/HalilDeniz/DNSWatch' | ||
license=('MIT') | ||
depends=('python' 'python-argparse' 'python-pyfiglet' 'python-requests' 'python-scapy') | ||
makedepends=('git' 'python-setuptools') | ||
source=("git+https://github.com/HalilDeniz/$pkgname.git") | ||
sha512sums=('SKIP') | ||
|
||
pkgver() { | ||
cd $pkgname | ||
|
||
( set -o pipefail | ||
git describe --long --tags --abbrev=7 2>/dev/null | | ||
sed 's/\([^-]*-g\)/r\1/;s/-/./g' || | ||
printf "%s.%s" "$(git rev-list --count HEAD)" \ | ||
"$(git rev-parse --short=7 HEAD)" | ||
) | ||
} | ||
|
||
build() { | ||
cd $pkgname | ||
|
||
python setup.py build | ||
} | ||
|
||
package() { | ||
cd $pkgname | ||
|
||
python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
post_install() { | ||
set -e | ||
cd /usr/share/dnswatch | ||
python -m venv venv | ||
source venv/bin/activate && | ||
pip install --isolated --root="/usr/share/dnswatch" --prefix='venv' \ | ||
-r requirements.txt | ||
pip install -e . | ||
} | ||
|
||
post_upgrade() { | ||
post_install "$@" | ||
} |