Files
chromebrew/packages/od1n.rb
satmandu 93276e3388 #2. Convert curl, git, pixz to static, and update dependencies... (#5837)
* Convert curl, git, pixz to static, and update dependencies...

* Make git, curl, pixz first to get updated.

* updates to curl, git, libcurl, openssl

* Update Git build, more carefully add upx compression.

* add libcurl dep to curl

* move license line

* don't save rdfind results

* curl and libidn2 changes

* fix remove check file

* curl changes, add package updates to fix sommelier
2021-06-07 12:01:45 -05:00

42 lines
1.8 KiB
Ruby

require 'package'
class Od1n < Package
description '0d1n is a tool for automating customized attacks against web applications.'
homepage 'https://github.com/CoolerVoid/0d1n'
version '2.3'
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/CoolerVoid/0d1n/archive/2.3.tar.gz'
source_sha256 '7fe26f0268fe63ec0352502ae590a7a5e258248f253649661dc782ca7edd52ae'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/od1n/2.3_armv7l/od1n-2.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/od1n/2.3_armv7l/od1n-2.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/od1n/2.3_i686/od1n-2.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/od1n/2.3_x86_64/od1n-2.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '205e61cefc8dd5655c9621b57701c627b53915af79ec547fdc3ec7796cdaacf5',
armv7l: '205e61cefc8dd5655c9621b57701c627b53915af79ec547fdc3ec7796cdaacf5',
i686: '0a2ac8d246e4f6a58a8f836f6c5e1dc66d99161a7c9523a126806b8dc74bdee2',
x86_64: '38b19eb0cb14694e30040105ac05fd0e250ced2bbac6c0e7428b8adbd495dd2c',
})
depends_on 'libcurl'
def self.build
system 'make'
end
def self.install
FileUtils.mkdir_p ["#{CREW_DEST_PREFIX}/share/0d1n/payloads",
"#{CREW_DEST_PREFIX}/share/0d1n/templates",
"#{CREW_DEST_PREFIX}/share/0d1n/response2find",
"#{CREW_DEST_PREFIX}/share/0d1n/tables",
"#{CREW_DEST_PREFIX}/share/0d1n/doc"]
FileUtils.cp_r ['doc','payloads','response2find','tables'], "#{CREW_DEST_PREFIX}/share/0d1n/"
system "install -Dm755 0d1n #{CREW_DEST_PREFIX}/bin/0d1n"
system "install -m644 *.conf #{CREW_DEST_PREFIX}/share/0d1n"
end
end