[arch-commits] Commit in (5 files)
Levente Polyak
anthraxx at archlinux.org
Thu Nov 22 22:07:00 UTC 2018
Date: Thursday, November 22, 2018 @ 22:07:00
Author: anthraxx
Revision: 409381
addpkg: sn0int 0.5.1-2
Added:
sn0int/
sn0int/repos/
sn0int/trunk/
sn0int/trunk/PKGBUILD
sn0int/trunk/sn0int.install
----------------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
sn0int.install | 9 +++++++++
2 files changed, 53 insertions(+)
Added: sn0int/trunk/PKGBUILD
===================================================================
--- sn0int/trunk/PKGBUILD (rev 0)
+++ sn0int/trunk/PKGBUILD 2018-11-22 22:07:00 UTC (rev 409381)
@@ -0,0 +1,44 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: kpcyrd <git at rxv.cc>
+
+pkgname=sn0int
+pkgver=0.5.1
+pkgrel=2
+pkgdesc='OSINT framework and package manager'
+url='https://github.com/kpcyrd/sn0int'
+arch=('x86_64')
+license=('GPL3')
+depends=('libcap' 'sqlite' 'libseccomp' 'geoip2-database' 'publicsuffix-list')
+makedepends=('cargo' 'python-sphinx')
+install=sn0int.install
+source=(https://github.com/kpcyrd/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('0737b2187485914423db397e5154d2e5580ba98c9d3097922d4d9128d4780e54')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cargo build --release --locked
+ make -C docs man
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ cargo test --release --locked
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
+
+ install -d "${pkgdir}/usr/share/bash-completion/completions" \
+ "${pkgdir}/usr/share/zsh/site-functions" \
+ "${pkgdir}/usr/share/fish/vendor_completions.d"
+ "${pkgdir}/usr/bin/sn0int" completions bash > "${pkgdir}/usr/share/bash-completion/completions/sn0int"
+ "${pkgdir}/usr/bin/sn0int" completions zsh > "${pkgdir}/usr/share/zsh/site-functions/_sn0int"
+ "${pkgdir}/usr/bin/sn0int" completions fish > "${pkgdir}/usr/share/fish/vendor_completions.d/sn0int.fish"
+
+ install -Dm 644 docs/_build/man/sn0int.1 -t "${pkgdir}/usr/share/man/man1"
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
Added: sn0int/trunk/sn0int.install
===================================================================
--- sn0int/trunk/sn0int.install (rev 0)
+++ sn0int/trunk/sn0int.install 2018-11-22 22:07:00 UTC (rev 409381)
@@ -0,0 +1,9 @@
+post_install() {
+ setcap cap_sys_chroot=ep usr/bin/sn0int 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list