Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (31 sloc) 1.39 KB
# Maintainer: ArchStrike <team archstrike org>
buildarch=1
pkgname=changeme
pkgver=1.2.1
pkgrel=1
groups=('archstrike' 'archstrike-scanners')
pkgdesc="A default credential scanner"
arch=('any')
url='https://github.com/ztgrace/changeme'
license=('GPL3')
depends=('python2-requests' 'python2-logutils' 'python2-yaml' 'python2-netaddr' 'python2-responses' 'python2-nose'
'python2-lxml' 'python2-cerberus' 'python2-shodan' 'python2-libnmap' 'python2-jinja' 'python2-tabulate'
'python2-paramiko' 'python2-psycopg2' 'python2-pymongo' 'python2-pyodbc' 'python2-pysnmp' 'python2-libnmap'
'python2-memcached' 'python2-redis' 'python2-selenium' 'python2-sqlalchemy')
source=("https://github.com/ztgrace/changeme/archive/v${pkgver}.tar.gz")
sha512sums=('e30d8f82a15a83f144fba80e749ef78ae9b518911936cffedbf493f75290c5484763b4ebec59d61a4cf97c8f3fb4658f83cf41f4a8f7d380c93efbac738a70ce')
prepare(){
grep -iRl 'python' "${pkgname}-${pkgver}" | xargs sed -i 's|#!.*/usr/bin/python|#!/usr/bin/python2|;s|#!.*/usr/bin/env python$|#!/usr/bin/env python2|'
}
package() {
cd "${pkgname}-${pkgver}"
install -dm755 ${pkgdir}/usr/share/${pkgname}
install -dm755 ${pkgdir}/usr/bin
cp -a --no-preserve=ownership * "${pkgdir}/usr/share/${pkgname}"
cat > ${pkgdir}/usr/bin/${pkgname} <<EOF
#!/usr/bin/env bash
cd /usr/share/${pkgname}
python2 ${pkgname}.py "\$@"
EOF
chmod 755 ${pkgdir}/usr/bin/${pkgname}
}
You can’t perform that action at this time.