mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-22 06:41:01 +02:00
nbtool: EAPI=7, fix errors while building
This commit is contained in:
parent
ac341571f1
commit
8a1917597a
4 changed files with 62 additions and 45 deletions
|
|
@ -1 +1 @@
|
|||
DIST nbtool-0.05alpha2.tgz 641733 SHA256 f6872881ea66034252ff168d1e786622471709939663284a61a79e702491c815
|
||||
DIST nbtool-20140416.tar.gz 152162 BLAKE2B f53907af9e33f9f933c0ee1be07c65a84a1cda72f0113c7c77af37766c83a6b4b2823ce8993dc92b1b522cb4a8c0d666d03d57f9d6676f9941ca5a24b3b3a7aa SHA512 0e1a0d4ff63d1ba3acb26d62e5d656e01add04eabd08873d08e76ac8c3dfc4267cb68bf3f1bcc4205148049bf42cae841506d0de94fccfaa03e18aedb3b75a60
|
||||
|
|
|
|||
|
|
@ -1,14 +1,30 @@
|
|||
--- Makefile.bak 2010-08-01 23:57:31.057782359 +0200
|
||||
+++ Makefile 2010-08-02 00:03:56.841550413 +0200
|
||||
@@ -9,8 +9,10 @@
|
||||
# 'make ipod' and 'make iphone' will run 'ldid -S' on the files in addition to everything else.
|
||||
diff -ur a/Makefile b/Makefile
|
||||
--- a/Makefile 2014-04-16 06:49:14.000000000 +0400
|
||||
+++ b/Makefile 2019-10-27 00:15:56.765813375 +0300
|
||||
@@ -37,19 +37,13 @@
|
||||
ldid -S dnstest
|
||||
|
||||
CC=gcc
|
||||
-CFLAGS=-Wall -ansi -std=c89 -g #-DTESTMEMORY #-DTEST # Note: -DTESTMEMORY and -DTEST should be removed for final versions
|
||||
+COMMON_CFLAGS=-ansi -std=c89
|
||||
+CFLAGS?=-Wall -g #-DTESTMEMORY #-DTEST # Note: -DTESTMEMORY and -DTEST should be removed for final versions
|
||||
LIBS=
|
||||
+CFLAGS+=$(COMMON_CFLAGS)
|
||||
install: all
|
||||
- mkdir -p /usr/local/bin
|
||||
- cp nbquery /usr/local/bin/nbquery
|
||||
- cp nbsniff /usr/local/bin/nbsniff
|
||||
- cp dnsxss /usr/local/bin/dnsxss
|
||||
- cp dnslogger /usr/local/bin/dnslogger
|
||||
- cp dnscat /usr/local/bin/dnscat
|
||||
- cp dnstest /usr/local/bin/dnstest
|
||||
- chown root.root /usr/local/bin/nbquery
|
||||
- chown root.root /usr/local/bin/nbsniff
|
||||
- chown root.root /usr/local/bin/dnsxss
|
||||
- chown root.root /usr/local/bin/dnslogger
|
||||
- chown root.root /usr/local/bin/dnscat
|
||||
- chown root.root /usr/local/bin/dnstest
|
||||
+ mkdir -p $(DESTDIR)/usr/bin
|
||||
+ cp nbquery $(DESTDIR)/usr/bin/nbquery
|
||||
+ cp nbsniff $(DESTDIR)/usr/bin/nbsniff
|
||||
+ cp dnsxss $(DESTDIR)/usr/bin/dnsxss
|
||||
+ cp dnslogger $(DESTDIR)/usr/bin/dnslogger
|
||||
+ cp dnscat $(DESTDIR)/usr/bin/dnscat
|
||||
+ cp dnstest $(DESTDIR)/usr/bin/dnstest
|
||||
|
||||
all: nbquery nbsniff dnsxss dnslogger dnscat dnstest samples_build
|
||||
@echo Compile should be complete
|
||||
remove:
|
||||
rm -f /usr/local/bin/nbquery
|
||||
|
|
|
|||
|
|
@ -1,32 +0,0 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_P=${P/_/}
|
||||
|
||||
DESCRIPTION="Some tools for NetBIOS and DNS investigation, attacks, and communication"
|
||||
HOMEPAGE="http://www.skullsecurity.org/wiki/index.php/Nbtool"
|
||||
SRC_URI="http://www.skullsecurity.org/downloads/${MY_P}.tgz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-makefile.patch || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin nbquery nbsniff dnsxss dnslogger dnscat dnstest || die
|
||||
dodoc CHANGELOG TODO
|
||||
}
|
||||
33
net-analyzer/nbtool/nbtool-20140416.ebuild
Normal file
33
net-analyzer/nbtool/nbtool-20140416.ebuild
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Some tools for NetBIOS and DNS investigation, attacks, and communication"
|
||||
HOMEPAGE="https://www.skullsecurity.org/wiki/index.php/Nbtool"
|
||||
|
||||
HASH_COMMIT="bf90c76221c3005ef537f587dd267f085551d014"
|
||||
SRC_URI="https://github.com/iagox86/nbtool/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/nbtool-makefile.patch )
|
||||
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dodoc CHANGELOG TODO
|
||||
}
|
||||
Loading…
Reference in a new issue