mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
unicornscan: long dead, remove
This commit is contained in:
parent
cd1d6779a1
commit
cc5d1ade62
5 changed files with 0 additions and 170 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST unicornscan-0.4.7.2.tar.gz 3194220 SHA256 ab75a028d1a9c4ef40e961428efcb97c5a3422001a55b04313a025b33cfadbd1 SHA512 275fec72e8768a7f16668c782f5f6ecaa142a3801f539aa9fd69f6e5d0a3252e8c4106d2cb0d5f0c6ea71a8e811b810610e780635dd92120182b5a64a2d6cef2 WHIRLPOOL d1eb740f14d671e54083e06b02060c94e039c0f9283a136ba8a40d621f1f9def859d008bacedb8c2203be587a18adf38c31159001b03dd1cf24dad42f65fc881
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
--- configure 2008-09-30 12:20:05.000000000 +0200
|
||||
+++ unicornscan-0.4.7/configure 2008-09-30 12:23:50.000000000 +0200
|
||||
@@ -25715,7 +25715,7 @@
|
||||
# Check whether --with-libdnet was given.
|
||||
if test "${with_libdnet+set}" = set; then
|
||||
withval=$with_libdnet;
|
||||
-case "$dnet_pfx" in
|
||||
+case "$withval" in
|
||||
no)
|
||||
lookin=""
|
||||
;;
|
||||
@@ -25723,7 +25723,7 @@
|
||||
lookin=$default_libdnet_directories
|
||||
;;
|
||||
*)
|
||||
- lookin=$dnet_pfx
|
||||
+ lookin=$withval
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
--- unicornscan-0.4.7/src/unilib/tsc.c 2006-10-18 18:57:05.000000000 +0200
|
||||
+++ unicornscan-0.4.7/src/unilib/tsc.c.gcc5 2015-06-20 19:57:35.000000000 +0200
|
||||
@@ -30,7 +30,7 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
-inline tsc_t get_tsc(void) {
|
||||
+tsc_t get_tsc(void) {
|
||||
tsc_t j;
|
||||
asm volatile ( "pause\n"
|
||||
"nop\n"
|
||||
@@ -52,7 +52,7 @@
|
||||
* by Matteo Frigo
|
||||
*/
|
||||
|
||||
-inline tsc_t get_tsc(void) {
|
||||
+tsc_t get_tsc(void) {
|
||||
uint32_t tbl, tbu0, tbu1;
|
||||
|
||||
asm volatile("nop");
|
||||
@@ -75,7 +75,7 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
-inline tsc_t get_tsc(void) {
|
||||
+tsc_t get_tsc(void) {
|
||||
tsc_t j;
|
||||
|
||||
asm volatile (
|
||||
@@ -96,7 +96,7 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
-inline tsc_t get_tsc(void) {
|
||||
+tsc_t get_tsc(void) {
|
||||
uint32_t j;
|
||||
|
||||
/*
|
||||
@@ -144,7 +144,7 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
-inline tsc_t get_tsc(void) {
|
||||
+tsc_t get_tsc(void) {
|
||||
PANIC("Your CPU is not supported by the `tsc' delay, use -d2 or -d3 or edit your config file to use gtod or sleep");
|
||||
}
|
||||
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
Patch by Robert Scheck <robert@fedoraproject.org> for unicornscan >= 0.4.7, which adds the
|
||||
standard location of GeoIP data at Fedora in front of the original opening try. Unicornscan
|
||||
upstream is expecting /etc/unicornscan/GeoIP.dat instead of /usr/share/GeoIP/GeoIP.dat by
|
||||
default. This patch is looking for the existence of /usr/share/GeoIP/GeoIP.dat, otherwise
|
||||
/etc/unicornscan/GeoIP.dat will be used to not break the standards from upstream, if patch
|
||||
gets applied for a future unicornscan release.
|
||||
|
||||
--- unicornscan-0.4.7/src/scan_progs/report.c 2006-10-18 18:57:05.000000000 +0200
|
||||
+++ unicornscan-0.4.7/src/scan_progs/report.c.geoip 2009-11-17 13:16:04.000000000 +0100
|
||||
@@ -68,9 +68,18 @@
|
||||
report_t=rbinit(123);
|
||||
|
||||
#ifdef HAVE_LIBGEOIP
|
||||
- gi=GeoIP_open(CONF_DIR "/GeoIP.dat", GEOIP_MEMORY_CACHE);
|
||||
- if (gi == NULL) {
|
||||
- ERR("error opening geoip database `%s/%s': %s", CONF_DIR, "/GeoIP.dat", strerror(errno));
|
||||
+
|
||||
+ if (access("/usr/share/GeoIP/GeoIP.dat", F_OK) == 0) {
|
||||
+ gi=GeoIP_open("/usr/share/GeoIP/GeoIP.dat", GEOIP_MEMORY_CACHE);
|
||||
+ if (gi == NULL) {
|
||||
+ ERR("error opening geoip standard database `/usr/share/GeoIP/GeoIP.dat': %s", strerror(errno));
|
||||
+ }
|
||||
+ }
|
||||
+ else {
|
||||
+ gi=GeoIP_open(CONF_DIR "/GeoIP.dat", GEOIP_MEMORY_CACHE);
|
||||
+ if (gi == NULL) {
|
||||
+ ERR("error opening geoip database `%s/%s': %s", CONF_DIR, "/GeoIP.dat", strerror(errno));
|
||||
+ }
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit flag-o-matic eutils user versionator
|
||||
MY_PV=$(replace_version_separator 3 '-' )
|
||||
|
||||
DESCRIPTION="A utility for information gathering or security auditing"
|
||||
HOMEPAGE="http://www.unicornscan.org"
|
||||
#SRC_URI="http://www.unicornscan.org/releases/${PN}-${MY_PV}.tar.bz2"
|
||||
SRC_URI="https://github.com/IFGHou/Unicornscan/archive/${PN}-${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="geoip httpd mysql postgres"
|
||||
|
||||
DEPEND="net-libs/libpcap
|
||||
dev-libs/libdnet
|
||||
sys-devel/libtool
|
||||
geoip? ( dev-libs/geoip )
|
||||
mysql? ( dev-db/mysql )
|
||||
postgres? ( dev-db/postgresql-base:8.4 )"
|
||||
RDEPEND="${DEPEND}
|
||||
httpd? ( dev-lang/php[apache2]
|
||||
www-servers/apache )"
|
||||
|
||||
S="${WORKDIR}/Unicornscan-${PN}-${MY_PV}"
|
||||
|
||||
src_configure() {
|
||||
epatch "${FILESDIR}"/${PN}-0.4.7-configure.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.4.7-gcc5.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.4.7-geoip.patch
|
||||
|
||||
local myconf=""
|
||||
|
||||
append-cppflags "-D_GNU_SOURCE"
|
||||
|
||||
if use geoip ; then
|
||||
myconf="--with-geoip"
|
||||
else
|
||||
myconf="--without-geoip"
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
myconf="$myconf --with-mysql"
|
||||
fi
|
||||
|
||||
if use postgres ; then
|
||||
myconf="$myconf --with-pgsql"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-libdnet=/usr \
|
||||
--with-listen-user=unicornscan \
|
||||
"${myconf}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup unicornscan
|
||||
enewuser unicornscan -1 -1 -1 unicornscan
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
Loading…
Reference in a new issue