Skip to content

Commit

Permalink
Add perl modules for filebuster (#2764)
Browse files Browse the repository at this point in the history
* Add perl-io-async for filebuster

* filebuster: add missing perl modules and update PKGBUILD

* perl-struct-dumb: update wrong creator
  • Loading branch information
aancw authored May 14, 2020
1 parent 23ca2d1 commit c0f9297
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
perl-future
perl-io-async
perl-struct-dumb
perl-test-identity
perl-test-refcount
5 changes: 3 additions & 2 deletions packages/filebuster/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=filebuster
pkgver=66.cd14ff9
pkgrel=1
pkgrel=2
pkgdesc='An extremely fast and flexible web fuzzer.'
groups=('blackarch' 'blackarch-webapp' 'blackarch-fuzzer')
arch=('any')
Expand All @@ -12,7 +12,8 @@ license=('GPL3')
depends=('perl' 'perl-yaml' 'perl-switch' 'perl-net-dns' 'perl-list-moreutils'
'perl-io-socket-ssl' 'perl-io-socket-socks-wrapper' 'perl-uri'
'perl-furl' 'perl-http-parser-xs' 'perl-class-accessor-lite'
'perl-cache-lru' 'perl-net-dns-lite' 'perl-exporter-tiny')
'perl-cache-lru' 'perl-net-dns-lite' 'perl-exporter-tiny'
'perl-io-async' 'perl-html-parser' )
makedepends=('git')
source=("git+https://github.com/henshin/$pkgname.git")
sha512sums=('SKIP')
Expand Down
42 changes: 42 additions & 0 deletions packages/perl-future/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
#
# This PKGBUILD was extracted from AUR.
# Creator: Anton Leontiev <scileont /at/ gmail.com>
# Changes by: petruknisme

pkgname=perl-future
_pkgname=Future
pkgver=0.45
pkgrel=1
pkgdesc="Perl module to deal with operation awaiting completion"
arch=('any')
url="https://metacpan.org/release/Future"
license=('GPL' 'PerlArtistic')
makedepends=('perl-module-build>=0.4004')
checkdepends=('perl-test-fatal' 'perl-test-identity' 'perl-test-refcount')
depends=('perl>=5.15.8' 'perl-test-fatal')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PE/PEVANS/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('18609d053461fe1ad68fe43ea1961543a690aef4524d5f90a191de977bbe925b38892f71f0ac7099f0c5d934a7cb64d637acf71303cc8f4d7fd74d1586997ff7')

build() {
cd "$_pkgname-$pkgver"

( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null

/usr/bin/perl Build.PL INSTALLDIRS=vendor && ./Build
)
}

package() {
cd "$_pkgname-$pkgver"

./Build install

find "$pkgdir" -type f -name 'perllocal.pod' -delete;
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

43 changes: 43 additions & 0 deletions packages/perl-io-async/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
#
# This PKGBUILD was extracted from AUR.
# Creator: Jakob Nixdorf <flocke@shadowice.org>
# Changes by: petruknisme

pkgname=perl-io-async
_pkgname=IO-Async
pkgver=0.72
pkgrel=1
pkgdesc="Asynchronous event-driven programming"
arch=('any')
url="https://metacpan.org/release/IO-Async"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-future' 'perl-struct-dumb')
makedepends=('perl-test-fatal' 'perl-test-identity' 'perl-test-refcount')
options=('!emptydirs' 'purge')
source=("https://cpan.metacpan.org/authors/id/P/PE/PEVANS/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('4d1243e7904647d94bceb300d677ed2d28e58b7b57695b9de40b19f9b5d79418516837d5f6bead3836897956aad7027213b84c1244e46ddaa335b4916fe53804')

build() {
cd "$_pkgname-$pkgver"

( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null

#/usr/bin/perl Makefile.PL

#make
/usr/bin/perl Build.PL INSTALLDIRS=vendor && ./Build && ./Build
)
}

package() {
cd "$_pkgname-$pkgver"

./Build install

find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

42 changes: 42 additions & 0 deletions packages/perl-struct-dumb/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
#
# This PKGBUILD was extracted from AUR.
# Creator: Jakob Nixdorf <flocke@shadowice.org>
# Changes by: petruknisme

pkgname=perl-struct-dumb
_pkgname=Struct-Dumb
pkgver=0.09
pkgrel=1
pkgdesc="Make simple lightweight record-like structures"
arch=('any')
url="http://search.cpan.org/dist/Struct-Dumb"
license=('GPL' 'PerlArtistic')
depends=('perl')
makedepends=('perl-test-fatal')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('6dc1e6ce02386906f5e440d989a5cd1810201327567684d26d877a212e0b97d64b2cfdb0432ac5d8ab94bcecfb61c4b59fd8aa3ae22adc06de3c8083f667c134')

build() {
cd "$_pkgname-$pkgver"

( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null

/usr/bin/perl Makefile.PL

make
)
}

package() {
cd "$_pkgname-$pkgver"

make install

find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

39 changes: 39 additions & 0 deletions packages/perl-test-identity/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
#
# This PKGBUILD was extracted from AUR.
# Creator: Anton Leontiev <scileont /at/ gmail.com>
# Changes by: petruknisme

pkgname=perl-test-identity
_pkgname=Test-Identity
pkgver=0.01
pkgrel=1
pkgdesc="Perl module to test the referential identity of a reference"
arch=('any')
url="https://metacpan.org/release/Test-Identity"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-module-build')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('eee20978e2e39a11c5649b4609840f02686482f8fe4c0c2de639bfd9749ba9a08202f70b660432f1142ff800824ee2a6e9e43873f3f089041cd3e864ff502c32')

build() {
cd "$_pkgname-$pkgver"

( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null

/usr/bin/perl Build.PL INSTALLDIRS=vendor && ./Build
)
}

package() {
cd "$_pkgname-$pkgver"

./Build install

find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

42 changes: 42 additions & 0 deletions packages/perl-test-refcount/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
#
# This PKGBUILD was extracted from AUR.
# Creator: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
# Changes by: petruknisme

pkgname=perl-test-refcount
_pkgname=Test-Refcount
pkgver=0.08
pkgrel=1
pkgdesc="assert reference counts on objects"
arch=('any')
url="https://metacpan.org/release/Test-Refcount"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-module-build')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('9a5ffe332f9a61c2f019963f49117f4a6af0b855371cd6aa24cc5e3edd7ee6caa54f25bcdd1edf57044c764030f8db37a1ee232d49130656643135cfac96d570')


build() {
cd "$srcdir/$_pkgname-$pkgver"

( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null

/usr/bin/perl Makefile.PL

make
)
}

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

make install

find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

0 comments on commit c0f9297

Please sign in to comment.