summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD28
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b9b3023f351
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python2-smbmap-git
+ pkgdesc = SMBMap allows users to enumerate samba share drives across an entire domain
+ pkgver = 1.0.5.r15.gb55fc05
+ pkgrel = 1
+ url = https://github.com/ShawnDEvans/smbmap
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = python2
+ depends = python2-pyasn1
+ depends = python2-pycryptodome
+ depends = impacket
+ provides = python2-smbmap-git
+ conflicts = smbmap
+ source = smbmap::git+https://github.com/ShawnDEvans/smbmap.git#branch=master
+ md5sums = SKIP
+
+pkgname = python2-smbmap-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5a89df5c813
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: coldbug <coldBug@e.mail.de>
+pkgname=python2-smbmap-git
+pkgver=1.0.5.r15.gb55fc05
+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=('python2' 'python2-pyasn1' 'python2-pycryptodome' 'impacket')
+makedepends=('git')
+provides=("${pkgname}")
+conflicts=("smbmap")
+source=('smbmap::git+https://github.com/ShawnDEvans/smbmap.git#branch=master')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/smbmap"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "$srcdir/smbmap"
+
+ 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"
+}