summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40c0f9174c92a65d651a25d83553bdef93883b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: GI_Jack <GI_Jack@hackermail.com>


pkgname=enum4linux
pkgver=0.9.1
pkgrel=1
pkgdesc="A tool for enumerating information from Windows and Samba systems."
arch=('any')
url="https://github.com/CiscoCXSecurity/enum4linux"
license=('GPL')
depends=('perl' 'smbclient' 'polenum' 'openldap')
source=("https://github.com/CiscoCXSecurity/enum4linux/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('acb454130e171eb5b9b5f9ff4bff823a4caefb8d052b092b0f84b2020314c1f1a4385342b6be091b2f84f2f0ea67b9fdfed23952bdb66014ad1acf6438b51d9d')

prepare() {
  cd "$pkgname-$pkgver"
  sed -i 's|polenum.py|polenum|' ${pkgname}.pl
}

package() {
  cd "$srcdir/enum4linux-$pkgver"

  install -Dm755 enum4linux.pl "$pkgdir/usr/bin/enum4linux"
  install -Dm644 share-list.txt "$pkgdir/usr/share/enum4linux/share-list.txt"
}