summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Hafner2020-02-03 17:35:04 +0100
committerFabian Hafner2020-02-03 17:35:04 +0100
commitf18a3f67c05221435869c8eceba02777979550c6 (patch)
treecda163cd063fe5a0768a280c84bcef424aaee440
downloadaur-f18a3f67c05221435869c8eceba02777979550c6.tar.gz
Python 3 Smbmap GIT Initial
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD29
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..ca257c8ef62c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-smbmap-git
+ pkgdesc = SMBMap allows users to enumerate samba share drives across an entire domain
+ pkgver = 1.1.0.r20.g8196f3a
+ pkgrel = 1
+ url = https://github.com/ShawnDEvans/smbmap
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = python
+ depends = python-pyasn1
+ depends = python-pycryptodome
+ depends = python-impacket-git
+ provides = python-smbmap-git
+ conflicts = smbmap
+ conflicts = python2-smbmap-git
+ source = git+https://github.com/ShawnDEvans/smbmap.git#branch=master
+ md5sums = SKIP
+
+pkgname = python-smbmap-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..7499df96a34d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: coldbug <coldBug@e.mail.de>
+_pkgbase=smbmap
+pkgname=python-smbmap-git
+pkgver=1.1.0.r20.g8196f3a
+pkgrel=1
+pkgdesc="SMBMap allows users to enumerate samba share drives across an entire domain"
+arch=(any)
+url="https://github.com/ShawnDEvans/smbmap"
+license=('GPL3')
+depends=('python' 'python-pyasn1' 'python-pycryptodome' 'python-impacket-git')
+makedepends=('git')
+provides=("${pkgname}")
+conflicts=('smbmap' 'python2-smbmap-git')
+source=('git+https://github.com/ShawnDEvans/smbmap.git#branch=master')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${_pkgbase}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "$srcdir/${_pkgbase}"
+
+ install -v -m755 -d "${pkgdir}/usr/bin"
+ install -v -m755 -d "${pkgdir}/usr/share/doc/${pkgname}"
+ install -v -m644 {README.md,LICENSE} "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -v -m755 "smbmap.py" "${pkgdir}/usr/bin/smbmap"
+}