commit b0039dd5891a1f2d4dcadb24ccabff6e24fbcfa3 Author: root Date: Sat Nov 29 17:35:05 2008 +0000 Re-organizing svn tree diff --git a/app-admin/genmenu/Manifest b/app-admin/genmenu/Manifest new file mode 100644 index 000000000..e4da627b8 --- /dev/null +++ b/app-admin/genmenu/Manifest @@ -0,0 +1,19 @@ +AUX genmenu-term-fix.patch 498 RMD160 6e2be59a68f4daa947020cbe3aa0db95f384adc2 SHA1 6f77da2433d34b11ae55bc7b2ff158f97839bf89 SHA256 4fa4ff68f1b6689989dc3709e9b8f6bb86fcbf6750441356f31c266b8130bfa0 +MD5 4b8c190131c5444920fb3c3e1cb4f280 files/genmenu-term-fix.patch 498 +RMD160 6e2be59a68f4daa947020cbe3aa0db95f384adc2 files/genmenu-term-fix.patch 498 +SHA256 4fa4ff68f1b6689989dc3709e9b8f6bb86fcbf6750441356f31c266b8130bfa0 files/genmenu-term-fix.patch 498 +DIST genmenu-0.1.1.tbz2 659316 RMD160 3c30aa126b397408e51f7dc1c0ce8633bc9c32b6 SHA1 f528b9ef78303a744f090ef6b266788cf1366365 SHA256 a1e949278282d3d66b7a6a92668313990a1c2b117243dbf7eff063eb063c9415 +EBUILD genmenu-0.1.1.ebuild 913 RMD160 c84491bc9e8718760cfa4e54c80a90c78b4884dc SHA1 24166de7bba214a5c4245874fc2fd44cdf7d66d3 SHA256 60e940958703dfaba096c6434b0c2e98826cf0930f8012bbbc6a80fdfa20e577 +MD5 ae92a7f9fd3861f3a470d8055c1d0663 genmenu-0.1.1.ebuild 913 +RMD160 c84491bc9e8718760cfa4e54c80a90c78b4884dc genmenu-0.1.1.ebuild 913 +SHA256 60e940958703dfaba096c6434b0c2e98826cf0930f8012bbbc6a80fdfa20e577 genmenu-0.1.1.ebuild 913 +EBUILD genmenu-9999.ebuild 861 RMD160 fa7e8d33531a4452d92b131b25466b54ef0f0ee4 SHA1 e86529a9fcd7166595a9dd8984b3f7045d1cb0b4 SHA256 464a567d55d2fd65c065051fc0d79e62bbe6b793d4244062150acbdb58397391 +MD5 c5ec672a7ab18116bb7e28a055e967a8 genmenu-9999.ebuild 861 +RMD160 fa7e8d33531a4452d92b131b25466b54ef0f0ee4 genmenu-9999.ebuild 861 +SHA256 464a567d55d2fd65c065051fc0d79e62bbe6b793d4244062150acbdb58397391 genmenu-9999.ebuild 861 +MD5 63c3bbbdbe26abc1ebfb01a845f4ed40 files/digest-genmenu-0.1.1 235 +RMD160 ce04a325f85c8b91767a0f7537ecc5141b529c10 files/digest-genmenu-0.1.1 235 +SHA256 9b5558e208560de063e50dfe4bf516516a6a83fc4676dabb9f4dbe4e58cb54df files/digest-genmenu-0.1.1 235 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-genmenu-9999 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-genmenu-9999 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-genmenu-9999 0 diff --git a/app-admin/genmenu/files/digest-genmenu-0.1.1 b/app-admin/genmenu/files/digest-genmenu-0.1.1 new file mode 100644 index 000000000..1a1bb9584 --- /dev/null +++ b/app-admin/genmenu/files/digest-genmenu-0.1.1 @@ -0,0 +1,3 @@ +MD5 a241a9904db1057f2433da93dfeb7791 genmenu-0.1.1.tbz2 659316 +RMD160 3c30aa126b397408e51f7dc1c0ce8633bc9c32b6 genmenu-0.1.1.tbz2 659316 +SHA256 a1e949278282d3d66b7a6a92668313990a1c2b117243dbf7eff063eb063c9415 genmenu-0.1.1.tbz2 659316 diff --git a/app-admin/genmenu/files/digest-genmenu-9999 b/app-admin/genmenu/files/digest-genmenu-9999 new file mode 100644 index 000000000..e69de29bb diff --git a/app-admin/genmenu/files/genmenu-term-fix.patch b/app-admin/genmenu/files/genmenu-term-fix.patch new file mode 100644 index 000000000..d56217012 --- /dev/null +++ b/app-admin/genmenu/files/genmenu-term-fix.patch @@ -0,0 +1,13 @@ +Index: src/bin/genmenu.py +=================================================================== +--- src/bin/genmenu.py (revision 141) ++++ src/bin/genmenu.py (working copy) +@@ -190,7 +190,7 @@ + de = desktopfile() + de.setName(name.capitalize()) + de.setIcon(category + ".png") +- de.setExec("$P2TERM -e launch " + binname + " " + params) ++ de.setExec(options.p2term + " -e launch " + binname + " " + params) + return de + + def make_menu_entry(root_menu, iconfile, category, params): diff --git a/app-admin/genmenu/genmenu-0.1.1.ebuild b/app-admin/genmenu/genmenu-0.1.1.ebuild new file mode 100644 index 000000000..e643701da --- /dev/null +++ b/app-admin/genmenu/genmenu-0.1.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +inherit eutils +DESCRIPTION="Genmenu is a tool for generating freedesktop-compliant menus" + +# Homepage, not used by Portage directly but handy for developer reference +HOMEPAGE="https://trac.pentoo.ch/projects/catalyst/wiki/Genmenu" +SRC_URI="http://dev.pentoo.ch/~grimmlin/${P}.tbz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND=">=dev-python/lxml-1.3 + gnome-base/gnome-menus" +RDEPEND="${DEPEND}" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + dodir /usr/ + find ${S} -type d -name ".svn" | xargs rm -R + cp -R "${S}"/src/share "${D}"/usr/ + chown -R root:root ${D} + dosbin src/bin/genmenu.py src/bin/launch +} + +pkg_postinst() { + einfo "Once you've run genmenu.py, you might need to env-update" + einfo "then restart X.org to reflect the P2TERM changes" +} diff --git a/app-admin/genmenu/genmenu-9999.ebuild b/app-admin/genmenu/genmenu-9999.ebuild new file mode 100644 index 000000000..d741a2362 --- /dev/null +++ b/app-admin/genmenu/genmenu-9999.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +inherit subversion + +DESCRIPTION="Genmenu is a tool for generating freedesktop-compliant menus" +HOMEPAGE="https://trac.pentoo.ch/projects/catalyst/wiki/Genmenu" +ESVN_REPO_URI="https://www.pentoo.ch/svn/catalyst/trunk/${PN}" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-*" +IUSE="" +DEPEND="=dev-python/lxml-1.3.6 + gnome-base/gnome-menus" +RDEPEND="${DEPEND}" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + insinto /usr/share/ + find "${S}" -type d -name ".svn" | xargs rm -R + doins -r "${S}"/src/share/genmenu + chown -R root:root ${D} + dobin src/bin/genmenu.py src/bin/launch +} + +pkg_postinst() { + einfo "Once you've run genmenu.py, you might need to env-update" + einfo "then restart X.org to reflect the P2TERM changes" +} diff --git a/app-crypt/SIPcrack/Manifest b/app-crypt/SIPcrack/Manifest new file mode 100644 index 000000000..1bb0d9080 --- /dev/null +++ b/app-crypt/SIPcrack/Manifest @@ -0,0 +1,8 @@ +DIST SIPcrack-0.2.tar.gz 18769 RMD160 e3adf52fae52fdf47446919bf600703aea3ab87b SHA1 f692d8ea3932966a4055b81b7d62395a02dc3f36 SHA256 fb62d98c201b4fba469621bb55d9b2fbc6978f6b3a39048f7ed39f50ff3afc05 +EBUILD SIPcrack-0.2.ebuild 565 RMD160 cfec20000a53688cc912057f7ca760b0fc065a76 SHA1 1782822b6bbd23f434b38d0375f59eb70349755c SHA256 545a5e43e9e6e0895e9f877087be3adf013780700e68ac5d54d10ab057a4d2f9 +MD5 eb8df4e6880a595d76c62eef169ab777 SIPcrack-0.2.ebuild 565 +RMD160 cfec20000a53688cc912057f7ca760b0fc065a76 SIPcrack-0.2.ebuild 565 +SHA256 545a5e43e9e6e0895e9f877087be3adf013780700e68ac5d54d10ab057a4d2f9 SIPcrack-0.2.ebuild 565 +MD5 88c8c1df5b8f8ca9af4885f75755383c files/digest-SIPcrack-0.2 235 +RMD160 193b93cdc0d867590f1457c5daa134a72fa08e24 files/digest-SIPcrack-0.2 235 +SHA256 7a86799f450ece41b4c1f7bf95754de7dedca8530a19bfe96311c9baa19e22f6 files/digest-SIPcrack-0.2 235 diff --git a/app-crypt/SIPcrack/SIPcrack-0.2.ebuild b/app-crypt/SIPcrack/SIPcrack-0.2.ebuild new file mode 100644 index 000000000..4bbb437e3 --- /dev/null +++ b/app-crypt/SIPcrack/SIPcrack-0.2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit toolchain-funcs eutils + +DESCRIPTION="SIPcrack is a SIP protocol login cracker" +HOMEPAGE="http://www.remote-exploit.org/codes_sipcrack.html" +SRC_URI="http://www.remote-exploit.org/codes/sipcrack/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="net-libs/libpcap" + +src_compile() { + emake -e CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + dobin sipcrack sipdump + dodoc README USAGE_EXAMPLES +} diff --git a/app-crypt/SIPcrack/files/digest-SIPcrack-0.2 b/app-crypt/SIPcrack/files/digest-SIPcrack-0.2 new file mode 100644 index 000000000..b3d61ab1d --- /dev/null +++ b/app-crypt/SIPcrack/files/digest-SIPcrack-0.2 @@ -0,0 +1,3 @@ +MD5 4a768bbd2e7df3ea7ced2e9f3d60698a SIPcrack-0.2.tar.gz 18769 +RMD160 e3adf52fae52fdf47446919bf600703aea3ab87b SIPcrack-0.2.tar.gz 18769 +SHA256 fb62d98c201b4fba469621bb55d9b2fbc6978f6b3a39048f7ed39f50ff3afc05 SIPcrack-0.2.tar.gz 18769 diff --git a/app-crypt/md5bf/Manifest b/app-crypt/md5bf/Manifest new file mode 100644 index 000000000..48726d435 --- /dev/null +++ b/app-crypt/md5bf/Manifest @@ -0,0 +1,8 @@ +DIST md5bf-v0.1.tar 51202 RMD160 938a570c73c5899399fd6c415272a67264289d79 SHA1 2bfc05656e3a33018ac9e3c2de2b069193a91670 SHA256 8bc7ba891a839c5502ada2adc2f5a6db085dcabbef7f666fc6baeef420cb02b3 +EBUILD md5bf-0.1.ebuild 678 RMD160 8923bf01437075e678f2d1361940cc574c648818 SHA1 3df85f643327f32d2e4934414557e887e200ab81 SHA256 659464ea9f894023c9582f73c0f2ea5e5011ae0a3b242add873e9b4b822771ce +MD5 d6923e67fc348399f0c8cf8e95125f5a md5bf-0.1.ebuild 678 +RMD160 8923bf01437075e678f2d1361940cc574c648818 md5bf-0.1.ebuild 678 +SHA256 659464ea9f894023c9582f73c0f2ea5e5011ae0a3b242add873e9b4b822771ce md5bf-0.1.ebuild 678 +MD5 ad0766b0f030653ec839e13dd26ef0f3 files/digest-md5bf-0.1 220 +RMD160 0d794fddf07014c9fd77391de3a4720e6b1edf7d files/digest-md5bf-0.1 220 +SHA256 1e38f2446f8c10d520bd247407aa31cd0d8b56d2c7ee44575df97c10f646a765 files/digest-md5bf-0.1 220 diff --git a/app-crypt/md5bf/files/digest-md5bf-0.1 b/app-crypt/md5bf/files/digest-md5bf-0.1 new file mode 100644 index 000000000..b40757d36 --- /dev/null +++ b/app-crypt/md5bf/files/digest-md5bf-0.1 @@ -0,0 +1,3 @@ +MD5 54578f09fac55dc6666debda6ba706cd md5bf-v0.1.tar 51202 +RMD160 938a570c73c5899399fd6c415272a67264289d79 md5bf-v0.1.tar 51202 +SHA256 8bc7ba891a839c5502ada2adc2f5a6db085dcabbef7f666fc6baeef420cb02b3 md5bf-v0.1.tar 51202 diff --git a/app-crypt/md5bf/md5bf-0.1.ebuild b/app-crypt/md5bf/md5bf-0.1.ebuild new file mode 100644 index 000000000..801296612 --- /dev/null +++ b/app-crypt/md5bf/md5bf-0.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_P="${PN}-v${PV}" +S="${WORKDIR}"/"${MY_P}" +DESCRIPTION="Wfuzz is a tool designed for bruteforcing Web Applications" +HOMEPAGE="http://www.edge-security.com/edge-soft.php" +SRC_URI="http://www.edge-security.com/soft/${MY_P}.tar" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +DEPEND="dev-lang/nasm" +RDEPEND="" +SLOT="0" + +src_compile() { + sed -i -e "s:gcc:gcc ${CFLAGS}:" Makefile + emake -j1 || die "emake failed" +} + +src_install() { + dobin md5bf +} + +pkg_postinst() { + elog "Testing binary" + md5bf -m 5e93de3efa544e85dcd6311732d28f95 -b [97-120] -w [2-6] +} diff --git a/app-crypt/plaintoo/Manifest b/app-crypt/plaintoo/Manifest new file mode 100644 index 000000000..535fb79fa --- /dev/null +++ b/app-crypt/plaintoo/Manifest @@ -0,0 +1,12 @@ +AUX plaintoo 48 RMD160 e3237d87d54047d96712b2b2bceb0623a1f274cf SHA1 71bbb910bd1baf35d0eb22c97b09c0dea2c0091d SHA256 efefd967fa8a9d35bad15164e5ddcf5ab1f4b46e4b5a7247d9d16dbdca95e312 +MD5 6552c6a164d2cff12995a37909d511fa files/plaintoo 48 +RMD160 e3237d87d54047d96712b2b2bceb0623a1f274cf files/plaintoo 48 +SHA256 efefd967fa8a9d35bad15164e5ddcf5ab1f4b46e4b5a7247d9d16dbdca95e312 files/plaintoo 48 +DIST plaintoo-0.1.tar.gz 488787 RMD160 3f7f1b5e016b9335b11bc71f0ad27ab747b988a2 SHA1 337df90a4158287fd83af28411c859c96e84eb46 SHA256 3ec8d9ca0ca7c764556774dc1c267941c35a2f9dc38ae8843df877f503df5382 +EBUILD plaintoo-0.1.ebuild 884 RMD160 181379f3c4a7efb143bee6e1a2570c1b8c069737 SHA1 a8e6aea52d78cb5bc1a4d7a709424edec6d41792 SHA256 e67ae2c6a8e08d54bda74a98db8760392674a637a4bc55f25b05d0ec0f184af2 +MD5 9a16879b3c2ae00e6ab48fae3b2d598b plaintoo-0.1.ebuild 884 +RMD160 181379f3c4a7efb143bee6e1a2570c1b8c069737 plaintoo-0.1.ebuild 884 +SHA256 e67ae2c6a8e08d54bda74a98db8760392674a637a4bc55f25b05d0ec0f184af2 plaintoo-0.1.ebuild 884 +MD5 a67eb88c1ac9cfb1b5054faf26abdbc7 files/digest-plaintoo-0.1 238 +RMD160 69204a4c278867d6155798bb02a51c276786ab31 files/digest-plaintoo-0.1 238 +SHA256 0a338e3f6e67a247d2f9fc8dc9da8e98b0567a8a05b1c5bf774612d82ed84794 files/digest-plaintoo-0.1 238 diff --git a/app-crypt/plaintoo/files/digest-plaintoo-0.1 b/app-crypt/plaintoo/files/digest-plaintoo-0.1 new file mode 100644 index 000000000..994fb5de4 --- /dev/null +++ b/app-crypt/plaintoo/files/digest-plaintoo-0.1 @@ -0,0 +1,3 @@ +MD5 77388bf0af4b795be23b1c189607ca8e plaintoo-0.1.tar.gz 488787 +RMD160 3f7f1b5e016b9335b11bc71f0ad27ab747b988a2 plaintoo-0.1.tar.gz 488787 +SHA256 3ec8d9ca0ca7c764556774dc1c267941c35a2f9dc38ae8843df877f503df5382 plaintoo-0.1.tar.gz 488787 diff --git a/app-crypt/plaintoo/files/plaintoo b/app-crypt/plaintoo/files/plaintoo new file mode 100644 index 000000000..06f83cb9d --- /dev/null +++ b/app-crypt/plaintoo/files/plaintoo @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/plaintoo/ +./plaintoo.py "$@" diff --git a/app-crypt/plaintoo/plaintoo-0.1.ebuild b/app-crypt/plaintoo/plaintoo-0.1.ebuild new file mode 100644 index 000000000..bd9ccf5d9 --- /dev/null +++ b/app-crypt/plaintoo/plaintoo-0.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-crypt/plaintoo/plaintoo-0.1.ebuild,v 1.1.1.1 2006/03/09 22:54:57 grimmlin Exp $ + +DESCRIPTION="Plaintoo is a pygtk frontend to bkhive and samdump2 (included)" +HOMEPAGE="http://www.plain-text.info/" +SRC_URI="http://www.pentoo.ch/distfiles/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" + +src_compile () { + cd "${S}"/apps/bkhive_linux/ + g++ -o bkhive *.cpp || die "bkhive failed" + cd "${S}"/apps/samdump2_linux/des/ + make || die "des failed" + cd "${S}"/apps/samdump2_linux/ + make || die "samdump2 failed" +} + +src_install () { + exeinto /opt/plaintoo/ + newexe plaintoo.py plaintoo.py + insinto /opt/plaintoo/img/ + doins -r img/* + dosbin "${FILESDIR}"/plaintoo + dobin apps/bkhive_linux/bkhive + dobin apps/samdump2_linux/samdump2 +} diff --git a/app-emulation/qemu-launcher/Manifest b/app-emulation/qemu-launcher/Manifest new file mode 100644 index 000000000..1d9f54d20 --- /dev/null +++ b/app-emulation/qemu-launcher/Manifest @@ -0,0 +1,16 @@ +DIST qemu-launcher_1.5.1-1.tar.gz 33684 +DIST qemu-launcher_1.7.1.tar.gz 61868 RMD160 98ccc7e6d28b202bf98bffd40f2d5db05a1d73dd SHA1 4369b70e3ecd2472b9bec2d1e0a2e082e5092d9f SHA256 bf4d8091e1a7114463ffdc86296f057a097356f01fd68826e18fc2b6a5117869 +EBUILD qemu-launcher-1.5.1.ebuild 870 RMD160 ad5e94f1e25562c822e24ecff48ddf39af4615a1 SHA1 e97c0889794279ece2dfa627cb9f7395f89eac76 SHA256 0ea1ddf3fbcf06cb1888e103facbe78f96c517470c14ded9dac10b2d335f0500 +MD5 5e7aba325b063611e7dc7df771cc36a0 qemu-launcher-1.5.1.ebuild 870 +RMD160 ad5e94f1e25562c822e24ecff48ddf39af4615a1 qemu-launcher-1.5.1.ebuild 870 +SHA256 0ea1ddf3fbcf06cb1888e103facbe78f96c517470c14ded9dac10b2d335f0500 qemu-launcher-1.5.1.ebuild 870 +EBUILD qemu-launcher-1.7.1.ebuild 667 RMD160 ade3beebb8f2a2ecb6fd48982a39f3667c2ff1bc SHA1 062747dbb86a92c97eb35375e0a9def4c7bff7a8 SHA256 7383248a3fc9cfbab42cbb9f60060277375dd54e9c1805ac9fbb9eea9a4e9803 +MD5 017f3b9a98065381409c102decc3c824 qemu-launcher-1.7.1.ebuild 667 +RMD160 ade3beebb8f2a2ecb6fd48982a39f3667c2ff1bc qemu-launcher-1.7.1.ebuild 667 +SHA256 7383248a3fc9cfbab42cbb9f60060277375dd54e9c1805ac9fbb9eea9a4e9803 qemu-launcher-1.7.1.ebuild 667 +MD5 fc80d30470f2e3c589d9edc5b4caab56 files/digest-qemu-launcher-1.5.1 72 +RMD160 1edcaa468e1ca80e934e8a4585427ba7a2df2e31 files/digest-qemu-launcher-1.5.1 72 +SHA256 e12de640fc0300889f3872f2a76a3b4e454040e4a9681da7d1e7d6587723654d files/digest-qemu-launcher-1.5.1 72 +MD5 25e87c43643ad26d57bb06b11c127a34 files/digest-qemu-launcher-1.7.1 256 +RMD160 73193462ea26db8ab0756ec47866b22b3cfb1aec files/digest-qemu-launcher-1.7.1 256 +SHA256 5a7b72e267a122f82dfd4897e89b69d3afef16f584d63efe8bbf3731c4620810 files/digest-qemu-launcher-1.7.1 256 diff --git a/app-emulation/qemu-launcher/files/digest-qemu-launcher-1.5.1 b/app-emulation/qemu-launcher/files/digest-qemu-launcher-1.5.1 new file mode 100644 index 000000000..71f45f3e6 --- /dev/null +++ b/app-emulation/qemu-launcher/files/digest-qemu-launcher-1.5.1 @@ -0,0 +1 @@ +MD5 818ade9464af93798f8cab87217d5437 qemu-launcher_1.5.1-1.tar.gz 33684 diff --git a/app-emulation/qemu-launcher/files/digest-qemu-launcher-1.7.1 b/app-emulation/qemu-launcher/files/digest-qemu-launcher-1.7.1 new file mode 100644 index 000000000..aab596641 --- /dev/null +++ b/app-emulation/qemu-launcher/files/digest-qemu-launcher-1.7.1 @@ -0,0 +1,3 @@ +MD5 993ace67075634a1682fcaa77b3cad4c qemu-launcher_1.7.1.tar.gz 61868 +RMD160 98ccc7e6d28b202bf98bffd40f2d5db05a1d73dd qemu-launcher_1.7.1.tar.gz 61868 +SHA256 bf4d8091e1a7114463ffdc86296f057a097356f01fd68826e18fc2b6a5117869 qemu-launcher_1.7.1.tar.gz 61868 diff --git a/app-emulation/qemu-launcher/qemu-launcher-1.5.1.ebuild b/app-emulation/qemu-launcher/qemu-launcher-1.5.1.ebuild new file mode 100644 index 000000000..b71343d82 --- /dev/null +++ b/app-emulation/qemu-launcher/qemu-launcher-1.5.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-emulation/qemu-launcher/qemu-launcher-1.5.1.ebuild,v 1.1.1.1 2006/03/06 22:19:49 grimmlin Exp $ + +MY_P="${PN}_${PV}-1.tar.gz" + +DESCRIPTION="GNOME/Gtk front-end for the Qemu x86 PC emulator" +HOMEPAGE="http://emeitner.f2o.org/qemu_launcher" +SRC_URI="http://emeitner.f2o.org/debian/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +RESTRICT="fetch" +IUSE="" + +DEPEND="dev-lang/perl + >=dev-perl/gtk2-perl-1.101 + >=dev-perl/gtk2-gladexml-1.005 + >=dev-perl/gnome2-perl-1.023 + >=dev-perl/Locale-gettext-1.05" + +pkg_nofetch() { + einfo "Due to restrictions on server please" + einfo "download ${SRC_URI}" + einfo "manually with a web browser" + einfo "and put it in ${DISTDIR}" +} + +src_install() { + cd "${WORKDIR}/trunk" + make DESTDIR=${D} install +} diff --git a/app-emulation/qemu-launcher/qemu-launcher-1.7.1.ebuild b/app-emulation/qemu-launcher/qemu-launcher-1.7.1.ebuild new file mode 100644 index 000000000..36544d4d9 --- /dev/null +++ b/app-emulation/qemu-launcher/qemu-launcher-1.7.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_P="${PN}_${PV}.tar.gz" + +DESCRIPTION="GNOME/Gtk front-end for the Qemu x86 PC emulator" +HOMEPAGE="http://emeitner.f2o.org/qemu_launcher" +SRC_URI="http://download.gna.org/qemulaunch/1.7.x/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="dev-lang/perl + >=dev-perl/gtk2-perl-1.121 + >=dev-perl/gtk2-gladexml-1.005 + >=dev-perl/gnome2-perl-1.023 + >=dev-perl/Locale-gettext-1.05 + >=app-emulation/qemu-0.8.1" + +src_compile() { + emake || die "emake failed" +} + +src_install() { + cd "${WORKDIR}/trunk" + make DESTDIR=${D} install +} diff --git a/app-emulation/qemu-softmmu/Manifest b/app-emulation/qemu-softmmu/Manifest new file mode 100644 index 000000000..03c4ccb58 --- /dev/null +++ b/app-emulation/qemu-softmmu/Manifest @@ -0,0 +1,4 @@ +AUX qemu-cvs20080205-brb_02-olive.patch 86977 RMD160 5c3b9aaa654370ce3cf20aa6058a9af38b9fce20 SHA1 1a19841a7a951f4800335911fab34291154ae7df SHA256 a14e340757312542ab560bb52ff5f3bba6fe5345ea16ba58f7793af853e251ad +AUX qemu-e1000.patch 5451 RMD160 6846da29edf912c3b000a24ddae9b8878e1da584 SHA1 5930f34b58603d61f06427caa11193339f60eb17 SHA256 36ac7ba42ebc59f34df0ce94262f4c1ca04aebe9dc2015b5d22692eec5cac7cf +DIST qemu-20080205.tar.gz 2894660 RMD160 fca1cec324ea5eb4a76b5eb8880fec7aa3c3a492 SHA1 b6f2faded4cb784a1d4fa15c131b2c9b5bbb73b0 SHA256 60f5b4a36133904145d97f2ea0ab8153d09aac29705491f7d0cd25c16f6452cc +EBUILD qemu-softmmu-0.9.1_p20080205-r3.ebuild 3251 RMD160 356792ffa0fbe31fafa48da94d6a4508830cb3d1 SHA1 8d14e09b06d9bd0e51184d59e0d5bbde12fa4a1f SHA256 2ce2c71bd3a555dfe5cf8924389052c2824a6320544489e0552d9add80071996 diff --git a/app-emulation/qemu-softmmu/files/qemu-cvs20080205-brb_02-olive.patch b/app-emulation/qemu-softmmu/files/qemu-cvs20080205-brb_02-olive.patch new file mode 100644 index 000000000..8851ba18c --- /dev/null +++ b/app-emulation/qemu-softmmu/files/qemu-cvs20080205-brb_02-olive.patch @@ -0,0 +1,2614 @@ +diff -Naur qemu-20080205.orig/Makefile.target qemu-20080205/Makefile.target +--- qemu-20080205.orig/Makefile.target 2008-02-03 02:20:17.000000000 +0000 ++++ qemu-20080205/Makefile.target 2008-09-01 19:16:49.000000000 +0000 +@@ -510,6 +510,17 @@ + LIBS += $(CONFIG_VNC_TLS_LIBS) + endif + ++# BRB Port PCAP/LCAP/UDP from pemu to qemu ++ifdef CONFIG_WIN32 ++ PCAP_LIB=-lwpcap ++else ++ PCAP_LIB=-lpcap ++endif ++ ++ifdef CONFIG_NET_PCAP ++ LIBS+=$(PCAP_LIB) ++endif ++ + # SCSI layer + OBJS+= lsi53c895a.o + +@@ -526,6 +537,10 @@ + OBJS += rtl8139.o + OBJS += e1000.o + ++ifdef CONFIG_PEMU_I82559 ++OBJS += pemu_i82559.o ++endif ++ + ifeq ($(TARGET_BASE_ARCH), i386) + # Hardware support + OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o +diff -Naur qemu-20080205.orig/VERSION qemu-20080205/VERSION +--- qemu-20080205.orig/VERSION 2008-01-06 17:10:54.000000000 +0000 ++++ qemu-20080205/VERSION 2008-09-01 19:16:49.000000000 +0000 +@@ -1 +1 @@ +-0.9.1 +\ No newline at end of file ++0.9.1-brb +diff -Naur qemu-20080205.orig/configure qemu-20080205/configure +--- qemu-20080205.orig/configure 2008-02-03 19:20:13.000000000 +0000 ++++ qemu-20080205/configure 2008-09-01 19:16:49.000000000 +0000 +@@ -108,6 +108,10 @@ + darwin_user="no" + build_docs="no" + uname_release="" ++net_pcap="no" ++net_lcap="no" ++net_udp="no" ++pemu_i82559="no" + + # OS specific + targetos=`uname -s` +@@ -307,6 +311,14 @@ + ;; + --enable-uname-release=*) uname_release="$optarg" + ;; ++ --enable-net-pcap) net_pcap="yes" ++ ;; ++ --enable-net-lcap) net_lcap="yes" ++ ;; ++ --enable-net-udp) net_udp="yes" ++ ;; ++ --enable-pemu-i82559) pemu_i82559="yes" ++ ;; + --sparc_cpu=*) + sparc_cpu="$optarg" + case $sparc_cpu in +@@ -424,6 +436,10 @@ + echo " --fmod-inc path to FMOD includes" + echo " --enable-uname-release=R Return R for uname -r in usermode emulation" + echo " --sparc_cpu=V Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9" ++echo " --enable-net-pcap enable PCAP network interface (ported from pemu)" ++echo " --enable-net-lcap enable LCAP network interface (ported from pemu)" ++echo " --enable-net-udp enable UDP network interface for connecting to dynamips (ported from pemu)" ++echo " --enable-pemu-i82559 enable the i82559 interface from pemu (overlaps with eepro100.c)" + echo "" + echo "NOTE: The object files are built at the place where configure is launched" + exit 1 +@@ -747,6 +763,10 @@ + echo " TLS CFLAGS $vnc_tls_cflags" + echo " TLS LIBS $vnc_tls_libs" + fi ++echo "Net PCAP support $net_pcap" ++echo "Net LCAP support $net_lcap" ++echo "Net UDP support $net_udp" ++echo "PEMU i82559 $pemu_i82559" + if test -n "$sparc_cpu"; then + echo "Target Sparc Arch $sparc_cpu" + fi +@@ -936,6 +956,27 @@ + echo "CONFIG_FMOD_INC=$fmod_inc" >> $config_mak + echo "#define CONFIG_FMOD 1" >> $config_h + fi ++ ++if test $net_pcap = "yes" ; then ++ echo "CONFIG_NET_PCAP=yes" >> $config_mak ++ echo "#define CONFIG_NET_PCAP 1" >> $config_h ++fi ++ ++if test $net_lcap = "yes" ; then ++ echo "CONFIG_NET_LCAP=yes" >> $config_mak ++ echo "#define CONFIG_NET_LCAP 1" >> $config_h ++fi ++ ++if test $net_udp = "yes" ; then ++ echo "CONFIG_NET_UDP=yes" >> $config_mak ++ echo "#define CONFIG_NET_UDP 1" >> $config_h ++fi ++ ++if test $pemu_i82559 = "yes" ; then ++ echo "CONFIG_PEMU_I82559=yes" >> $config_mak ++ echo "#define CONFIG_PEMU_I82559 1" >> $config_h ++fi ++ + if test "$vnc_tls" = "yes" ; then + echo "CONFIG_VNC_TLS=yes" >> $config_mak + echo "CONFIG_VNC_TLS_CFLAGS=$vnc_tls_cflags" >> $config_mak +diff -Naur qemu-20080205.orig/hw/eepro100.c qemu-20080205/hw/eepro100.c +--- qemu-20080205.orig/hw/eepro100.c 2007-11-17 17:14:41.000000000 +0000 ++++ qemu-20080205/hw/eepro100.c 2008-09-01 19:16:49.000000000 +0000 +@@ -74,7 +74,7 @@ + #define KiB 1024 + + /* debug EEPRO100 card */ +-//~ #define DEBUG_EEPRO100 ++//#define DEBUG_EEPRO100 + + #ifdef DEBUG_EEPRO100 + #define logout(fmt, args...) fprintf(stderr, "EE100\t%-24s" fmt, __func__, ##args) +@@ -732,6 +732,7 @@ + logout + ("TBD (simplified mode): buffer address 0x%08x, size 0x%04x\n", + tx_buffer_address, tx_buffer_size); ++ assert(size + tx_buffer_size <= sizeof(buf)); + cpu_physical_memory_read(tx_buffer_address, &buf[size], + tx_buffer_size); + size += tx_buffer_size; +@@ -752,9 +753,13 @@ + logout + ("TBD (extended mode): buffer address 0x%08x, size 0x%04x\n", + tx_buffer_address, tx_buffer_size); +- cpu_physical_memory_read(tx_buffer_address, &buf[size], +- tx_buffer_size); +- size += tx_buffer_size; ++ if (size + tx_buffer_size > sizeof(buf)) { ++ logout("bad extended TCB with size 0x%04x\n", tx_buffer_size); ++ } else { ++ cpu_physical_memory_read(tx_buffer_address, &buf[size], ++ tx_buffer_size); ++ size += tx_buffer_size; ++ } + if (tx_buffer_el & 1) { + break; + } +@@ -769,14 +774,20 @@ + logout + ("TBD (flexible mode): buffer address 0x%08x, size 0x%04x\n", + tx_buffer_address, tx_buffer_size); +- cpu_physical_memory_read(tx_buffer_address, &buf[size], +- tx_buffer_size); +- size += tx_buffer_size; ++ if (size + tx_buffer_size > sizeof(buf)) { ++ logout("bad flexible TCB with size 0x%04x\n", tx_buffer_size); ++ } else { ++ cpu_physical_memory_read(tx_buffer_address, &buf[size], ++ tx_buffer_size); ++ size += tx_buffer_size; ++ } + if (tx_buffer_el & 1) { + break; + } + } + } ++ logout("%p sending frame, len=%d,%s\n", s, size, nic_dump(buf, size)); ++ assert(size <= sizeof(buf)); + qemu_send_packet(s->vc, buf, size); + s->statistics.tx_good_frames++; + /* Transmit with bad status would raise an CX/TNO interrupt. +@@ -1515,11 +1526,12 @@ + /* Multicast frame. */ + logout("%p received multicast, len=%d\n", s, size); + /* TODO: check multicast all bit. */ ++ /* An quick whack - just pass 'em all to the guest - dbg. 07.01.2008 + assert(!(s->configuration[21] & BIT(3))); + int mcast_idx = compute_mcast_idx(buf); + if (!(s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7)))) { + return; +- } ++ } */ + rfd_status |= 0x0002; + } else if (s->configuration[15] & 1) { + /* Promiscuous: receive all. */ +@@ -1545,7 +1557,13 @@ + offsetof(eepro100_rx_t, packet)); + uint16_t rfd_command = le16_to_cpu(rx.command); + uint16_t rfd_size = le16_to_cpu(rx.size); +- assert(size <= rfd_size); ++ ++ // brb: cange from assert to if and log ++ // assert(size <= rfd_size); ++ if (size <= rfd_size) { ++ logout("size is smaller than rfd_size: %u <= %u : %s", size, rfd_size, nic_dump(buf, size)); ++ } ++ + if (size < 64) { + rfd_status |= 0x0080; + } +@@ -1565,10 +1583,10 @@ + s->statistics.rx_good_frames++; + eepro100_fr_interrupt(s); + s->ru_offset = le32_to_cpu(rx.link); ++ /* Comment out assert - brb 2008-01-15 + if (rfd_command & 0x8000) { +- /* EL bit is set, so this was the last frame. */ + assert(0); +- } ++ } */ + if (rfd_command & 0x4000) { + /* S bit is set. */ + set_ru_state(s, ru_suspended); +diff -Naur qemu-20080205.orig/hw/pci.c qemu-20080205/hw/pci.c +--- qemu-20080205.orig/hw/pci.c 2008-02-03 02:20:18.000000000 +0000 ++++ qemu-20080205/hw/pci.c 2008-09-01 19:16:49.000000000 +0000 +@@ -634,14 +634,22 @@ + pci_i82557b_init(bus, nd, devfn); + } else if (strcmp(nd->model, "i82559er") == 0) { + pci_i82559er_init(bus, nd, devfn); ++#ifdef CONFIG_PEMU_I82559 ++ } else if (strcmp(nd->model, "pemu_i82559") == 0) { ++ pci_i82559_init(bus, nd, devfn); ++#endif /* CONFIG_PEMU_I82559 */ + } else if (strcmp(nd->model, "rtl8139") == 0) { + pci_rtl8139_init(bus, nd, devfn); + } else if (strcmp(nd->model, "e1000") == 0) { + pci_e1000_init(bus, nd, devfn); + } else if (strcmp(nd->model, "pcnet") == 0) { + pci_pcnet_init(bus, nd, devfn); +- } else if (strcmp(nd->model, "?") == 0) { +- fprintf(stderr, "qemu: Supported PCI NICs: i82551 i82557b i82559er" ++ } else if (strcmp(nd->model, "?") == 0 || ++ strcmp(nd->model, "list") == 0) { ++ fprintf(stderr, "qemu: Supported PCI NICs: e1000 i82551 i82557b i82559er" ++#ifdef CONFIG_PEMU_I82559 ++ " pemu_i82559" ++#endif /* CONFIG_PEMU_I82559 */ + " ne2k_pci pcnet rtl8139 e1000\n"); + exit (1); + } else { +diff -Naur qemu-20080205.orig/hw/pci.h qemu-20080205/hw/pci.h +--- qemu-20080205.orig/hw/pci.h 2008-02-03 02:20:18.000000000 +0000 ++++ qemu-20080205/hw/pci.h 2008-09-01 19:16:49.000000000 +0000 +@@ -112,6 +112,9 @@ + /* usb-ohci.c */ + void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn); + ++/* i82559.c */ ++void pci_i82559_init(PCIBus *bus, NICInfo *nd, int devfn); ++ + /* eepro100.c */ + + void pci_i82551_init(PCIBus *bus, NICInfo *nd, int devfn); +diff -Naur qemu-20080205.orig/hw/pemu_i82559.c qemu-20080205/hw/pemu_i82559.c +--- qemu-20080205.orig/hw/pemu_i82559.c 1970-01-01 00:00:00.000000000 +0000 ++++ qemu-20080205/hw/pemu_i82559.c 2008-09-01 19:16:49.000000000 +0000 +@@ -0,0 +1,1275 @@ ++#include "hw.h" ++#include "pci.h" ++#include "net.h" ++#define MAX_DEV 8 ++ ++//#define I82559_DEBUG ++ ++ ++//extern struct IRQState; ++//extern FILE *logfile; ++ ++//static int nic_pci_ids[16]={0x0e,0x0d,0x0b,0x13,0x11,0x0f,0,0,0,0,0,0,0,0,0,0}; ++//static int number_of_nics=0; ++static uint16 default_eeprom[64] = { ++ 0xaa00, 0x0000, 0x0000, // Mac Address 0x00aa00xxyyzz ++ 0x030a, //Compatibility Byte 0,1 ++ 0xffff, // Reserver ++ 0x0102, // Controller Type (02 for 82559), Connectors (01 for RJ45) ++ 0x4701, // PHY Device Record (4701 for 82559) ++ 0xffff, // Reserved ++ 0x0903, 0x3525, // PWA Number Bytes ++ 0x40c0, // Eeprom ID ++ 0x0000, // Subsystem ID ++ 0x0000, // Subsystem Vendor ID ++ 0xffff, 0xffff, 0xffff, ++ 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, ++ 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, ++ 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, ++ 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, ++ 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, ++ 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff ++}; ++ ++uint8 frame_padding[64]={ // Used for frame padding (if enabled) ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, ++ 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f ++}; ++ ++typedef struct I82559State { ++ uint8_t phys[8]; /* mac address */ ++ uint8_t mult[8]; /* multicast mask array */ ++ qemu_irq irq; ++ PCIDevice *pci_dev; ++ VLANClientState *vc; ++ uint8_t macaddr[6]; ++ int i82559_mmio_io_addr; ++ QEMUTimer *timer; ++ ++ unsigned char mmio_buf[0x1000]; // 4k mmio mem, to buffer byte & word operations ++ int id; ++ int phy_reg_addr; ++ int phy_addr; ++ int phy_ie; ++ uint16 mdi_regs[0x20]; ++ ++ uint32 scb_pointer; ++ uint16 scb_command; ++ uint32 ru_base; ++ uint32 cu_base; ++ uint32 dump_pointer; ++ uint8 scb_status_lo; ++ uint8 scb_status_hi; ++ uint16 interrupt_mask; ++ uint8 config[21]; ++ uint16 eeprom_regs[64]; ++ uint32 eprom_addr; // selected register ++ int eeprom_last_data_bit; ++ uint32 eeprom_current_reg; ++ uint32 eeprom_current_regw; ++ ++ int eeprom_current_reg_sel; ++ int eeprom_current_cmd; ++ int eeprom_current_state; ++ int eeprom_last_read_bit; ++ uint32 counters[21]; // 20 counters + 1 for status in dump command ++ int multicast_addr_count; ++ uint8 multicast_address[64][6]; ++ ++ uint32 RFA; // Receive Frame area ++ uint32 TBD; // Transmit unit block ??? ++ ++} I82559State; ++ ++typedef struct PCII82559State { ++ PCIDevice dev; ++ I82559State i82559; ++} PCII82559State; ++ ++typedef PCII82559State * pPCII82559State; ++ ++//BRB ++//pPCII82559State my_devices[MAX_DEV]; ++ ++//SCB Command Words BITS ++#define INTERRUPT_MASK_M (1<<0) ++#define INTERRUPT_MASK_SI (1<<1) ++#define INTERRUPT_MASK_FCP (1<<2) ++#define INTERRUPT_MASK_ER (1<<3) ++#define INTERRUPT_MASK_RNR (1<<4) ++#define INTERRUPT_MASK_CNA (1<<5) ++#define INTERRUPT_MASK_FR (1<<6) ++#define INTERRUPT_MASK_CX (1<<7) ++ ++//Status word bits ++#define INTERRUPT_STAT_CX (1<<7) ++#define INTERRUPT_STAT_FR (1<<6) ++#define INTERRUPT_STAT_CNA (1<<5) ++#define INTERRUPT_STAT_RNR (1<<4) ++#define INTERRUPT_STAT_MDI (1<<3) ++#define INTERRUPT_STAT_SWI (1<<2) ++#define INTERRUPT_STAT_FCP (1<<0) ++ ++//#ifdef I82559_DEBUG ++void dbg(char *format,...) { ++ va_list vlist; ++ va_start(vlist, format); ++ vprintf(format, vlist); ++ va_end(vlist); ++// fflush(logfile); ++} ++//#endif ++ ++ ++ ++static void i82559_mmio_map(PCIDevice *pci_dev, int region_num, ++ uint32_t addr, uint32_t size, int type) { ++ PCII82559State *d = (PCII82559State *)pci_dev; ++ I82559State *s = &d->i82559; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: i82559_mmio_map region=%x,addr=%x,size=%x,type=%x\n",s->id,region_num,addr, size, type); ++#endif ++ cpu_register_physical_memory(addr + 0, 0x100, s->i82559_mmio_io_addr); ++} ++ ++static void i82559_io_writeb(void *opaque, uint32_t addr, uint32_t val) { ++#ifdef I82559_DEBUG ++ I82559State *s = opaque; ++ addr &= 0xff; ++ dbg("I82559[%i]: UNHANDLED io_writeb(%x,%x)\n",s->id,addr,val); ++#endif ++} ++ ++static void i82559_io_writew(void *opaque, uint32_t addr, uint32_t val) { ++#ifdef I82559_DEBUG ++ I82559State *s = opaque; ++ addr &= 0xfe; ++ dbg("I82559[%i]: UNHANDLED io_writew(%x,%x)\n",s->id,addr,val); ++#endif ++} ++static void i82559_io_writel(void *opaque, uint32_t addr, uint32_t val) { ++#ifdef I82559_DEBUG ++ I82559State *s = opaque; ++ addr &= 0xfc; ++ dbg("I82559[%i]: UNHANDLED io_writel(%x,%x)\n",s->id,addr,val); ++#endif ++} ++ ++static uint32_t i82559_io_readb(void *opaque, uint32_t addr) { ++#ifdef I82559_DEBUG ++ I82559State *s=opaque; ++ addr &= 0xff; ++ dbg("I82559[%i]: UNHANDLED io_readb(%x)\n",s->id,addr); ++#endif ++ return 0xff; ++} ++ ++static uint32_t i82559_io_readw(void *opaque, uint32_t addr) { ++#ifdef I82559_DEBUG ++ I82559State *s=opaque; ++ addr &= 0xfe; ++ dbg("I82559[%i]: UNHANDLED io_readw(%x)\n",s->id,addr); ++#endif ++ return 0xffff; ++} ++ ++static uint32_t i82559_io_readl(void *opaque, uint32_t addr) { ++#ifdef I82559_DEBUG ++ I82559State *s=opaque; ++ addr &= 0xfc; ++ dbg("I82559[%i]: UNHANDLED io_read;(%x)\n",s->id,addr); ++#endif ++ return 0xffffffff; ++} ++ ++static void i82559_ioport_map(PCIDevice *pci_dev, int region_num, uint32_t addr, uint32_t size, int type) { ++ PCII82559State *d = (PCII82559State *)pci_dev; ++ I82559State *s = &d->i82559; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: i82559_ioport_map %x,%x,%x\n",s->id,addr,size,type); ++#endif ++ register_ioport_write(addr, 0x10, 1, i82559_io_writeb, s); ++ register_ioport_read( addr, 0x10, 1, i82559_io_readb, s); ++ ++ register_ioport_write(addr, 0x10, 2, i82559_io_writew, s); ++ register_ioport_read( addr, 0x10, 2, i82559_io_readw, s); ++ ++ register_ioport_write(addr, 0x10, 4, i82559_io_writel, s); ++ register_ioport_read( addr, 0x10, 4, i82559_io_readl, s); ++} ++ ++void CNA_interrupt_schedule(I82559State *s) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: CNA_interrupt_schedule() interrupt_mask=%x, scb_status_hi=%x\n",s->id,s->interrupt_mask,s->scb_status_hi); ++#endif ++ if (s->interrupt_mask & INTERRUPT_MASK_CNA) return; // CNA Bit is masked ++ s->scb_status_hi |= INTERRUPT_STAT_CNA; ++} ++ ++void CX_interrupt_schedule(I82559State *s) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: CX_interrupt_schedule() interrupt_mask=%x, scb_status_hi =%x\n",s->id,s->interrupt_mask,s->scb_status_hi); ++#endif ++ if (s->interrupt_mask & INTERRUPT_MASK_CX) return; // CNA Bit is masked ++ s->scb_status_hi |= INTERRUPT_STAT_CX; ++} ++ ++void FR_interrupt_schedule(I82559State *s) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: FR_interrupt_schedule() interrupt_mask=%x, scb_status_hi =%x\n",s->id,s->interrupt_mask,s->scb_status_hi); ++#endif ++ if (s->interrupt_mask & INTERRUPT_MASK_FR) return; ++ s->scb_status_hi |= INTERRUPT_STAT_FR; ++} ++void MDI_interrupt_schedule(I82559State *s) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: MDI_interrupt_schedule() interrupt_mask=%x, scb_status_hi =%x\n",s->id,s->interrupt_mask,s->scb_status_hi); ++#endif ++ s->scb_status_hi |= INTERRUPT_STAT_MDI; ++} ++ ++void execute_scheduled_interrupts(I82559State *s) { ++#ifdef I82559_DEBUG ++ if (s->scb_status_hi !=0) dbg("I82559[%i]: Execute_scheduled_interrupts() mask=%x, interrupts=%x irq=%i\n",s->id,s->interrupt_mask,s->scb_status_hi, 0); ++#endif ++ if (s->interrupt_mask & INTERRUPT_MASK_M) { ++ // interrupts are masked ++ //BRB use qemu functions ++ //pci_set_irq(s->pci_dev, 0, 0); ++ qemu_set_irq(s->irq, 0); ++ } else { ++ // interrupts are not masked ++ // pci_set_irq(s->pci_dev, 0, (s->scb_status_hi != 0)); ++ qemu_set_irq(s->irq, (s->scb_status_hi != 0)); ++ } ++} ++ ++ ++//-------------------------------------------------------------------- ++void port_interface_writel(I82559State *s, uint32 val) { ++ int i; ++ switch (val & 0xf) { ++ case 0: // software reset ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: software reset\n",s->id); ++#endif ++ s->phy_reg_addr=0; ++ s->phy_addr=0; ++ s->scb_pointer=0; ++ s->scb_command=0; ++ s->ru_base=0; ++ s->cu_base=0; ++ s->dump_pointer=0; ++ for (i=0;i<=20;i++) s->counters[i]=0; ++ s->scb_status_lo=0; ++ s->scb_status_hi=0; ++ s->interrupt_mask=0; ++ for (i=0;i<=21;i++) s->config[i]=0; ++ s->RFA=0; ++ s->TBD=0; ++ return; ++ case 1: // self teset ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: Self-test, result pointer=%08x\n",s->id,val & 0xfffffff0); ++#endif ++ return; ++ case 2: // Selective reset ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: selective reset\n",s->id); ++#endif ++ for (i=0;i<=21;i++) s->config[i]=0; ++ s->scb_status_hi=0; ++ return; ++ case 3: // Dump ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: UNHANDLED Dump, Dump Area pointer=%08x\n",s->id,val & 0xfffffff0); ++#endif ++ return; ++ case 7: // Dump Wake-up ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: UNHANDLED Dump Wake-up, Dump Area pointer=%08x\n",s->id,val & 0xfffffff0); ++#endif ++ return; ++ default: ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: UNHANDLED Port Interface command %i\n",s->id,val & 0xf); ++#endif ++ return; ++ } ++} ++ ++void mdi_reset (I82559State *s) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: reset()\n",s->id); ++#endif ++ s->mdi_regs[0]=0x3100; // ++ s->mdi_regs[1]=0x782d; ++ s->mdi_regs[2]=0x02a8; ++ s->mdi_regs[3]=0x0150; ++ ++ s->mdi_regs[16]=0x3; ++ s->mdi_regs[17]=0x0; ++ s->mdi_regs[18]=0x1; ++ // !!!!!!! TODO ++} ++ ++void mdi_reg_write (I82559State *s,uint32 val) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: mdi_write_reg(phy=%i, reg=%x, data=%04x)\n", ++ s->id,s->phy_addr,s->phy_reg_addr,val); ++#endif ++ if (s->phy_addr!=1) return;//support only one PHY ++ ++ switch (s->phy_reg_addr) { ++ case 0: // control register 0 ++ if (val & 0x08000) { // reset ++ mdi_reset (s); ++ return; ++ } ++ s->mdi_regs[0]=val; ++ break; ++ ++ default: s->mdi_regs[s->phy_reg_addr]=val; ++ } ++} ++ ++static inline uint32 mdi_reg_read (I82559State *s) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: mdi_read_reg(phy=%i, reg=0x%x, data=0x%04x)\n", ++ s->id,s->phy_addr,s->phy_reg_addr,s->mdi_regs[s->phy_reg_addr]); ++#endif ++ if (s->phy_addr!=1) return 0;// support only one PHY ++ switch (s->phy_reg_addr) { ++ case 0: return s->mdi_regs[0] & 0xffff7fff; ++ } ++ return s->mdi_regs[s->phy_reg_addr]; ++} ++ ++void mdi_writel(I82559State *s, uint32 val) { ++ uint16 data; ++ int op,ie; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: mdi_writel(%08x)\n",s->id,val); ++#endif ++ data=val & 0xffff; ++ s->phy_reg_addr = (val >> 16) & 0x1f; ++ s->phy_addr=(val >> 21) & 0x1f; ++ op = (val >> 26) & 3; ++ ie = (val >> 29); ++ ++ switch (op) { ++ case 01: // MDI write op ++ mdi_reg_write (s,data); ++ return; ++ case 02: // MDI read op ++ return; ++ } ++ if (ie) { ++ MDI_interrupt_schedule(s); ++ execute_scheduled_interrupts(s); ++ } ++} ++ ++uint32 mdi_readl(I82559State *s) { ++ uint32 ret; ++ ret=(1<<28) | (s->phy_addr << 21) | (s->phy_reg_addr << 16) | mdi_reg_read (s); ++#ifdef I82559_DEBUG ++// dbg("I82559[%i]: mdi_read_readl(reg=%x)=%08x\n",s->id,s->phy_reg_addr,ret); ++#endif ++ return ret; ++} ++ ++void ru_command (I82559State *s,int ruc, uint16 val) { ++ switch (ruc) { ++ case 00://NOOP ++ break; ++ case 01:// RU Start - enable receiver UNIT ++ s->RFA=s->ru_base+s->scb_pointer; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: RU CMD: RU Start, RFA=%08x\n",s->id,s->RFA); ++#endif ++ // This is interpreted when frame is received in i82559_receive(); ++ break; ++ case 02:// RU resume ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: UNHANDLED RU CMD: RU Resume, RFA=%08x\n",s->id,s->RFA); ++#endif ++ break; ++ case 03://receive DMA redirect ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: UNHANDLED RU CMD: receive DMA redirect\n",s->id); ++#endif ++ break; ++ case 04:// RU Abort ++ s->RFA=0; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: UNHANDLED RU CMD: RU Abort\n",s->id); ++#endif ++ break; ++ case 05:// Load header data size ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: UNHANDLED RU CMD: Load header data size\n",s->id); ++#endif ++ break; ++ case 06://load ru base ++ s->ru_base=s->scb_pointer; ++ break; ++ } ++} ++ ++void execute_action_command (I82559State *s) { ++ uint32 addr,next_addr; ++ uint32 cmd_block[2]; ++ int el; ++ unsigned int ok_status=0; ++ el=0; ++ while (el==0) { ++ addr=s->TBD; ++ int cmd,i,ss; ++ cpu_physical_memory_read(addr,(uint8 *) &cmd_block,8); ++ ok_status=0; ++ cmd=(cmd_block[0]>>16) & 7; ++ el=cmd_block[0]>>31; ++ ss=(cmd_block[0]>>30) & 1; ++ i=(cmd_block[0]>>29) & 1; ++ next_addr=s->cu_base+cmd_block[1]; ++ // EL S I 0000000000 CMD C X OK XXXXXXXXXXXXX ++ // Link Address (A31:A0) ++ switch (cmd) { // CMD ++ case 0: //NOP ++ ok_status=1; // command executed without errors ++ break; ++ case 1:// individual address setup /maybe set MAC ADDRESS ++ ok_status=1; ++ { ++ uint8 mac[8]; ++ int i; ++ cpu_physical_memory_read(addr+8,(uint8 *) mac,8); ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: CU CMD: Set MAC to:%02x:%02x:%02x:%02x:%02x:%02x\n", ++ s->id, mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]); ++#endif ++ for (i=0;i<6;i++) s->macaddr[i]=mac[i]; ++ } ++ break; ++ case 2: // Configure ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: CU CMD: Configure\n",s->id); ++#endif ++ { ++ uint32 tmp_buf[6]; ++ cpu_physical_memory_read(addr+8,(uint8 *) &tmp_buf,24); ++ s->config[0] =tmp_buf[0] & 0xff; ++ s->config[1] =(tmp_buf[0] >> 8) & 0xff; ++ s->config[2] =(tmp_buf[0] >> 16) & 0xff; ++ s->config[3] =(tmp_buf[0] >> 24) & 0xff; ++ s->config[4] =tmp_buf[1] & 0xff; ++ s->config[5] =(tmp_buf[1] >> 8) & 0xff; ++ s->config[6] =(tmp_buf[1] >> 16) & 0xff; ++ s->config[7] =(tmp_buf[1] >> 24) & 0xff; ++ s->config[8] =tmp_buf[2] & 0xff; ++ s->config[9]=(tmp_buf[2] >> 8) & 0xff; ++ s->config[10]=(tmp_buf[2] >> 16) & 0xff; ++ s->config[11]=(tmp_buf[2] >> 24) & 0xff; ++ s->config[12]=tmp_buf[3] & 0xff; ++ s->config[13]=(tmp_buf[3] >> 8) & 0xff; ++ s->config[14]=(tmp_buf[3] >> 16) & 0xff; ++ s->config[15]=(tmp_buf[3] >> 24) & 0xff; ++ s->config[16]=tmp_buf[4] & 0xff; ++ s->config[17]=(tmp_buf[4] >> 8) & 0xff; ++ s->config[18]=(tmp_buf[4] >> 16) & 0xff; ++ s->config[19]=(tmp_buf[4] >> 24) & 0xff; ++ s->config[20]=tmp_buf[5] & 0xff; ++ s->config[21]=(tmp_buf[5] >> 8) & 0xff; ++ ok_status=1; ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: Byte Count=%i\n",s->id,s->config[0]&0x3f); ++ ++ dbg ("I82559[%i]: Transmit FIFO Limit=%i\n",s->id,(s->config[1]>>4)&0x7); ++ dbg ("I82559[%i]: Receive FIFO Limit=%i=%i\n",s->id,s->config[1]&0xf); ++ ++ dbg ("I82559[%i]: Adaptive Spacing=%x\n",s->id,s->config[2]); ++ ++ dbg ("I82559[%i]: Term Write on CL=%i\n",s->id,s->config[3]&0x8?1:0); ++ dbg ("I82559[%i]: Read AI Enable=%i\n",s->id,s->config[3]&0x4?1:0); ++ dbg ("I82559[%i]: Type Enable=%i\n",s->id,s->config[3]&0x2?1:0); ++ dbg ("I82559[%i]: MWI Enable=%i\n",s->id,s->config[3]&0x1?1:0); ++ ++ dbg ("I82559[%i]: Receive DMA Maximum Byte Count=%x\n",s->id,s->config[4]&0x7f); ++ ++ dbg ("I82559[%i]: DMBC Enable=%i\n",s->id,s->config[5]&0x80?1:0); ++ dbg ("I82559[%i]: Transmit DMA Maximum Byte count=%x\n",s->id,s->config[5]&0x7f); ++ ++ dbg ("I82559[%i]: Save Bad Frames=%i\n",s->id,s->config[6]&0x80?1:0); ++ dbg ("I82559[%i]: Discard Overruns=%i\n",s->id,s->config[6]&0x40?1:0); ++ dbg ("I82559[%i]: Ext. Stat. Count=%i\n",s->id,s->config[6]&0x20?1:0); ++ dbg ("I82559[%i]: Extended TxCB=%i\n",s->id,s->config[6]&0x10?1:0); ++ dbg ("I82559[%i]: CI Interrupt=%i\n",s->id,s->config[6]&0x8?1:0); ++ dbg ("I82559[%i]: TCO Statistics =%i\n",s->id,s->config[6]&0x4?1:0); ++ ++ dbg ("I82559[%i]: Dynamic TBD=%i\n",s->id,s->config[7]&0x80?1:0); ++ dbg ("I82559[%i]: 2 Frames in FIFO=%i\n",s->id,s->config[7]&0x40?1:0); ++ dbg ("I82559[%i]: Underrun Retry=%i\n",s->id,(s->config[7]>>1)&3); ++ dbg ("I82559[%i]: Discard Short Receive=%i\n",s->id,s->config[7]&1?1:0); ++ ++ dbg ("I82559[%i]: CSMA Disable=%i\n",s->id,s->config[8]&0x80?1:0); ++ ++ dbg ("I82559[%i]: Link Wake-up Enable=%i\n",s->id,s->config[9]&0x20?1:0); ++ dbg ("I82559[%i]: VLAN TCO=%i\n",s->id,s->config[9]&0x10?1:0); ++ dbg ("I82559[%i]: TCP/UDP Checksum=%i\n",s->id,s->config[9]&0x1?1:0); ++ ++ dbg ("I82559[%i]: Loopback=%i\n",s->id,(s->config[10]>>6)&3); ++ dbg ("I82559[%i]: Pre-amble length=%i\n",s->id,(s->config[10]>>4)&3); ++ dbg ("I82559[%i]: NSAI=%i\n",s->id,s->config[10]&8?1:0); ++ ++ dbg ("I82559[%i]: Interframe Spacing=%i\n",s->id,(s->config[12]>>4)&0xf); ++ ++ dbg ("I82559[%i]: CRS and CDT=%i\n",s->id,s->config[15]&0x80?1:0); ++ dbg ("I82559[%i]: CRC16=%i\n",s->id,s->config[15]&0x20?1:0); ++ dbg ("I82559[%i]: Ignore U/L=%i\n",s->id,s->config[15]&0x10?1:0); ++ dbg ("I82559[%i]: Wait After Win=%i\n",s->id,s->config[15]&0x4?1:0); ++ dbg ("I82559[%i]: Broadcast Disable=%i\n",s->id,s->config[15]&0x2?1:0); ++ dbg ("I82559[%i]: Promiscous=%i\n",s->id,s->config[15]&0x1?1:0); ++ ++ dbg ("I82559[%i]: FL Delay=%04x\n",s->id,s->config[16]+(s->config[17]<<8)); ++ ++ dbg ("I82559[%i]: Priority FC Threshold=%i\n",s->id,(s->config[18]>>4)&0x7); ++ dbg ("I82559[%i]: Long Receive OK=%i\n",s->id,s->config[18]&8?1:0); ++ dbg ("I82559[%i]: Receive CRC Transfer=%i\n",s->id,s->config[18]&4?1:0); ++ dbg ("I82559[%i]: Padding=%i\n",s->id,s->config[18]&2?1:0); ++ dbg ("I82559[%i]: Strinpping=%i\n",s->id,s->config[18]&1?1:0); ++ ++ dbg ("I82559[%i]: Automatic FDX=%i\n",s->id,s->config[19]&0x80?1:0); ++ dbg ("I82559[%i]: Force FDX=%i\n",s->id,s->config[19]&0x40?1:0); ++ dbg ("I82559[%i]: Reject FC=%i\n",s->id,s->config[19]&0x20?1:0); ++ dbg ("I82559[%i]: Receive FC Restart=%i\n",s->id,s->config[19]&0x10?1:0); ++ dbg ("I82559[%i]: Receive FC Restop=%i\n",s->id,s->config[19]&0x8?1:0); ++ dbg ("I82559[%i]: Transmit FC=%i\n",s->id,s->config[19]&0x4?1:0); ++ dbg ("I82559[%i]: Magic Packet Wake up=%i\n",s->id,s->config[19]&0x2?1:0); ++ ++ dbg ("I82559[%i]: Multiple IA=%i\n",s->id,s->config[20]&0x40?1:0); ++ dbg ("I82559[%i]: Priority FC Location=%i\n",s->id,s->config[20]&0x20?1:0); ++ ++ dbg ("I82559[%i]: Multicast All=%i\n",s->id,s->config[21]&0x8?1:0); ++#endif ++ } ++ break; ++ case 3:{// Multicast Setup ++ int count,i; ++ uint8 buf[64*6]; ++ ++//#ifdef I82559_DEBUG ++// dbg ("I82559[%i]: UNHANDLED CU CMD: Multicast Setup\n",s->id); ++//#endif ++ cpu_physical_memory_read(addr+8,(uint8 *) &count,2); ++// Count seems to be in bytes e.g 12 for 2 addresses ++ count &= 0xfff; ++ count=count/6; ++ if (count>64) count=64; ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: Multicas setup, count=%i\n",s->id,count);; ++#endif ++ if (count) { ++ cpu_physical_memory_read(addr+10,(uint8 *) &buf,count*6); // Multicast_count ++ s->multicast_addr_count=count; ++ for (i=0;iid,i,buf[i*6+0],buf[i*6+1],buf[i*6+2],buf[i*6+3],buf[i*6+4],buf[i*6+5]); ++#endif ++ s->multicast_address[i][0]=buf[i*6+0]; ++ s->multicast_address[i][1]=buf[i*6+1]; ++ s->multicast_address[i][2]=buf[i*6+2]; ++ s->multicast_address[i][3]=buf[i*6+3]; ++ s->multicast_address[i][4]=buf[i*6+4]; ++ s->multicast_address[i][5]=buf[i*6+5]; ++ } ++ } ++ ok_status=1; // - fill multicast address table ++ } ++ break; ++ case 4: // Transmit Packet ++ if (s->config[6] & (1<<4)) { // Extended TxCB ++ uint32 buf[2]; ++ int el1; ++ int tbd_number; ++ cpu_physical_memory_read(addr+8,(uint8 *) &buf,8);//TBD Array Address & flags ++ tbd_number=(buf[1]>>24); ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: Transmit, TBD Array Address=%08x, f=%x\n",s->id,buf[0],buf[1]); ++#endif ++ el1=0; ++ while (el1==0 && tbd_number>0) { ++ uint32 tbdd[2]; ++ uint8 pkt_buf[2000];// packet buffer ++ int size; ++ cpu_physical_memory_read(buf[0],(uint8 *) &tbdd,8); ++///!!!!! el1=((tbdd[1] & 0x8000)==1); ++ el1=((tbdd[1] & 0x10000)==1); ++ size=tbdd[1]&0x7fff; ++ cpu_physical_memory_read(tbdd[0],pkt_buf,size); ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: Transmit Packet (TBD:%08x, size=%i) dest=%02x:%02x:%02x:%02x:%02x:%02x, src=%02x:%02x:%02x:%02x:%02x:%02x\n",s->id,tbdd[0],size, ++ pkt_buf[0],pkt_buf[1],pkt_buf[2],pkt_buf[3],pkt_buf[4],pkt_buf[5], ++ pkt_buf[6],pkt_buf[7],pkt_buf[8],pkt_buf[9],pkt_buf[10],pkt_buf[11] ++ ); ++#endif ++ qemu_send_packet(s->vc, pkt_buf, size); ++ s->counters[0]++; ++ tbd_number--; ++ } ++ ok_status=1; ++ } else { ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: Transmit, Simple TXCB Not Supported\n",s->id); ++#endif ++ ok_status=0; ++ } ++ break; ++ case 5:// Load microcode ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: UNHANDLED CU CMD: Load microcode\n"); ++#endif ++ ok_status=1; ++ break; ++ case 6:// Dump ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: UNHANDLED CU CMD: Dump\n"); ++#endif ++ ok_status=1; ++ break; ++ case 7://Diagnose ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: UNHANDLED CU CMD: Diagnose\n"); ++#endif ++ ok_status=1; ++ break; ++ } ++ if (i) { ++ CX_interrupt_schedule(s); ++ s->scb_status_hi|=0x80; ++ } else { ++ s->scb_status_hi&=0x7f; ++ } ++ ++ cmd_block[0] |= (1<<15); // C bit - completion ++ if (ok_status) cmd_block[0] |= (1<<13); // OK bit ++ else cmd_block[0] &= 0xffffdfff; ++ cpu_physical_memory_write(addr,(uint8 *) &cmd_block,4); ++ s->TBD=next_addr; ++ if (ss) { ++ CNA_interrupt_schedule(s); ++ s->scb_status_lo &= 0x3f; ++ s->scb_status_lo |= 0x40; // Set CU Status ot 01 = Suspended ++ //s->state=suspended; //!?!?! ++ break; //!!!! s==1 means suspend after this command, so we assume that this also means el=1 ++ } ++ ++ if (el) { ++// s->scb_status_hi |= (1<<5); //This bit indicates when the CU has left the active state or has entered the idle state. ++ //There are 2 distinct states of the CU. When the device is configured to generate ++ //CNA interrupt, the interrupt is activated when the CU leaves the active state and ++ //enters either the idle or suspended state. When the device is configured to ++ //generate CI interrupt, an interrupt will be generated only when the CU enters the ++ //idle state ++ break; // last command ++ } ++ } ++ execute_scheduled_interrupts(s); ++// dbg ("I82559[%i]: CU cmd End ----------\n",s->id); ++} ++ ++#ifdef I82559_DEBUG ++static const char *cu_cmd_names[] = { ++ "NOP", ++ "CU Start", ++ "CU Resume", ++ "CU HPQ Start", ++ "Load dump counters adderss", ++ "Dump Counters", ++ "Load CU Base", ++ "Dump & Reset Counters", ++ "???8", ++ "???9", ++ "CU Static Resume", ++ "CU HPQ Resume", ++ "??12", ++ "??13", ++ "??14", ++ "??15" ++}; ++#endif ++ ++void cu_command (I82559State *s,int cuc, uint16 val) { ++ switch (cuc) { ++ case 0x00: //NOOP ++ break; ++ case 0x01:// CU Start ++ s->TBD=s->scb_pointer+s->cu_base; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: CU Start TBD=%08x\n",s->id,s->TBD); ++#endif ++ execute_action_command (s); ++ break; ++ case 0x02:// CU Resume ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: CU Resume TBD=%08x\n",s->id,s->TBD); ++#endif ++ s->scb_status_lo &= (~0x40); // no more suspended ++ execute_action_command (s); ++ break; ++ case 0x04://Load Dump Counters address ++ s->dump_pointer=s->scb_pointer; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: Load dump pointers address: %x\n",s->id,s->dump_pointer); ++#endif ++ break; ++ case 0x05:// Dump Statistical Counters ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: CU Command: Dump Counters\n",s->id); ++#endif ++ if (s->dump_pointer) ++ cpu_physical_memory_write(s->dump_pointer,(uint8 *) &s->counters,80); ++ break; ++ case 0x06:// Load CU Base ++ s->cu_base=s->scb_pointer; ++ break; ++ case 0x07://Dump and reset statistical counters ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: CU Command: Dump And reset Counters\n",s->id); ++#endif ++ if (s->dump_pointer) ++ cpu_physical_memory_write(s->dump_pointer,(uint8 *) &s->counters,80); ++ { int i; ++ for (i=0;i<=20;i++) s->counters[i]=0; ++ } ++ break; ++#ifdef I82559_DEBUG ++ default: dbg("I82559[%i]: UNHANDLED CU Command: %s\n",s->id,cu_cmd_names[cuc]); ++#endif ++ } ++} ++ ++static void i82559_mmio_writel(void *opaque, target_phys_addr_t addr, uint32_t val); ++ ++static void i82559_mmio_writeb(void *opaque, target_phys_addr_t addr, uint32_t val1) { ++ I82559State *s=opaque; ++ uint8_t val; ++ val=val1 & 0xff; ++ addr &= 0xfff; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: mmio_writeb [%x],%x\n",s->id,addr,val); ++#endif ++ switch (addr) { ++ case 0x08: // PORT INTERFACE ++ case 0x09: ++ case 0x0a:s->mmio_buf[addr]=val; ++ return; ++ case 0x0b:s->mmio_buf[addr]=val; ++ i82559_mmio_writel(opaque,8,(uint32_t) s->mmio_buf[8]); ++ return; ++ case 0x10: ++ case 0x11: ++ case 0x12:s->mmio_buf[addr]=val; ++ return; ++ case 0x13:s->mmio_buf[addr]=val; ++ i82559_mmio_writel(opaque,0x10,(uint32_t) s->mmio_buf[0x10]); ++ return; ++ ++ case 0x03://write to interrupt mask bits ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: set interrupt mask to:%02x\n",s->id,val); ++#endif ++ s->interrupt_mask=val; ++ return; ++ case 0x02://SCB Command; ++ { ++ uint32 RUC,CUC; ++ s->scb_command=val; ++ RUC=val & 7; ++ CUC=(val >> 4) & 0x0f; ++ cu_command(s,CUC,val); ++ ru_command(s,RUC,val); ++ } ++ return; ++ case 0x01: // Interrupt acknoligment ++ s->scb_status_hi &= (~val); ++#ifdef I82559_DEBUG ++ if (val) dbg("I82559[%i]: Interrupt Ack %02x\n",s->id,val); ++#endif ++ execute_scheduled_interrupts(s); ++ return; ++ } ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: !UNHANDLED i82559_mmio_writeb(%04x,%08x)\n",s->id,addr,val); ++#endif ++} ++ ++void eeprom_receive_bit(I82559State *s,int bit) { ++// dbg("I82559[%i]: EEPROM received bit %i (current_state=%i, reg_sel=%i\n",s->id,bit,s->eeprom_current_state,s->eeprom_current_reg_sel); ++ switch (s->eeprom_current_state) { ++ case 0: // waiting for 1 to start command ++ if (!bit) break; ++ s->eeprom_current_state=1; ++ s->eeprom_current_reg_sel=0; ++ s->eeprom_current_reg=0xffff; ++ break; ++ case 1: // receiving command - 1st bit; ++ s->eeprom_current_cmd=(bit<<1); ++ s->eeprom_current_state=2; ++ break; ++ case 2:s->eeprom_current_cmd |= bit; ++ switch (s->eeprom_current_cmd) { ++ case 2: ++ case 1: ++// dbg("I82559[%i]: EEPROM CMD=%i\n",s->id,s->eeprom_current_cmd); ++ s->eeprom_current_state=3; // receiving address; ++ s->eeprom_current_reg_sel=0; ++ break; ++ default: //other commands not implemented for now ++ break; ++ } ++ break; ++ case 3: ++ case 4: ++ case 5: ++ case 6: ++ case 7: ++ s->eeprom_current_reg_sel<<=1; ++ s->eeprom_current_reg_sel|=(bit?1:0); ++ s->eeprom_current_state++; ++ break; ++ case 8:// last bit received ++ s->eeprom_current_reg_sel<<=1; ++ s->eeprom_current_reg_sel|=(bit?1:0); ++// if (s->eeprom_current_cmd==2) s->eeprom_current_state=0; // ignore read data when sendin register ++// else ++ s->eeprom_current_state++; // receive data bits to store into register ++ s->eeprom_current_reg=(s->eeprom_regs[s->eeprom_current_reg_sel]); // leave this for read operation to shift ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: EEPROM register %i moved to current_reg (val=%04x)\n",s->id,s->eeprom_current_reg_sel,s->eeprom_current_reg); ++#endif ++ break; ++ case 9: ++ case 10: ++ case 11: ++ case 12: ++ case 13: ++ case 14: ++ case 15: ++ case 16: ++ case 17: ++ case 18: ++ case 19: ++ case 20: ++ case 21: ++ case 22: ++ case 23: ++ s->eeprom_current_regw<<=1; ++ s->eeprom_current_regw|= (bit?1:0); ++ s->eeprom_current_state++; ++ break; ++ case 24: s->eeprom_current_regw<<=1; ++ s->eeprom_current_regw|= (bit?1:0); ++ s->eeprom_current_state=0; ++ if (s->eeprom_current_cmd==1) { ++ s->eeprom_regs[s->eeprom_current_reg_sel]=s->eeprom_current_regw; ++#ifdef I82559_DEBUG ++ dbg ("I82559[%i]: EEPROM write to register %i, val=%04\n",s->id,s->eeprom_current_reg_sel,s->eeprom_current_reg); ++#endif ++ } ++ break; ++ default: s->eeprom_current_state=0; ++ } ++} ++ ++static void i82559_mmio_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { ++ I82559State *s=opaque; ++ addr &= 0xfff; ++ switch (addr) { ++ case 0x0e:// EEPROM control register ++#ifdef I82559_DEBUG ++// dbg("I82559[%i]: EEPROM write (Clock=%i,Select=%i,DATA=%i\n",s->id,(val & 1) == 1,(val & 2) == 2, (val & 4) ==4); ++#endif ++ if ((val & 2) == 2) { // EECS BIT SET: select eeprom and reset state machine ++#ifdef I82559_DEBUG ++// dbg("I82559[%i]: EEPROM EECS SET/select eeprom\n",s->id); ++#endif ++ } ++ if ((val & 1) == 1) { // if clock is 1, then send last data bit to state machine ++ s->eeprom_current_reg<<=1; // Shift to next bit in read register; ++ eeprom_receive_bit(s,s->eeprom_last_data_bit); ++ } else { ++ s->eeprom_last_data_bit= ((val & 4) ==4); ++ } ++ return; ++ // .......... not implemented, may not be needed ++ case 0x02:// scb_command ++ i82559_mmio_writeb(opaque,addr,val & 0xff); ++ i82559_mmio_writeb(opaque,addr+1,val >> 8); ++ return; ++ } ++ i82559_mmio_writeb(opaque,addr,val & 0xff); ++ i82559_mmio_writeb(opaque,addr+1, val >> 8); ++#ifdef I82559_DEBUG ++// dbg("I82559[%i]: i82559_mmio_writew(%04x,%08x)\n",s->id,addr,val); ++#endif ++} ++static void i82559_mmio_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { ++ I82559State *s=opaque; ++ addr &= 0xfff; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: mmio_writel [%x],%x\n",s->id,addr,val); ++#endif ++ switch (addr) { ++ case 0x08: //PORT Interface ++ port_interface_writel(s,val); ++ return; ++ case 0x10: // MDI ++ mdi_writel(s,val); ++ return; ++ case 0x04:s->scb_pointer=val; // set SCB ++ return; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: !UNHANDLED i82559_mmio_writel(%04x,%08x)\n",s->id,addr,val); ++#endif ++ } ++} ++ ++static uint32_t i82559_mmio_readb(void *opaque, target_phys_addr_t addr) { ++ I82559State *s=opaque; ++ addr &= 0xfff; ++ switch (addr) { ++ case 0x00: return s->scb_status_lo; ++ case 0x01: return s->scb_status_hi; ++ case 0x2: return 0;//!!!!!!!!! This is not documented ++ } ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: !UNHANDLED i82559_mmio_readb(%04x)\n",s->id,addr); ++#endif ++ return 0; ++} ++ ++static uint32_t i82559_mmio_readw(void *opaque, target_phys_addr_t addr) { ++ I82559State *s=opaque; ++ addr &= 0xfff; ++ switch (addr) { ++ case 0x0e: // EEPROM IO Interface ++#ifdef I82559_DEBUG ++// dbg("I82559[%i]: EEPROM read (current_reg=%x\n",s->id,s->eeprom_current_reg); ++#endif ++ return ((s->eeprom_current_reg & 0x10000)?8:0); ++ } ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: !UNHANDLED i82559_mmio_readw(%04x)\n",s->id,addr); ++#endif ++ return 0; ++} ++ ++static uint32_t i82559_mmio_readl(void *opaque, target_phys_addr_t addr) { ++ I82559State *s=opaque; ++ addr &= 0xfff; ++ switch (addr) { ++ case 0x0: return s->scb_status_lo | (s->scb_status_hi<<8); ++ //!!! maybe something else for hight word ++ case 0x10:return mdi_readl(s); ++ case 0x8: return 0; // Undocummented PORT Status ++ } ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: !UNHANDLED i82559_mmio_readl(%04x)\n",s->id,addr); ++#endif ++ return 0; ++} ++//----------------------------------------------------------------------- ++static CPUReadMemoryFunc *i82559_mmio_read[3] = { ++ i82559_mmio_readb, ++ i82559_mmio_readw, ++ i82559_mmio_readl, ++}; ++ ++static CPUWriteMemoryFunc *i82559_mmio_write[3] = { ++ i82559_mmio_writeb, ++ i82559_mmio_writew, ++ i82559_mmio_writel, ++}; ++ ++static int i82559_can_receive(void *opaque) { ++ I82559State *s = opaque; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: i82559_can_receive (!!!!!)\n",s->id); ++#endif ++ //!!!! TODO must check if RU is in suspend state!!!! ++ if (s->RFA) return 1; // if RFA is set ++ return 0; ++} ++ ++int mac_cmp (const uint8_t *a1,const uint8_t *a2) { ++ int i; ++#ifdef I82559_DEBUG ++ dbg ("I82559[?]: mac_cmp (%02x:%02x:%02x:%02x:%02x:%02x,%02x:%02x:%02x:%02x:%02x:%02x)\n", ++ a1[0],a1[1],a1[2],a1[3],a1[4],a1[5], ++ a2[0],a2[1],a2[2],a2[3],a2[4],a2[5]); ++#endif ++ for (i=0;i<6;i++) { ++ if (a1[i]!=a2[i]) return 0; ++ } ++ return 1; ++} ++ ++static void i82559_receive(void *opaque, const uint8_t *pkt, int size) { ++ I82559State *s = opaque; ++ uint32 rfd[4],next_rfd; ++ int el,ss,h,sf; ++ uint32 IA_match; // set to 1 if destination address is device's MAC address ++ uint32 MA_match=0; ++ uint32 BA_match=0; ++ uint32 frame_type; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: receive (%i bytes, RFA=%08x, dest=%02x%02x%02x%02x%02x%02x, src=%02x%02x%02x%02x%02x%02x)\n", ++ s->id,size,s->RFA,pkt[0],pkt[1],pkt[2],pkt[3],pkt[4],pkt[5], ++ pkt[6],pkt[7],pkt[8],pkt[9],pkt[10],pkt[11]); ++#endif ++ if (s->RFA==0 || s->RFA==0xffffffff) return; /// !!!! TODO proper checks ++ // Interpret RFD's pointed by RFA ++ IA_match=mac_cmp(pkt,s->macaddr); ++ if (IA_match==0) { //destination MAC address is not my address ++ int i; ++ if ((*pkt & 0x01) !=0) { // Multicast || Broadcast ++ if (s->multicast_addr_count !=0 ) { ++ for (i=0;(imulticast_addr_count) && (MA_match==0);i++) { ++ MA_match=mac_cmp(pkt,&s->multicast_address[i][0]); ++ } ++ } else MA_match=0; ++ if (MA_match==0) { // If not in my multicast list, check if it is broadcast ++ BA_match=((pkt[0]==0xff) && (pkt[1]==0xff) && (pkt[2]==0xff) && ++ (pkt[3]==0xff) && (pkt[4]==0xff) && (pkt[5]==0xff)); ++ } ++ } ++ } ++ if ((s->config[15] & 1) == 0 && ((IA_match|MA_match|BA_match)==0)) { ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: Receive Discarded frame (IA_match=%i,MA_match=%i,BA_match=%i\n", ++ s->id, IA_match, MA_match, BA_match); ++#endif ++ return; ++ } ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: Receive Accepted frame (IA_match=%i,MA_match=%i,BA_match=%i\n", ++ s->id, IA_match, MA_match, BA_match); ++#endif ++ ++ cpu_physical_memory_read(s->RFA,(uint8 *) &rfd,16); ++ el=rfd[0]>>31; ++ ss=(rfd[0]>>30) & 1; ++ h=(rfd[0]>>20) & 1; ++ sf=(rfd[0]>>19) & 1; ++ next_rfd=rfd[1]; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: Receive el=%i,s=%i,h=%i,sf=%i,next=%08x)\n",s->id, ++ el,ss,h,sf,next_rfd); ++#endif ++ cpu_physical_memory_write(s->RFA+16,pkt,size); ++ if (((s->config[18] & 2)!=0) && (size<64)) { // Padding is enabled, ++ // If frame is too short, rest of buffer (up to 64 bytes) is fill with 0x7f ++ cpu_physical_memory_write(s->RFA+16+size,frame_padding,64-size); ++ } ++ ++ rfd[0] &= 0xffffe000; // Clear Status bits (bits 0-12) ++ // TODO Maybe Handle situations where RFD provided buffer size is smaller that packet size ++ if (IA_match==0) rfd[0] |= 0x2; // Broadcast or Multicast Frame ++ if ((IA_match|BA_match|MA_match)==0) rfd[0] |= 0x4; // No Address match ++ ++ frame_type=(pkt[12] << 8) + pkt[13]; ++ if ((frame_type==0) || (frame_type > 1500)) { ++ rfd[0]|=(1<<5);//Type/Length. If this bit is set, it indicates that the ++ //received frame was a type frame (the value of the Ethernet ++ // header Type/Length field was either 0 or greater than 1500 ++ //decimal). ++ } ++ ++ ++ rfd[0]|=0x8000; // Set C bit; ++ rfd[0]|=0x2000; // Set OK bit ++ ++ rfd[3] &= 0xffff0000; // bit 15 -EOF, bit 14 = F, bits 13-0 = actual size ++// Is this Correct? !!!!!!!!!! - Minimum ethernet packet size ++ if (size<64) size=64; ++// ???? ++ rfd[3] |= size; // actial size ++ rfd[3] |= 0xc000; // EOF=1, F=1 ++ ++ ++ ++ cpu_physical_memory_write(s->RFA,(uint8 *) &rfd,16); ++ s->RFA=next_rfd; ++ s->counters[9]++; // Increase receiver frames counter ++ FR_interrupt_schedule(s); ++ execute_scheduled_interrupts(s); ++} ++ ++static void i82559_reset (I82559State *s) { ++#ifdef I82559_DEBUG ++ dbg("I82559_reset ()\n"); ++#endif ++ mdi_reset(s); ++//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ++} ++ ++//BRB ++#if 0 ++ ++uint32_t i82559_pci_config_read(PCIDevice *d, uint32_t address, int len) { ++#ifdef I82559_DEBUG ++ int dev_id; ++ dev_id=d->name[7]-'0'; ++// dbg("I82559[%i]: pci_config_read (addr=%02x,len=%i)\n",dev_id,address,len); ++#endif ++ switch(len) { ++ case 1: return d->config[address]; ++ case 2: return le16_to_cpu(*(uint16_t *)(d->config + address)); ++ default: ++ case 4: return le32_to_cpu(*(uint32_t *)(d->config + address)); ++ } ++ return 0; ++} ++ ++void i82559_pci_config_write(PCIDevice *pci_dev, uint32_t address, uint32_t val, int len) { ++ int dev_id; ++ dev_id=pci_dev->name[7]-'0'; ++#ifdef I82559_DEBUG ++// dbg("I82559[%i]: pci_config_write (addr=%02x,val=%x,len=%i)\n",dev_id,address,val,len); ++#endif ++ switch (address) ++ case 0x110: // set CSR Memory mapped address register ++ { ++ uint32_t oldaddr, newaddr; ++ oldaddr= *(uint32_t *)(my_devices[dev_id]->dev.config + 0x10); ++ newaddr=val & 0xfffffff0; ++#ifdef I82559_DEBUG ++ dbg("I82559[%i]: Request for mappig memory space to:%08x (old=%08x)\n",dev_id,newaddr,oldaddr); ++#endif ++ if ((oldaddr != 0) && (oldaddr <= 0xfffff000)) ++ cpu_register_physical_memory(oldaddr, 0x1000,IO_MEM_UNASSIGNED); ++ if (newaddr <= 0xfffff000) ++ cpu_register_physical_memory(newaddr, 0x1000,my_devices[dev_id]->i82559.i82559_mmio_io_addr); ++ *(uint32_t *)(my_devices[dev_id]->dev.config + 0x10)=newaddr; ++ return; ++ default: ++ pci_default_write_config(pci_dev,address,val,len); ++ } ++} ++ ++#endif //0 ++ ++void pci_i82559_init(PCIBus *bus, NICInfo *nd, int devfn) { ++ PCII82559State *d; ++ I82559State *s; ++ uint8_t *pci_conf; ++ char devname [64]; ++// int dev_id; ++#ifdef I82559_DEBUG ++ dbg("pci_i82559_init ()\n"); ++#endif ++ sprintf (devname,"I82559[%i]",devfn); ++// dev_id=8*nic_pci_ids[number_of_nics]; ++ ++ d=(PCII82559State *) pci_register_device (bus,devname,sizeof(PCII82559State), ++ devfn, NULL, NULL); ++ ++//BRB ++// d=(PCII82559State *) pci_register_device (bus,devname,sizeof(PCII82559State), ++// dev_id, ++// i82559_pci_config_read, ++// i82559_pci_config_write); ++ ++ ++// d=(PCII82559State *) pci_register_device (bus,devname,sizeof(PCII82559State),-1,i82559_pci_config_read,i82559_pci_config_write); ++ pci_conf = d->dev.config; ++ ++ pci_conf[0x00] = 0x86; /* Intel */ ++ pci_conf[0x01] = 0x80; ++ pci_conf[0x02] = 0x09; // 1209 ++ pci_conf[0x03] = 0x12; ++ ++ pci_conf[0x08] = 9; // revision? ++ ++ pci_conf[0x09] = 0x00; // Class Code (200000h - ethernet controller) ++ pci_conf[0x0a] = 0x00; ++ pci_conf[0x0b] = 0x02; ++ ++ pci_conf[0x0c] = 0x00; //Cache line size ++ pci_conf[0x0d] = 0x00; //Latency Timer ++ pci_conf[0x0e] = 0x00; //Header Type ++ pci_conf[0x0f] = 0x00; //BIST ++ ++ pci_conf[0x10] = 0x00; //CSR Memory Mapped Base Address register ++ pci_conf[0x11] = 0x00; ++ pci_conf[0x12] = 0x00; ++ pci_conf[0x13] = 0x00; ++ ++ pci_conf[0x14] = 0x00; //CSR I/O Mapped Base register ++ pci_conf[0x15] = 0x00; ++ pci_conf[0x16] = 0x00; ++ pci_conf[0x17] = 0x00; ++ ++ pci_conf[0x18] = 0x00; //Flash Memory Mapped Base Register ++ pci_conf[0x19] = 0x00; ++ pci_conf[0x1a] = 0x00; ++ pci_conf[0x1b] = 0x00; ++ // 0x1c .. 0x2b ++ pci_conf[0x2c] = 0x86; //Subsystem Vendor ID ++ pci_conf[0x2d] = 0x80; ++ pci_conf[0x2e] = 0x00; //Subsystem ID ++ pci_conf[0x2f] = 0x00; ++ ++ pci_conf[0x30] = 0x00; // Expansion ROM Base address ++ pci_conf[0x31] = 0x00; ++ pci_conf[0x32] = 0x00; ++ pci_conf[0x33] = 0x00; ++ ++ pci_conf[0x34] = 0xdc; // Cap_Ptr ????? ++ // 0x35 - 0x3b - reserved ++ ++ pci_conf[0x3c] = 0x00; // Interrupt Line ++ pci_conf[0x3d] = 0x01; // Interrupt Pin 0 ++ pci_conf[0x3e] = 0xff; // Min Grant ++ pci_conf[0x3f] = 0xff; // Max Latency ++ ++ s = &d->i82559; ++ s->i82559_mmio_io_addr=cpu_register_io_memory(0, i82559_mmio_read, i82559_mmio_write, s); ++ pci_register_io_region(&d->dev, 1, 0x10,PCI_ADDRESS_SPACE_IO, i82559_ioport_map); ++ pci_register_io_region(&d->dev, 0, 0x1000,PCI_ADDRESS_SPACE_MEM, i82559_mmio_map); ++ ++//BRB QEMUalize this code ++ s->irq = d->dev.irq[0]; ++// s->irq = 16; /* PCI interrupt */ ++ s->pci_dev = (PCIDevice *)d; ++ memcpy(s->macaddr, nd->macaddr, 6); ++ s->id=devfn; ++// s->id=number_of_nics++; ++/// my_devices[s->id]=d; // !!! Used in pci_config write ++ ++ memcpy(s->eeprom_regs,default_eeprom,sizeof(default_eeprom)); ++ ++ i82559_reset(s); ++ s->vc = qemu_new_vlan_client(nd->vlan,i82559_receive,i82559_can_receive,s); ++ ++ snprintf(s->vc->info_str, sizeof(s->vc->info_str), ++ "i82559 pci macaddr=%02x:%02x:%02x:%02x:%02x:%02x", ++ s->macaddr[0], ++ s->macaddr[1], ++ s->macaddr[2], ++ s->macaddr[3], ++ s->macaddr[4], ++ s->macaddr[5]); ++ ++ s->eeprom_regs[0]=(s->macaddr[1]<<8) | (s->macaddr[0] & 0xff); ++ s->eeprom_regs[1]=(s->macaddr[3]<<8) | (s->macaddr[2] & 0xff); ++ s->eeprom_regs[2]=(s->macaddr[5]<<8) | (s->macaddr[4] & 0xff); ++} +diff -Naur qemu-20080205.orig/hw/serial.c qemu-20080205/hw/serial.c +--- qemu-20080205.orig/hw/serial.c 2007-11-25 00:55:06.000000000 +0000 ++++ qemu-20080205/hw/serial.c 2008-09-01 19:16:49.000000000 +0000 +@@ -73,6 +73,15 @@ + #define UART_LSR_OE 0x02 /* Overrun error indicator */ + #define UART_LSR_DR 0x01 /* Receiver data ready */ + ++/* ++ * It's common for an IRQ handler to keep reading the RBR until ++ * the LSR indicates that the FIFO is empty, expecting that the ++ * CPU is vastly faster than the serial line. This can cause ++ * overruns or error indications if the FIFO never empties, so ++ * give the target OS a breather every so often. ++ */ ++#define MAX_BURST 512 ++ + struct SerialState { + uint16_t divider; + uint8_t rbr; /* receive register */ +@@ -91,8 +100,16 @@ + int last_break_enable; + target_phys_addr_t base; + int it_shift; ++ int burst_len; + }; + ++static void serial_clear_burst(SerialState *s) ++{ ++ s->burst_len = 0; ++} ++ ++static void serial_receive_byte(SerialState *s, int ch); ++ + static void serial_update_irq(SerialState *s) + { + if ((s->lsr & UART_LSR_DR) && (s->ier & UART_IER_RDI)) { +@@ -114,6 +131,8 @@ + int speed, parity, data_bits, stop_bits; + QEMUSerialSetParams ssp; + ++ serial_clear_burst(s); ++ + if (s->lcr & 0x08) { + if (s->lcr & 0x10) + parity = 'E'; +@@ -161,11 +180,18 @@ + s->lsr &= ~UART_LSR_THRE; + serial_update_irq(s); + ch = val; +- qemu_chr_write(s->chr, &ch, 1); ++ if (!(s->mcr & UART_MCR_LOOP)) { ++ /* when not in loopback mode, send the char */ ++ qemu_chr_write(s->chr, &ch, 1); ++ } + s->thr_ipending = 1; + s->lsr |= UART_LSR_THRE; + s->lsr |= UART_LSR_TEMT; + serial_update_irq(s); ++ if (s->mcr & UART_MCR_LOOP) { ++ /* in loopback mode, say that we just received a char */ ++ serial_receive_byte(s, ch); ++ } + } + break; + case 1: +@@ -221,9 +247,15 @@ + ret = s->divider & 0xff; + } else { + ret = s->rbr; +- s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); +- serial_update_irq(s); +- qemu_chr_accept_input(s->chr); ++ if (s->burst_len < MAX_BURST) { ++ s->burst_len++; ++ s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); ++ serial_update_irq(s); ++ if (!(s->mcr & UART_MCR_LOOP)) { ++ /* in loopback mode, don't receive any data */ ++ qemu_chr_accept_input(s->chr); ++ } ++ } + } + break; + case 1: +@@ -235,6 +267,7 @@ + break; + case 2: + ret = s->iir; ++ serial_clear_burst(s); + /* reset THR pending bit */ + if ((ret & 0x7) == UART_IIR_THRI) + s->thr_ipending = 0; +@@ -248,6 +281,10 @@ + break; + case 5: + ret = s->lsr; ++ if (s->burst_len >= MAX_BURST) ++ ret &= ~(UART_LSR_DR|UART_LSR_BI); ++ if (!(ret & UART_LSR_DR)) ++ serial_clear_burst(s); + break; + case 6: + if (s->mcr & UART_MCR_LOOP) { +@@ -346,6 +383,25 @@ + return 0; + } + ++static void serial_reset(void *opaque) ++{ ++ SerialState *s = opaque; ++ ++ s->divider = 0; ++ s->rbr = 0; ++ s->ier = 0; ++ s->iir = UART_IIR_NO_INT; ++ s->lcr = 0; ++ s->mcr = 0; ++ s->lsr = UART_LSR_TEMT | UART_LSR_THRE; ++ s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS; ++ s->scr = 0; ++ ++ s->thr_ipending = 0; ++ s->last_break_enable = 0; ++ qemu_irq_lower(s->irq); ++} ++ + /* If fd is zero, it means that the serial device uses the console */ + SerialState *serial_init(int base, qemu_irq irq, CharDriverState *chr) + { +@@ -355,9 +411,9 @@ + if (!s) + return NULL; + s->irq = irq; +- s->lsr = UART_LSR_TEMT | UART_LSR_THRE; +- s->iir = UART_IIR_NO_INT; +- s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS; ++ ++ qemu_register_reset(serial_reset, s); ++ serial_reset(s); + + register_savevm("serial", base, 2, serial_save, serial_load, s); + +@@ -452,12 +508,12 @@ + if (!s) + return NULL; + s->irq = irq; +- s->lsr = UART_LSR_TEMT | UART_LSR_THRE; +- s->iir = UART_IIR_NO_INT; +- s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS; + s->base = base; + s->it_shift = it_shift; + ++ qemu_register_reset(serial_reset, s); ++ serial_reset(s); ++ + register_savevm("serial", base, 2, serial_save, serial_load, s); + + if (ioregister) { +diff -Naur qemu-20080205.orig/hw/serial.c.orig qemu-20080205/hw/serial.c.orig +--- qemu-20080205.orig/hw/serial.c.orig 1970-01-01 00:00:00.000000000 +0000 ++++ qemu-20080205/hw/serial.c.orig 2008-09-01 19:16:49.000000000 +0000 +@@ -0,0 +1,503 @@ ++/* ++ * QEMU 16450 UART emulation ++ * ++ * Copyright (c) 2003-2004 Fabrice Bellard ++ * ++ * Permission is hereby granted, free of charge, to any person obtaining a copy ++ * of this software and associated documentation files (the "Software"), to deal ++ * in the Software without restriction, including without limitation the rights ++ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ++ * copies of the Software, and to permit persons to whom the Software is ++ * furnished to do so, subject to the following conditions: ++ * ++ * The above copyright notice and this permission notice shall be included in ++ * all copies or substantial portions of the Software. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ++ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ++ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ++ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ++ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ++ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN ++ * THE SOFTWARE. ++ */ ++#include "hw.h" ++#include "qemu-char.h" ++#include "isa.h" ++#include "pc.h" ++ ++//#define DEBUG_SERIAL ++ ++#define UART_LCR_DLAB 0x80 /* Divisor latch access bit */ ++ ++#define UART_IER_MSI 0x08 /* Enable Modem status interrupt */ ++#define UART_IER_RLSI 0x04 /* Enable receiver line status interrupt */ ++#define UART_IER_THRI 0x02 /* Enable Transmitter holding register int. */ ++#define UART_IER_RDI 0x01 /* Enable receiver data interrupt */ ++ ++#define UART_IIR_NO_INT 0x01 /* No interrupts pending */ ++#define UART_IIR_ID 0x06 /* Mask for the interrupt ID */ ++ ++#define UART_IIR_MSI 0x00 /* Modem status interrupt */ ++#define UART_IIR_THRI 0x02 /* Transmitter holding register empty */ ++#define UART_IIR_RDI 0x04 /* Receiver data interrupt */ ++#define UART_IIR_RLSI 0x06 /* Receiver line status interrupt */ ++ ++/* ++ * These are the definitions for the Modem Control Register ++ */ ++#define UART_MCR_LOOP 0x10 /* Enable loopback test mode */ ++#define UART_MCR_OUT2 0x08 /* Out2 complement */ ++#define UART_MCR_OUT1 0x04 /* Out1 complement */ ++#define UART_MCR_RTS 0x02 /* RTS complement */ ++#define UART_MCR_DTR 0x01 /* DTR complement */ ++ ++/* ++ * These are the definitions for the Modem Status Register ++ */ ++#define UART_MSR_DCD 0x80 /* Data Carrier Detect */ ++#define UART_MSR_RI 0x40 /* Ring Indicator */ ++#define UART_MSR_DSR 0x20 /* Data Set Ready */ ++#define UART_MSR_CTS 0x10 /* Clear to Send */ ++#define UART_MSR_DDCD 0x08 /* Delta DCD */ ++#define UART_MSR_TERI 0x04 /* Trailing edge ring indicator */ ++#define UART_MSR_DDSR 0x02 /* Delta DSR */ ++#define UART_MSR_DCTS 0x01 /* Delta CTS */ ++#define UART_MSR_ANY_DELTA 0x0F /* Any of the delta bits! */ ++ ++#define UART_LSR_TEMT 0x40 /* Transmitter empty */ ++#define UART_LSR_THRE 0x20 /* Transmit-hold-register empty */ ++#define UART_LSR_BI 0x10 /* Break interrupt indicator */ ++#define UART_LSR_FE 0x08 /* Frame error indicator */ ++#define UART_LSR_PE 0x04 /* Parity error indicator */ ++#define UART_LSR_OE 0x02 /* Overrun error indicator */ ++#define UART_LSR_DR 0x01 /* Receiver data ready */ ++ ++struct SerialState { ++ uint16_t divider; ++ uint8_t rbr; /* receive register */ ++ uint8_t ier; ++ uint8_t iir; /* read only */ ++ uint8_t lcr; ++ uint8_t mcr; ++ uint8_t lsr; /* read only */ ++ uint8_t msr; /* read only */ ++ uint8_t scr; ++ /* NOTE: this hidden state is necessary for tx irq generation as ++ it can be reset while reading iir */ ++ int thr_ipending; ++ qemu_irq irq; ++ CharDriverState *chr; ++ int last_break_enable; ++ target_phys_addr_t base; ++ int it_shift; ++}; ++ ++static void serial_receive_byte(SerialState *s, int ch); ++ ++static void serial_update_irq(SerialState *s) ++{ ++ if ((s->lsr & UART_LSR_DR) && (s->ier & UART_IER_RDI)) { ++ s->iir = UART_IIR_RDI; ++ } else if (s->thr_ipending && (s->ier & UART_IER_THRI)) { ++ s->iir = UART_IIR_THRI; ++ } else { ++ s->iir = UART_IIR_NO_INT; ++ } ++ if (s->iir != UART_IIR_NO_INT) { ++ qemu_irq_raise(s->irq); ++ } else { ++ qemu_irq_lower(s->irq); ++ } ++} ++ ++static void serial_update_parameters(SerialState *s) ++{ ++ int speed, parity, data_bits, stop_bits; ++ QEMUSerialSetParams ssp; ++ ++ if (s->lcr & 0x08) { ++ if (s->lcr & 0x10) ++ parity = 'E'; ++ else ++ parity = 'O'; ++ } else { ++ parity = 'N'; ++ } ++ if (s->lcr & 0x04) ++ stop_bits = 2; ++ else ++ stop_bits = 1; ++ data_bits = (s->lcr & 0x03) + 5; ++ if (s->divider == 0) ++ return; ++ speed = 115200 / s->divider; ++ ssp.speed = speed; ++ ssp.parity = parity; ++ ssp.data_bits = data_bits; ++ ssp.stop_bits = stop_bits; ++ qemu_chr_ioctl(s->chr, CHR_IOCTL_SERIAL_SET_PARAMS, &ssp); ++#if 0 ++ printf("speed=%d parity=%c data=%d stop=%d\n", ++ speed, parity, data_bits, stop_bits); ++#endif ++} ++ ++static void serial_ioport_write(void *opaque, uint32_t addr, uint32_t val) ++{ ++ SerialState *s = opaque; ++ unsigned char ch; ++ ++ addr &= 7; ++#ifdef DEBUG_SERIAL ++ printf("serial: write addr=0x%02x val=0x%02x\n", addr, val); ++#endif ++ switch(addr) { ++ default: ++ case 0: ++ if (s->lcr & UART_LCR_DLAB) { ++ s->divider = (s->divider & 0xff00) | val; ++ serial_update_parameters(s); ++ } else { ++ s->thr_ipending = 0; ++ s->lsr &= ~UART_LSR_THRE; ++ serial_update_irq(s); ++ ch = val; ++ if (!(s->mcr & UART_MCR_LOOP)) { ++ /* when not in loopback mode, send the char */ ++ qemu_chr_write(s->chr, &ch, 1); ++ } ++ s->thr_ipending = 1; ++ s->lsr |= UART_LSR_THRE; ++ s->lsr |= UART_LSR_TEMT; ++ serial_update_irq(s); ++ if (s->mcr & UART_MCR_LOOP) { ++ /* in loopback mode, say that we just received a char */ ++ serial_receive_byte(s, ch); ++ } ++ } ++ break; ++ case 1: ++ if (s->lcr & UART_LCR_DLAB) { ++ s->divider = (s->divider & 0x00ff) | (val << 8); ++ serial_update_parameters(s); ++ } else { ++ s->ier = val & 0x0f; ++ if (s->lsr & UART_LSR_THRE) { ++ s->thr_ipending = 1; ++ } ++ serial_update_irq(s); ++ } ++ break; ++ case 2: ++ break; ++ case 3: ++ { ++ int break_enable; ++ s->lcr = val; ++ serial_update_parameters(s); ++ break_enable = (val >> 6) & 1; ++ if (break_enable != s->last_break_enable) { ++ s->last_break_enable = break_enable; ++ qemu_chr_ioctl(s->chr, CHR_IOCTL_SERIAL_SET_BREAK, ++ &break_enable); ++ } ++ } ++ break; ++ case 4: ++ s->mcr = val & 0x1f; ++ break; ++ case 5: ++ break; ++ case 6: ++ break; ++ case 7: ++ s->scr = val; ++ break; ++ } ++} ++ ++static uint32_t serial_ioport_read(void *opaque, uint32_t addr) ++{ ++ SerialState *s = opaque; ++ uint32_t ret; ++ ++ addr &= 7; ++ switch(addr) { ++ default: ++ case 0: ++ if (s->lcr & UART_LCR_DLAB) { ++ ret = s->divider & 0xff; ++ } else { ++ ret = s->rbr; ++ s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); ++ serial_update_irq(s); ++ if (!(s->mcr & UART_MCR_LOOP)) { ++ /* in loopback mode, don't receive any data */ ++ qemu_chr_accept_input(s->chr); ++ } ++ } ++ break; ++ case 1: ++ if (s->lcr & UART_LCR_DLAB) { ++ ret = (s->divider >> 8) & 0xff; ++ } else { ++ ret = s->ier; ++ } ++ break; ++ case 2: ++ ret = s->iir; ++ /* reset THR pending bit */ ++ if ((ret & 0x7) == UART_IIR_THRI) ++ s->thr_ipending = 0; ++ serial_update_irq(s); ++ break; ++ case 3: ++ ret = s->lcr; ++ break; ++ case 4: ++ ret = s->mcr; ++ break; ++ case 5: ++ ret = s->lsr; ++ break; ++ case 6: ++ if (s->mcr & UART_MCR_LOOP) { ++ /* in loopback, the modem output pins are connected to the ++ inputs */ ++ ret = (s->mcr & 0x0c) << 4; ++ ret |= (s->mcr & 0x02) << 3; ++ ret |= (s->mcr & 0x01) << 5; ++ } else { ++ ret = s->msr; ++ } ++ break; ++ case 7: ++ ret = s->scr; ++ break; ++ } ++#ifdef DEBUG_SERIAL ++ printf("serial: read addr=0x%02x val=0x%02x\n", addr, ret); ++#endif ++ return ret; ++} ++ ++static int serial_can_receive(SerialState *s) ++{ ++ return !(s->lsr & UART_LSR_DR); ++} ++ ++static void serial_receive_byte(SerialState *s, int ch) ++{ ++ s->rbr = ch; ++ s->lsr |= UART_LSR_DR; ++ serial_update_irq(s); ++} ++ ++static void serial_receive_break(SerialState *s) ++{ ++ s->rbr = 0; ++ s->lsr |= UART_LSR_BI | UART_LSR_DR; ++ serial_update_irq(s); ++} ++ ++static int serial_can_receive1(void *opaque) ++{ ++ SerialState *s = opaque; ++ return serial_can_receive(s); ++} ++ ++static void serial_receive1(void *opaque, const uint8_t *buf, int size) ++{ ++ SerialState *s = opaque; ++ serial_receive_byte(s, buf[0]); ++} ++ ++static void serial_event(void *opaque, int event) ++{ ++ SerialState *s = opaque; ++ if (event == CHR_EVENT_BREAK) ++ serial_receive_break(s); ++} ++ ++static void serial_save(QEMUFile *f, void *opaque) ++{ ++ SerialState *s = opaque; ++ ++ qemu_put_be16s(f,&s->divider); ++ qemu_put_8s(f,&s->rbr); ++ qemu_put_8s(f,&s->ier); ++ qemu_put_8s(f,&s->iir); ++ qemu_put_8s(f,&s->lcr); ++ qemu_put_8s(f,&s->mcr); ++ qemu_put_8s(f,&s->lsr); ++ qemu_put_8s(f,&s->msr); ++ qemu_put_8s(f,&s->scr); ++} ++ ++static int serial_load(QEMUFile *f, void *opaque, int version_id) ++{ ++ SerialState *s = opaque; ++ ++ if(version_id > 2) ++ return -EINVAL; ++ ++ if (version_id >= 2) ++ qemu_get_be16s(f, &s->divider); ++ else ++ s->divider = qemu_get_byte(f); ++ qemu_get_8s(f,&s->rbr); ++ qemu_get_8s(f,&s->ier); ++ qemu_get_8s(f,&s->iir); ++ qemu_get_8s(f,&s->lcr); ++ qemu_get_8s(f,&s->mcr); ++ qemu_get_8s(f,&s->lsr); ++ qemu_get_8s(f,&s->msr); ++ qemu_get_8s(f,&s->scr); ++ ++ return 0; ++} ++ ++static void serial_reset(void *opaque) ++{ ++ SerialState *s = opaque; ++ ++ s->divider = 0; ++ s->rbr = 0; ++ s->ier = 0; ++ s->iir = UART_IIR_NO_INT; ++ s->lcr = 0; ++ s->mcr = 0; ++ s->lsr = UART_LSR_TEMT | UART_LSR_THRE; ++ s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS; ++ s->scr = 0; ++ ++ s->thr_ipending = 0; ++ s->last_break_enable = 0; ++ qemu_irq_lower(s->irq); ++} ++ ++/* If fd is zero, it means that the serial device uses the console */ ++SerialState *serial_init(int base, qemu_irq irq, CharDriverState *chr) ++{ ++ SerialState *s; ++ ++ s = qemu_mallocz(sizeof(SerialState)); ++ if (!s) ++ return NULL; ++ s->irq = irq; ++ ++ qemu_register_reset(serial_reset, s); ++ serial_reset(s); ++ ++ register_savevm("serial", base, 2, serial_save, serial_load, s); ++ ++ register_ioport_write(base, 8, 1, serial_ioport_write, s); ++ register_ioport_read(base, 8, 1, serial_ioport_read, s); ++ s->chr = chr; ++ qemu_chr_add_handlers(chr, serial_can_receive1, serial_receive1, ++ serial_event, s); ++ return s; ++} ++ ++/* Memory mapped interface */ ++uint32_t serial_mm_readb (void *opaque, target_phys_addr_t addr) ++{ ++ SerialState *s = opaque; ++ ++ return serial_ioport_read(s, (addr - s->base) >> s->it_shift) & 0xFF; ++} ++ ++void serial_mm_writeb (void *opaque, ++ target_phys_addr_t addr, uint32_t value) ++{ ++ SerialState *s = opaque; ++ ++ serial_ioport_write(s, (addr - s->base) >> s->it_shift, value & 0xFF); ++} ++ ++uint32_t serial_mm_readw (void *opaque, target_phys_addr_t addr) ++{ ++ SerialState *s = opaque; ++ uint32_t val; ++ ++ val = serial_ioport_read(s, (addr - s->base) >> s->it_shift) & 0xFFFF; ++#ifdef TARGET_WORDS_BIGENDIAN ++ val = bswap16(val); ++#endif ++ return val; ++} ++ ++void serial_mm_writew (void *opaque, ++ target_phys_addr_t addr, uint32_t value) ++{ ++ SerialState *s = opaque; ++#ifdef TARGET_WORDS_BIGENDIAN ++ value = bswap16(value); ++#endif ++ serial_ioport_write(s, (addr - s->base) >> s->it_shift, value & 0xFFFF); ++} ++ ++uint32_t serial_mm_readl (void *opaque, target_phys_addr_t addr) ++{ ++ SerialState *s = opaque; ++ uint32_t val; ++ ++ val = serial_ioport_read(s, (addr - s->base) >> s->it_shift); ++#ifdef TARGET_WORDS_BIGENDIAN ++ val = bswap32(val); ++#endif ++ return val; ++} ++ ++void serial_mm_writel (void *opaque, ++ target_phys_addr_t addr, uint32_t value) ++{ ++ SerialState *s = opaque; ++#ifdef TARGET_WORDS_BIGENDIAN ++ value = bswap32(value); ++#endif ++ serial_ioport_write(s, (addr - s->base) >> s->it_shift, value); ++} ++ ++static CPUReadMemoryFunc *serial_mm_read[] = { ++ &serial_mm_readb, ++ &serial_mm_readw, ++ &serial_mm_readl, ++}; ++ ++static CPUWriteMemoryFunc *serial_mm_write[] = { ++ &serial_mm_writeb, ++ &serial_mm_writew, ++ &serial_mm_writel, ++}; ++ ++SerialState *serial_mm_init (target_phys_addr_t base, int it_shift, ++ qemu_irq irq, CharDriverState *chr, ++ int ioregister) ++{ ++ SerialState *s; ++ int s_io_memory; ++ ++ s = qemu_mallocz(sizeof(SerialState)); ++ if (!s) ++ return NULL; ++ s->irq = irq; ++ s->base = base; ++ s->it_shift = it_shift; ++ ++ qemu_register_reset(serial_reset, s); ++ serial_reset(s); ++ ++ register_savevm("serial", base, 2, serial_save, serial_load, s); ++ ++ if (ioregister) { ++ s_io_memory = cpu_register_io_memory(0, serial_mm_read, ++ serial_mm_write, s); ++ cpu_register_physical_memory(base, 8 << it_shift, s_io_memory); ++ } ++ s->chr = chr; ++ qemu_chr_add_handlers(chr, serial_can_receive1, serial_receive1, ++ serial_event, s); ++ return s; ++} +diff -Naur qemu-20080205.orig/hw/serial.c.rej qemu-20080205/hw/serial.c.rej +--- qemu-20080205.orig/hw/serial.c.rej 1970-01-01 00:00:00.000000000 +0000 ++++ qemu-20080205/hw/serial.c.rej 2008-09-01 19:16:49.000000000 +0000 +@@ -0,0 +1,49 @@ ++*************** struct SerialState { ++*** 91,98 **** ++ int last_break_enable; ++ target_phys_addr_t base; ++ int it_shift; ++ }; ++ ++ static void serial_update_irq(SerialState *s) ++ { ++ if ((s->lsr & UART_LSR_DR) && (s->ier & UART_IER_RDI)) { ++--- 100,113 ---- ++ int last_break_enable; ++ target_phys_addr_t base; ++ int it_shift; +++ int burst_len; ++ }; ++ +++ static void serial_clear_burst(SerialState *s) +++ { +++ s->burst_len = 0; +++ } +++ ++ static void serial_update_irq(SerialState *s) ++ { ++ if ((s->lsr & UART_LSR_DR) && (s->ier & UART_IER_RDI)) { ++*************** static uint32_t serial_ioport_read(void *opaque, uint32_t addr) ++*** 223,231 **** ++ ret = s->divider & 0xff; ++ } else { ++ ret = s->rbr; ++- s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); ++- serial_update_irq(s); ++- qemu_chr_accept_input(s->chr); ++ } ++ break; ++ case 1: ++--- 240,251 ---- ++ ret = s->divider & 0xff; ++ } else { ++ ret = s->rbr; +++ if (s->burst_len < MAX_BURST) { +++ s->burst_len++; +++ s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); +++ serial_update_irq(s); +++ qemu_chr_accept_input(s->chr); +++ } ++ } ++ break; ++ case 1: +diff -Naur qemu-20080205.orig/vl.c qemu-20080205/vl.c +--- qemu-20080205.orig/vl.c 2008-02-03 03:45:47.000000000 +0000 ++++ qemu-20080205/vl.c 2008-09-01 19:16:49.000000000 +0000 +@@ -127,6 +127,12 @@ + #define main qemu_main + #endif /* CONFIG_COCOA */ + ++#ifdef CONFIG_NET_PCAP ++#ifndef _WIN32 ++#include ++#endif /* _WIN32 */ ++#endif /* CONFIG_NET_PCAP */ ++ + #include "disas.h" + + #include "exec-all.h" +@@ -4610,6 +4616,235 @@ + + } + ++// BRB Add LCAP, PCAP and UDP_NET ++ ++#ifdef CONFIG_NET_LCAP ++ ++#ifndef _WIN32 ++typedef struct LCAPState { ++ VLANClientState *vc; ++ int fd; ++ struct sockaddr from; ++ int fromlen; ++ struct sockaddr to; ++ int tolen; ++} LCAPState; ++ ++int lcap_interface_init(char *device) { ++ int fd; ++ struct ifreq ifr; ++ fd=socket(PF_INET, SOCK_PACKET, htons(0x0003)); ++ if (fd<0) return 0; ++ memset(&ifr,0,sizeof(ifr)); ++ strcpy(ifr.ifr_name,device); ++ ifr.ifr_flags |= IFF_PROMISC; ++ if (ioctl(fd, SIOCGIFFLAGS, &ifr) < 0 ) return 0; ++ return fd; ++} ++ ++static void lcap_send (void *opaque) { ++ LCAPState *s=opaque; ++ uint8_t buf[4096]; ++ int size; ++ s->fromlen=sizeof(s->from); ++ size=recvfrom(s->fd,buf,sizeof(buf),MSG_DONTWAIT,&s->from,&s->fromlen); ++ if (size > 0) qemu_send_packet(s->vc, buf, size); ++} ++ ++static void lcap_receive(void *opaque, const uint8_t *buf, int size) { ++ LCAPState *s = opaque; ++ int ret; ++ ret=sendto (s->fd,buf,size,0,&s->to,s->tolen); ++} ++ ++int net_lcap_init(VLANState *vlan, const char *ifname) { ++ char ifname1[64]; ++ int fd; ++ LCAPState *s; ++ ++ if (ifname) strcpy(ifname1,ifname); ++ else strcpy (ifname1,"eth0"); ++ ++ printf ("net_lcap_init(if=%s)\n",ifname1); ++ ++ fd=lcap_interface_init(ifname1); ++ if (!fd) { ++ printf ("lcap_interface_init returns -1\n"); ++ return -1; ++ } ++ ++ s=qemu_mallocz(sizeof(LCAPState)); ++ if (!s) return -1; ++ ++ memset(&s->to,0,sizeof(s->to)); ++ s->to.sa_family=AF_INET; ++ strcpy(s->to.sa_data,ifname1); ++ s->tolen=sizeof(s->to); ++ ++ s->fromlen=sizeof(struct sockaddr); ++ s->fd=fd; ++ s->vc= qemu_new_vlan_client(vlan, lcap_receive, NULL, s); ++ qemu_set_fd_handler(s->fd, lcap_send, NULL, s); ++ snprintf(s->vc->info_str, sizeof(s->vc->info_str),"lcap: ifname=%s", ifname); ++ return 0; ++} ++//-- ++#else // WIN32 ++int net_lcap_init(VLANState *vlan, const char *ifname) { ++ printf ("lcap method is not available on windows\n"); ++ exit(0); ++} ++#endif ++ ++#endif // CONFIG_NET_LCAP ++ ++ ++#ifdef CONFIG_NET_UDP ++ ++typedef struct DUDPState { ++ VLANClientState *vc; ++ int rfd; ++ struct sockaddr_in sender; ++} DUDPState; ++ ++static void dudp_send (void *opaque) { // Called when packet is received ++ DUDPState *s=opaque; ++ uint8_t buf[4096]; ++ int size; ++// printf ("dudp_send() "); ++ size=recvfrom(s->rfd,buf,sizeof(buf),0,NULL,NULL); ++// printf ("Receiving packet size=%i\n",size); ++ if (size > 0) qemu_send_packet(s->vc, buf, size); ++} ++ ++static void dudp_receive(void *opaque, const uint8_t *buf, int size) { ++ DUDPState *s = opaque; ++ int res; ++// printf ("dusp_receive(). Sending packet size=%i)\n",size); ++ res=sendto(s->rfd, buf, size, 0, (struct sockaddr *)&s->sender, sizeof (s->sender)); ++} ++ ++static int net_dudp_init(VLANState *vlan, int lport, char *rhost,int rport) { ++ DUDPState *s; ++ struct sockaddr_in receiver; ++ ++ s=qemu_mallocz(sizeof(DUDPState)); ++ if (!s) return -1; ++// printf ("\nnet_dudp_init(%i,%s,%i)\n",lport,rhost,rport); ++ ++ s->rfd=socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP); ++ ++ receiver.sin_family=AF_INET; ++// receiver.sin_addr=INADDR_ANY; ++ receiver.sin_port=htons(lport); ++ bind(s->rfd,(struct sockaddr *) &receiver,sizeof (receiver)); ++ ++ memset ((char*)&s->sender,sizeof(s->sender),0); ++ s->sender.sin_family=AF_INET; ++ s->sender.sin_port=htons(rport); ++ inet_aton(rhost,&s->sender.sin_addr); ++ ++ s->vc= qemu_new_vlan_client(vlan, dudp_receive, NULL, s); ++ ++ qemu_set_fd_handler(s->rfd, dudp_send, NULL, s); ++ snprintf(s->vc->info_str, sizeof(s->vc->info_str),"dcap: %i->%s:%i",lport,rhost,rport); ++ return 0; ++} ++//-- ++ ++#endif //CONFIG_NET_UDP ++ ++#ifdef CONFIG_NET_PCAP ++#ifndef _WIN32 ++ ++typedef struct PCAPState { ++ VLANClientState *vc; ++ int fd; ++ pcap_t *pfd; ++ char devname[128]; ++} PCAPState; ++ ++void pcap_print_interfaces () { ++ char errbuf[PCAP_ERRBUF_SIZE]; ++ pcap_if_t *alldevs, *d; ++ int i=0; ++ if (pcap_findalldevs(&alldevs, errbuf) == -1) { ++ printf("Error in pcap_findalldevs: %s\n", errbuf); ++ exit(1); ++ } ++ for(d=alldevs; d; d=d->next) { ++ printf("%d. ", ++i); ++ if (d->name) printf("%s ", d->name); ++ else printf("(No name) "); ++ if (d->description) printf("%s\n", d->description); ++ else printf("(No description)\n"); ++ } ++ if (i==0) printf("\nNo interfaces found!\n"); ++} ++ ++pcap_t *pcap_interface_init(char *device) { ++ pcap_if_t *alldevs, *d; ++ int i=0,did; ++ char errbuf[PCAP_ERRBUF_SIZE]; ++ ++ if (pcap_findalldevs(&alldevs, errbuf) == -1) { ++ fprintf(stderr,"Error in pcap_findalldevs: %s\n", errbuf); ++ exit(1); ++ } ++ did=atoi(device); ++ if (did==0) { // Device is specified bye name ++ for(d=alldevs; d; d=d->next) if (strcmp(d->name,device)==0) break; ++ } else { ++ for(d=alldevs, i=0; i< did-1 ;d=d->next, i++); ++ } ++ if (d==0) return 0; ++ return pcap_open_live(d->name,65535, 1, 1, errbuf); ++} ++ ++static void pcap_send (void *opaque) { ++ PCAPState *s=opaque; ++ const unsigned char *buf; ++ struct pcap_pkthdr *h; ++ int size,i; ++ i=pcap_next_ex (s->pfd,&h,&buf); ++ size=h->caplen; ++ if (i==1) qemu_send_packet(s->vc, buf, size); ++} ++ ++static void pcap_receive(void *opaque, const uint8_t *buf, int size) { ++ PCAPState *s = opaque; ++ pcap_sendpacket(s->pfd,buf,size); ++} ++ ++int net_pcap_init(VLANState *vlan, char *ifname) { ++ PCAPState *s; ++ s=qemu_mallocz(sizeof(PCAPState)); ++ s->pfd=pcap_interface_init(ifname); ++ if (s->pfd==0) { ++ printf("Error Initialising interface %s\n",ifname); ++ printf("Error message from pcap: %s\n",strerror(errno)); ++ printf("Valid Interfaces:\n"); ++ pcap_print_interfaces(); ++ printf("Use interface name or it's number in ifname argument\n"); ++ exit(0); ++ } ++ s->fd=pcap_get_selectable_fd(s->pfd); ++ s->vc=qemu_new_vlan_client(vlan, pcap_receive, NULL, s); ++ qemu_set_fd_handler(s->fd, pcap_send, NULL, s); ++ snprintf(s->vc->info_str, sizeof(s->vc->info_str),"pcap: ifname=%s",ifname); ++ return 0; ++} ++#else // _WIN32 ++int net_pcap_init(VLANState *vlan, char *ifname) { ++ printf ("net_pcap_init: This network connection is not supported (yet) by windows\n"); ++ exit(0); ++} ++#endif ++ ++#endif //CONFIG_NET_PCAP ++ ++//---BRB END ++ + static const char *get_opt_name(char *buf, int buf_size, const char *p) + { + char *q; +@@ -4806,6 +5041,44 @@ + } + } else + #endif ++#ifdef CONFIG_NET_LCAP ++ if (!strcmp(device, "lcap")) { ++ char ifname[64]; ++ if (get_param_value(ifname,sizeof(ifname),"ifname",p)<=0) ifname[0]=0; ++ ret = net_lcap_init(vlan, ifname); ++ } else ++#endif ++#ifdef CONFIG_NET_UDP ++ if (!strcmp(device, "udp")) { ++ int sport,dport; ++ char daddr[128]; ++ ++ if (get_param_value(daddr,sizeof(daddr),"dport",p)<=0) { ++ printf ("must specify destination address with daddr=\n"); ++ exit(0); ++ } ++ dport=atoi(daddr); ++ if (get_param_value(daddr,sizeof(daddr),"sport",p)<=0) { ++ printf ("must specify destination address with saddr=\n"); ++ exit(0); ++ } ++ sport=atoi(daddr); ++ ++ if (get_param_value(daddr,sizeof(daddr),"daddr",p)<=0) { ++ printf ("must specify destination address with daddr=\n"); ++ exit(0); ++ } ++ ++ ret = net_dudp_init(vlan,sport,daddr,dport); ++ } else ++#endif ++#ifdef CONFIG_NET_PCAP ++ if (!strcmp(device, "pcap")) { ++ char ifname[128]; ++ if (get_param_value(ifname,sizeof(ifname),"ifname",p)<=0) ifname[0]=0; ++ ret = net_pcap_init(vlan, ifname); ++ } else ++#endif + if (!strcmp(device, "socket")) { + if (get_param_value(buf, sizeof(buf), "fd", p) > 0) { + int fd; +@@ -7613,6 +7886,18 @@ + " connect the vlan 'n' to another VLAN using a socket connection\n" + "-net socket[,vlan=n][,fd=h][,mcast=maddr:port]\n" + " connect the vlan 'n' to multicast maddr and port\n" ++#ifdef CONFIG_NET_UDP ++ "-net udp[,vlan=n]sport=sport,dport=dport,daddr=host\n" ++ " connect the vlan 'n' to a udp host (for dynamips/pemu)\n" ++#endif ++#ifdef CONFIG_NET_PCAP ++ "-net pcap[,vlan=n]ifname=name\n" ++ " connects the vlan 'n' to a physical port using the pcap library (possibly faster)\n" ++#endif ++#ifdef CONFIG_NET_LCAP ++ "-net lcap[,vlan=n]ifname=name\n" ++ " connects the vlan 'n' to a physical port using the lcap library\n" ++#endif + "-net none use it alone to have zero network devices; if no -net option\n" + " is provided, the default is '-net nic -net user'\n" + "\n" +@@ -8358,7 +8643,8 @@ + } + break; + case QEMU_OPTION_nographic: +- pstrcpy(serial_devices[0], sizeof(serial_devices[0]), "stdio"); ++ //BRB: Allow me to define my own serial ++ //pstrcpy(serial_devices[0], sizeof(serial_devices[0]), "stdio"); + pstrcpy(parallel_devices[0], sizeof(parallel_devices[0]), "null"); + pstrcpy(monitor_device, sizeof(monitor_device), "stdio"); + nographic = 1; +@@ -8722,11 +9008,6 @@ + } + + #ifndef _WIN32 +- if (daemonize && !nographic && vnc_display == NULL) { +- fprintf(stderr, "Can only daemonize if using -nographic or -vnc\n"); +- daemonize = 0; +- } +- + if (daemonize) { + pid_t pid; + +@@ -8764,7 +9045,6 @@ + exit(1); + + umask(027); +- chdir("/"); + + signal(SIGTSTP, SIG_IGN); + signal(SIGTTOU, SIG_IGN); +@@ -9023,6 +9303,8 @@ + if (len != 1) + exit(1); + ++ chdir("/"); ++ + TFR(fd = open("/dev/null", O_RDWR)); + if (fd == -1) + exit(1); diff --git a/app-emulation/qemu-softmmu/files/qemu-e1000.patch b/app-emulation/qemu-softmmu/files/qemu-e1000.patch new file mode 100644 index 000000000..9242524a7 --- /dev/null +++ b/app-emulation/qemu-softmmu/files/qemu-e1000.patch @@ -0,0 +1,151 @@ +diff -Naur qemu-20080205.orig/bswap.h qemu-20080205/bswap.h +--- qemu-20080205.orig/bswap.h 2007-09-16 21:07:48.000000000 +0000 ++++ qemu-20080205/bswap.h 2008-03-28 22:30:48.000000000 +0000 +@@ -132,6 +132,7 @@ + #define cpu_to_le32wu(p, v) cpu_to_le32w(p, v) + #define le16_to_cpupu(p) le16_to_cpup(p) + #define le32_to_cpupu(p) le32_to_cpup(p) ++#define be32_to_cpupu(p) be32_to_cpup(p) + + #define cpu_to_be16wu(p, v) cpu_to_be16w(p, v) + #define cpu_to_be32wu(p, v) cpu_to_be32w(p, v) +@@ -168,6 +169,12 @@ + return p1[0] | (p1[1] << 8) | (p1[2] << 16) | (p1[3] << 24); + } + ++static inline uint32_t be32_to_cpupu(const uint32_t *p) ++{ ++ const uint8_t *p1 = (const uint8_t *)p; ++ return p1[3] | (p1[2] << 8) | (p1[1] << 16) | (p1[0] << 24); ++} ++ + static inline void cpu_to_be16wu(uint16_t *p, uint16_t v) + { + uint8_t *p1 = (uint8_t *)p; +diff -Naur qemu-20080205.orig/hw/e1000.c qemu-20080205/hw/e1000.c +--- qemu-20080205.orig/hw/e1000.c 2008-02-03 02:20:18.000000000 +0000 ++++ qemu-20080205/hw/e1000.c 2008-03-28 22:31:22.000000000 +0000 +@@ -27,8 +27,6 @@ + #include "pci.h" + #include "net.h" + +-#define __iomem +-typedef int boolean_t; + #include "e1000_hw.h" + + #define DEBUG +@@ -52,7 +50,7 @@ + #endif + + #define IOPORT_SIZE 0x40 +-#define PNPMMIO_SIZE 0x60000 ++#define PNPMMIO_SIZE 0x20000 + + /* + * HW models: +@@ -139,7 +137,7 @@ + [PHY_CTRL] = PHY_RW, [PHY_1000T_CTRL] = PHY_RW, + [PHY_LP_ABILITY] = PHY_R, [PHY_1000T_STATUS] = PHY_R, + [PHY_AUTONEG_ADV] = PHY_RW, [M88E1000_RX_ERR_CNTR] = PHY_R, +- [PHY_ID2] = PHY_R, ++ [PHY_ID2] = PHY_R, [M88E1000_PHY_SPEC_STATUS] = PHY_R + }; + + static void +@@ -328,7 +326,7 @@ + if (tp->tcp) { + sofar = frames * tp->mss; + cpu_to_be32wu((uint32_t *)(tp->data+css+4), // seq +- be32_to_cpup((uint32_t *)(tp->data+css+4))+sofar); ++ be32_to_cpupu((uint32_t *)(tp->data+css+4))+sofar); + if (tp->paylen - sofar > tp->mss) + tp->data[css + 13] &= ~9; // PSH, FIN + } else // UDP +@@ -722,8 +720,11 @@ + E1000State *s = opaque; + unsigned int index = ((addr - s->mmio_base) & 0x1ffff) >> 2; + ++#ifdef TARGET_WORDS_BIGENDIAN ++ val = bswap32(val); ++#endif + if (index < NWRITEOPS && macreg_writeops[index]) +- macreg_writeops[index](s, index, le32_to_cpu(val)); ++ macreg_writeops[index](s, index, val); + else if (index < NREADOPS && macreg_readops[index]) + DBGOUT(MMIO, "e1000_mmio_writel RO %x: 0x%04x\n", index<<2, val); + else +@@ -736,7 +737,7 @@ + { + // emulate hw without byte enables: no RMW + e1000_mmio_writel(opaque, addr & ~3, +- cpu_to_le32(le16_to_cpu(val & 0xffff) << (8*(addr & 3)))); ++ (val & 0xffff) << (8*(addr & 3))); + } + + static void +@@ -744,7 +745,7 @@ + { + // emulate hw without byte enables: no RMW + e1000_mmio_writel(opaque, addr & ~3, +- cpu_to_le32((val & 0xff) << (8*(addr & 3)))); ++ (val & 0xff) << (8*(addr & 3))); + } + + static uint32_t +@@ -754,7 +755,13 @@ + unsigned int index = ((addr - s->mmio_base) & 0x1ffff) >> 2; + + if (index < NREADOPS && macreg_readops[index]) +- return cpu_to_le32(macreg_readops[index](s, index)); ++ { ++ uint32_t val = macreg_readops[index](s, index); ++#ifdef TARGET_WORDS_BIGENDIAN ++ val = bswap32(val); ++#endif ++ return val; ++ } + DBGOUT(UNKNOWN, "MMIO unknown read addr=0x%08x\n", index<<2); + return 0; + } +@@ -762,15 +769,15 @@ + static uint32_t + e1000_mmio_readb(void *opaque, target_phys_addr_t addr) + { +- return (le32_to_cpu(e1000_mmio_readl(opaque, addr & ~3)) >> ++ return ((e1000_mmio_readl(opaque, addr & ~3)) >> + (8 * (addr & 3))) & 0xff; + } + + static uint32_t + e1000_mmio_readw(void *opaque, target_phys_addr_t addr) + { +- return cpu_to_le16((le32_to_cpu(e1000_mmio_readl(opaque, addr & ~3)) >> +- (8 * (addr & 3))) & 0xffff); ++ return ((e1000_mmio_readl(opaque, addr & ~3)) >> ++ (8 * (addr & 3))) & 0xffff; + } + + int mac_regtosave[] = { +@@ -894,6 +901,7 @@ + [PHY_1000T_CTRL] = 0x0e00, [M88E1000_PHY_SPEC_CTRL] = 0x360, + [M88E1000_EXT_PHY_SPEC_CTRL] = 0x0d60, [PHY_AUTONEG_ADV] = 0xde1, + [PHY_LP_ABILITY] = 0x1e0, [PHY_1000T_STATUS] = 0x3c00, ++ [M88E1000_PHY_SPEC_STATUS] = 0xac00, + }; + + static uint32_t mac_reg_init[] = { +diff -Naur qemu-20080205.orig/hw/e1000_hw.h qemu-20080205/hw/e1000_hw.h +--- qemu-20080205.orig/hw/e1000_hw.h 2008-02-03 02:20:18.000000000 +0000 ++++ qemu-20080205/hw/e1000_hw.h 2008-03-28 22:31:06.000000000 +0000 +@@ -514,9 +514,9 @@ + #define E1000_EEPROM_SWDPIN0 0x0001 /* SWDPIN 0 EEPROM Value */ + #define E1000_EEPROM_LED_LOGIC 0x0020 /* Led Logic Word */ + #define E1000_EEPROM_RW_REG_DATA 16 /* Offset to data in EEPROM read/write registers */ +-#define E1000_EEPROM_RW_REG_DONE 2 /* Offset to READ/WRITE done bit */ ++#define E1000_EEPROM_RW_REG_DONE 0x10 /* Offset to READ/WRITE done bit */ + #define E1000_EEPROM_RW_REG_START 1 /* First bit for telling part to start operation */ +-#define E1000_EEPROM_RW_ADDR_SHIFT 2 /* Shift to the address bits */ ++#define E1000_EEPROM_RW_ADDR_SHIFT 8 /* Shift to the address bits */ + #define E1000_EEPROM_POLL_WRITE 1 /* Flag for polling for write complete */ + #define E1000_EEPROM_POLL_READ 0 /* Flag for polling for read complete */ + /* Register Bit Masks */ diff --git a/app-emulation/qemu-softmmu/qemu-softmmu-0.9.1_p20080205-r3.ebuild b/app-emulation/qemu-softmmu/qemu-softmmu-0.9.1_p20080205-r3.ebuild new file mode 100644 index 000000000..be7ccd89e --- /dev/null +++ b/app-emulation/qemu-softmmu/qemu-softmmu-0.9.1_p20080205-r3.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/qemu-softmmu-0.9.1-r3.ebuild,v 1.4 2008/05/14 20:25:37 maekke Exp $ + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="Multi-platform & multi-targets cpu emulator and dynamic translator" +HOMEPAGE="http://fabrice.bellard.free.fr/qemu/" +SRC_URI="http://dev.pentoo.ch/~grimmlin/qemu/qemu-20080205.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="-alpha amd64 ppc -sparc x86" +IUSE="sdl kqemu gnutls alsa" +RESTRICT="binchecks test" + +DEPEND="virtual/libc + sys-libs/zlib + sdl? ( media-libs/libsdl ) + !<=app-emulation/qemu-0.7.0 + kqemu? ( >=app-emulation/kqemu-1.3.0_pre10 ) + gnutls? ( + dev-util/pkgconfig + net-libs/gnutls + ) + app-text/texi2html" +RDEPEND="sys-libs/zlib + sdl? ( media-libs/libsdl ) + gnutls? ( net-libs/gnutls ) + alsa? ( media-libs/alsa-lib )" + +S=${WORKDIR}/qemu-20080205 + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/qemu-cvs20080205-brb_02-olive.patch + epatch ${FILESDIR}/qemu-e1000.patch + cd "${S}" + # Alter target makefiles to accept CFLAGS set via flag-o. + sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \ + Makefile Makefile.target tests/Makefile + # Ensure mprotect restrictions are relaxed for emulator binaries + [[ -x /sbin/paxctl ]] && \ + sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \ + Makefile.target + # Prevent install of kernel module by qemu's makefile + sed -i 's/\(.\/install.sh\)/#\1/' Makefile + # avoid strip + sed -i 's:$(INSTALL) -m 755 -s:$(INSTALL) -m 755:' Makefile Makefile.target +} + +src_compile() { + if use x86 ; then + # Force -march=pentium-mmx or lower. Fixes bug #212351. + local march + march=$(echo "${CFLAGS}" | sed 's:^.*-march=\([[:alnum:]-]\+\)\([[:blank:]].*\)\?$:\1:p;d') + case ${march} in + i386|i486|i586|pentium) ;; + *) # Either march is not enough low or not exists at all + case ${CHOST} in + i486-*-*) march=i486 ;; + i586-*-*) march=i586 ;; + *) march=pentium-mmx ;; + esac ;; + esac + #Let the application set its cflags + unset CFLAGS + append-flags -march=${march} + else + #Let the application set its cflags + unset CFLAGS + fi + + # Switch off hardened tech + filter-flags -fpie -fstack-protector + + myconf="--enable-net-pcap --enable-net-lcap --enable-net-udp --enable-pemu-i82559" + if use alsa; then + myconf="$myconf --enable-alsa" + fi + if ! use gnutls; then + myconf="$myconf --disable-vnc-tls" + fi + if ! use kqemu; then + myconf="$myconf --disable-kqemu" + fi + if ! use sdl ; then + myconf="$myconf --disable-sdl --disable-gfx-check" + fi + # econf does not work + ./configure \ + --prefix=/usr \ + --enable-adlib \ + --cc=$(tc-getCC) \ + --host-cc=$(tc-getCC) \ + --disable-linux-user \ + --enable-system \ + ${myconf} \ + || die "could not configure" + + emake OS_CFLAGS="${CFLAGS}" || die "make failed" +} + +src_install() { + emake install \ + prefix="${D}/usr" \ + bindir="${D}/usr/bin" \ + datadir="${D}/usr/share/qemu" \ + docdir="${D}/usr/share/doc/${P}" \ + mandir="${D}/usr/share/man" || die + + chmod -x "${D}/usr/share/man/*/*" +} + +pkg_postinst() { + einfo "You will need the Universal TUN/TAP driver compiled into" + einfo "kernel or as a module to use the virtual network device." +} diff --git a/app-fuzz/Peach/Manifest b/app-fuzz/Peach/Manifest new file mode 100644 index 000000000..232bca065 --- /dev/null +++ b/app-fuzz/Peach/Manifest @@ -0,0 +1,8 @@ +DIST Peach-0.4.zip 2666734 RMD160 a6e452e120e04fb5b5f78896936505800ea18c2f SHA1 528dfd170e0652c6fbd0c5de0cd0f6f938596867 SHA256 9767275bafc1d5c3f168ded3e092a109e4bdddf11ee7bfae3025b087e7bae4ab +EBUILD Peach-0.4.ebuild 998 RMD160 fdc205a058f47a19a74d9f954ed0d8657c75785b SHA1 e5177a76cf89bb3be3dceed5794bfcf280530992 SHA256 fe70b3ed8019e8cf81252bbe70ea16573544f5d210a8865a3d0a7eae8486448d +MD5 e4d15036a43e36df5267c99a7c336e68 Peach-0.4.ebuild 998 +RMD160 fdc205a058f47a19a74d9f954ed0d8657c75785b Peach-0.4.ebuild 998 +SHA256 fe70b3ed8019e8cf81252bbe70ea16573544f5d210a8865a3d0a7eae8486448d Peach-0.4.ebuild 998 +MD5 523b701a7f8e99c34f72b479e7ddbd38 files/digest-Peach-0.4 223 +RMD160 d2d56d2cfd9ef7b01bffa681c4723cd5d760c533 files/digest-Peach-0.4 223 +SHA256 d4c1943eabef41a2f1c76c2df6f3c0db17d8c9b87a29dc11347e28362ce5c237 files/digest-Peach-0.4 223 diff --git a/app-fuzz/Peach/Peach-0.4.ebuild b/app-fuzz/Peach/Peach-0.4.ebuild new file mode 100644 index 000000000..6d7f83906 --- /dev/null +++ b/app-fuzz/Peach/Peach-0.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/Peach/Peach-0.4.ebuild,v 1.1.1.2 2006/03/13 21:42:50 grimmlin Exp $ + +inherit distutils python + +DESCRIPTION="A generic fuzzer framework" +HOMEPAGE="http://peachfuzz.sourceforge.net" +SRC_URI="mirror://sourceforge/peachfuzz/Peach-${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc samples" + +RDEPEND=">=dev-lang/python-2.3" + +PYTHON_MODNAME="Peach" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + python_version + rm samples/*.exe samples/PeachComTest.zip + mkdir -p ${D}/usr/$(get_libdir)/python${PYVER}/site-packages/${PYTHON_MODNAME}/ + cp -a ${PN}/* ${D}/usr/$(get_libdir)/python${PYVER}/site-packages/${PYTHON_MODNAME}/ + + if use doc; then + insinto /usr/share/doc/${PF}/ + doins -r docs/* + fi + if use samples; then + insinto /opt/${PN}/samples + doins samples/* + insinto /opt/${PN} + doins *.py + fi + dodoc README CHAGES FAQ TODO +} diff --git a/app-fuzz/Peach/files/digest-Peach-0.4 b/app-fuzz/Peach/files/digest-Peach-0.4 new file mode 100644 index 000000000..c227d5735 --- /dev/null +++ b/app-fuzz/Peach/files/digest-Peach-0.4 @@ -0,0 +1,3 @@ +MD5 976d2e19fcf0c29294f284f2331d1211 Peach-0.4.zip 2666734 +RMD160 a6e452e120e04fb5b5f78896936505800ea18c2f Peach-0.4.zip 2666734 +SHA256 9767275bafc1d5c3f168ded3e092a109e4bdddf11ee7bfae3025b087e7bae4ab Peach-0.4.zip 2666734 diff --git a/app-fuzz/bed/Manifest b/app-fuzz/bed/Manifest new file mode 100644 index 000000000..a823f2232 --- /dev/null +++ b/app-fuzz/bed/Manifest @@ -0,0 +1,12 @@ +AUX bed 41 RMD160 301876a45555289d86edff9b13b761132facc62b SHA1 3f1d597171846bd0182eb9439115515a0fe61365 SHA256 b5b8ff906db3ad3f55c05f24b4fcc06b7cba5c842558a8902ddf981ba645114c +MD5 c877d48ef8a46552fdd64cf851d6e01c files/bed 41 +RMD160 301876a45555289d86edff9b13b761132facc62b files/bed 41 +SHA256 b5b8ff906db3ad3f55c05f24b4fcc06b7cba5c842558a8902ddf981ba645114c files/bed 41 +DIST bed-0.5.tar.bz2 16635 RMD160 745ce06ad4f0d06acddb22b23b2d316eb5fc0891 SHA1 6c10bfb67650cbfb9a97230dd290f930ed320159 SHA256 dd363fb196fe2493825905975413e62843997b39070a6796b549e47824ba0e03 +EBUILD bed-0.5.ebuild 618 RMD160 e4e82260b641440acc95d0571f7b949d912b1c77 SHA1 0d64b6b45a8814ed764b199106966cfa9fb1c5cb SHA256 cb5d503ad710f41f259b5ad8028cf9ab9c73e27fd0003a88d900052f6a656210 +MD5 8bb7e83791c89d87c1a05665b8d28c80 bed-0.5.ebuild 618 +RMD160 e4e82260b641440acc95d0571f7b949d912b1c77 bed-0.5.ebuild 618 +SHA256 cb5d503ad710f41f259b5ad8028cf9ab9c73e27fd0003a88d900052f6a656210 bed-0.5.ebuild 618 +MD5 fcd3b3619a089a8821ddbd1da6912268 files/digest-bed-0.5 223 +RMD160 d8c23dd05f3dec334a9a4f59e139202f6b74920d files/digest-bed-0.5 223 +SHA256 f3c2964f45505001a12291f1f0c4c9a443527251e1ec2e2fbbb70077150b7a0b files/digest-bed-0.5 223 diff --git a/app-fuzz/bed/bed-0.5.ebuild b/app-fuzz/bed/bed-0.5.ebuild new file mode 100644 index 000000000..402ac5443 --- /dev/null +++ b/app-fuzz/bed/bed-0.5.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/bed/bed-0.5.ebuild,v 1.1.1.1 2006/03/08 00:40:08 grimmlin Exp $ + +DESCRIPTION="BED is a multi-protocol fuzzer written in perl" +HOMEPAGE="http://www.snake-basket.de/bed.html" +SRC_URI="http://www.snake-basket.de/bed/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${PN} + +src_compile () { + einfo "Nothing to compile" +} + +src_install () { + exeinto /opt/bed/ + doexe bed.pl + insinto /opt/bed/bedmod/ + doins bedmod/* + dosbin "${FILESDIR}"/bed +} diff --git a/app-fuzz/bed/files/bed b/app-fuzz/bed/files/bed new file mode 100644 index 000000000..05a36dd8d --- /dev/null +++ b/app-fuzz/bed/files/bed @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/bed/ +perl bed.pl "$@" diff --git a/app-fuzz/bed/files/digest-bed-0.5 b/app-fuzz/bed/files/digest-bed-0.5 new file mode 100644 index 000000000..4f09b5147 --- /dev/null +++ b/app-fuzz/bed/files/digest-bed-0.5 @@ -0,0 +1,3 @@ +MD5 caa0a351f38ce41da21961888b2040f9 bed-0.5.tar.bz2 16635 +RMD160 745ce06ad4f0d06acddb22b23b2d316eb5fc0891 bed-0.5.tar.bz2 16635 +SHA256 dd363fb196fe2493825905975413e62843997b39070a6796b549e47824ba0e03 bed-0.5.tar.bz2 16635 diff --git a/app-fuzz/bss/Manifest b/app-fuzz/bss/Manifest new file mode 100644 index 000000000..1a8ae937d --- /dev/null +++ b/app-fuzz/bss/Manifest @@ -0,0 +1,8 @@ +DIST bss-0.6.tar.gz 2044955 RMD160 fa6390806a01404e83a1e7f7a9bbea88535c4e4b SHA1 5aa002797cfc56c69e2738967818eb21639250c1 SHA256 339278854e04ddf14c9419254425e2e96fd29052ada9c7e91ca739a4185704d2 +EBUILD bss-0.6.ebuild 744 RMD160 bd919b1e7382882f05fa5d401e19d8644441d595 SHA1 a934ab3b5d8b6303235966b7b1c9b594eec2c74d SHA256 fed761e1ef915d69612cb57142eb51bff8ba68e920c4d05fc9a79e378a995fed +MD5 b5a0fc9b94caed1bf24841e681151d8f bss-0.6.ebuild 744 +RMD160 bd919b1e7382882f05fa5d401e19d8644441d595 bss-0.6.ebuild 744 +SHA256 fed761e1ef915d69612cb57142eb51bff8ba68e920c4d05fc9a79e378a995fed bss-0.6.ebuild 744 +MD5 7afaba8a951a55b6ab9817ed43104547 files/digest-bss-0.6 226 +RMD160 3eb54bd4d02a3a0a79269de0c4a8cfb103412a60 files/digest-bss-0.6 226 +SHA256 feadaf9f8eea7e90306bb15c78363b1c941ecba5455eb23346384758ffe68a56 files/digest-bss-0.6 226 diff --git a/app-fuzz/bss/bss-0.6.ebuild b/app-fuzz/bss/bss-0.6.ebuild new file mode 100644 index 000000000..5ded59196 --- /dev/null +++ b/app-fuzz/bss/bss-0.6.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/bss/bss-0.6.ebuild,v 1.1.1.1 2006/03/29 14:43:43 grimmlin Exp $ + +DESCRIPTION="Bluetooth stack smasher / fuzzer" +HOMEPAGE="http://www.secuobs.com/news/05022006-bluetooth10.shtml" +SRC_URI="http://www.secuobs.com/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +DEPEND="net-wireless/bluez-libs" + +src_compile() { + sed -i -e 's/\/local//g' Makefile + make || die "Make failed" + cd replay_packet + sed -i -e 's/\/local//g' Makefile + make || die "Make failed" +} + +src_install() { + dobin bss replay_packet/replay_l2cap_packet + dodoc AUTHORS README BUGS TODO + if use doc; then + dodoc doc/* + fi +} diff --git a/app-fuzz/bss/files/digest-bss-0.6 b/app-fuzz/bss/files/digest-bss-0.6 new file mode 100644 index 000000000..a0e46219e --- /dev/null +++ b/app-fuzz/bss/files/digest-bss-0.6 @@ -0,0 +1,3 @@ +MD5 f32cc0f2e53d0ae4fa37680bcf543585 bss-0.6.tar.gz 2044955 +RMD160 fa6390806a01404e83a1e7f7a9bbea88535c4e4b bss-0.6.tar.gz 2044955 +SHA256 339278854e04ddf14c9419254425e2e96fd29052ada9c7e91ca739a4185704d2 bss-0.6.tar.gz 2044955 diff --git a/app-fuzz/fusil/Manifest b/app-fuzz/fusil/Manifest new file mode 100644 index 000000000..17c41e236 --- /dev/null +++ b/app-fuzz/fusil/Manifest @@ -0,0 +1,2 @@ +DIST fusil-1.0beta3.tar.gz 123843 RMD160 6c62e1a4f3a4b85c090bc5f1df025655fbabebd7 SHA1 04005491b809300c3542759f39287cce836c2c05 SHA256 d4cf0493ed648ce4af031f4d832cb865029915c07c10cdf47985fb64576036e4 +EBUILD fusil-1.0_beta3.ebuild 585 RMD160 d2ec3952bf42cea2c9892446bbca7976c721e530 SHA1 3759325e14f0fb7709b9c645a770bf32364f423e SHA256 508cbf5d3ce258c4cf10fb257f52a438e7e4abdccf0789d26bd919b963eab171 diff --git a/app-fuzz/fusil/fusil-1.0_beta3.ebuild b/app-fuzz/fusil/fusil-1.0_beta3.ebuild new file mode 100644 index 000000000..b4d3eaee1 --- /dev/null +++ b/app-fuzz/fusil/fusil-1.0_beta3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +NEED_PYTHON=2.4 + +inherit distutils + +MY_PV=${PV/_/} + +DESCRIPTION="Fusil the fuzzer is a Python library used to write fuzzing programs" +HOMEPAGE="http://fusil.hachoir.org/" +SRC_URI="http://pypi.python.org/packages/source/f/${PN}/${PN}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="" +RDEPEND=">=dev-python/python-ptrace-0.4.2 + dev-python/ctypes + dev-python/python-xlib" + +S="${WORKDIR}/${PN}-${MY_PV}" + +PYTHON_MODNAME="fusil" diff --git a/app-fuzz/fuzzer-server/Manifest b/app-fuzz/fuzzer-server/Manifest new file mode 100644 index 000000000..fc894df65 --- /dev/null +++ b/app-fuzz/fuzzer-server/Manifest @@ -0,0 +1,8 @@ +DIST fuzzer-server-0.1.tar.gz 4420 RMD160 2c8d2329c802bc734d507bcca098c7b04c013ceb SHA1 934c40072910b456531aab2ee9614d052ae239f4 SHA256 3db0f1273189b90f98e6b4bd7b2148798c2296153a8af5f8ba85339ddff5b364 +EBUILD fuzzer-server-0.1.ebuild 547 RMD160 c839968f619d73d9586ef6369263f3420a7dbca3 SHA1 dc53db09fa202097d7e856ecef5a3acc92e79458 SHA256 d24860ae47397041bd1b81cace4e7c33c5005d931ada41b9b6b8012256d16c61 +MD5 9d73f73ad4307125613f3ba07157cb1b fuzzer-server-0.1.ebuild 547 +RMD160 c839968f619d73d9586ef6369263f3420a7dbca3 fuzzer-server-0.1.ebuild 547 +SHA256 d24860ae47397041bd1b81cace4e7c33c5005d931ada41b9b6b8012256d16c61 fuzzer-server-0.1.ebuild 547 +MD5 4d3cfd56e171faf6e399e47de26b0e87 files/digest-fuzzer-server-0.1 247 +RMD160 e049a1079cd2a7d948005379b671eb4faacb33ca files/digest-fuzzer-server-0.1 247 +SHA256 13ca053c42b1dc5c370a7a5d4a415cffcfc276b101e956bad03bf42417ecc7fc files/digest-fuzzer-server-0.1 247 diff --git a/app-fuzz/fuzzer-server/files/digest-fuzzer-server-0.1 b/app-fuzz/fuzzer-server/files/digest-fuzzer-server-0.1 new file mode 100644 index 000000000..d7884bdeb --- /dev/null +++ b/app-fuzz/fuzzer-server/files/digest-fuzzer-server-0.1 @@ -0,0 +1,3 @@ +MD5 88a6716d55d1bcda214d4a477c0f43f1 fuzzer-server-0.1.tar.gz 4420 +RMD160 2c8d2329c802bc734d507bcca098c7b04c013ceb fuzzer-server-0.1.tar.gz 4420 +SHA256 3db0f1273189b90f98e6b4bd7b2148798c2296153a8af5f8ba85339ddff5b364 fuzzer-server-0.1.tar.gz 4420 diff --git a/app-fuzz/fuzzer-server/fuzzer-server-0.1.ebuild b/app-fuzz/fuzzer-server/fuzzer-server-0.1.ebuild new file mode 100644 index 000000000..232e24947 --- /dev/null +++ b/app-fuzz/fuzzer-server/fuzzer-server-0.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/fuzzer-server/fuzzer-server-0.1.ebuild,v 1.1.1.1 2006/03/08 21:22:06 grimmlin Exp $ + +DESCRIPTION="A html/wml fuzzer for proxy or client" +HOMEPAGE="http://www.atstake.com/" +SRC_URI="http://www.pentoo.ch/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="" + +src_compile() { + gcc -o fuzzer-server fuzzer-server.c +} + +src_install() { + dobin fuzzer-server + dodoc README.txt +} diff --git a/app-fuzz/fuzzer/Manifest b/app-fuzz/fuzzer/Manifest new file mode 100644 index 000000000..74a9cff4a --- /dev/null +++ b/app-fuzz/fuzzer/Manifest @@ -0,0 +1,3 @@ +MD5 9e88291b9678d3773b16ba0a92a9cf3e files/digest-fuzzer-1.2 61 +MD5 407ecb022d9ce1fe833d98e9ae02e33f files/fuzzer 44 +MD5 309d0e2fe2b758ef11afe8dab55c902c fuzzer-1.2.ebuild 566 diff --git a/app-fuzz/fuzzer/files/digest-fuzzer-1.2 b/app-fuzz/fuzzer/files/digest-fuzzer-1.2 new file mode 100644 index 000000000..09b66bff1 --- /dev/null +++ b/app-fuzz/fuzzer/files/digest-fuzzer-1.2 @@ -0,0 +1 @@ +MD5 b55390126dac7450dd2ac05f9259a839 fuzzer-1.2.tar.gz 21731 diff --git a/app-fuzz/fuzzer/files/fuzzer b/app-fuzz/fuzzer/files/fuzzer new file mode 100644 index 000000000..90ee587dd --- /dev/null +++ b/app-fuzz/fuzzer/files/fuzzer @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/fuzzer/ +./fuzzer.py "$@" diff --git a/app-fuzz/fuzzer/fuzzer-1.2.ebuild b/app-fuzz/fuzzer/fuzzer-1.2.ebuild new file mode 100644 index 000000000..bfa151367 --- /dev/null +++ b/app-fuzz/fuzzer/fuzzer-1.2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/fuzzer/fuzzer-1.2.ebuild,v 1.1.1.1 2006/03/12 23:52:44 grimmlin Exp $ + +DESCRIPTION="Python based fuzzer for multi protocols, and faultinject" +HOMEPAGE="http://www.whitehat.co.il/shadown/freetools.html" +SRC_URI="http://www.whitehat.co.il/shadown/freetools/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="dev-python/pyopenssl" + +src_compile () { + einfo "Nothing to compile" +} + +src_install () { + dodoc README TODO + insinto /opt/"${PN}"/ + insopts -m0755 + doins *.py + dosbin "${FILESDIR}"/"${PN}" +} diff --git a/app-fuzz/http-fuzz/Manifest b/app-fuzz/http-fuzz/Manifest new file mode 100644 index 000000000..22356dd9c --- /dev/null +++ b/app-fuzz/http-fuzz/Manifest @@ -0,0 +1,11 @@ +AUX http-fuzz.pl 4102 RMD160 308d19560234357fc843ba8cd2815e978a3c152d SHA1 2380f22adc207970e29c24f751d1008b5ab57c01 SHA256 3129ab02dd97997764658358a489580caa5ae5197a5cc8ef80cbee3a8641bcd3 +MD5 399883f034a505b8b157649e7870a0ff files/http-fuzz.pl 4102 +RMD160 308d19560234357fc843ba8cd2815e978a3c152d files/http-fuzz.pl 4102 +SHA256 3129ab02dd97997764658358a489580caa5ae5197a5cc8ef80cbee3a8641bcd3 files/http-fuzz.pl 4102 +EBUILD http-fuzz-0.1.ebuild 395 RMD160 c4ec879886d4fa1c9b6a22eb1e6cae5c52cf8ef9 SHA1 2edd2dbb824df18ea281bc4ba60f123c0199fd3f SHA256 9c6d12604a5593f922f3ee754c5a08be31fdf91c02d193db1bc5b4cad0de6d8e +MD5 bfe6862e8540886c89075d134ac10702 http-fuzz-0.1.ebuild 395 +RMD160 c4ec879886d4fa1c9b6a22eb1e6cae5c52cf8ef9 http-fuzz-0.1.ebuild 395 +SHA256 9c6d12604a5593f922f3ee754c5a08be31fdf91c02d193db1bc5b4cad0de6d8e http-fuzz-0.1.ebuild 395 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-http-fuzz-0.1 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-http-fuzz-0.1 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-http-fuzz-0.1 0 diff --git a/app-fuzz/http-fuzz/files/digest-http-fuzz-0.1 b/app-fuzz/http-fuzz/files/digest-http-fuzz-0.1 new file mode 100644 index 000000000..e69de29bb diff --git a/app-fuzz/http-fuzz/files/http-fuzz.pl b/app-fuzz/http-fuzz/files/http-fuzz.pl new file mode 100644 index 000000000..7d64d37b5 --- /dev/null +++ b/app-fuzz/http-fuzz/files/http-fuzz.pl @@ -0,0 +1,86 @@ +#!/usr/bin/perl +# Simple HTTP request header fuzzing utility. +# by prdelka +use IO::Socket; +if(!$ARGV[0]||!$ARGV[1]) +{ + die "Please provide "; +} +@request = ("GET","POST","HEAD"); +@fields = ("Accept","Accept-Charset","Accept-Encoding","Accept-Language","Authorization","Expect","From","Host","If-Match", + "If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Max-Forwards","Pragma","Proxy-Authorization", + "Range","Referer","TE","Trailer","Transfer-Encoding","Upgrade","User-Agent","Via","Warning"); +@chars = ("\x01","\x02","\x03","\x04","\x05","\x06","\x07","\x08","\x09","\x0a","\x0b","\x0c","\x0d","\x0e","\xf","\x10","\x11","\x12", + "\x13","\x14","\x15","\x16","\x17","\x18","\x19","\x1a","\x1b","\x1c","\x1d","\x1e","\x1f","\x20","\x21","\x22","\x23", + "\x24","\x25","\x26","\x27","\x28","\x29","\x2a","\x2b","\x2c","\x2d","\x2e","\x2f","\x30","\x31","\x32","\x33","\x34", + "\x35","\x36","\x37","\x38","\x39","\x3a","\x3b","\x3c","\x3d","\x3e","\x3f","\x40","\x41","\x42","\x43","\x44","\x45", + "\x46","\x47","\x48","\x49","\x4a","\x4b","\x4c","\x4d","\x4e","\x4f","\x50","\x51","\x52","\x53","\x54","\x55","\x56", + "\x57","\x58","\x59","\x5a","\x5b","\x5c","\x5d","\x5e","\x5f","\x60","\x61","\x62","\x63","\x64","\x65","\x66","\x67", + "\x68","\x69","\x6a","\x6b","\x6c","\x6d","\x6e","\x6f","\x70","\x71","\x72","\x73","\x74","\x75","\x76","\x77","\x78", + "\x79","\x7a","\x7b","\x7c","\x7d","\x7e","\x7f","\x80","\x81","\x82","\x83","\x84","\x85","\x86","\x87","\x88","\x89", + "\x8a","\x8b","\x8c","\x8d","\x8e","\x8f","\x90","\x91","\x92","\x93","\x94","\x95","\x96","\x97","\x98","\x99","\x9a", + "\x9b","\x9c","\x9d","\x9e","\x9f","\xa0","\xa1","\xa2","\xa3","\xa4","\xa5","\xa6","\xa7","\xa8","\xa9","\xaa","\xab", + "\xac","\xad","\xae","\xaf","\xb0","\xb1","\xb2","\xb3","\xb4","\xb5","\xb6","\xb7","\xb8","\xb9","\xba","\xbb","\xbc", + "\xbd","\xbe","\xbf","\xc0","\xc1","\xc2","\xc3","\xc4","\xc5","\xc6","\xc7","\xc8","\xc9","\xca","\xcb","\xcc","\xcd", + "\xce","\xcf","\xd0","\xd1","\xd2","\xd3","\xd4","\xd5","\xd6","\xd7","\xd8","\xd9","\xda","\xdb","\xdc","\xdd","\xde", + "\xdf","\xe0","\xe1","\xe2","\xe3","\xe4","\xe5","\xe6","\xe7","\xe8","\xe9","\xea","\xeb","\xec","\xed","\xee","\xef", + "\xf0","\xf1","\xf2","\xf3","\xf4","\xf5","\xf6","\xf7","\xf8","\xf9","\xfa","\xfb","\xfc","\xfd","\xfe","\xff"); +@term = (":"," ",": ","/","\\"); +@termx = (" ","\r\n","\n"); + +$SIG{PIPE} = 'IGNORE'; +while(1){ + for($fuzz = 10;$fuzz <= 100;$fuzz = $fuzz + 10) + { + my $sock = new IO::Socket::INET ( + PeerAddr => $ARGV[0], + PeerPort => int($ARGV[1]), + Proto => 'tcp', + ); + die "Could not create socket: $!\n" unless $sock; + $a = int(rand($fuzz)); + $b = int(rand($fuzz)); + $c = int(rand($fuzz)); + $index = int(rand(@request)); + my $buffer; + $buffer .= "$request[$index] "; + $index = int(rand(@term)); + $buffer .= "$term[$index]"; + $charlength = int(rand($b)); + for($count2 = 0;$count2 <= $charlength;$count2++) + { + $index = int(rand(@chars)); + $charamount = int(rand($c)); + $buffer .= "$chars[$index]"x$charamount; + } + $index = int(rand(@termx)); + $buffer .= "$termx[$index]"; + $fieldamount = int(rand($a)); + for($count = 0;$count <= $fieldamount;$count++){ + $index = int(rand(@fields)); + $buffer .= "$fields[$index]"; + $index = int(rand(@term)); + $buffer .= "$term[$index]"; + $charlength = int(rand($b)); + for($count2 = 0;$count2 <= $charlength;$count2++) + { + $index = int(rand(@chars)); + $charamount = int(rand($c)); + $buffer .= "$chars[$index]"x$charamount; + } + $index = int(rand(@termx)); + $buffer .= "$termx[$index]"; + } + print $sock "$buffer\n\n\n"; + print "[ Sent "; + print length($buffer); + print " byte(s) to host $ARGV[0]($ARGV[1]/tcp)\n"; + sleep(0.5); + my $recv = 0; + while(<$sock>){$recv = $recv + length($_);} + print "[ Received $recv byte(s) from host $ARGV[0]($ARGV[1]/tcp)\n"; + close($sock); + } +} + + diff --git a/app-fuzz/http-fuzz/http-fuzz-0.1.ebuild b/app-fuzz/http-fuzz/http-fuzz-0.1.ebuild new file mode 100644 index 000000000..61c0159ad --- /dev/null +++ b/app-fuzz/http-fuzz/http-fuzz-0.1.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/http-fuzz/http-fuzz-0.1.ebuild,v 1.1.1.1 2006/03/08 21:22:06 grimmlin Exp $ + +DESCRIPTION="A http fuzzer" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="" + +src_install() { + newbin "${FILESDIR}"/"${PN}".pl "${PN}" +} diff --git a/app-fuzz/metadata.xml b/app-fuzz/metadata.xml new file mode 100644 index 000000000..6a12d220c --- /dev/null +++ b/app-fuzz/metadata.xml @@ -0,0 +1,8 @@ + + + + + The app-fuzz category contains software which helps detect and + analyse security breaches. + + diff --git a/app-fuzz/ohrwurm/Manifest b/app-fuzz/ohrwurm/Manifest new file mode 100644 index 000000000..b9188ef88 --- /dev/null +++ b/app-fuzz/ohrwurm/Manifest @@ -0,0 +1,8 @@ +DIST ohrwurm-0.1.tar.bz2 6281 RMD160 de6e2081cb6419ac458b10e203f53b79081fe636 SHA1 d091000a5e936759baf1ce577e8b6905c2b671b6 SHA256 c94bfe52cfd2e9ff52f4360cb6153a665bb2b4251c889c7a1a5a3bf75f346165 +EBUILD ohrwurm-0.1.ebuild 457 RMD160 585959220d1b67a3fb4c50c811854f7aa80005a5 SHA1 2784a330a3a3761a8017661656b5fe165939da7b SHA256 a20812f5b00ea4d6d2302e4163ef193fdd8bec77b2ecc456821afadf011d6823 +MD5 8077e5f25b29cffec1a12209e41cb2aa ohrwurm-0.1.ebuild 457 +RMD160 585959220d1b67a3fb4c50c811854f7aa80005a5 ohrwurm-0.1.ebuild 457 +SHA256 a20812f5b00ea4d6d2302e4163ef193fdd8bec77b2ecc456821afadf011d6823 ohrwurm-0.1.ebuild 457 +MD5 c3e63368014b18555dffac9d52c75ae3 files/digest-ohrwurm-0.1 232 +RMD160 f05bb6835ca8d8f14dc1fa0432592c942d716800 files/digest-ohrwurm-0.1 232 +SHA256 d6920a51cbb5352a5231dd0172e119290ac659b3efdeb97ffebd2eb8e8f21ce1 files/digest-ohrwurm-0.1 232 diff --git a/app-fuzz/ohrwurm/files/digest-ohrwurm-0.1 b/app-fuzz/ohrwurm/files/digest-ohrwurm-0.1 new file mode 100644 index 000000000..8f05d4195 --- /dev/null +++ b/app-fuzz/ohrwurm/files/digest-ohrwurm-0.1 @@ -0,0 +1,3 @@ +MD5 210977dfe239bb4e6d4d35c4a00bea48 ohrwurm-0.1.tar.bz2 6281 +RMD160 de6e2081cb6419ac458b10e203f53b79081fe636 ohrwurm-0.1.tar.bz2 6281 +SHA256 c94bfe52cfd2e9ff52f4360cb6153a665bb2b4251c889c7a1a5a3bf75f346165 ohrwurm-0.1.tar.bz2 6281 diff --git a/app-fuzz/ohrwurm/ohrwurm-0.1.ebuild b/app-fuzz/ohrwurm/ohrwurm-0.1.ebuild new file mode 100644 index 000000000..389f80a3f --- /dev/null +++ b/app-fuzz/ohrwurm/ohrwurm-0.1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="Ohrwurm is a small and simple RTP fuzzer" +HOMEPAGE="http://mazzoo.de/blog/2006/08/25" +SRC_URI="http://mazzoo.de/d/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dobin ohrwurm + dodoc README.txt +} diff --git a/app-fuzz/protos/ChangeLog b/app-fuzz/protos/ChangeLog new file mode 100644 index 000000000..9ad02b932 --- /dev/null +++ b/app-fuzz/protos/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-fuzz/protos +# Copyright 2005-2006 Pentoo; Distributed under the GPL v2 +# $Header: /root/portage/app-fuzz/protos/ChangeLog,v 1.1.1.3 2006/03/08 18:55:18 grimmlin Exp $ + +*protos-0.1 (7 Mar 2006) + + 7 Mar 2006; Michael Zanetta +protos-0.1.ebuild: + Initial commit. diff --git a/app-fuzz/protos/Manifest b/app-fuzz/protos/Manifest new file mode 100644 index 000000000..cd3ea80b9 --- /dev/null +++ b/app-fuzz/protos/Manifest @@ -0,0 +1,25 @@ +AUX protos 1045 RMD160 a33c708817f950dc4980545034beca802d7754a2 SHA1 009eceff975db6c0d32dc6b4c0c5848a4fb7f08f SHA256 58aebf02367b409ac531dc6bd85137e40d0d3f2dea7cefe38c5917f3d64996f3 +MD5 fc0ef29289e15ca8b86f4083f3b5b6a1 files/protos 1045 +RMD160 a33c708817f950dc4980545034beca802d7754a2 files/protos 1045 +SHA256 58aebf02367b409ac531dc6bd85137e40d0d3f2dea7cefe38c5917f3d64996f3 files/protos 1045 +DIST c05-http-reply-r1.jar 1696264 RMD160 0a2146fdc3ca0e98b7c11ca8ae0636b58c7873b7 SHA1 086bf48652e418225f344cec814acfcc53b9afd1 SHA256 39c6a30c496b6da47e2faa25872319abb8773aa89f12699d55865eabd7d81e34 +DIST c06-ldapv3-app-r1.jar 1234791 RMD160 fd8f44e0af5ee528869d518622fc4cb4e4d746ff SHA1 471afbddf96770de5b20cefda348b258003994ed SHA256 088eee3bddb167c39985f2ba0f36ceeb6974f6cc375e6f08074489e9bd50258a +DIST c06-ldapv3-enc-r1.jar 1149837 RMD160 138fa6eb3c03afdc029eaca36376289f76218170 SHA1 5d747d200b967db0799680075085dc4d9da8a360 SHA256 738361e331b083fe0892859bff1063d91590982c2f1458f6fbe422b571f518ca +DIST c06-snmpv1-req-app-r1.jar 1998216 RMD160 c9d1e359adb7f951dcc94befce76ebff0d6a4e67 SHA1 4880a1c65c1ceca9f00eaedf9d1e6742cb40fdda SHA256 4263758a7a800be701235f74e8728717f4cee9e76b0692b6394ab00d8cb6a357 +DIST c06-snmpv1-req-enc-r1.jar 3470574 RMD160 405a700525313bf954bf6df5b51adba5f4cedde0 SHA1 0064434260d42412bb0ee0e5bb1708636f08cdd3 SHA256 fd9eb35339e239185a72516399e4b3112dd6d262cde5fe306b06eac84ac72019 +DIST c06-snmpv1-trap-app-r1.jar 3099605 RMD160 0d1fa361eacf047ecc6a02255ab56536b65825cb SHA1 a1be0bab7db17860331c7a6fb3297bc6ddbb7605 SHA256 9937e21ba376be9d8e9d51694efc0cd9230aba81dec03ca959670be2871d656b +DIST c06-snmpv1-trap-enc-r1.jar 1726726 RMD160 7451479497559ab18a9df17dd8b61f9bf5a3423f SHA1 21e6023ffac68f53e3755820609e774e50ed07e0 SHA256 268892fad819918a977ff752b7568014cff16168bbb17bf9c4fc47867cdb3609 +DIST c07-h2250v4-r2.jar 1321046 RMD160 14e048fe2bdeb9768a46c883416e91cc2e4ed63e SHA1 bf7b2b8383a5839f572839c1a4a68be56ad7528e SHA256 d3160f0c44a43ce8af89ac42d7be11389d5c38f07e771e9992b55b3171fd66d8 +DIST c07-sip-r2.jar 2247421 RMD160 e35f7be28df495afd11d948946b4300e1ee3801e SHA1 850f733070ae8d6facfd29dcdf9a5e859802fd7c SHA256 4cd5a14a9c333a5454d050e281869a6c3a4a41eefb939f8de4f9db33b5c68e15 +DIST c09-isakmp-r1.jar 9351708 RMD160 2dd95f8afcd3a49a5721ae006258ab464c1cb0f1 SHA1 cc9983a9a8fd637b196df6290bbf3a0d82ce59ed SHA256 7613d73e35b6400010117f20a0e6c9d80bbb62d60322a56c874ca1ac4f15770b +EBUILD protos-1.0.ebuild 1899 RMD160 a278ef10c1bfe84d30f4673700045402f038f9d1 SHA1 7261e1f1e2d3f6330066fde2e75a8837461dcd95 SHA256 ecb3fc0a7d8b6815b580134a6f2dda47600245925745dee89be2045d0419280a +MD5 35e4af954795ee19533b88038b4cef26 protos-1.0.ebuild 1899 +RMD160 a278ef10c1bfe84d30f4673700045402f038f9d1 protos-1.0.ebuild 1899 +SHA256 ecb3fc0a7d8b6815b580134a6f2dda47600245925745dee89be2045d0419280a protos-1.0.ebuild 1899 +MISC ChangeLog 303 RMD160 2a476d07dfbfcd3cd0eef3c3cceb4178349f42a8 SHA1 26fec13008978e02238d97f23a4cd75903606b27 SHA256 0500fd32bc52d021ca6ffad1c404a887c80536a7a58fef1152c7be1b9064ecea +MD5 dbf98f3c8733d4590cc5e5f399e7b28c ChangeLog 303 +RMD160 2a476d07dfbfcd3cd0eef3c3cceb4178349f42a8 ChangeLog 303 +SHA256 0500fd32bc52d021ca6ffad1c404a887c80536a7a58fef1152c7be1b9064ecea ChangeLog 303 +MD5 f67745ce5a6a290c99cff86bbf132c62 files/digest-protos-1.0 2482 +RMD160 32d5338d300eb98f8d329d3ad5fda0e24bc5a277 files/digest-protos-1.0 2482 +SHA256 2a9f649a83f23744a9e29ba9a519b9e75480339a502cca4420ea75429f8c1785 files/digest-protos-1.0 2482 diff --git a/app-fuzz/protos/files/digest-protos-1.0 b/app-fuzz/protos/files/digest-protos-1.0 new file mode 100644 index 000000000..c63fa813f --- /dev/null +++ b/app-fuzz/protos/files/digest-protos-1.0 @@ -0,0 +1,30 @@ +MD5 929fadbf1e6da1859080c72ce61ee050 c05-http-reply-r1.jar 1696264 +RMD160 0a2146fdc3ca0e98b7c11ca8ae0636b58c7873b7 c05-http-reply-r1.jar 1696264 +SHA256 39c6a30c496b6da47e2faa25872319abb8773aa89f12699d55865eabd7d81e34 c05-http-reply-r1.jar 1696264 +MD5 8eeb3991221ba82f2e8d304dd4c5dd31 c06-ldapv3-app-r1.jar 1234791 +RMD160 fd8f44e0af5ee528869d518622fc4cb4e4d746ff c06-ldapv3-app-r1.jar 1234791 +SHA256 088eee3bddb167c39985f2ba0f36ceeb6974f6cc375e6f08074489e9bd50258a c06-ldapv3-app-r1.jar 1234791 +MD5 c3dd2d7b10bcc9e834eb608a28d8d869 c06-ldapv3-enc-r1.jar 1149837 +RMD160 138fa6eb3c03afdc029eaca36376289f76218170 c06-ldapv3-enc-r1.jar 1149837 +SHA256 738361e331b083fe0892859bff1063d91590982c2f1458f6fbe422b571f518ca c06-ldapv3-enc-r1.jar 1149837 +MD5 8760a829ab70a5e69076509076b54307 c06-snmpv1-req-app-r1.jar 1998216 +RMD160 c9d1e359adb7f951dcc94befce76ebff0d6a4e67 c06-snmpv1-req-app-r1.jar 1998216 +SHA256 4263758a7a800be701235f74e8728717f4cee9e76b0692b6394ab00d8cb6a357 c06-snmpv1-req-app-r1.jar 1998216 +MD5 661ff02808cd0b907ba972c8e7f6b4bf c06-snmpv1-req-enc-r1.jar 3470574 +RMD160 405a700525313bf954bf6df5b51adba5f4cedde0 c06-snmpv1-req-enc-r1.jar 3470574 +SHA256 fd9eb35339e239185a72516399e4b3112dd6d262cde5fe306b06eac84ac72019 c06-snmpv1-req-enc-r1.jar 3470574 +MD5 4e8adf0444d96359ba0b80a21329b8a6 c06-snmpv1-trap-app-r1.jar 3099605 +RMD160 0d1fa361eacf047ecc6a02255ab56536b65825cb c06-snmpv1-trap-app-r1.jar 3099605 +SHA256 9937e21ba376be9d8e9d51694efc0cd9230aba81dec03ca959670be2871d656b c06-snmpv1-trap-app-r1.jar 3099605 +MD5 746341fe9fc912bfc96a75a09a91bcfa c06-snmpv1-trap-enc-r1.jar 1726726 +RMD160 7451479497559ab18a9df17dd8b61f9bf5a3423f c06-snmpv1-trap-enc-r1.jar 1726726 +SHA256 268892fad819918a977ff752b7568014cff16168bbb17bf9c4fc47867cdb3609 c06-snmpv1-trap-enc-r1.jar 1726726 +MD5 d1cb140fa50f08bf8b6b46c277371c3a c07-h2250v4-r2.jar 1321046 +RMD160 14e048fe2bdeb9768a46c883416e91cc2e4ed63e c07-h2250v4-r2.jar 1321046 +SHA256 d3160f0c44a43ce8af89ac42d7be11389d5c38f07e771e9992b55b3171fd66d8 c07-h2250v4-r2.jar 1321046 +MD5 8e4500a5d0e121115a300ce6402052b8 c07-sip-r2.jar 2247421 +RMD160 e35f7be28df495afd11d948946b4300e1ee3801e c07-sip-r2.jar 2247421 +SHA256 4cd5a14a9c333a5454d050e281869a6c3a4a41eefb939f8de4f9db33b5c68e15 c07-sip-r2.jar 2247421 +MD5 9e003c93cea92a86344f877f7585edbc c09-isakmp-r1.jar 9351708 +RMD160 2dd95f8afcd3a49a5721ae006258ab464c1cb0f1 c09-isakmp-r1.jar 9351708 +SHA256 7613d73e35b6400010117f20a0e6c9d80bbb62d60322a56c874ca1ac4f15770b c09-isakmp-r1.jar 9351708 diff --git a/app-fuzz/protos/files/protos b/app-fuzz/protos/files/protos new file mode 100644 index 000000000..775f4648a --- /dev/null +++ b/app-fuzz/protos/files/protos @@ -0,0 +1,64 @@ +#!/bin/sh + +SNMP_VER="r1" +HTTP_VER="r1" +H2250_VER="r2" +LDAP_VER="r1" +SIP_VER="r2" +ISAKMP_VER="r1" + +usage() +{ + echo "Usage : protos [options]" + echo "Where :" + echo -e "protocol = \thttp-reply" + echo -e "\t\tldapv3-(app|enc)" + echo -e "\t\tsnmpv1-(req|trap)-(app|enc)" + echo -e "\t\tsip" + echo -e "\t\th2250v4" + echo -e "\t\tisakmp" + echo -e "[options] = \tProtocol specific options" + echo -e "\t\t(try -h/--help)\n" +} + +CMD=`echo $@ | sed -e 's/'$1'//g'` +launch_jar() +{ + java -jar /opt/protos/$1.jar $CMD +} + +case $1 in + http-reply) + launch_jar c05-$1-${HTTP_VER} + ;; + ldapv3-app) + launch_jar c06-$1-${LDAP_VER} + ;; + ldapv3-enc) + launch_jar c06-$1-${LDAP_VER} + ;; + snmpv1-req-app) + launch_jar c06-$1-${SNMP_VER} + ;; + snmpv1-req-enc) + launch_jar c06-$1-${SNMP_VER} + ;; + snmpv1-trap-app) + launch_jar c06-$1-${SNMP_VER} + ;; + snmpv1-trap-enc) + launch_jar c06-$1-${SNMP_VER} + ;; + sip) + launch_jar c07-$1-${SIP_VER} + ;; + h2250v4) + launch_jar c07-$1-${H2250_VER} + ;; + isakmp) + launch_jar c09-$1-${ISAKMP_VER} + ;; + *) + usage + ;; +esac diff --git a/app-fuzz/protos/protos-1.0.ebuild b/app-fuzz/protos/protos-1.0.ebuild new file mode 100644 index 000000000..0bb017bdc --- /dev/null +++ b/app-fuzz/protos/protos-1.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/protos/protos-1.0.ebuild,v 1.1.1.1 2006/03/08 18:55:18 grimmlin Exp $ + +SNMP_VER="r1" +HTTP_VER="r1" +H2250_VER="r2" +LDAP_VER="r1" +SIP_VER="r2" +ISAKMP_VER="r1" + +DESCRIPTION="The protos fuzzing collection, containing http-reply, ldapv3, snmpv1, sip, h2250v4 and isakmp" +HOMEPAGE="http://www.ee.oulu.fi/research/ouspg/protos/" +SRC_URI="http? (http://www.ee.oulu.fi/research/ouspg/protos/testing/c05/http-reply/c05-http-reply-${HTTP_VER}.jar) + ldap? (http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/c06-ldapv3-enc-${LDAP_VER}.jar + http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/c06-ldapv3-app-${LDAP_VER}.jar) + snmp? (http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/snmpv1/c06-snmpv1-req-app-${SNMP_VER}.jar + http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/snmpv1/c06-snmpv1-req-enc-${SNMP_VER}.jar + http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/snmpv1/c06-snmpv1-trap-app-${SNMP_VER}.jar + http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/snmpv1/c06-snmpv1-trap-enc-${SNMP_VER}.jar) + sip? (http://www.ee.oulu.fi/research/ouspg/protos/testing/c07/sip/c07-sip-${SIP_VER}.jar) + h2250? (http://www.ee.oulu.fi/research/ouspg/protos/testing/c07/h2250v4/c07-h2250v4-${H2250_VER}.jar) + isakmp? (http://www.ee.oulu.fi/research/ouspg/protos/testing/c09/isakmp/c09-isakmp-${ISAKMP_VER}.jar)" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="http ldap snmp sip h2250 isakmp" + +DEPEND="virtual/jre" + +src_unpack () { + einfo "Nothing to unpack" + mkdir "${S}" +} + +src_compile () { + einfo "Nothing to compile" + einfo "Copying binary files" + for x in $A + do + cp "${DISTDIR}"/"${x}" "${S}"/ + done +} + +src_install () { + insinto /opt/protos/ + for x in $A + do + doins "${x}" + done + dosbin "${FILESDIR}"/protos +} diff --git a/app-fuzz/scapy/ChangeLog b/app-fuzz/scapy/ChangeLog new file mode 100644 index 000000000..8dc266788 --- /dev/null +++ b/app-fuzz/scapy/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/scapy +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /root/portage/app-fuzz/scapy/ChangeLog,v 1.1.1.1 2006/03/08 19:45:33 grimmlin Exp $ + +*scapy-1.0.3 (8 Mar 2006) + + Created a different ebuild to make it consistant across packages for app-fuzz + + custom tarball with pre-built fuzz diff --git a/app-fuzz/scapy/Manifest b/app-fuzz/scapy/Manifest new file mode 100644 index 000000000..1e0eddaf6 --- /dev/null +++ b/app-fuzz/scapy/Manifest @@ -0,0 +1,24 @@ +AUX ethertypes 1317 RMD160 296b88fed911b25398b5f657cd6bb5c91e72e288 SHA1 6ed0fe2446666876d77b8971fd8edf495a9c0be3 SHA256 e140071e462df8aab9f7b63a3965bf206797ecbcff334a3ec494256defe35dcb +MD5 94bffde8f75a1b8f891fb780bfe15ca2 files/ethertypes 1317 +RMD160 296b88fed911b25398b5f657cd6bb5c91e72e288 files/ethertypes 1317 +SHA256 e140071e462df8aab9f7b63a3965bf206797ecbcff334a3ec494256defe35dcb files/ethertypes 1317 +AUX scapy.tar.gz 1359 RMD160 e4ae7571e4ff29e6536ebd412649c5b8fd41af5b SHA1 272236aaa095ec7ace383f53baf8cd93b56a6b26 SHA256 ca288c69f8fcde69a4f6bc25ca1e74a18fe41367bfa31933e4badf6b58723c95 +MD5 25f13cc7e52a3f0c739aa845558fb9cd files/scapy.tar.gz 1359 +RMD160 e4ae7571e4ff29e6536ebd412649c5b8fd41af5b files/scapy.tar.gz 1359 +SHA256 ca288c69f8fcde69a4f6bc25ca1e74a18fe41367bfa31933e4badf6b58723c95 files/scapy.tar.gz 1359 +DIST scapy-1.0.4.tar.gz 132677 RMD160 2618548042f65b0d02461623fece93d4c2588959 SHA1 abe7cc242af4f20ef016557800e2e521c2e14a1b SHA256 340bebb26bbf8cb37bdbcfb7b8df9225ad384a0b3f0b33b55ca0b8ba6c9a3b02 +EBUILD scapy-1.0.4.ebuild 1570 RMD160 ef14acf0449357331b678bbae5a8a7688ee26c27 SHA1 130cd066a6fe5a6f2b41107e8b420bb41690fe65 SHA256 4ab3b9734fb52ed2d986bdca0c83da67f25832f98068e8012c39fd8cd5c9ed91 +MD5 1586b51e4af9b99de718ebbf43dda585 scapy-1.0.4.ebuild 1570 +RMD160 ef14acf0449357331b678bbae5a8a7688ee26c27 scapy-1.0.4.ebuild 1570 +SHA256 4ab3b9734fb52ed2d986bdca0c83da67f25832f98068e8012c39fd8cd5c9ed91 scapy-1.0.4.ebuild 1570 +MISC ChangeLog 345 RMD160 88911098f98940bf145532c9dba952794fbd8611 SHA1 f2d326c628b455157ce4cac4bbdad83ba9c9b53d SHA256 393b3748b422ed7ba6cd036a46b36e929e0f23603faf2342a0ce62a07622696b +MD5 c796df950e21a73712be0c1407c871e8 ChangeLog 345 +RMD160 88911098f98940bf145532c9dba952794fbd8611 ChangeLog 345 +SHA256 393b3748b422ed7ba6cd036a46b36e929e0f23603faf2342a0ce62a07622696b ChangeLog 345 +MISC metadata.xml 355 RMD160 688a1f9880c088ac5da974b5a3822b394a7451c3 SHA1 727498ee2bb84d7c13392f3fac0357423fe18f76 SHA256 162295dcb18fa7d4f77dbee062aa50203c6feeb46db8e47660c33e22882f1287 +MD5 c0cf59a965bb4c8fb3fba2080d854821 metadata.xml 355 +RMD160 688a1f9880c088ac5da974b5a3822b394a7451c3 metadata.xml 355 +SHA256 162295dcb18fa7d4f77dbee062aa50203c6feeb46db8e47660c33e22882f1287 metadata.xml 355 +MD5 21894ed6a266a35a04782da1fe906efa files/digest-scapy-1.0.4 235 +RMD160 6e39c10df5c7e513408a2cc6ddc73efb599fa3ca files/digest-scapy-1.0.4 235 +SHA256 82db20e23ec84cd8fc97d6b6327a10f8077f64e87f62e08c9a86f09716f0c85f files/digest-scapy-1.0.4 235 diff --git a/app-fuzz/scapy/files/digest-scapy-1.0.2 b/app-fuzz/scapy/files/digest-scapy-1.0.2 new file mode 100644 index 000000000..5a6fd694c --- /dev/null +++ b/app-fuzz/scapy/files/digest-scapy-1.0.2 @@ -0,0 +1 @@ +MD5 c4cac0a657079492710b31a6aed0672a scapy-1.0.2.tar.gz 104563 diff --git a/app-fuzz/scapy/files/digest-scapy-1.0.2-r1 b/app-fuzz/scapy/files/digest-scapy-1.0.2-r1 new file mode 100644 index 000000000..5a6fd694c --- /dev/null +++ b/app-fuzz/scapy/files/digest-scapy-1.0.2-r1 @@ -0,0 +1 @@ +MD5 c4cac0a657079492710b31a6aed0672a scapy-1.0.2.tar.gz 104563 diff --git a/app-fuzz/scapy/files/digest-scapy-1.0.3 b/app-fuzz/scapy/files/digest-scapy-1.0.3 new file mode 100644 index 000000000..1c961ab50 --- /dev/null +++ b/app-fuzz/scapy/files/digest-scapy-1.0.3 @@ -0,0 +1 @@ +MD5 bdc5247105312c61597d5c3e00dc1127 scapy-1.0.3.tar.gz 125145 diff --git a/app-fuzz/scapy/files/ethertypes b/app-fuzz/scapy/files/ethertypes new file mode 100644 index 000000000..5e700f663 --- /dev/null +++ b/app-fuzz/scapy/files/ethertypes @@ -0,0 +1,37 @@ +# +# Ethernet frame types +# This file describes some of the various Ethernet +# protocol types that are used on Ethernet networks. +# +# This list could be found on: +# http://www.iana.org/assignments/ethernet-numbers +# +# ... #Comment +# +IPv4 0800 ip ip4 # Internet IP (IPv4) +X25 0805 +ARP 0806 ether-arp # +FR_ARP 0808 # Frame Relay ARP [RFC1701] +BPQ 08FF # G8BPQ AX.25 Ethernet Packet +DEC 6000 # DEC Assigned proto +DNA_DL 6001 # DEC DNA Dump/Load +DNA_RC 6002 # DEC DNA Remote Console +DNA_RT 6003 # DEC DNA Routing +LAT 6004 # DEC LAT +DIAG 6005 # DEC Diagnostics +CUST 6006 # DEC Customer use +SCA 6007 # DEC Systems Comms Arch +TEB 6558 # Trans Ether Bridging [RFC1701] +RAW_FR 6559 # Raw Frame Relay [RFC1701] +AARP 80F3 # Appletalk AARP +ATALK 809B # Appletalk +802_1Q 8100 8021q 1q 802.1q dot1q # 802.1Q Virtual LAN tagged frame +IPX 8137 # Novell IPX +NetBEUI 8191 # NetBEUI +IPv6 86DD ip6 # IP version 6 +PPP 880B # PPP +ATMMPOA 884C # MultiProtocol over ATM +PPP_DISC 8863 # PPPoE discovery messages +PPP_SES 8864 # PPPoE session messages +ATMFATE 8884 # Frame-based ATM Transport over Ethernet +LOOP 9000 loopback # loop proto diff --git a/app-fuzz/scapy/files/scapy.tar.gz b/app-fuzz/scapy/files/scapy.tar.gz new file mode 100644 index 000000000..20929ed2c Binary files /dev/null and b/app-fuzz/scapy/files/scapy.tar.gz differ diff --git a/app-fuzz/scapy/metadata.xml b/app-fuzz/scapy/metadata.xml new file mode 100644 index 000000000..af9dff5d2 --- /dev/null +++ b/app-fuzz/scapy/metadata.xml @@ -0,0 +1,12 @@ + + + +netmon + +lcars@gentoo.org +Andrea Barisani + + +Scapy is a powerful interactive packet manipulation program. + + diff --git a/app-fuzz/scapy/scapy-1.0.4.ebuild b/app-fuzz/scapy/scapy-1.0.4.ebuild new file mode 100644 index 000000000..77409d6ed --- /dev/null +++ b/app-fuzz/scapy/scapy-1.0.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/scapy/scapy-1.0.3.ebuild,v 1.1.1.1 2006/03/08 19:45:33 grimmlin Exp $ + +inherit python + +DESCRIPTION="A Python interactive packet manipulation program for mastering the network" +HOMEPAGE="http://www.secdev.org/projects/scapy/" +SRC_URI="http://www.secdev.org/projects/scapy/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="gnuplot pyx crypt graphviz imagemagick" + +DEPEND="virtual/python + net-analyzer/tcpdump + gnuplot? ( dev-python/gnuplot-py ) + pyx? ( dev-python/pyx ) + crypt? ( dev-python/pycrypto ) + graphviz? ( media-gfx/graphviz ) + imagemagick? ( media-gfx/imagemagick )" + +src_install() { + exeinto /usr/bin + newexe scapy.py scapy + + # also install scapy as a importable python module + python_version + insinto /usr/$(get_libdir)/python${PYVER}/site-packages + doins scapy.py + + insinto /etc + doins ${FILESDIR}/ethertypes + dodoc AUTHORS COPYING README changelog.txt + doman scapy.1.* + } + +pkg_postinst() { + python_mod_optimize + + einfo "" + einfo "- Check http://www.secdev.org/projects/scapy/ for additional info" + einfo "" + einfo "- To subscribe to the mailing-list, send a mail to scapy.ml-subscribe(at)secdev.org" + einfo "- To send a mail to the mailing-list: scapy.ml(at)secdev.org" + einfo "- Web archive : http://news.gmane.org/gmane.comp.security.scapy.general" + einfo "- NNTP, RSS, etc : http://gmane.org/info.php?group=gmane.comp.security.scapy.general" + einfo "" +} + +pkg_postrm() { + python_mod_cleanup +} diff --git a/app-fuzz/sftf/Manifest b/app-fuzz/sftf/Manifest new file mode 100644 index 000000000..e08d71b77 --- /dev/null +++ b/app-fuzz/sftf/Manifest @@ -0,0 +1,3 @@ +MD5 b69be027c87721d3f8429fd5c5a8bdd4 files/digest-sftf-0.9.3 62 +MD5 09c11289cc8bb250d13ed5c1c1c73e6d files/sftf 38 +MD5 a2d19e3f43dd1661915a82bf7f139ca6 sftf-0.9.3.ebuild 636 diff --git a/app-fuzz/sftf/files/digest-sftf-0.9.3 b/app-fuzz/sftf/files/digest-sftf-0.9.3 new file mode 100644 index 000000000..d81d66eaf --- /dev/null +++ b/app-fuzz/sftf/files/digest-sftf-0.9.3 @@ -0,0 +1 @@ +MD5 757adc3faae218866963766e027d8aca SFTF-0.9.3.tar.gz 137057 diff --git a/app-fuzz/sftf/files/sftf b/app-fuzz/sftf/files/sftf new file mode 100644 index 000000000..3350bc5f0 --- /dev/null +++ b/app-fuzz/sftf/files/sftf @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/sftf/ +./SFTF.py $@ diff --git a/app-fuzz/sftf/sftf-0.9.3.ebuild b/app-fuzz/sftf/sftf-0.9.3.ebuild new file mode 100644 index 000000000..cdf77c67d --- /dev/null +++ b/app-fuzz/sftf/sftf-0.9.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuz/sftf/sftf-0.9.3.ebuild,v 1.1.1.1 2006/03/21 13:40:40 grimmlin Exp $ + +DESCRIPTION="SFTF is a SIP user agent fuzzer" +HOMEPAGE="http://www.sipfoundry.org/sftf/index.html" +MY_P="SFTF" +SRC_URI="http://www.sipfoundry.org/pub/${MY_P}/${MY_P}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${MY_P}-${PV} + +src_compile () { + einfo "Nothing to compile" +} + +src_install () { + insinto /opt/${PN}/ + insopts -m0755 + doins -r *.py BodyParser/ UserAgentBasicTestSuite/ HFH/ + dodoc TODO Docs/* UserAgentBasicTestSuite/case_template + dosbin "${FILESDIR}"/sftf +} diff --git a/app-fuzz/smtp-fuzz/Manifest b/app-fuzz/smtp-fuzz/Manifest new file mode 100644 index 000000000..dad0c343a --- /dev/null +++ b/app-fuzz/smtp-fuzz/Manifest @@ -0,0 +1,11 @@ +AUX smtp-fuzz.pl 7188 RMD160 e9791ab954005c79174baf4db86f3a670fb9feb1 SHA1 818059ecf7a6ecdcbcb4a5c86a12d4b7d026d594 SHA256 f80b3865f751817742d1d5a4aef01d00b5d6803f7473863eec65d9cd0a502f11 +MD5 5aa6430f23f1d78d15af47207d543f66 files/smtp-fuzz.pl 7188 +RMD160 e9791ab954005c79174baf4db86f3a670fb9feb1 files/smtp-fuzz.pl 7188 +SHA256 f80b3865f751817742d1d5a4aef01d00b5d6803f7473863eec65d9cd0a502f11 files/smtp-fuzz.pl 7188 +EBUILD smtp-fuzz-0.1.ebuild 395 RMD160 6871b23e8dd94c8737c597a802bb924ceffa9183 SHA1 a0f009276b0c7c7ed64bdc4f0842fb58a078431b SHA256 baf11e741a6361447e8783cfbe2083bb5b5268cc6a1f75e0f228bfe043954c79 +MD5 c28d467a78999116e88d26bb3f21571e smtp-fuzz-0.1.ebuild 395 +RMD160 6871b23e8dd94c8737c597a802bb924ceffa9183 smtp-fuzz-0.1.ebuild 395 +SHA256 baf11e741a6361447e8783cfbe2083bb5b5268cc6a1f75e0f228bfe043954c79 smtp-fuzz-0.1.ebuild 395 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-smtp-fuzz-0.1 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-smtp-fuzz-0.1 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-smtp-fuzz-0.1 0 diff --git a/app-fuzz/smtp-fuzz/files/digest-smtp-fuzz-0.1 b/app-fuzz/smtp-fuzz/files/digest-smtp-fuzz-0.1 new file mode 100644 index 000000000..e69de29bb diff --git a/app-fuzz/smtp-fuzz/files/smtp-fuzz.pl b/app-fuzz/smtp-fuzz/files/smtp-fuzz.pl new file mode 100644 index 000000000..b898d6a53 --- /dev/null +++ b/app-fuzz/smtp-fuzz/files/smtp-fuzz.pl @@ -0,0 +1,230 @@ +#!/usr/bin/perl +# +# smtpfuzz - small perl script to send some funny strings to +# SMTP servers +# +# Frank Berger, 08. Nov. 2003 +# License: GPL v 2.0 http://www.gnu.org/copyleft/gpl.html +# +# Please note: +# my perl script uses fuzzing strings researched by +# Dave Aitel (Immunity, Inc.) http://www.immunitysec.com/ +# check out SpikeProxy and Spike both use this fuzzing +# strings as well. +# I wrote this script because I don't know C very well, +# so I decided on this quick hack. +# + + +use IO::Socket; +my ($host, $port, $kidpid, $handle, $line); + +# ATTENTION!!! +# please make sure that you do not forward mails to outside +# internet servers! you may want to disconnect your test lab +# from outgoing internet connections during fuzzing! And clean +# up the mail queues before going back online! +# +# array of strings with valid values for SMTP +# From: foo@a.de +# To: TO@b.de +# Body: sometext +# +@mastervar = ('w0001.berger.com','foo','example.com','frank','berger.com','sometext'); + +unless (@ARGV == 2) { die "usage: $0 host port" } +($host, $port) = @ARGV; + +# +# generates an stack of strings which are used for fuzzing +# +sub generate { + $master = shift; # we will use this value for mutations, like "foo", "foo;", "foo'"... +# @fuzz_stack = (); + push @fuzz_stack, shift; + + # lets start with mutations + push @fuzz_stack, $master."'"; + push @fuzz_stack, $master."\""; + push @fuzz_stack, $master.";"; + push @fuzz_stack, "(".$master.")"; + + # values found in SpikeProxy from http://www.immunitysec.com/ + +#--- + my @fuzzcharacters = ("A","1","\"",".","<","%","%n"); + my $maxchars=5000; + foreach my $fchar (@fuzzcharacters) { + my $i=1; + while( $i < ($maxchars/length($fchar)) ) { + #a small selection of fuzz characters + push @fuzz_stack, ($fchar x $i); + push @fuzz_stack, $fchar x ($i-1); + push @fuzz_stack, $fchar x ($i+1); + push @fuzz_stack, $fchar x ($i+1024); + $i *= 2; + } + } + + push @fuzz_stack, "../../../../../../../../../../../../etc/hosts%00"; + push @fuzz_stack, "../../../../../../../../../../../../etc/hosts"; + push @fuzz_stack, "../../../../../../../../../../../../etc/passwd%00"; + push @fuzz_stack, "../../../../../../../../../../../../etc/passwd"; + push @fuzz_stack, "../../../../../../../../../../../../etc/shadow%00"; + push @fuzz_stack, "../../../../../../../../../../../../etc/shadow"; + push @fuzz_stack, "../../../../../../../../../../../../boot.ini%00"; + push @fuzz_stack, "../../../../../../../../../../../../boot.ini"; + push @fuzz_stack, "../../../../../../../../../../../../localstart.asp%00"; + push @fuzz_stack, "../../../../../../../../../../../../localstart.asp"; + push @fuzz_stack, "%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%00"; + push @fuzz_stack, "%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%255cboot.ini"; + push @fuzz_stack, "/%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%00"; + push @fuzz_stack, "/%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..%25%5c..winnt/desktop.ini"; + + push @fuzz_stack, "65536"; + push @fuzz_stack, "0xfffffff"; + push @fuzz_stack, "268435455"; + push @fuzz_stack, "1"; + push @fuzz_stack, "\0"; # hehe, something wrong with this one in perl !? :-( + push @fuzz_stack, "-1"; + push @fuzz_stack, "-268435455"; + push @fuzz_stack, "-20"; + push @fuzz_stack, "1;SELECT%20*"; + push @fuzz_stack, "'sqlattempt1"; + push @fuzz_stack, "(sqlattempt2)"; + push @fuzz_stack, "OR%201=1"; + push @fuzz_stack, ";read;"; + push @fuzz_stack, ";netstat -a;"; + #postnuke issue - just a backslash + push @fuzz_stack, "\\"; + push @fuzz_stack, "%5c"; + #backslash then forwardslash + push @fuzz_stack, "\\/"; + push @fuzz_stack, "%5c/"; + #causes all sorts of problems + push @fuzz_stack, "\nnetstat -a%\n"; + push @fuzz_stack, "\"hihihi"; + + push @fuzz_stack, "|dir"; + push @fuzz_stack, "|ls"; + push @fuzz_stack, "|/bin/ls -al"; + push @fuzz_stack, "\n/bin/ls -al\n"; + push @fuzz_stack, "+%00"; + push @fuzz_stack, "%20$(sleep%2050)"; + push @fuzz_stack, "%20'sleep%2050'"; + push @fuzz_stack, "!@#$%%^#$%#$@#$%$$@#$%^^**(()"; + push @fuzz_stack, "%01%02%03%04%0a%0d%0aADSF"; + push @fuzz_stack, "Bob's%20Foot"; + push @fuzz_stack, "alert('XSS')"; +#--- +} + +# +# open the TCP connection (copy n paste is great! :-) +# +sub fuzz_connect { + # create a tcp connection to the specified host and port + $handle = IO::Socket::INET->new(Proto => "tcp", + PeerAddr => $host, + PeerPort => $port) + or die "can't connect to port $port on $host: $!"; + + $handle->autoflush(1); # so output gets there right away + print STDERR "[Connected to $host:$port]\n"; +} + +# +# read the response... when the remote server is not responding we +# should run into the timeout, but I haven't checked the timeout +# function... (just copy n paste again :-) +# +sub read_response { + eval { + local $SIG{ALRM} = sub { die "alarm\n" }; # NB: \n required + alarm 10; + + $line = readline($handle); + + alarm 0; + }; + if ($@) { + die unless $@ eq "alarm\n"; # propagate unexpected errors + # timed out + } + else { + # didn't + } +} + +# +# validate the response line and against an given status code +# +sub validate_response { + my $status = shift; + if($line =~ /^$status/) { print("OK: ".$line); } + else { print("SMTP error\n"); return 0; }; +} + +# +# a sequence of one SMTP chat (sending one mail) +# +sub fuzzer_run { + print "-------------->\n"; + foreach $item (@_) { + print $item . ","; + } + print "\n"; + + fuzz_connect(); + + read_response(); + if(!validate_response("220")) { return 0; } + + print $handle 'HELO ' . shift() . "\n"; + read_response(); + if(!validate_response("250")) { return 0; } + + print $handle 'MAIL FROM:<' . shift() . '@' . shift() . ">\n"; + read_response(); + if(!validate_response("250")) { return 0; } + + print $handle 'RCPT TO:<' . shift() . '@' . shift() . ">\n"; + read_response(); + if(!validate_response("250")) { return 0; } + + print $handle "data\n"; + read_response(); + if(!validate_response("354")) { return 0; } + + print $handle shift() . "\n"; + print $handle ".\n"; + read_response(); + if(!validate_response("250")) { return 0; } + + print $handle "QUIT\n"; +} + +# +# the main loop +# + +for(my $j=0; $j<@mastervar; $j++) { + if(!$j) { + generate($mastervar[$j],$mastervar[$j]); + } + else { + generate($mastervar[$j]); + } + + while($fuzz = pop @fuzz_stack) { + @myvar = @mastervar; + $myvar[$j] = $fuzz; +# print $fuzz . "\n"; +# foreach $item (@myvar) { +# print $item . ","; +# } +# print "\n"; + fuzzer_run(@myvar); + } + print "---\n"; +} diff --git a/app-fuzz/smtp-fuzz/smtp-fuzz-0.1.ebuild b/app-fuzz/smtp-fuzz/smtp-fuzz-0.1.ebuild new file mode 100644 index 000000000..babbad405 --- /dev/null +++ b/app-fuzz/smtp-fuzz/smtp-fuzz-0.1.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/smtp-fuzz/smtp-fuzz-0.1.ebuild,v 1.1.1.1 2006/03/08 21:22:06 grimmlin Exp $ + +DESCRIPTION="A smtp fuzzer" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="" + +src_install() { + newbin "${FILESDIR}"/"${PN}".pl "${PN}" +} diff --git a/app-fuzz/smudge/ChangeLog b/app-fuzz/smudge/ChangeLog new file mode 100644 index 000000000..8c90daac0 --- /dev/null +++ b/app-fuzz/smudge/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/scapy +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /root/portage/app-fuzz/smudge/ChangeLog,v 1.1.1.1 2006/03/13 21:06:24 grimmlin Exp $ + +*scapy-1.0.3 (8 Mar 2006) + + Created a different ebuild to make it consistant across packages for app-fuzz + + custom tarball with pre-built fuzz diff --git a/app-fuzz/smudge/Manifest b/app-fuzz/smudge/Manifest new file mode 100644 index 000000000..b74a0c513 --- /dev/null +++ b/app-fuzz/smudge/Manifest @@ -0,0 +1,20 @@ +AUX smudge 44 RMD160 72b827eefddbd1819584b0659a33b87f8715f56d SHA1 9ceffbe81473317438120071146cd62b09cae89a SHA256 51cc2aad3d3f60e4134223f15a6900f338743c411e9051e0be478d796ea6f1e8 +MD5 9062b34fbc5a9f8959d1d2470d52be62 files/smudge 44 +RMD160 72b827eefddbd1819584b0659a33b87f8715f56d files/smudge 44 +SHA256 51cc2aad3d3f60e4134223f15a6900f338743c411e9051e0be478d796ea6f1e8 files/smudge 44 +DIST smudge.tar.gz 31350 RMD160 9be820d3b1c8ed4c4971b6a4ca8cfda8dcf0c16f SHA1 279ad1aad77b3639a6d0acdf616b5f1ce0bb788b SHA256 07ad91a612c6a33b614002efa14632bf44d0b6986448c22dfed97fb2102dc23b +EBUILD smudge-0.8.ebuild 1009 RMD160 2d9e027ab060db3b623b2c82ef9558b0eaee35f3 SHA1 1a21cedcad185d27c38888dda8d3b5aaed1b2f93 SHA256 f80d6559b32c56a3ab47ea00dcc22c1fb8042e4f97add2869e20bd33dc0d9edd +MD5 d9a4cbb0071b38614fde220a68c4a6da smudge-0.8.ebuild 1009 +RMD160 2d9e027ab060db3b623b2c82ef9558b0eaee35f3 smudge-0.8.ebuild 1009 +SHA256 f80d6559b32c56a3ab47ea00dcc22c1fb8042e4f97add2869e20bd33dc0d9edd smudge-0.8.ebuild 1009 +MISC ChangeLog 346 RMD160 1954103c27368881cf85051ae7f25cc5b8aa8d27 SHA1 bf793993b17edd84b44e11f67dd9df0f54d0e62c SHA256 5b24584262f21d5e4dad07c524524c4af22e8aaf82768f5609e0b1cc4b10e343 +MD5 c8a095dfad0578aaaf44d9d5a3307d73 ChangeLog 346 +RMD160 1954103c27368881cf85051ae7f25cc5b8aa8d27 ChangeLog 346 +SHA256 5b24584262f21d5e4dad07c524524c4af22e8aaf82768f5609e0b1cc4b10e343 ChangeLog 346 +MISC metadata.xml 355 RMD160 688a1f9880c088ac5da974b5a3822b394a7451c3 SHA1 727498ee2bb84d7c13392f3fac0357423fe18f76 SHA256 162295dcb18fa7d4f77dbee062aa50203c6feeb46db8e47660c33e22882f1287 +MD5 c0cf59a965bb4c8fb3fba2080d854821 metadata.xml 355 +RMD160 688a1f9880c088ac5da974b5a3822b394a7451c3 metadata.xml 355 +SHA256 162295dcb18fa7d4f77dbee062aa50203c6feeb46db8e47660c33e22882f1287 metadata.xml 355 +MD5 f204c10b9dd59e86b730aed492381e1d files/digest-smudge-0.8 217 +RMD160 84ec1d5df3ff0ae16ba07f5f9073edfe5f2c2fc7 files/digest-smudge-0.8 217 +SHA256 29cdd4bf880978bdeba7c08249515fe5b017196808be99bc3f99954e1e260568 files/digest-smudge-0.8 217 diff --git a/app-fuzz/smudge/files/digest-smudge-0.8 b/app-fuzz/smudge/files/digest-smudge-0.8 new file mode 100644 index 000000000..9ecc69c0d --- /dev/null +++ b/app-fuzz/smudge/files/digest-smudge-0.8 @@ -0,0 +1,3 @@ +MD5 296e287026a6347c805461f3c38f3adf smudge.tar.gz 31350 +RMD160 9be820d3b1c8ed4c4971b6a4ca8cfda8dcf0c16f smudge.tar.gz 31350 +SHA256 07ad91a612c6a33b614002efa14632bf44d0b6986448c22dfed97fb2102dc23b smudge.tar.gz 31350 diff --git a/app-fuzz/smudge/files/smudge b/app-fuzz/smudge/files/smudge new file mode 100644 index 000000000..6a66f22d1 --- /dev/null +++ b/app-fuzz/smudge/files/smudge @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/smudge/ +./SMUDGE.py "$@" diff --git a/app-fuzz/smudge/metadata.xml b/app-fuzz/smudge/metadata.xml new file mode 100644 index 000000000..af9dff5d2 --- /dev/null +++ b/app-fuzz/smudge/metadata.xml @@ -0,0 +1,12 @@ + + + +netmon + +lcars@gentoo.org +Andrea Barisani + + +Scapy is a powerful interactive packet manipulation program. + + diff --git a/app-fuzz/smudge/smudge-0.8.ebuild b/app-fuzz/smudge/smudge-0.8.ebuild new file mode 100644 index 000000000..2cb95a406 --- /dev/null +++ b/app-fuzz/smudge/smudge-0.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/smudge/smudge-0.8.ebuild,v 1.1.1.1 2006/03/13 21:06:24 grimmlin Exp $ + +inherit distutils python + +DESCRIPTION="Smudge is basically a port of SPIKE into python scripts" +HOMEPAGE="http://www.pentoo.ch/" +SRC_URI="http://www.pentoo.ch/distfiles/${PN}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="virtual/python" +S=${WORKDIR}/${PN} + +PYTHON_MODNAME="SMUDGE" +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + # also install smudge as a importable python module + python_version + insinto /usr/$(get_libdir)/python${PYVER}/site-packages/ + doins *.py + + insinto /opt/smudge/ + dodir /opt/smudge/logs/ + insopts -m0755 + doins *.py + insopts -m0644 + insinto /opt/smudge/misc + doins -r misc/* + dosbin ${FILESDIR}/${PN} + dodoc COPYING.txt CHANGELOG.txt README.txt + } + +pkg_postinst() { + python_mod_optimize +} + +pkg_postrm() { + python_mod_cleanup +} diff --git a/app-fuzz/snmp-fuzzer/Manifest b/app-fuzz/snmp-fuzzer/Manifest new file mode 100644 index 000000000..df24bb51d --- /dev/null +++ b/app-fuzz/snmp-fuzzer/Manifest @@ -0,0 +1,12 @@ +AUX snmp-fuzzer 54 RMD160 f5ed2a5e13e53bbd02bddc1513f07c2590de7134 SHA1 5fdfb2e41f70ed3a4a5dfeb11ae819c8f97adf25 SHA256 8a397c6528cfe9ca845752c357f239b051ee2b7ef80d2e115207eea361aa6f15 +MD5 b88af880445a4223640161af02e8dd91 files/snmp-fuzzer 54 +RMD160 f5ed2a5e13e53bbd02bddc1513f07c2590de7134 files/snmp-fuzzer 54 +SHA256 8a397c6528cfe9ca845752c357f239b051ee2b7ef80d2e115207eea361aa6f15 files/snmp-fuzzer 54 +DIST snmp-fuzzer-0.1.1.tar.gz 2685616 RMD160 dc658d4a53eea546980aba005ccaa03229b40da9 SHA1 154eac6169c483d47159447ad4473c6c124ce3ed SHA256 55e33ac8af1d4a4b66bff4c593ee8971d86c6329a75d942da35f0ca164772127 +EBUILD snmp-fuzzer-0.1.1.ebuild 650 RMD160 808a492416bc1240f11ae90283d7631d0ebfa45e SHA1 09a26427f0e2f568b26a48e0c0f0f2d8a57f9520 SHA256 d83b33f31ddaea1bde212a012722d09659d22112fc34ce5e0395d454af963882 +MD5 44087ed963f53110e3c978e65d60aacb snmp-fuzzer-0.1.1.ebuild 650 +RMD160 808a492416bc1240f11ae90283d7631d0ebfa45e snmp-fuzzer-0.1.1.ebuild 650 +SHA256 d83b33f31ddaea1bde212a012722d09659d22112fc34ce5e0395d454af963882 snmp-fuzzer-0.1.1.ebuild 650 +MD5 7ec6569151a2c6995e1cc9b3d12f0939 files/digest-snmp-fuzzer-0.1.1 256 +RMD160 5278753ca4659f64b36a42ba02ef9ed6ab79ece0 files/digest-snmp-fuzzer-0.1.1 256 +SHA256 95701c6d74a85cd7d85afc8fccfa366db5c834b697fb3367bb633c1b3c65c7ec files/digest-snmp-fuzzer-0.1.1 256 diff --git a/app-fuzz/snmp-fuzzer/files/digest-snmp-fuzzer-0.1.1 b/app-fuzz/snmp-fuzzer/files/digest-snmp-fuzzer-0.1.1 new file mode 100644 index 000000000..c8c9c850c --- /dev/null +++ b/app-fuzz/snmp-fuzzer/files/digest-snmp-fuzzer-0.1.1 @@ -0,0 +1,3 @@ +MD5 f79414f65f4898ab8f0fae409dcbb970 snmp-fuzzer-0.1.1.tar.gz 2685616 +RMD160 dc658d4a53eea546980aba005ccaa03229b40da9 snmp-fuzzer-0.1.1.tar.gz 2685616 +SHA256 55e33ac8af1d4a4b66bff4c593ee8971d86c6329a75d942da35f0ca164772127 snmp-fuzzer-0.1.1.tar.gz 2685616 diff --git a/app-fuzz/snmp-fuzzer/files/snmp-fuzzer b/app-fuzz/snmp-fuzzer/files/snmp-fuzzer new file mode 100644 index 000000000..e27033d17 --- /dev/null +++ b/app-fuzz/snmp-fuzzer/files/snmp-fuzzer @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/snmp-fuzzer/ +perl snmpfuzz.pl "$@" diff --git a/app-fuzz/snmp-fuzzer/snmp-fuzzer-0.1.1.ebuild b/app-fuzz/snmp-fuzzer/snmp-fuzzer-0.1.1.ebuild new file mode 100644 index 000000000..a87246e6b --- /dev/null +++ b/app-fuzz/snmp-fuzzer/snmp-fuzzer-0.1.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/app-fuzz/snmp-fuzzer/snmp-fuzzer-0.1.1.ebuild,v 1.1.1.1 2006/03/09 22:54:57 grimmlin Exp $ + +DESCRIPTION="A very complete snmp fuzzer" +HOMEPAGE="http://www.arhont.com/" +SRC_URI="http://www.pentoo.ch/distfiles/snmp-fuzzer-0.1.1.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" + +src_compile () { + einfo "Nothing to compile" +} + +src_install () { + dodoc README.txt TODO CHANGELOG.txt + rm README.txt TODO CHANGELOG.txt LICENSE.TXT + insinto /opt/snmp-fuzzer/ + doins -r * + dosbin "${FILESDIR}"/snmp-fuzzer +} diff --git a/app-misc/gpsdrive/Manifest b/app-misc/gpsdrive/Manifest new file mode 100644 index 000000000..ddfa2bb1a --- /dev/null +++ b/app-misc/gpsdrive/Manifest @@ -0,0 +1,8 @@ +DIST gpsdrive-2.09.tar.gz 1745509 RMD160 772dd76e7656a69e59a23f06a0d2fcb08607153a SHA1 cbf3db19b3b3fb496a1255ef67d7de5bdeffd70c SHA256 fe8ef35c86df9ab7c8dfb1a8b8155fbeeacd8693ae867f0f10f79f14b7dc6f98 +EBUILD gpsdrive-2.09.ebuild 645 RMD160 81cc3863518e60d60e9407899908d3464f8e1b36 SHA1 d06bdbaf92008b98b5a23738f33924bf495c8eb1 SHA256 0f748e13f4f6a24d05eadbe13eeb9c207a964614167f06aad7b1846ae8a7a0b1 +MD5 7768cccef3570d35ad2d9c8f666cd222 gpsdrive-2.09.ebuild 645 +RMD160 81cc3863518e60d60e9407899908d3464f8e1b36 gpsdrive-2.09.ebuild 645 +SHA256 0f748e13f4f6a24d05eadbe13eeb9c207a964614167f06aad7b1846ae8a7a0b1 gpsdrive-2.09.ebuild 645 +MD5 b43fef35b3982b3c9264ff4c6389c58c files/digest-gpsdrive-2.09 244 +RMD160 1f558a871b154802d1b25720e6ced83dc3d8d740 files/digest-gpsdrive-2.09 244 +SHA256 17465128bd76a9cf8b4f3ab8b5706bec6e92053a2275c2633710f186afbd42c3 files/digest-gpsdrive-2.09 244 diff --git a/app-misc/gpsdrive/files/digest-gpsdrive-2.09 b/app-misc/gpsdrive/files/digest-gpsdrive-2.09 new file mode 100644 index 000000000..1ec064cf0 --- /dev/null +++ b/app-misc/gpsdrive/files/digest-gpsdrive-2.09 @@ -0,0 +1,3 @@ +MD5 eaa52cb220f3d10312a1046dd47126bb gpsdrive-2.09.tar.gz 1745509 +RMD160 772dd76e7656a69e59a23f06a0d2fcb08607153a gpsdrive-2.09.tar.gz 1745509 +SHA256 fe8ef35c86df9ab7c8dfb1a8b8155fbeeacd8693ae867f0f10f79f14b7dc6f98 gpsdrive-2.09.tar.gz 1745509 diff --git a/app-misc/gpsdrive/gpsdrive-2.09.ebuild b/app-misc/gpsdrive/gpsdrive-2.09.ebuild new file mode 100644 index 000000000..450ab90d2 --- /dev/null +++ b/app-misc/gpsdrive/gpsdrive-2.09.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.09.ebuild,v 1.8 2005/04/06 19:31:42 luckyduck Exp $ + +DESCRIPTION="displays GPS position on a map" +HOMEPAGE="http://gpsdrive.kraftvoll.at" +SRC_URI="http://gpsdrive.kraftvoll.at/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ppc amd64" + +IUSE="nls" +DEPEND="sys-devel/gettext + >=x11-libs/gtk+-2.0 + >=dev-libs/libpcre-4.2" + +src_compile() { + econf `use_enable nls` || die "econf failed" + emake || die "compile failed" +} + +src_install() { + make DESTDIR=${D} install || die +} diff --git a/dev-db/absinthe/Manifest b/dev-db/absinthe/Manifest new file mode 100644 index 000000000..f8b2d6045 --- /dev/null +++ b/dev-db/absinthe/Manifest @@ -0,0 +1,12 @@ +AUX absinthe 49 RMD160 d658b6897b0051fe1a1451131e1e1c224662ee05 SHA1 2f1a3effb11a3ff9174dfe26708ff21351d8d7c8 SHA256 4e2d5171078b023aded7db5abbe657fd398c3de72168176e5ba6f637de9c889f +MD5 7ec36d5749fece56f9ff336a0c5d72c7 files/absinthe 49 +RMD160 d658b6897b0051fe1a1451131e1e1c224662ee05 files/absinthe 49 +SHA256 4e2d5171078b023aded7db5abbe657fd398c3de72168176e5ba6f637de9c889f files/absinthe 49 +DIST Absinthe-1.4.1-Linux.tar.gz 3025797 RMD160 f11a2c57a1ed4672c91d846b283323c250bd72a8 SHA1 c0df5496f420cf3c7ee701928a9be03ebae03222 SHA256 30b2ea963a7fadea1097130c54ddf60e8e0318584201d653510ac6b587d88ccb +EBUILD absinthe-1.4.1.ebuild 1012 RMD160 3f1854622a0bd13e40ac19f84144b3aad6866d95 SHA1 84b8989cfd2cb337d855c2632990c92ab77554c7 SHA256 e09539c5660cb9f21977529612bb7148ae5c254595a2df994ee346d795269a36 +MD5 5f04d13752e4fd421927edc7f17d638d absinthe-1.4.1.ebuild 1012 +RMD160 3f1854622a0bd13e40ac19f84144b3aad6866d95 absinthe-1.4.1.ebuild 1012 +SHA256 e09539c5660cb9f21977529612bb7148ae5c254595a2df994ee346d795269a36 absinthe-1.4.1.ebuild 1012 +MD5 77a3805d26590343ec5ef583323da68a files/digest-absinthe-1.4.1 265 +RMD160 f1e8db4438afdd12d1a0e92e099787e54cdf682f files/digest-absinthe-1.4.1 265 +SHA256 3f22531fc8ec51c30c571b657421070eb32b80d1929fd21c36ac53b4ce5089af files/digest-absinthe-1.4.1 265 diff --git a/dev-db/absinthe/absinthe-1.4.1.ebuild b/dev-db/absinthe/absinthe-1.4.1.ebuild new file mode 100644 index 000000000..8b0fd33ce --- /dev/null +++ b/dev-db/absinthe/absinthe-1.4.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/absinthe/absinthe-1.4.1.ebuild,v 1.1.1.1 2006/03/02 00:53:51 grimmlin Exp $ + +inherit mono + +MY_P=Absinthe-${PV}-Linux +DESCRIPTION="Absinthe is a gui-based tool that automates the process of downloading the schema & contents of a database that is vulnerable to Blind SQL Injection." +HOMEPAGE="http://www.0x90.org/releases/absinthe/" +SRC_URI="http://www.0x90.org/releases/absinthe/${MY_P}.tar.gz" + +LICENSE="|| ( GPL-2 BSD )" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND=">=dev-lang/mono-1 + =dev-dotnet/wxnet-0.7.2" + +S=${WORKDIR}/${MY_P} + +src_compile() { + einfo "Nothing to compile" + ewarn "We are using the binary dist of absinthe," + ewarn "You can expect breakage..." +} + +src_install() { + dodir /usr/lib/"${PN}" + rm "${S}"/bin/Absinthe.ico "${S}"/bin/wxNET.tar "${S}"/bin/runabsinthe.sh + cp -R "${S}"/bin/* "${D}"/usr/lib/"${PN}" + dobin ${FILESDIR}/absinthe + dodoc README +} diff --git a/dev-db/absinthe/files/absinthe b/dev-db/absinthe/files/absinthe new file mode 100644 index 000000000..15a928946 --- /dev/null +++ b/dev-db/absinthe/files/absinthe @@ -0,0 +1,3 @@ +#!/bin/bash + +mono /usr/lib/absinthe/Absinthe.exe diff --git a/dev-db/absinthe/files/digest-absinthe-1.4.1 b/dev-db/absinthe/files/digest-absinthe-1.4.1 new file mode 100644 index 000000000..0e07d55ba --- /dev/null +++ b/dev-db/absinthe/files/digest-absinthe-1.4.1 @@ -0,0 +1,3 @@ +MD5 09cf527031ff7487bcab6d31ecfad0c1 Absinthe-1.4.1-Linux.tar.gz 3025797 +RMD160 f11a2c57a1ed4672c91d846b283323c250bd72a8 Absinthe-1.4.1-Linux.tar.gz 3025797 +SHA256 30b2ea963a7fadea1097130c54ddf60e8e0318584201d653510ac6b587d88ccb Absinthe-1.4.1-Linux.tar.gz 3025797 diff --git a/dev-db/mssqlscan/Manifest b/dev-db/mssqlscan/Manifest new file mode 100644 index 000000000..fa21deccc --- /dev/null +++ b/dev-db/mssqlscan/Manifest @@ -0,0 +1,12 @@ +AUX mssqlscan-path.patch 209 RMD160 b133eaea990433280bff1fc0f787b70cd7ad3e03 SHA1 fd6c0a7c43a655c9b190a1f7a438c28728f48d93 SHA256 65361b1b7437d01977fb38d17602c13049fe512b5a9a32c2805cf589e8856146 +MD5 0e53a3b6488fefa1f774389b4ebe11dc files/mssqlscan-path.patch 209 +RMD160 b133eaea990433280bff1fc0f787b70cd7ad3e03 files/mssqlscan-path.patch 209 +SHA256 65361b1b7437d01977fb38d17602c13049fe512b5a9a32c2805cf589e8856146 files/mssqlscan-path.patch 209 +DIST mssqlscan-bin-0_6.zip 70070 RMD160 ada84e7a29af3455079c1e6c7b9ec87a75165179 SHA1 205c72bdf3a442aa06a50d9d121f8d53d50c463d SHA256 946f5d80eb0ea20cdfe0f0d6e37f86b7151cc1392591213516fe8dc5b6885d25 +EBUILD mssqlscan-0.6.ebuild 705 RMD160 e41ea0d6fac285dd9261b5496e9f78f299642f1d SHA1 bf61abda4aa9a64248e1853c2d936d424f46752c SHA256 54838b5dbaefc9839051fdd78f0ff7aadc6a4f849ae89f74585f143e56069833 +MD5 c4c7b38501326e11faa5a3c9ad526900 mssqlscan-0.6.ebuild 705 +RMD160 e41ea0d6fac285dd9261b5496e9f78f299642f1d mssqlscan-0.6.ebuild 705 +SHA256 54838b5dbaefc9839051fdd78f0ff7aadc6a4f849ae89f74585f143e56069833 mssqlscan-0.6.ebuild 705 +MD5 a948b5f51321bbf694e72ce3b5d73565 files/digest-mssqlscan-0.6 241 +RMD160 99630cd15ca3d51d2f35a03fd752178bceee4a73 files/digest-mssqlscan-0.6 241 +SHA256 43657d9a0ed0ed146316fd2f73520b88ca466ad8748d0e85aa1accb93cb71490 files/digest-mssqlscan-0.6 241 diff --git a/dev-db/mssqlscan/files/digest-mssqlscan-0.6 b/dev-db/mssqlscan/files/digest-mssqlscan-0.6 new file mode 100644 index 000000000..58d836a2b --- /dev/null +++ b/dev-db/mssqlscan/files/digest-mssqlscan-0.6 @@ -0,0 +1,3 @@ +MD5 5a2792e7e8c8177bec3845bd373bb78a mssqlscan-bin-0_6.zip 70070 +RMD160 ada84e7a29af3455079c1e6c7b9ec87a75165179 mssqlscan-bin-0_6.zip 70070 +SHA256 946f5d80eb0ea20cdfe0f0d6e37f86b7151cc1392591213516fe8dc5b6885d25 mssqlscan-bin-0_6.zip 70070 diff --git a/dev-db/mssqlscan/files/mssqlscan-path.patch b/dev-db/mssqlscan/files/mssqlscan-path.patch new file mode 100644 index 000000000..3f26bb2c5 --- /dev/null +++ b/dev-db/mssqlscan/files/mssqlscan-path.patch @@ -0,0 +1,6 @@ +--- mssqlscan.sh.orig 2007-10-17 22:53:02.000000000 +0000 ++++ mssqlscan.sh 2008-02-01 01:01:23.000000000 +0000 +@@ -1,2 +1,3 @@ + #!/bin/sh ++cd /usr/lib/mssqlscan/ + java -cp bin/*:lib/*:. net.cqure.MSSQLScan $* diff --git a/dev-db/mssqlscan/mssqlscan-0.6.ebuild b/dev-db/mssqlscan/mssqlscan-0.6.ebuild new file mode 100644 index 000000000..860037c25 --- /dev/null +++ b/dev-db/mssqlscan/mssqlscan-0.6.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/sqlat/sqlat-1.1.0.ebuild,v 1.1.1.1 2006/02/27 20:03:41 grimmlin Exp $ + +inherit eutils +DESCRIPTION="A small multi-threaded tool that scans for Microsoft SQL Servers" +HOMEPAGE="http://www.cqure.net/wp/?page_id=58" +SRC_URI="http://www.cqure.net/tools/${PN}-bin-0_6.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +S="${WORKDIR}" +DEPEND="virtual/jre" + +src_compile(){ + einfo "Nothing to compile" + epatch "${FILESDIR}"/"${PN}"-path.patch +} +src_install () { + # dodir /usr/lib/"${PN}" + insinto /usr/lib/"${PN}" + doins -r bin lib + newbin mssqlscan.sh mssqlscan +} diff --git a/dev-db/oat/Manifest b/dev-db/oat/Manifest new file mode 100644 index 000000000..da4714cc1 --- /dev/null +++ b/dev-db/oat/Manifest @@ -0,0 +1,12 @@ +AUX oat-path.patch 1968 RMD160 9985cc3dc9103a35936e96d17ccdb73391b82a65 SHA1 89b172f8fb07938b74655d6d495b8a2b1ffd441c SHA256 00d9a1b106ca81d35ee62ce9fdc60439c75dae8878fe2700eb722255a5b281a6 +MD5 e3136627ff0bf5275c6352000adcbd9e files/oat-path.patch 1968 +RMD160 9985cc3dc9103a35936e96d17ccdb73391b82a65 files/oat-path.patch 1968 +SHA256 00d9a1b106ca81d35ee62ce9fdc60439c75dae8878fe2700eb722255a5b281a6 files/oat-path.patch 1968 +DIST oat-binary-1.3.1.zip 162398 RMD160 21fdd1bec8c6f836926a5c80fa418e59c9f6f558 SHA1 1cf60a996bf32258beda0a9c4bba20ea0acf2318 SHA256 664d540b268f46a184ed71ca024f177bad89e83f19450f37c512749a93b93a1d +EBUILD oat-1.3.1.ebuild 761 RMD160 02b7790bdc4ca6b480c51bc429d8188baadc093c SHA1 c142bc3b6d426790cd0082271f3534c94f9b506a SHA256 46c0c19e8c6569f5aa127f9c17f2bc22b9ba922ee83fac709ab494fb9229ae75 +MD5 f62885c5016637a5e579d087e08a4404 oat-1.3.1.ebuild 761 +RMD160 02b7790bdc4ca6b480c51bc429d8188baadc093c oat-1.3.1.ebuild 761 +SHA256 46c0c19e8c6569f5aa127f9c17f2bc22b9ba922ee83fac709ab494fb9229ae75 oat-1.3.1.ebuild 761 +MD5 01db1bb03d63bdd072f4fcba1b2cf862 files/digest-oat-1.3.1 241 +RMD160 18d3df840c0975851e4e9024dbb3d64243d52aec files/digest-oat-1.3.1 241 +SHA256 27577dd6bdda4abecd02cec20d5bc030052d9e65503f42dc7e1cd287ccc43db1 files/digest-oat-1.3.1 241 diff --git a/dev-db/oat/files/digest-oat-1.3.1 b/dev-db/oat/files/digest-oat-1.3.1 new file mode 100644 index 000000000..a8467cf23 --- /dev/null +++ b/dev-db/oat/files/digest-oat-1.3.1 @@ -0,0 +1,3 @@ +MD5 ed6dbb72a34400eaae176da8d9ca84dd oat-binary-1.3.1.zip 162398 +RMD160 21fdd1bec8c6f836926a5c80fa418e59c9f6f558 oat-binary-1.3.1.zip 162398 +SHA256 664d540b268f46a184ed71ca024f177bad89e83f19450f37c512749a93b93a1d oat-binary-1.3.1.zip 162398 diff --git a/dev-db/oat/files/oat-path.patch b/dev-db/oat/files/oat-path.patch new file mode 100644 index 000000000..0aff74c0a --- /dev/null +++ b/dev-db/oat/files/oat-path.patch @@ -0,0 +1,68 @@ +diff -Naur oat.orig/opwg.sh oat/opwg.sh +--- oat.orig/opwg.sh 2002-06-11 09:32:00.000000000 +0000 ++++ oat/opwg.sh 2008-02-01 01:40:56.000000000 +0000 +@@ -2,7 +2,7 @@ + # + # Wrapper for OraclePWGuess by patrik.karlsson@ixsecurity.com + # +- ++cd /usr/lib/oat/ + JAVA=java + JDBC=classes111.zip +-$JAVA -cp .:$JDBC:ork.jar ork.OraclePwGuess $* +\ No newline at end of file ++$JAVA -cp .:$JDBC:ork.jar ork.OraclePwGuess $* +diff -Naur oat.orig/oquery.sh oat/oquery.sh +--- oat.orig/oquery.sh 2002-06-11 09:32:00.000000000 +0000 ++++ oat/oquery.sh 2008-02-01 01:41:01.000000000 +0000 +@@ -2,7 +2,7 @@ + # + # Wrapper for OracleQuery by patrik@cqure.net + # +- ++cd /usr/lib/oat/ + JAVA=java + JDBC=classes111.zip + $JAVA -cp .:$JDBC:ork.jar ork.OracleQuery $* +diff -Naur oat.orig/osd.sh oat/osd.sh +--- oat.orig/osd.sh 2002-06-11 09:32:00.000000000 +0000 ++++ oat/osd.sh 2008-02-01 01:41:07.000000000 +0000 +@@ -2,7 +2,7 @@ + # + # Wrapper for OracleSamDump by patrik.karlsson@ixsecurity.com + # +- ++cd /usr/lib/oat/ + JAVA=java + JDBC=classes111.zip +-$JAVA -cp .:$JDBC:ork.jar ork.OracleSamDump $* +\ No newline at end of file ++$JAVA -cp .:$JDBC:ork.jar ork.OracleSamDump $* +diff -Naur oat.orig/ose.sh oat/ose.sh +--- oat.orig/ose.sh 2002-06-11 09:32:00.000000000 +0000 ++++ oat/ose.sh 2008-02-01 01:41:12.000000000 +0000 +@@ -2,7 +2,7 @@ + # + # Wrapper for OracleSysExec by patrik.karlsson@ixsecurity.com + # +- ++cd /usr/lib/oat/ + JAVA=java + JDBC=classes111.zip +-$JAVA -cp .:$JDBC:ork.jar ork.OracleSysExec $* +\ No newline at end of file ++$JAVA -cp .:$JDBC:ork.jar ork.OracleSysExec $* +diff -Naur oat.orig/otnsctl.sh oat/otnsctl.sh +--- oat.orig/otnsctl.sh 2002-06-11 09:32:00.000000000 +0000 ++++ oat/otnsctl.sh 2008-02-01 01:41:17.000000000 +0000 +@@ -2,7 +2,7 @@ + # + # Wrapper for OracleTNSCtrl by patrik.karlsson@ixsecurity.com + # +- ++cd /usr/lib/oat/ + JAVA=java + JDBC=classes111.zip +-$JAVA -cp .:$JDBC:ork.jar ork.OracleTNSCtrl $* +\ No newline at end of file ++$JAVA -cp .:$JDBC:ork.jar ork.OracleTNSCtrl $* diff --git a/dev-db/oat/oat-1.3.1.ebuild b/dev-db/oat/oat-1.3.1.ebuild new file mode 100644 index 000000000..d04e61224 --- /dev/null +++ b/dev-db/oat/oat-1.3.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/sqlat/sqlat-1.1.0.ebuild,v 1.1.1.1 2006/02/27 20:03:41 grimmlin Exp $ + +inherit eutils +DESCRIPTION="The Oracle Auditing Tools is a toolkit that could be used to audit security within Oracle database servers" +HOMEPAGE="http://www.cqure.net/wp/?page_id=2" +SRC_URI="http://www.cqure.net/tools/${PN}-binary-${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +S="${WORKDIR}"/"${PN}" +DEPEND="virtual/jre" + +src_compile(){ + einfo "Nothing to compile" + epatch "${FILESDIR}"/"${PN}"-path.patch +} +src_install () { + insinto /usr/lib/"${PN}" + doins -r tftproot + doins ork.jar accounts.default + dobin *.sh + dodoc README +} diff --git a/dev-db/sqlat/Manifest b/dev-db/sqlat/Manifest new file mode 100644 index 000000000..4dcc85271 --- /dev/null +++ b/dev-db/sqlat/Manifest @@ -0,0 +1,8 @@ +DIST sqlat-src-1.1.0.tar.gz 50292 RMD160 c1d32d8fd50f3490d1f1313e2c99f6d1c98f3e6a SHA1 9b61eeb26e581984c5c1a2805bee3fb77e0a5385 SHA256 33ef7508838012b697f29ea87790514fe74b23e77d4da94f5351850384e86cad +EBUILD sqlat-1.1.0.ebuild 874 RMD160 ff5eca19ee404e22a6907ee60b5cc9cbaa05ee64 SHA1 b1edcc9cc56ccc764e24c973ec74fb3a257dcc86 SHA256 f88fe2a92cbf6076203ab0f98fb1a8dd9dd2af9f02f6bc7162462b7f41a357c6 +MD5 231ae6744aaef869473027e901cbe727 sqlat-1.1.0.ebuild 874 +RMD160 ff5eca19ee404e22a6907ee60b5cc9cbaa05ee64 sqlat-1.1.0.ebuild 874 +SHA256 f88fe2a92cbf6076203ab0f98fb1a8dd9dd2af9f02f6bc7162462b7f41a357c6 sqlat-1.1.0.ebuild 874 +MD5 a7ee35e44e9d83b7e0556b51f49e7d55 files/digest-sqlat-1.1.0 244 +RMD160 3ae2ab617200f9670aa37ca628a119fa01f553a4 files/digest-sqlat-1.1.0 244 +SHA256 f202b6aad117965a39569cb2a18eca76c9190b3eed3a1c279c451dca6d656600 files/digest-sqlat-1.1.0 244 diff --git a/dev-db/sqlat/files/digest-sqlat-1.1.0 b/dev-db/sqlat/files/digest-sqlat-1.1.0 new file mode 100644 index 000000000..4f9b1e2ce --- /dev/null +++ b/dev-db/sqlat/files/digest-sqlat-1.1.0 @@ -0,0 +1,3 @@ +MD5 244ddbb483724666dbad252dd8916360 sqlat-src-1.1.0.tar.gz 50292 +RMD160 c1d32d8fd50f3490d1f1313e2c99f6d1c98f3e6a sqlat-src-1.1.0.tar.gz 50292 +SHA256 33ef7508838012b697f29ea87790514fe74b23e77d4da94f5351850384e86cad sqlat-src-1.1.0.tar.gz 50292 diff --git a/dev-db/sqlat/sqlat-1.1.0.ebuild b/dev-db/sqlat/sqlat-1.1.0.ebuild new file mode 100644 index 000000000..9cf3b0d36 --- /dev/null +++ b/dev-db/sqlat/sqlat-1.1.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/sqlat/sqlat-1.1.0.ebuild,v 1.1.1.1 2006/02/27 20:03:41 grimmlin Exp $ + +inherit eutils +DESCRIPTION="SQLAT is a suite of tools which could be usefull for pentesting a MS SQL Server" +HOMEPAGE="http://www.cqure.net/tools.jsp?id=6" +SRC_URI="http://www.cqure.net/tools/${PN}-src-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="=dev-db/freetds-0.62*" + +src_compile() { + if ! built_with_use dev-db/freetds mssql ; then + eerror "In order to build ${PN}, you need to have freetds with mssql support" + die "Re-emerge freetds with mssql useflag" + else + econf || die "Configure failed" + emake || die "Make failed" + fi +} + +src_install () { + mkdir -p ${D}usr/bin + make DESTDIR=${D}usr install || die + dodoc README +} diff --git a/dev-db/sqlbf/Manifest b/dev-db/sqlbf/Manifest new file mode 100644 index 000000000..d91676fc8 --- /dev/null +++ b/dev-db/sqlbf/Manifest @@ -0,0 +1,8 @@ +DIST sqlbf-all-src-1.0.1.zip 74411 RMD160 b01aec2768cb1d5c3642facf377b38a020292f98 SHA1 a3309435d48cbe6c1ea5c0016268f6139338d608 SHA256 70225e564e5dad311fc27b7eb5302b9441f8adc52da4eaf2c2d49d79708fe23d +EBUILD sqlbf-1.0.1.ebuild 589 RMD160 eaae15583602175b6c51a82bd2f2e5dd1950a2c7 SHA1 04d79aa7e7ac0860ebd7c6204f94bb612f70d06c SHA256 ceae079b5dcb7015b4ac8946eb77ee875060c6bb610c038cf4c96b0a04880876 +MD5 5cf652694b18af1a8ba7330594b0dd51 sqlbf-1.0.1.ebuild 589 +RMD160 eaae15583602175b6c51a82bd2f2e5dd1950a2c7 sqlbf-1.0.1.ebuild 589 +SHA256 ceae079b5dcb7015b4ac8946eb77ee875060c6bb610c038cf4c96b0a04880876 sqlbf-1.0.1.ebuild 589 +MD5 df5d44c670b967f727c49b18879cef4c files/digest-sqlbf-1.0.1 247 +RMD160 7caa4b261e0188f9232522e267dc2fa86fc15e74 files/digest-sqlbf-1.0.1 247 +SHA256 a4c799a949543fe946a6d6f0fcecff2c51797bd8ba650eb67ead2a4d6e9e64ff files/digest-sqlbf-1.0.1 247 diff --git a/dev-db/sqlbf/files/digest-sqlbf-1.0.1 b/dev-db/sqlbf/files/digest-sqlbf-1.0.1 new file mode 100644 index 000000000..36026dff6 --- /dev/null +++ b/dev-db/sqlbf/files/digest-sqlbf-1.0.1 @@ -0,0 +1,3 @@ +MD5 bc0981277e76bacff2daa4b159363de9 sqlbf-all-src-1.0.1.zip 74411 +RMD160 b01aec2768cb1d5c3642facf377b38a020292f98 sqlbf-all-src-1.0.1.zip 74411 +SHA256 70225e564e5dad311fc27b7eb5302b9441f8adc52da4eaf2c2d49d79708fe23d sqlbf-all-src-1.0.1.zip 74411 diff --git a/dev-db/sqlbf/sqlbf-1.0.1.ebuild b/dev-db/sqlbf/sqlbf-1.0.1.ebuild new file mode 100644 index 000000000..8dfceb5d6 --- /dev/null +++ b/dev-db/sqlbf/sqlbf-1.0.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/sqlbf/sqlbf-1.0.1.ebuild,v 1.1.1.1 2006/02/27 20:03:41 grimmlin Exp $ + + +DESCRIPTION="SQLBF is a tool to audit mssql passwords strength offline" +HOMEPAGE="http://www.cqure.net/tools.jsp?id=10" +SRC_URI="http://www.cqure.net/tools/${PN}-all-src-${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${PN} + +src_install () { + dobin bin/sqlbf + dodoc README.wri + docinto sample + dodoc default.cm hashes.txt small.dic +} diff --git a/dev-db/sqlinject/Manifest b/dev-db/sqlinject/Manifest new file mode 100644 index 000000000..3c4219482 --- /dev/null +++ b/dev-db/sqlinject/Manifest @@ -0,0 +1,3 @@ +MD5 6af4a02aaa4934272e4f55b4a844154b files/digest-sqlinject-1.1 64 +MD5 53edaa684f175fdedcbd8e4960f8aad2 files/sqlinject 50 +MD5 8083dc0f12ef568c7ea1e5ddd152200a sqlinject-1.1.ebuild 669 diff --git a/dev-db/sqlinject/files/digest-sqlinject-1.1 b/dev-db/sqlinject/files/digest-sqlinject-1.1 new file mode 100644 index 000000000..94d2a15f9 --- /dev/null +++ b/dev-db/sqlinject/files/digest-sqlinject-1.1 @@ -0,0 +1 @@ +MD5 73b7b6813dbee01f0685437f7cb38c55 sqlinject-1.1.tar.gz 19977 diff --git a/dev-db/sqlinject/files/sqlinject b/dev-db/sqlinject/files/sqlinject new file mode 100644 index 000000000..86cb596c6 --- /dev/null +++ b/dev-db/sqlinject/files/sqlinject @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/sqlinject/ +./sqlinject.py "$@" diff --git a/dev-db/sqlinject/sqlinject-1.1.ebuild b/dev-db/sqlinject/sqlinject-1.1.ebuild new file mode 100644 index 000000000..6d8d78bc0 --- /dev/null +++ b/dev-db/sqlinject/sqlinject-1.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/sqlinject/sqlinject-1.1.ebuild,v 1.1.1.1 2006/03/21 14:30:26 grimmlin Exp $ + +DESCRIPTION="Python based fuzzer for multi protocols, and faultinject" +HOMEPAGE="http://www.whitehat.co.il/shadown/freetools.html" +SRC_URI="http://www.whitehat.co.il/shadown/freetools/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="dev-python/pyopenssl" + +src_compile () { + einfo "Nothing to compile" +} + +src_install () { + dodoc README TODO.txt AUTHORS + insinto /opt/"${PN}"/ + insopts -m0755 + doins *.py + dosbin "${FILESDIR}"/"${PN}" +} diff --git a/dev-dotnet/wxnet/Manifest b/dev-dotnet/wxnet/Manifest new file mode 100644 index 000000000..f2adece9e --- /dev/null +++ b/dev-dotnet/wxnet/Manifest @@ -0,0 +1,28 @@ +AUX Defs.in.patch 1327 RMD160 5c886330f26cb59fb5455d4f1da7b5ef79d565bd SHA1 b12283392209415f1de1a15178be8683d5725d0e SHA256 001b835b3046842a175ba5d4e93b6ca4a0072e8a6fc1dcc051e0bfa48a9b87cb +MD5 b8fd3ba6f83998a8a2a4cbc2e271d1b2 files/Defs.in.patch 1327 +RMD160 5c886330f26cb59fb5455d4f1da7b5ef79d565bd files/Defs.in.patch 1327 +SHA256 001b835b3046842a175ba5d4e93b6ca4a0072e8a6fc1dcc051e0bfa48a9b87cb files/Defs.in.patch 1327 +AUX fpic.patch 489 RMD160 4b34f22ec6e69678d7b37bc63cea6a7d64e6c711 SHA1 0ef66d2a8c5d34cffe6556e7b0d821bc583295a1 SHA256 3a611caf5ddd217b367777e5462d207d2094ca05d023c7551f3fa5ffbe13e0f4 +MD5 ff6ec8621cdcc8ac05aa3d84a000a365 files/fpic.patch 489 +RMD160 4b34f22ec6e69678d7b37bc63cea6a7d64e6c711 files/fpic.patch 489 +SHA256 3a611caf5ddd217b367777e5462d207d2094ca05d023c7551f3fa5ffbe13e0f4 files/fpic.patch 489 +AUX premake.lua.patch 26535 RMD160 f068ed978182751e2f9def996e0ebb3567cd4aab SHA1 57de5b48c96dcd25f6997e92f792a46b5407b697 SHA256 44812d09aa8bca02af1cd60ed04afe0423c58bda3340daebaa99855a28ac0d19 +MD5 e192b645743a1d491a46b0228ad4ffcd files/premake.lua.patch 26535 +RMD160 f068ed978182751e2f9def996e0ebb3567cd4aab files/premake.lua.patch 26535 +SHA256 44812d09aa8bca02af1cd60ed04afe0423c58bda3340daebaa99855a28ac0d19 files/premake.lua.patch 26535 +AUX premake.patch 1613 RMD160 87df1d896aed2bc8bcbbf545890b65ea1e44f2ad SHA1 13f8af2626520683ff1eae75d0242207d9567617 SHA256 33abc208b9beefb40c670137872baf01c14afca8ce9aa2a679a269c47dceda15 +MD5 9cf0af565ab99b7ff6ae615173818c0d files/premake.patch 1613 +RMD160 87df1d896aed2bc8bcbbf545890b65ea1e44f2ad files/premake.patch 1613 +SHA256 33abc208b9beefb40c670137872baf01c14afca8ce9aa2a679a269c47dceda15 files/premake.patch 1613 +AUX wx-config-helper.patch 539 RMD160 6562b48240983f82dbf83f13b9aa93f5589405c3 SHA1 c1b46297f923921861dda0bd97c5e086cfb298b4 SHA256 260e0c7ba5ac51dcb8dc0671c42a917dc2dca870d74e70446e04ed6431a32944 +MD5 1b755b2e10c1838e2719c9f27df28719 files/wx-config-helper.patch 539 +RMD160 6562b48240983f82dbf83f13b9aa93f5589405c3 files/wx-config-helper.patch 539 +SHA256 260e0c7ba5ac51dcb8dc0671c42a917dc2dca870d74e70446e04ed6431a32944 files/wx-config-helper.patch 539 +DIST wx.NET-0.7.2-Source.tar.gz 1778579 RMD160 d0f560477bfcfe916091da8f1ee06f202d975a79 SHA1 c5971278174169762b756031cf2415ac5d94b848 SHA256 e93a068b0a9b7265d86cd02ab3db3d86a472e3584595271cfbe5715d9ee88bb1 +EBUILD wxnet-0.7.2.ebuild 1972 RMD160 3f7924373a09254eca6b400d53f46123b069e56b SHA1 93a9a9f70407bd444d2df637870b5d3e48caa316 SHA256 8bacceee690c1218554fd0fa14272b02acb8031b821b2d923481ac158f92d142 +MD5 80b39deff5cf686cc6801d32e5ffc5f6 wxnet-0.7.2.ebuild 1972 +RMD160 3f7924373a09254eca6b400d53f46123b069e56b wxnet-0.7.2.ebuild 1972 +SHA256 8bacceee690c1218554fd0fa14272b02acb8031b821b2d923481ac158f92d142 wxnet-0.7.2.ebuild 1972 +MD5 acc9ad0425d110f17261462fe3d896d6 files/digest-wxnet-0.7.2 262 +RMD160 15aeab78f69f85e33fb2b7d1c6cd78401e18b597 files/digest-wxnet-0.7.2 262 +SHA256 3488cb9211bfd035e16e17a1e374557199c33a18be5442e5552d4f2df5448afc files/digest-wxnet-0.7.2 262 diff --git a/dev-dotnet/wxnet/files/Defs.in.patch b/dev-dotnet/wxnet/files/Defs.in.patch new file mode 100644 index 000000000..0e7736bac --- /dev/null +++ b/dev-dotnet/wxnet/files/Defs.in.patch @@ -0,0 +1,29 @@ +--- Defs.in.template 2005-05-17 20:47:41.000000000 +0200 ++++ Defs.in 2005-07-19 16:03:18.115014136 +0200 +@@ -18,7 +18,7 @@ + # plan on compiling wxWidgets using this build system. If you + # have already compiled or installed wxWidgets, you can ignore + # this setting and comment it out if you like. +-WXW_SOURCE_DIR = $(HOME)/src/wxGTK-2.6.1 ++#WXW_SOURCE_DIR = $(HOME)/src/wxGTK-2.6.1 + # WXW_SOURCE_DIR = /usr/local/src/wxGTK-2.6.1 + + # A directory within WXW_SOURCE_DIR you want to build in. The +@@ -33,14 +33,16 @@ + # already built wxWidgets yourself, where it has been + # installed. If you build wxWidgets, sub-directories will + # be created under this directory for include, lib, etc. +-WXW_INSTALL_DIR = $(HOME)/packages/wx-widgets-2.6.1 ++#WXW_INSTALL_DIR = $(HOME)/packages/wx-widgets-2.6.1 + # WXW_INSTALL_DIR = /usr/local/packages/wx-widgets-2.6.1 ++WXW_INSTALL_DIR = ${S}/wx + + # Where you want wx.NET to be installed. Sub-directories will + # be created under this directory for bin and samples. THIS IS + # OPTIONAL and will only be used if you do a "make wxnet-install" + # WXNET_INSTALL_DIR = $(HOME)/packages/wxnet + # WXNET_INSTALL_DIR = /usr/local/packages/wxnet ++WXNET_INSTALL_DIR = ${D}/usr/lib/wxnet + + # What .NET package to use when compiling wx.NET and running + # it's samples? Should be one of "mono" or "pnet" diff --git a/dev-dotnet/wxnet/files/digest-wxnet-0.7.2 b/dev-dotnet/wxnet/files/digest-wxnet-0.7.2 new file mode 100644 index 000000000..f7835e028 --- /dev/null +++ b/dev-dotnet/wxnet/files/digest-wxnet-0.7.2 @@ -0,0 +1,3 @@ +MD5 c6363b655cc18e4890ad4aabfbcc56bc wx.NET-0.7.2-Source.tar.gz 1778579 +RMD160 d0f560477bfcfe916091da8f1ee06f202d975a79 wx.NET-0.7.2-Source.tar.gz 1778579 +SHA256 e93a068b0a9b7265d86cd02ab3db3d86a472e3584595271cfbe5715d9ee88bb1 wx.NET-0.7.2-Source.tar.gz 1778579 diff --git a/dev-dotnet/wxnet/files/fpic.patch b/dev-dotnet/wxnet/files/fpic.patch new file mode 100644 index 000000000..2b0b8f6d8 --- /dev/null +++ b/dev-dotnet/wxnet/files/fpic.patch @@ -0,0 +1,12 @@ +diff -ru wx.NET-0.7.2/Src/wx-c/premake.lua wx.NET-0.7.2-mine/Src/wx-c/premake.lua +--- wx.NET-0.7.2/Src/wx-c/premake.lua 2005-05-18 00:32:07.000000000 +0200 ++++ wx.NET-0.7.2-mine/Src/wx-c/premake.lua 2006-02-19 17:56:11.000000000 +0100 +@@ -67,7 +67,7 @@ + linkoptions = "$(shell " .. wxconfig .. " --static --libs)" + end + +- buildoptions = buildoptions .. " -W -Wall -ansi" ++ buildoptions = buildoptions .. " -W -Wall -ansi -fPIC" + + -- Mac options + if (mac) then diff --git a/dev-dotnet/wxnet/files/premake.lua.patch b/dev-dotnet/wxnet/files/premake.lua.patch new file mode 100644 index 000000000..4666f16ef --- /dev/null +++ b/dev-dotnet/wxnet/files/premake.lua.patch @@ -0,0 +1,797 @@ +diff -Naur wx.NET-0.7.2.orig/Src/wx-c/compat.lua wx.NET-0.7.2/Src/wx-c/compat.lua +--- wx.NET-0.7.2.orig/Src/wx-c/compat.lua 1970-01-01 00:00:00.000000000 +0000 ++++ wx.NET-0.7.2/Src/wx-c/compat.lua 2006-09-20 03:12:00.000000000 +0000 +@@ -0,0 +1,193 @@ ++------------------------------------------------------------------- ++-- Real globals ++-- _ALERT ++-- _ERRORMESSAGE ++-- _VERSION ++-- _G ++-- assert ++-- error ++-- metatable ++-- next ++-- print ++-- require ++-- tonumber ++-- tostring ++-- type ++-- unpack ++ ++------------------------------------------------------------------- ++-- collectgarbage ++-- gcinfo ++ ++-- globals ++ ++-- call -> protect(f, err) ++-- loadfile ++-- loadstring ++ ++-- rawget ++-- rawset ++ ++-- getargs = Main.getargs ?? ++ ++ ++function do_ (f, err) ++ if not f then print(err); return end ++ local a,b = pcall(f) ++ if not a then print(b); return nil ++ else return b or true ++ end ++end ++ ++function dostring(s) return do_(loadstring(s)) end ++-- function dofile(s) return do_(loadfile(s)) end ++ ++------------------------------------------------------------------- ++-- Table library ++local tab = table ++foreach = tab.foreach ++foreachi = tab.foreachi ++getn = tab.getn ++tinsert = tab.insert ++tremove = tab.remove ++sort = tab.sort ++ ++------------------------------------------------------------------- ++-- Commented out Debug library because it causes errors in wxnet lua build script ++-- Debug library ++-- local dbg = debug ++-- getinfo = dbg.getinfo ++-- getlocal = dbg.getlocal ++-- setcallhook = function () error"`setcallhook' is deprecated" end ++-- setlinehook = function () error"`setlinehook' is deprecated" end ++-- setlocal = dbg.setlocal ++ ++------------------------------------------------------------------- ++-- math library ++local math = math ++abs = math.abs ++acos = function (x) return math.deg(math.acos(x)) end ++asin = function (x) return math.deg(math.asin(x)) end ++atan = function (x) return math.deg(math.atan(x)) end ++atan2 = function (x,y) return math.deg(math.atan2(x,y)) end ++ceil = math.ceil ++cos = function (x) return math.cos(math.rad(x)) end ++deg = math.deg ++exp = math.exp ++floor = math.floor ++frexp = math.frexp ++ldexp = math.ldexp ++log = math.log ++log10 = math.log10 ++max = math.max ++min = math.min ++mod = math.mod ++PI = math.pi ++--??? pow = math.pow ++rad = math.rad ++random = math.random ++randomseed = math.randomseed ++sin = function (x) return math.sin(math.rad(x)) end ++sqrt = math.sqrt ++tan = function (x) return math.tan(math.rad(x)) end ++ ++------------------------------------------------------------------- ++-- string library ++local str = string ++strbyte = str.byte ++strchar = str.char ++strfind = str.find ++format = str.format ++gsub = str.gsub ++strlen = str.len ++strlower = str.lower ++strrep = str.rep ++strsub = str.sub ++strupper = str.upper ++ ++------------------------------------------------------------------- ++-- os library ++clock = os.clock ++date = os.date ++difftime = os.difftime ++execute = os.execute --? ++exit = os.exit ++getenv = os.getenv ++remove = os.remove ++rename = os.rename ++setlocale = os.setlocale ++time = os.time ++tmpname = os.tmpname ++ ++------------------------------------------------------------------- ++-- compatibility only ++getglobal = function (n) return _G[n] end ++setglobal = function (n,v) _G[n] = v end ++ ++------------------------------------------------------------------- ++ ++local io, tab = io, table ++ ++-- IO library (files) ++_STDIN = io.stdin ++_STDERR = io.stderr ++_STDOUT = io.stdout ++_INPUT = io.stdin ++_OUTPUT = io.stdout ++seek = io.stdin.seek -- sick ;-) ++tmpfile = io.tmpfile ++closefile = io.close ++openfile = io.open ++ ++function flush (f) ++ if f then f:flush() ++ else _OUTPUT:flush() ++ end ++end ++ ++function readfrom (name) ++ if name == nil then ++ local f, err, cod = io.close(_INPUT) ++ _INPUT = io.stdin ++ return f, err, cod ++ else ++ local f, err, cod = io.open(name, "r") ++ _INPUT = f or _INPUT ++ return f, err, cod ++ end ++end ++ ++function writeto (name) ++ if name == nil then ++ local f, err, cod = io.close(_OUTPUT) ++ _OUTPUT = io.stdout ++ return f, err, cod ++ else ++ local f, err, cod = io.open(name, "w") ++ _OUTPUT = f or _OUTPUT ++ return f, err, cod ++ end ++end ++ ++function appendto (name) ++ local f, err, cod = io.open(name, "a") ++ _OUTPUT = f or _OUTPUT ++ return f, err, cod ++end ++ ++function read (...) ++ local f = _INPUT ++ if type(arg[1]) == 'userdata' then ++ f = tab.remove(arg, 1) ++ end ++ return f:read(unpack(arg)) ++end ++ ++function write (...) ++ local f = _OUTPUT ++ if type(arg[1]) == 'userdata' then ++ f = tab.remove(arg, 1) ++ end ++ return f:write(unpack(arg)) ++end ++ +diff -Naur wx.NET-0.7.2.orig/Src/wx-c/premake-funcs.lua wx.NET-0.7.2/Src/wx-c/premake-funcs.lua +--- wx.NET-0.7.2.orig/Src/wx-c/premake-funcs.lua 2004-12-13 00:43:21.000000000 +0000 ++++ wx.NET-0.7.2/Src/wx-c/premake-funcs.lua 2006-12-22 20:15:37.000000000 +0000 +@@ -1,51 +1,51 @@ +------------------------------------------------------------------------- +--- $Id: premake-funcs.lua,v 1.9 2004/12/13 00:43:21 malenfant Exp $ +------------------------------------------------------------------------- +- +--- +--- Linker support functions +--- +- +--- Add a wxWidgets contributed library to the necessary build parameters. +-function add_contrib_link(contrib_name) +- if (win) then +- add_win_lib("Debug", "wxmsw" .. wx_concat_ver() .. +- wx_debug_flag .. "_" .. contrib_name) +- add_win_lib("Release", "wxmsw" .. wx_concat_ver() .. +- wx_release_flag .. "_" .. contrib_name) +- else +- add_unix_lib("Debug", wx_debug, contrib_name) +- add_unix_lib("Release", wx_release, contrib_name) +- end +-end +- +--- Add a UN*X library by using the wx-config-helper Perl script +--- to do the grunt work of figuring out whether to use +--- Unicode, Debug|Release, Static|Shared. +-function add_unix_lib(build_type, wx_buid, contrib_name) +- command = "../../Build/Common/wx-config-helper " .. +- wx_buid .. " " .. wxconfig .. " get-link-arg ".. +- wx_link_mode() .. " " .. contrib_name; +- tinsert(package.config[build_type].linkoptions, { "$(shell " .. command .. ")" }) +-end +- +--- Add a Windows library +-function add_win_lib(build_type, full_lib_name) +- tinsert(package.config[build_type].links, { full_lib_name }) +-end +- +--- Returns something like 25 for ver 2.5 +-function wx_concat_ver( ) +- return(gsub(WX_VERSION, "%.", "")) +-end +- +--- Returns shared or static depending on how wxWidgets should be +--- linked in +-function wx_link_mode() +- if (options["with-shared"]) then +- return "shared" +- else +- return "static" +- end +-end +- ++------------------------------------------------------------------------ ++-- $Id: premake-funcs.lua,v 1.9 2004/12/13 00:43:21 malenfant Exp $ ++------------------------------------------------------------------------ ++ ++-- ++-- Linker support functions ++-- ++ ++-- Add a wxWidgets contributed library to the necessary build parameters. ++function add_contrib_link(contrib_name) ++ if (win) then ++ add_win_lib("Debug", "wxmsw" .. wx_concat_ver() .. ++ wx_debug_flag .. "_" .. contrib_name) ++ add_win_lib("Release", "wxmsw" .. wx_concat_ver() .. ++ wx_release_flag .. "_" .. contrib_name) ++ else ++ add_unix_lib("Debug", wx_debug, contrib_name) ++ add_unix_lib("Release", wx_release, contrib_name) ++ end ++end ++ ++-- Add a UN*X library by using the wx-config-helper Perl script ++-- to do the grunt work of figuring out whether to use ++-- Unicode, Debug|Release, Static|Shared. ++function add_unix_lib(build_type, wx_buid, contrib_name) ++ command = "../../Build/Common/wx-config-helper " .. ++ wx_buid .. " " .. wxconfig .. " get-link-arg ".. ++ wx_link_mode() .. " " .. contrib_name; ++ tinsert(package.config[build_type].linkoptions, { "$(shell " .. command .. ")" }) ++end ++ ++-- Add a Windows library ++function add_win_lib(build_type, full_lib_name) ++ tinsert(package.config[build_type].links, { full_lib_name }) ++end ++ ++-- Returns something like 25 for ver 2.5 ++function wx_concat_ver( ) ++ return(gsub(WX_VERSION, "%.", "")) ++end ++ ++-- Returns shared or static depending on how wxWidgets should be ++-- linked in ++function wx_link_mode() ++ if (options["with-shared"]) then ++ return "shared" ++ else ++ return "static" ++ end ++end ++ +diff -Naur wx.NET-0.7.2.orig/Src/wx-c/premake.lua wx.NET-0.7.2/Src/wx-c/premake.lua +--- wx.NET-0.7.2.orig/Src/wx-c/premake.lua 2005-05-17 22:32:07.000000000 +0000 ++++ wx.NET-0.7.2/Src/wx-c/premake.lua 2007-08-17 20:01:24.000000000 +0000 +@@ -1,161 +1,237 @@ +--- Premake script for the wx.NET "wx-c" package. +--- See http://premake.sourceforge.net/ for more info about Premake. +- +-package.name = "wx-c" +-package.language = "c++" +-package.kind = "dll" +- +-option("with-shared", "Link wxWidgets as a shared library") +-option("with-display", "Builds wxDisplay class") +-option("wx-config", "Location of wx-config script (use PATH by default)") +- +-option("wx-build-type", "wxWidgets build type (Debug|Release) (default from wx-config)") +-option("wx-src-dir", "wxWidgets source directory (win32 only)") +- +-package.defines = { "WXMAKINGDLL" } +-package.buildflags = { "no-64bit-checks", "no-import-lib" } +- +--- The wxWidgets version we are building against; hard coded for now +-WX_VERSION = 2.6 +- +--- Define simple boolean variables for our platform +-linux = (OS == "linux") +-mac = (OS == "macosx") +-win = (OS == "windows") +- +--- Define the wxWidgets build type; necessary because WIN32 does not have +--- wx-config and the contrib packages are not supported by wx-config. But we +--- have the built-in support for different CONFIG types you say? But this +--- requires that the wxWidgets and wx.NET release types are in sync, which can +--- be a pain when you just want a Debug version of wx.NET and do not want to +--- compile a Debug version of wxWidgets. +-if (options["wx-build-type"]) then +- if (options["wx-build-type"][1] == "Debug") then +- wx_force_debug = 1 +- wx_debug_flag = "d" +- wx_release_flag = "d" +- wx_debug = "Debug" +- wx_release = "Debug" +- elseif (options["wx-build-type"][1] == "Release") then +- wx_force_release = 1 +- wx_debug_flag = "" +- wx_release_flag = "" +- wx_debug = "Release" +- wx_release = "Release" +- end +-else +- wx_debug_flag = "d" +- wx_release_flag = "" +- wx_debug = "Debug" +- wx_release = "Release" +-end +- +--- UN*X options +-if (linux or mac) then +- -- Use hard coded wx-config or use whatever is in PATH? +- if (options["wx-config"]) then +- wxconfig = options["wx-config"][1] +- else +- wxconfig = "wx-config" +- end +- +- if (options["with-shared"]) then +- buildoptions = "$(shell " .. wxconfig .. " --cxxflags)" +- linkoptions = "$(shell " .. wxconfig .. " --libs)" +- else +- buildoptions = "$(shell " .. wxconfig .. " --static --cxxflags)" +- linkoptions = "$(shell " .. wxconfig .. " --static --libs)" +- end +- +- buildoptions = buildoptions .. " -W -Wall -ansi" +- +- -- Mac options +- if (mac) then +- -- Premake 2.0 supports .dylib output now +- tinsert(package.buildflags, "dylib") +- linkoptions = linkoptions .. " -single_module" +- end +- +- package.buildoptions = { buildoptions } +- package.linkoptions = { linkoptions } +-end +- +--- WIN32 options +-if (win) then +- tinsert(package.defines, { "WIN32", "_WINDOWS", "WINVER=0x400", "_MT", +- "wxUSE_GUI=1" }) +- tinsert(package.links, { "kernel32", "user32", "gdi32", "shell32", +- "comdlg32", "advapi32", "ole32", "comctl32", +- "rpcrt4", "wsock32" }) +- +- package.config["Debug"].defines = { "_DEBUG", "__WXDEBUG", "WXDEBUG=1" } +- package.config["Release"].defines = { "NDEBUG" } +- +- if (options["with-shared"]) then +- tinsert(package.defines, "WXUSINGDLL") +- end +- +- if (options["wx-src-dir"]) then +- wx_src = options["wx-src-dir"][1] +- -- Include paths +- package.config["Debug"].includepaths = +- { wx_src .. "/include", wx_src .. "/contrib/include", +- wx_src .. "/lib/vc_lib/msw" .. wx_debug_flag } +- package.config["Release"].includepaths = +- { wx_src .. "/include", wx_src .. "/contrib/include", +- wx_src .. "/lib/vc_lib/msw" .. wx_release_flag } +- +- -- Linker paths +- package.libpaths = { wx_src .. "/lib/vc_lib" } +- +- -- TODO: add resource include path when supported by premake +- end +- +- wx_links_debug = { +- "wxbase26d", "wxbase26d_xml", "wxexpatd", "wxjpegd", "wxmsw26d_adv", +- "wxmsw26d_core", "wxmsw26d_html", "wxpngd", "wxregexd", "wxtiffd", +- "wxzlibd", "wxmsw26d_xrc" } +- wx_links_release = { +- "wxbase26", "wxbase26_xml", "wxexpat", "wxjpeg", "wxmsw26_adv", +- "wxmsw26_core", "wxmsw26_html", "wxpng", "wxregex", "wxtiff", "wxzlib", +- "wxmsw26_xrc" } +- +- if (wx_force_debug) then +- wx_links_release = wx_links_debug +- end +- if (wx_force_release) then +- wx_links_debug = wx_links_release +- end +- +- package.config["Release"].links = wx_links_release +- package.config["Debug"].links = wx_links_debug +-end +- +------------------------------------------------------------------------ +- +-package.files = { matchfiles("*.cxx") } +- +-if (win) then +- tinsert(package.files, "windows.rc") +-end +- +------------------------------------------------------------------------ +- +-if (options["with-display"]) then +- tinsert(package.defines, "WXNET_DISPLAY") +-end +- +--- This is brain dead; Lua has no concept of looking in the same directory that +--- the parent script is locatted when including another file; so because this +--- file is read from ../.. we hard code in the parent path. Uggg! Also call +--- from current directory just in case. +- +-dofile("Src/wx-c/premake-funcs.lua") +-dofile("premake-funcs.lua") +- +--- StyledTextControl (STC) +-if (options["enable-stc"]) then +- tinsert(package.defines, { "WXNET_STYLEDTEXTCTRL", "WXMAKINGDLL_STC" }) +- add_contrib_link("stc") +-end +- ++-- Premake script for the wx.NET "wx-c" package. ++-- See http://premake.sourceforge.net/ for more info about Premake. ++ ++package.name = "wx-c" ++package.language = "c++" ++package.kind = "dll" ++ ++addoption("with-shared", "Link wxWidgets as a shared library") ++addoption("with-display", "Builds wxDisplay class") ++addoption("wx-config", "Location of wx-config script (use PATH by default)") ++ ++addoption("wx-build-type", "wxWidgets build type (Debug|Release) (default from wx-config)") ++addoption("wx-src-dir", "wxWidgets source directory (win32 only)") ++ ++package.defines = { "WXMAKINGDLL" } ++package.buildflags = { "no-64bit-checks", "no-import-lib" } ++ ++-- The wxWidgets version we are building against; hard coded for now ++WX_VERSION = 2.8 ++-- alternative values. 2.5 2.6 2.8 ++ ++-- Define simple boolean variables for our platform ++linux = (OS == "linux") ++mac = (OS == "macosx") ++win = (OS == "windows") ++ ++-- Define simple boolean variables for our Lua version ++lua5_or_higher = (string) -- string is used by lua 5.x so check if it exists ++ ++-- This is brain dead; Lua has no concept of looking in the same directory that ++-- the parent script is locatted when including another file; so because this ++-- file is read from ../.. we hard code in the parent path. Uggg! Also call ++-- from current directory just in case. ++ ++print(_VERSION) -- used to help me debug ++ ++if lua5_or_higher then ++ -- the compat.lua is a file used to use some lua 4.x code under 5.x ++ local compatfile = loadfile ("Src/wx-c/compat.lua") ++ if not compatfile then ++ compatfile = assert(loadfile ("compat.lua")) ++ end ++ assert(compatfile) -- This should always be a valid value ++ compatfile () ++end ++ ++-- Define the wxWidgets build type; necessary because WIN32 does not have ++-- wx-config and the contrib packages are not supported by wx-config. But we ++-- have the built-in support for different CONFIG types you say? But this ++-- requires that the wxWidgets and wx.NET release types are in sync, which can ++-- be a pain when you just want a Debug version of wx.NET and do not want to ++-- compile a Debug version of wxWidgets. ++if (options["wx-build-type"]) then ++ if lua5_or_higher then ++ wx_build_type = options["wx-build-type"] ++ else ++ wx_build_type = options["wx-build-type"][1] ++ end ++ if (wx_build_type == "Debug") then ++ wx_force_debug = 1 ++ wx_debug_flag = "d" ++ wx_release_flag = "d" ++ wx_debug = "Debug" ++ wx_release = "Debug" ++ elseif (wx_build_type == "Release") then ++ wx_force_release = 1 ++ wx_debug_flag = "" ++ wx_release_flag = "" ++ wx_debug = "Release" ++ wx_release = "Release" ++ end ++else ++ wx_debug_flag = "d" ++ wx_release_flag = "" ++ wx_debug = "Debug" ++ wx_release = "Release" ++end ++ ++-- UN*X options ++if (linux or mac) then ++ -- Use hard coded wx-config or use whatever is in PATH? ++ if (options["wx-config"]) then ++ if lua5_or_higher then -- Lua 5.x or above ++ wxconfig = options["wx-config"] ++ else ++ wxconfig = options["wx-config"][1] ++ end ++ else ++ wxconfig = "wx-config" ++ end ++ ++ if (options["with-shared"]) then ++ buildoptions = "$(shell " .. wxconfig .. " --cxxflags)" ++ linkoptions = "$(shell " .. wxconfig .. " --libs)" ++ else ++ buildoptions = "$(shell " .. wxconfig .. " --static --cxxflags)" ++ linkoptions = "$(shell " .. wxconfig .. " --static --libs)" ++ end ++ ++ buildoptions = buildoptions .. " -W -Wall -ansi" ++ ++ -- Mac options ++ if (mac) then ++ -- Premake 2.0 supports .dylib output now ++ tinsert(package.buildflags, "dylib") ++ linkoptions = linkoptions .. " -single_module" ++ end ++ ++ package.buildoptions = { buildoptions } ++ package.linkoptions = { linkoptions } ++end ++ ++-- WIN32 options ++if (win) then ++ tinsert(package.defines, { "WIN32", "_WINDOWS", "WINVER=0x400", "_MT", ++ "wxUSE_GUI=1" }) ++ tinsert(package.links, { "kernel32", "user32", "gdi32", "shell32", ++ "comdlg32", "advapi32", "ole32", "comctl32", ++ "rpcrt4", "wsock32" }) ++ ++ package.config["Debug"].defines = { "_DEBUG", "__WXDEBUG", "WXDEBUG=1" } ++ package.config["Release"].defines = { "NDEBUG" } ++ ++ if (options["with-shared"]) then ++ tinsert(package.defines, "WXUSINGDLL") ++ end ++ ++ if (options["wx-src-dir"]) then ++ if lua5_or_higher then -- Lua 5.x or above ++ wx_src = options["wx-src-dir"] ++ else ++ wx_src = options["wx-src-dir"][1] ++ end ++ if (options["target"]) then ++ if lua5_or_higher then -- Lua 5.x or above ++ premake_target = options["target"] ++ else ++ premake_target = options["target"][1] ++ end ++ print(premake_target) ++ end ++ if (("cb-gcc" == premake_target) or ("gnu" == premake_target)) then ++ -- Include paths ++ package.config["Debug"].includepaths = ++ { wx_src .. "/include", wx_src .. "/contrib/include", ++ wx_src .. "/lib/gcc_lib/msw" .. wx_debug_flag } ++ package.config["Release"].includepaths = ++ { wx_src .. "/include", wx_src .. "/contrib/include", ++ wx_src .. "/lib/gcc_lib/msw" .. wx_release_flag } ++ ++ -- Linker paths ++ package.libpaths = { wx_src .. "/lib/gcc_lib" } ++ else -- default to visual studio settings ++ -- Include paths ++ package.config["Debug"].includepaths = ++ { wx_src .. "/include", wx_src .. "/contrib/include", ++ wx_src .. "/lib/vc_lib/msw" .. wx_debug_flag } ++ package.config["Release"].includepaths = ++ { wx_src .. "/include", wx_src .. "/contrib/include", ++ wx_src .. "/lib/vc_lib/msw" .. wx_release_flag } ++ ++ -- Linker paths ++ package.libpaths = { wx_src .. "/lib/vc_lib" } ++ end ++ ++ -- TODO: add resource include path when supported by premake ++ end ++ ++ -- HMaH: better use the functions here, but I never worked with LUA and PREBUILD. ++ if (WX_VERSION == 2.6) then ++ wx_links_debug = { ++ "wxbase26d", "wxbase26d_xml", "wxexpatd", "wxjpegd", "wxmsw26d_adv", ++ "wxmsw26d_core", "wxmsw26d_html", "wxpngd", "wxregexd", "wxtiffd", ++ "wxzlibd", "wxmsw26d_xrc" } ++ wx_links_release = { ++ "wxbase26", "wxbase26_xml", "wxexpat", "wxjpeg", "wxmsw26_adv", ++ "wxmsw26_core", "wxmsw26_html", "wxpng", "wxregex", "wxtiff", "wxzlib", ++ "wxmsw26_xrc" } ++ else -- assume (currently) version 2.8 by default ++ wx_links_debug = { ++ "wxbase28d", "wxbase28d_xml", "wxexpatd", "wxjpegd", "wxmsw28d_adv", ++ "wxmsw28d_core", "wxmsw28d_html", "wxpngd", "wxregexd", "wxtiffd", ++ "wxzlibd", "wxmsw28d_xrc" } ++ wx_links_release = { ++ "wxbase28u", "wxbase28u_xml", "wxexpat", "wxjpeg", "wxmsw28u_adv", ++ "wxmsw28u_core", "wxmsw28u_html", "wxpng", "wxregexu", "wxtiff", ++ "wxzlib", "wxmsw28_xrc" } ++ end ++ ++ if (wx_force_debug) then ++ wx_links_release = wx_links_debug ++ end ++ if (wx_force_release) then ++ wx_links_debug = wx_links_release ++ end ++ ++ package.config["Release"].links = wx_links_release ++ package.config["Debug"].links = wx_links_debug ++end ++ ++----------------------------------------------------------------------- ++ ++package.files = { matchfiles("*.cxx") } ++ ++if (win) then ++ tinsert(package.files, "windows.rc") ++end ++ ++----------------------------------------------------------------------- ++ ++if (options["with-display"]) then ++ tinsert(package.defines, "WXNET_DISPLAY") ++end ++ ++-- This is brain dead; Lua has no concept of looking in the same directory that ++-- the parent script is locatted when including another file; so because this ++-- file is read from ../.. we hard code in the parent path. Uggg! Also call ++-- from current directory just in case. ++ ++if lua5_or_higher then -- Lua 5.x or above ++ local premake_funcs = loadfile ("Src/wx-c/premake-funcs.lua") ++ if not premake_funcs then ++ premake_funcs = assert(loadfile ("premake-funcs.lua")) ++ end ++ assert(premake_funcs) -- This should always be a valid value ++ premake_funcs () ++else ++ dofile("Src/wx-c/premake-funcs.lua") ++ dofile("premake-funcs.lua") ++end ++ ++-- StyledTextControl (STC) ++if (options["enable-stc"]) then ++ tinsert(package.defines, { "WXNET_STYLEDTEXTCTRL", "WXMAKINGDLL_STC" }) ++ add_contrib_link("stc") ++end ++ +diff -Naur wx.NET-0.7.2.orig/Src/wx.NET/premake-funcs.lua wx.NET-0.7.2/Src/wx.NET/premake-funcs.lua +--- wx.NET-0.7.2.orig/Src/wx.NET/premake-funcs.lua 1970-01-01 00:00:00.000000000 +0000 ++++ wx.NET-0.7.2/Src/wx.NET/premake-funcs.lua 2007-01-26 20:42:56.000000000 +0000 +@@ -0,0 +1,5 @@ ++-- Returns something like 25 for ver 2.5 ++-- this is now also needed here and pasted from the wx-c diretory. ++function wx_concat_ver( ) ++ return(gsub(WX_VERSION, "%.", "")) ++end +diff -Naur wx.NET-0.7.2.orig/Src/wx.NET/premake.lua wx.NET-0.7.2/Src/wx.NET/premake.lua +--- wx.NET-0.7.2.orig/Src/wx.NET/premake.lua 2004-12-13 00:43:21.000000000 +0000 ++++ wx.NET-0.7.2/Src/wx.NET/premake.lua 2007-01-28 20:27:38.000000000 +0000 +@@ -1,25 +1,26 @@ +--- Premake script for the wx.NET package. +--- See http://premake.sourceforge.net/ for more info about Premake. +- +-package.name = "wx.NET" +-package.language = "c#" +-package.kind = "dll" +-package.links = { "System.Xml", "System", "System.Drawing", "System.Data" } +-package.files = { matchfiles("*.cs") } +- +-if (OS == "windows") then +- package.defines = { "__WXMSW__" } +-elseif (OS == "macosx") then +- package.defines = { "__WXMAC__" } +-end +- +------------------------------------------------------------------------ +- +-if (options["enable-stc"]) then +- tinsert(package.defines, { "WXNET_STYLEDTEXTCTRL" }) +-end +- +-if (options["with-display"]) then +- tinsert(package.defines, { "WXNET_DISPLAY" }) +-end +- ++-- Premake script for the wx.NET package. ++-- See http://premake.sourceforge.net/ for more info about Premake. ++ ++package.name = "wx.NET" ++package.language = "c#" ++package.kind = "dll" ++package.links = { "System.Xml", "System", "System.Drawing", "System.Data" } ++package.files = { matchfiles("*.cs") } ++package.dependency = "wx-c" ++ ++if (OS == "windows") then ++ package.defines = { "__WXMSW__" } ++elseif (OS == "macosx") then ++ package.defines = { "__WXMAC__" } ++end ++ ++----------------------------------------------------------------------- ++ ++if (options["enable-stc"]) then ++ tinsert(package.defines, { "WXNET_STYLEDTEXTCTRL" }) ++end ++ ++if (options["with-display"]) then ++ tinsert(package.defines, { "WXNET_DISPLAY" }) ++end ++ +diff -Naur wx.NET-0.7.2.orig/Utils/premake.lua wx.NET-0.7.2/Utils/premake.lua +--- wx.NET-0.7.2.orig/Utils/premake.lua 2004-06-03 19:32:57.000000000 +0000 ++++ wx.NET-0.7.2/Utils/premake.lua 2008-01-15 21:53:15.000000000 +0000 +@@ -4,5 +4,5 @@ + project.name = "Utils" + project.bindir = "../Bin" + +-include("TowxNET/Src") +-include("TowxNET/Src/RJH.CommandLineHelper") ++dopackage("TowxNET/Src") ++dopackage("TowxNET/Src/RJH.CommandLineHelper") +diff -Naur wx.NET-0.7.2.orig/premake.lua wx.NET-0.7.2/premake.lua +--- wx.NET-0.7.2.orig/premake.lua 2004-12-13 00:43:20.000000000 +0000 ++++ wx.NET-0.7.2/premake.lua 2008-01-15 17:32:32.000000000 +0000 +@@ -7,10 +7,10 @@ + ----------------------------------------------------------------------- + -- Additional packages + +-option("enable-stc", "Enable StyledTextCtrl (wxStyledTextCtrl)") ++addoption("enable-stc", "Enable StyledTextCtrl (wxStyledTextCtrl)") + + ----------------------------------------------------------------------- + +-include("Src/wx-c") +-include("Src/wx.NET") ++dopackage("Src/wx-c") ++dopackage("Src/wx.NET") + diff --git a/dev-dotnet/wxnet/files/premake.patch b/dev-dotnet/wxnet/files/premake.patch new file mode 100644 index 000000000..4a0f9f06f --- /dev/null +++ b/dev-dotnet/wxnet/files/premake.patch @@ -0,0 +1,41 @@ +diff -ru wx.NET-0.7.2/Build/Common/Makefile.in wx.NET-0.7.2-mine/Build/Common/Makefile.in +--- wx.NET-0.7.2/Build/Common/Makefile.in 2004-12-13 01:43:20.000000000 +0100 ++++ wx.NET-0.7.2-mine/Build/Common/Makefile.in 2006-02-19 14:34:08.000000000 +0100 +@@ -237,7 +237,7 @@ + $(HDR) + @echo Configuring and Building wx.NET Core + $(HDR) +- cd $(WXNET_TOP); $(PREMAKE) $(PREMAKE_ARGS) ++ cd $(WXNET_TOP); premake $(PREMAKE_ARGS) + cd $(WXNET_TOP); $(BUILD_ENVIRONMENT) make CONFIG=$(WXNET_CONFIG) + -rm -f $(SRC_README) + $(MAKE_README) src $(PLATFORM) $(SRC_README) +@@ -248,7 +248,7 @@ + $(HDR) + @echo Configuring and Building wx.NET Samples + $(HDR) +- cd $(WXNET_TOP)/Samples; ../$(PREMAKE) $(PREMAKE_ARGS) ++ cd $(WXNET_TOP)/Samples; premake $(PREMAKE_ARGS) + cd $(WXNET_TOP)/Samples; $(BUILD_ENVIRONMENT) make CONFIG=$(WXNET_CONFIG) + @make wxnet-platform-samples + +@@ -256,7 +256,7 @@ + $(HDR) + @echo Configuring and Building wx.NET Utilities + $(HDR) +- cd $(WXNET_TOP)/Utils; ../$(PREMAKE) $(PREMAKE_ARGS) ++ cd $(WXNET_TOP)/Utils; premake $(PREMAKE_ARGS) + cd $(WXNET_TOP)/Utils; $(BUILD_ENVIRONMENT) make CONFIG=$(WXNET_CONFIG) + + wxnet-install: wxnet-install-pre-req wxnet +diff -ru wx.NET-0.7.2/Build/Linux/Makefile wx.NET-0.7.2-mine/Build/Linux/Makefile +--- wx.NET-0.7.2/Build/Linux/Makefile 2004-07-03 05:32:03.000000000 +0200 ++++ wx.NET-0.7.2-mine/Build/Linux/Makefile 2006-02-19 14:33:27.000000000 +0100 +@@ -2,7 +2,6 @@ + include ../Common/Makefile.in + + WXW_EXTRA_PLATFORM_CONFIG_ARGS = --with-gtk --enable-gtk2 +-PREMAKE = Build/Linux/premake + PLATFORM = linux + + LAUNCHER = wxnet-run diff --git a/dev-dotnet/wxnet/files/wx-config-helper.patch b/dev-dotnet/wxnet/files/wx-config-helper.patch new file mode 100644 index 000000000..91ea1df7b --- /dev/null +++ b/dev-dotnet/wxnet/files/wx-config-helper.patch @@ -0,0 +1,11 @@ +--- wx-config-helper.orig 2005-01-28 23:52:05.954412376 +0100 ++++ wx-config-helper 2005-01-28 23:21:53.680919824 +0100 +@@ -238,7 +238,7 @@ + $wx_cmd .= " --libs"; + my $wx_out = `$wx_cmd`; + +- SDie("output of '$wx_cmd' did not contain a -L/path/to/wx-widgets/lib/directory flag; are you sure wxWidgets has been built?") if ($wx_out !~ m#-L/#); ++ ###SDie("output of '$wx_cmd' did not contain a -L/path/to/wx-widgets/lib/directory flag; are you sure wxWidgets has been built?") if ($wx_out !~ m#-L/#); + + if ($Is_Shared) + { diff --git a/dev-dotnet/wxnet/wxnet-0.7.2.ebuild b/dev-dotnet/wxnet/wxnet-0.7.2.ebuild new file mode 100644 index 000000000..eb14d71e4 --- /dev/null +++ b/dev-dotnet/wxnet/wxnet-0.7.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils wxwidgets mono + +DESCRIPTION="wxWidgets bindings for mono" +HOMEPAGE="http://wxnet.sf.net/" +SRC_URI="mirror://sourceforge/${PN}/wx.NET-${PV}-Source.tar.gz" + +LICENSE="wxWinLL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="doc examples utils unicode" +RDEPEND=">=x11-libs/wxGTK-2.6.1" +DEPEND=">=dev-lang/mono-1.0.4-r1 + dev-lang/perl + dev-util/premake" + +S="${WORKDIR}/wx.NET-${PV}" + +pkg_setup() { + export WX_GTK_VER="2.6" + + # This would need a bit of tweaking or do we want to force gtk2-unicode version? + need-wxwidgets unicode || die "Emerge wxGTK with unicode in USE" +} + +src_unpack() { + unpack ${A} || die "Unpacking the source failed" + + epatch ${FILESDIR}/premake.patch + epatch ${FILESDIR}/premake.lua.patch + + # Call this conditonally only when arch is amd64? + if use amd64;then + epatch ${FILESDIR}/fpic.patch + fi + + cd ${S}/Build/Linux || die "Could not change directory" + cp Defs.in.template Defs.in + epatch ${FILESDIR}/Defs.in.patch + + cd ${S}/Build/Common || die "Could not change directory" + epatch ${FILESDIR}/wx-config-helper.patch +} + +src_compile() { + cd ${S}/Build/Linux + + # Just satisfy the stupid wx-config-helper script + mkdir -p ${S}/wx/lib/wx/config + + cp ${WX_CONFIG} ${S}/wx/lib/wx/config/ || \ + die "Could not copy wx-config file" + + export CONFIG="Release" + emake wxnet-core || die "make wxnet-core failed" + if use utils;then + emake wxnet-utils || die "make wxnet-utils failed" + fi + if use examples; then + emake wxnet-samples || die "make wxnet-samples failed" + fi +} + +src_install() { + dolib Bin/libwx-c.so Bin/*dll + + if use utils; then + exeinto /usr/bin + doexe Bin/towxnet.exe + fi + # I delete the file so I can glob the samples + rm ${S}/Bin/towxnet.exe + + if use examples; then + exeinto /usr/share/doc/${PF}/Samples + doexe Bin/*.exe + fi + + if use doc; then + dodoc Bin/README.txt + dohtml ${S}/Docs/Manual/* + fi +} diff --git a/dev-perl/gtk2-gladexml/Manifest b/dev-perl/gtk2-gladexml/Manifest new file mode 100644 index 000000000..22e26956e --- /dev/null +++ b/dev-perl/gtk2-gladexml/Manifest @@ -0,0 +1,2 @@ +MD5 0bd1aa2c6615b8887e82d5c4d621d7c4 files/digest-gtk2-gladexml-1.005 70 +MD5 fb95627e0eb2723a8c8efababeaad04c gtk2-gladexml-1.005.ebuild 754 diff --git a/dev-perl/gtk2-gladexml/files/digest-gtk2-gladexml-1.005 b/dev-perl/gtk2-gladexml/files/digest-gtk2-gladexml-1.005 new file mode 100644 index 000000000..7d70b69fd --- /dev/null +++ b/dev-perl/gtk2-gladexml/files/digest-gtk2-gladexml-1.005 @@ -0,0 +1 @@ +MD5 097ab67c4f0025b74e721ae835a2d554 Gtk2-GladeXML-1.005.tar.gz 35459 diff --git a/dev-perl/gtk2-gladexml/gtk2-gladexml-1.005.ebuild b/dev-perl/gtk2-gladexml/gtk2-gladexml-1.005.ebuild new file mode 100644 index 000000000..ef340c12f --- /dev/null +++ b/dev-perl/gtk2-gladexml/gtk2-gladexml-1.005.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/dev-perl/gtk2-gladexml/gtk2-gladexml-1.005.ebuild,v 1.1.1.1 2006/03/06 22:20:28 grimmlin Exp $ + +inherit perl-module + +MY_P=Gtk2-GladeXML-${PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Create user interfaces directly from Glade XML files." +SRC_URI="mirror://cpan/authors/id/T/TS/TSCH/${MY_P}.tar.gz" +HOMEPAGE="http://gtk2-perl.sf.net/" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~ppc64" +IUSE="" + +DEPEND="${DEPEND} + >=x11-libs/gtk+-2 + >=gnome-base/libglade-2 + >=dev-util/glade-2.0.0-r1 + >=dev-perl/glib-perl-1.012 + >=dev-perl/gtk2-perl-1.012 + dev-perl/extutils-depends + dev-perl/extutils-pkgconfig" diff --git a/dev-python/Impacket/Impacket-0.9.6.0.ebuild b/dev-python/Impacket/Impacket-0.9.6.0.ebuild new file mode 100644 index 000000000..3d98d6f3a --- /dev/null +++ b/dev-python/Impacket/Impacket-0.9.6.0.ebuild @@ -0,0 +1,30 @@ +DESCRIPTION="Impacket is a collection of Python classes focused on providing access to network packets." +HOMEPAGE="http://oss.coresecurity.com/projects/impacket.html" +SRC_URI="http://oss.coresecurity.com/repo/${P}.tar.gz" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="-* ~x86" + +IUSE="examples" + +RDEPEND="virtual/python" + +DEPEND="${RDEPEND}" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + insinto /usr/lib/python2.4/site-packages/impacket + doins impacket/* + + insinto ${INSDESTTREE}/dcerpc + doins impacket/dcerpc/* + + dodoc ChangeLog LICENSE README PKG-INFO doc/* + + use examples && docinto examples && dodoc examples/* +} + diff --git a/dev-python/Impacket/Manifest b/dev-python/Impacket/Manifest new file mode 100644 index 000000000..2946eabe9 --- /dev/null +++ b/dev-python/Impacket/Manifest @@ -0,0 +1,8 @@ +DIST Impacket-0.9.6.0.tar.gz 241509 RMD160 76f381a0d6be7fdfe8d810395bbe60f6d2f2202f SHA1 bc6979205868e66db8ccbc4d8cc4230894aa3346 SHA256 31d51acda423889fe498a3c81256269620780c2af6378509def695e4e69c58df +EBUILD Impacket-0.9.6.0.ebuild 632 RMD160 b7b4f6049da53559e91bbec30d6848511cc84b6e SHA1 4e94e1319d995a1985d69b03d1458970c73e70bb SHA256 bb54f9884fb260ada475aabfabc2cc40c4d6f4cf51dd5a293991ce537c856296 +MD5 3d8857a175d923e234d5089767536472 Impacket-0.9.6.0.ebuild 632 +RMD160 b7b4f6049da53559e91bbec30d6848511cc84b6e Impacket-0.9.6.0.ebuild 632 +SHA256 bb54f9884fb260ada475aabfabc2cc40c4d6f4cf51dd5a293991ce537c856296 Impacket-0.9.6.0.ebuild 632 +MD5 f5770d29d2d81368145d038dc3c10252 files/digest-Impacket-0.9.6.0 250 +RMD160 3123119db8b9e39ae356d94fae2c7ee398ca7222 files/digest-Impacket-0.9.6.0 250 +SHA256 e7efe6dabe5426a83ff8bebbf56e18b5c4492cf6fa926d305b35456b276300c2 files/digest-Impacket-0.9.6.0 250 diff --git a/dev-python/Impacket/files/digest-Impacket-0.9.6.0 b/dev-python/Impacket/files/digest-Impacket-0.9.6.0 new file mode 100644 index 000000000..8eebd9791 --- /dev/null +++ b/dev-python/Impacket/files/digest-Impacket-0.9.6.0 @@ -0,0 +1,3 @@ +MD5 6393804c7b88bca89cf7516214a61033 Impacket-0.9.6.0.tar.gz 241509 +RMD160 76f381a0d6be7fdfe8d810395bbe60f6d2f2202f Impacket-0.9.6.0.tar.gz 241509 +SHA256 31d51acda423889fe498a3c81256269620780c2af6378509def695e4e69c58df Impacket-0.9.6.0.tar.gz 241509 diff --git a/dev-python/cxoracle/Manifest b/dev-python/cxoracle/Manifest new file mode 100644 index 000000000..9d7b3ccb5 --- /dev/null +++ b/dev-python/cxoracle/Manifest @@ -0,0 +1,8 @@ +DIST cx_Oracle-4.2.tar.gz 87591 RMD160 fdb147f5d21d5ccf7afab5c6978e3f73c1ec982b SHA1 367721bee9cb95525e38a244f22f7594a4a642e9 SHA256 b2a885be0bfc44478f6226751ce72862af4e23c8b37ff65269b2ae1d233a1975 +EBUILD cxoracle-4.2.ebuild 957 RMD160 03f57d40628b98e323cd31f8f8bb465f3f545289 SHA1 3a79d86cb1889c5e049027f1cc551e4d74260b0b SHA256 a02d0b974da74c5c1c16e55de3fe465f0e230044022a1544e09fcc82d19c1c52 +MD5 cc1341851a6eaac2343c426cefc4d6be cxoracle-4.2.ebuild 957 +RMD160 03f57d40628b98e323cd31f8f8bb465f3f545289 cxoracle-4.2.ebuild 957 +SHA256 a02d0b974da74c5c1c16e55de3fe465f0e230044022a1544e09fcc82d19c1c52 cxoracle-4.2.ebuild 957 +MD5 4c12d0f23202cd5c9c652ca25e1f02c5 files/digest-cxoracle-4.2 238 +RMD160 9e1399a736da0db47117fd7ac715eee871d24195 files/digest-cxoracle-4.2 238 +SHA256 27c31bdf07cd2360043fd29549512f10e8551d5b1f44a9f5834710f0650fe9c4 files/digest-cxoracle-4.2 238 diff --git a/dev-python/cxoracle/cxoracle-4.2.ebuild b/dev-python/cxoracle/cxoracle-4.2.ebuild new file mode 100644 index 000000000..97f9bae1f --- /dev/null +++ b/dev-python/cxoracle/cxoracle-4.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils + +MY_P="cx_Oracle-${PV}" +DESCRIPTION="Python extension module that allows access to Oracle Databases" +HOMEPAGE="http://www.python.net/crew/atuining/cx_Oracle/" +SRC_URI="http://easynews.dl.sourceforge.net/sourceforge/cx-oracle/${MY_P}.tar.gz" +RESTRICT="nomirror" + +LICENSE="Computronix" +SLOT="0" +KEYWORDS="~ia64 ~ppc ~x86" +IUSE="tests docs" + +DEPEND=">=dev-lang/python-2.2.2 +>=dev-db/oracle-instantclient-basic-10.1.0.2" +RDEPEND="${DEPEND}" +S="${WORKDIR}/${MY_P}" + +src_compile() { + cd "${S}" + distutils_src_compile +} + +src_install() { + cd "${S}" + distutils_src_install + if use "tests";then + docinto tests/ + dodoc test/* + fi + if use "docs";then + dodoc html/* + fi +} + +pkg_postinst() { + einfo + einfo "Getting started with cx_Oracle:" + einfo "http://www.oracle.com/technology/pub/articles/devlin-python-oracle.html" + einfo +} diff --git a/dev-python/cxoracle/files/digest-cxoracle-4.2 b/dev-python/cxoracle/files/digest-cxoracle-4.2 new file mode 100644 index 000000000..2e4ce0517 --- /dev/null +++ b/dev-python/cxoracle/files/digest-cxoracle-4.2 @@ -0,0 +1,3 @@ +MD5 fe878a70d3695cea2bb5533044f8f833 cx_Oracle-4.2.tar.gz 87591 +RMD160 fdb147f5d21d5ccf7afab5c6978e3f73c1ec982b cx_Oracle-4.2.tar.gz 87591 +SHA256 b2a885be0bfc44478f6226751ce72862af4e23c8b37ff65269b2ae1d233a1975 cx_Oracle-4.2.tar.gz 87591 diff --git a/dev-python/pyPdf/Manifest b/dev-python/pyPdf/Manifest new file mode 100644 index 000000000..99524e67e --- /dev/null +++ b/dev-python/pyPdf/Manifest @@ -0,0 +1,8 @@ +DIST pyPdf-1.10.tar.gz 27554 RMD160 5730634648a9bf784ec4ea8b9b19da704ca4da61 SHA1 e2b20fa48f9f792503f69cf07027fa89320b64c0 SHA256 4f7a507e634a8b34e489128e1f8f35a46f0824835036a41f764ec8fd5cc7cbfb +EBUILD pyPdf-1.10.ebuild 426 RMD160 cf38efbcd621f38f12392636b765bf679360bee7 SHA1 5733f61e9a8217d007e554871e2e08e2ce9e5e56 SHA256 4386f9a350b1615be779c49333cda307d0d3d955dc94556f747c5d4e7e379d46 +MD5 20d79c9b96c7261c561ad2e22589158e pyPdf-1.10.ebuild 426 +RMD160 cf38efbcd621f38f12392636b765bf679360bee7 pyPdf-1.10.ebuild 426 +SHA256 4386f9a350b1615be779c49333cda307d0d3d955dc94556f747c5d4e7e379d46 pyPdf-1.10.ebuild 426 +MD5 56c702924a253593477a71064c5bb431 files/digest-pyPdf-1.10 229 +RMD160 37b462d373fb7d6da241d1b83556716d058a29e6 files/digest-pyPdf-1.10 229 +SHA256 d7e315ccb1fef976e32b6676bb97d30b5e7d84d894201d19c9027e1ec9aaf246 files/digest-pyPdf-1.10 229 diff --git a/dev-python/pyPdf/files/digest-pyPdf-1.10 b/dev-python/pyPdf/files/digest-pyPdf-1.10 new file mode 100644 index 000000000..42771a242 --- /dev/null +++ b/dev-python/pyPdf/files/digest-pyPdf-1.10 @@ -0,0 +1,3 @@ +MD5 e15eca1a3ed4d5c0d86370784e552a92 pyPdf-1.10.tar.gz 27554 +RMD160 5730634648a9bf784ec4ea8b9b19da704ca4da61 pyPdf-1.10.tar.gz 27554 +SHA256 4f7a507e634a8b34e489128e1f8f35a46f0824835036a41f764ec8fd5cc7cbfb pyPdf-1.10.tar.gz 27554 diff --git a/dev-python/pyPdf/pyPdf-1.10.ebuild b/dev-python/pyPdf/pyPdf-1.10.ebuild new file mode 100644 index 000000000..709bd24db --- /dev/null +++ b/dev-python/pyPdf/pyPdf-1.10.ebuild @@ -0,0 +1,18 @@ +inherit distutils + + +S=${WORKDIR}/${PN}-${PV} +DESCRIPTION="A Pure-Python library built as a PDF toolkit." +HOMEPAGE="http://pybrary.net/pyPdf/" +SRC_URI="http://pybrary.net/pyPdf/${PN}-${PV}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="" +DEPEND="dev-lang/python" + +src_install() { + distutils_src_install + dodoc ${S}/{README} +} + diff --git a/dev-python/python-ptrace/Manifest b/dev-python/python-ptrace/Manifest new file mode 100644 index 000000000..7a49f1576 --- /dev/null +++ b/dev-python/python-ptrace/Manifest @@ -0,0 +1,2 @@ +DIST python-ptrace-0.4.2.tar.gz 68280 RMD160 a67ef2d10efb60478b343a48aaa204372906749c SHA1 d40d45c417a622e47222eed1d245f030d70f9289 SHA256 ece9e442c16fcd26f5b4daa40a91c952e54278e7dfb6b4d179b35e23a3885945 +EBUILD python-ptrace-0.4.2.ebuild 464 RMD160 0fcedeb5594816a820db7d783639a0c173b85ca7 SHA1 d28d732796e47f00d02c9ab5d616dbc1441d1f14 SHA256 d1d9aceb217f0cbb3e6f166a240995d1a54881464c4f991655c49185a5e1e8ec diff --git a/dev-python/python-ptrace/python-ptrace-0.4.2.ebuild b/dev-python/python-ptrace/python-ptrace-0.4.2.ebuild new file mode 100644 index 000000000..fc822fec6 --- /dev/null +++ b/dev-python/python-ptrace/python-ptrace-0.4.2.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +NEED_PYTHON=2.4 + +inherit distutils + +DESCRIPTION="a debugger using ptrace written in Python" +HOMEPAGE="http://python-ptrace.hachoir.org/" +SRC_URI="http://pypi.python.org/packages/source/p/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/ctypes" + +PYTHON_MODNAME="ptrace" diff --git a/dev-util/eclipse-pydev-bin/Manifest b/dev-util/eclipse-pydev-bin/Manifest new file mode 100644 index 000000000..8e96f543f --- /dev/null +++ b/dev-util/eclipse-pydev-bin/Manifest @@ -0,0 +1,2 @@ +MD5 9843ae617ea748ef087125248aebc376 eclipse-pydev-bin-0.9.8.7.ebuild 977 +MD5 5046458f9c5ac8910520ca4c170f7ff3 files/digest-eclipse-pydev-bin-0.9.8.7 82 diff --git a/dev-util/eclipse-pydev-bin/eclipse-pydev-bin-0.9.8.7.ebuild b/dev-util/eclipse-pydev-bin/eclipse-pydev-bin-0.9.8.7.ebuild new file mode 100644 index 000000000..184d515ac --- /dev/null +++ b/dev-util/eclipse-pydev-bin/eclipse-pydev-bin-0.9.8.7.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/dev-util/eclipse-pydev-bin/eclipse-pydev-bin-0.9.8.7.ebuild,v 1.1.1.1 2006/03/09 22:54:57 grimmlin Exp $ + +inherit eclipse-ext + +MY_PV=${PV//\./_} + +DESCRIPTION="Python Development Tools for Eclipse" +HOMEPAGE="http://pydev.sourceforge.net" +SRC_URI="mirror://sourceforge/pydev/org.python.pydev.feature-${MY_PV}.zip" +SLOT="1" +LICENSE="CPL-1.0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND=">=dev-util/eclipse-sdk-3.1 + >=dev-lang/python-2.3" + +S=${WORKDIR} + +src_compile() { + einfo "${P} is a binary package" +} + +src_install () { + eclipse-ext_require-slot 3.1 || die "Failed to find suitable Eclipse installation" + + eclipse-ext_create-ext-layout binary || die "Failed to create layout" + + eclipse-ext_install-features eclipse/features/* || die "Failed to install features" + eclipse-ext_install-plugins eclipse/plugins/* || die "Failed to install plugins" +} diff --git a/dev-util/eclipse-pydev-bin/files/digest-eclipse-pydev-bin-0.9.8.7 b/dev-util/eclipse-pydev-bin/files/digest-eclipse-pydev-bin-0.9.8.7 new file mode 100644 index 000000000..9cdcd5778 --- /dev/null +++ b/dev-util/eclipse-pydev-bin/files/digest-eclipse-pydev-bin-0.9.8.7 @@ -0,0 +1 @@ +MD5 925b79ef9279f0ae98407f5f9af3b32d org.python.pydev.feature-0_9_8_7.zip 2242292 diff --git a/dev-util/premake/Manifest b/dev-util/premake/Manifest new file mode 100644 index 000000000..5e95570df --- /dev/null +++ b/dev-util/premake/Manifest @@ -0,0 +1,8 @@ +DIST premake-src-3.2.zip 368002 RMD160 bbf8178067512ed532963b5f1c2af49c19c38dc6 SHA1 6e6c244c8c5939e353bc55c5b50c1ec06bfd3e90 SHA256 3ba57e55f68dc70db5b8e3535d93b39e6fe29a4d388adb331bc365ee4c70eaa1 +EBUILD premake-3.2.ebuild 413 RMD160 30b67becd6eeb0ce3199abe15cee8820eeca60bc SHA1 586850ea419d92deaf79102903e9166198a09a9f SHA256 8546eecb228547a418bcf42fb8768a4e718408ad6c0892a4323cf05a40376d2d +MD5 8fb4237b739f058a64846f31b112e40f premake-3.2.ebuild 413 +RMD160 30b67becd6eeb0ce3199abe15cee8820eeca60bc premake-3.2.ebuild 413 +SHA256 8546eecb228547a418bcf42fb8768a4e718408ad6c0892a4323cf05a40376d2d premake-3.2.ebuild 413 +MD5 9228edf437014507897840810412f14a files/digest-premake-3.2 238 +RMD160 a424f97c627fa005b3e27243c9b506c3816e4108 files/digest-premake-3.2 238 +SHA256 6a816aef946a1155e75fce308355ef2203040abb3b50850a4323f9f78992a8fb files/digest-premake-3.2 238 diff --git a/dev-util/premake/files/digest-premake-3.2 b/dev-util/premake/files/digest-premake-3.2 new file mode 100644 index 000000000..694b951c4 --- /dev/null +++ b/dev-util/premake/files/digest-premake-3.2 @@ -0,0 +1,3 @@ +MD5 6848ae083ad944fef788978ce7670cd9 premake-src-3.2.zip 368002 +RMD160 bbf8178067512ed532963b5f1c2af49c19c38dc6 premake-src-3.2.zip 368002 +SHA256 3ba57e55f68dc70db5b8e3535d93b39e6fe29a4d388adb331bc365ee4c70eaa1 premake-src-3.2.zip 368002 diff --git a/dev-util/premake/premake-3.2.ebuild b/dev-util/premake/premake-3.2.ebuild new file mode 100644 index 000000000..d3c34c1cf --- /dev/null +++ b/dev-util/premake/premake-3.2.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="A makefile generation tool" +HOMEPAGE="http://premake.berlios.de/" +SRC_URI="mirror://sourceforge/premake/${PN}-src-${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S=${WORKDIR}/${P/p/P} + +src_install() { + dobin bin/premake +} diff --git a/manifest1_obsolete b/manifest1_obsolete new file mode 100644 index 000000000..e69de29bb diff --git a/net-analyzer/autoscan-network/Manifest b/net-analyzer/autoscan-network/Manifest new file mode 100644 index 000000000..a6c92451f --- /dev/null +++ b/net-analyzer/autoscan-network/Manifest @@ -0,0 +1,8 @@ +DIST autoscan-network-1.10.tar.gz 911808 RMD160 4d2c1a9a2a03b047894f5a82197fc468e7239ac5 SHA1 67a931a01f2f8e1dc182ac6bf66af3ea4b9b3b2f SHA256 961b32453e6bb36c7440f855e2974ae500911e476978a4e93984236a5bba3a1a +EBUILD autoscan-network-1.10.ebuild 1583 RMD160 f57da67283c5e3afec2c1b95db2b396ece199c54 SHA1 0a575b63caf65299ac80182e92c1b952da341f34 SHA256 c1bde61a041a7cd7a9fb96abd49515a770fbd8441707dc04ac1574a8f68a0899 +MD5 fbc9c6b9d8b82bced7054ca019cd5642 autoscan-network-1.10.ebuild 1583 +RMD160 f57da67283c5e3afec2c1b95db2b396ece199c54 autoscan-network-1.10.ebuild 1583 +SHA256 c1bde61a041a7cd7a9fb96abd49515a770fbd8441707dc04ac1574a8f68a0899 autoscan-network-1.10.ebuild 1583 +MD5 7ba328b85392634d640e833def289fc1 files/digest-autoscan-network-1.10 265 +RMD160 715605f60dc5bb875525986d6ea13a579c72ebd9 files/digest-autoscan-network-1.10 265 +SHA256 4c12e6c61c24cff295c67e0e15e32a0918507f9ffdfe8db1d8e212467019365f files/digest-autoscan-network-1.10 265 diff --git a/net-analyzer/autoscan-network/autoscan-network-1.10.ebuild b/net-analyzer/autoscan-network/autoscan-network-1.10.ebuild new file mode 100644 index 000000000..3d44bc6e0 --- /dev/null +++ b/net-analyzer/autoscan-network/autoscan-network-1.10.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +inherit gnome2 + +DESCRIPTION="Utility for network exploration with Samba support." +HOMEPAGE="http://autoscan.fr" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~alpha ~sparc ~hppa ~amd64 ~ia64 ~mips" +IUSE="snmp samba nessus trayicon gtk gnome" + +SRC_URI="http://autoscan.fr/download/${P}.tar.gz" + +RDEPEND="net-analyzer/nmap + gnome? ( >=gnome-base/libgnomeui-2.0 + >=gnome-base/gnome-keyring-0.4.2 ) + samba? ( net-fs/samba ) + gtk? ( >=gnome-extra/gtkhtml-2.0 + >=gnome-base/gnome-vfs-2.8.4 + >=x11-libs/pango-1.8.1 ) + console? ( >=x11-libs/vte-0.11.12 ) + sound? ( >=media-libs/libao-0.8.5 + >=media-libs/libvorbis-1.1.0 ) + nessus? ( net-analyzer/nessus ) + snmp? ( >=net-analyzer/net-snmp-5.0 ) + >=dev-libs/glib-2.6.3 + dev-libs/libelf" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + + +src_compile() { + if ! use samba; then + sed -i -e '/MODULE_SAMBA=/ s/enable/disable/g' configure + fi + if ! use sound; then + sed -i -e '/SOUND=/ s/enable/disable/g' configure + fi + if ! use gnome; then + sed -i -e '/GNOME=/ s/enable/disable/g' configure + fi + if ! use snmp; then + sed -i -e '/SNMP=/ s/enable/disable/g' configure + fi + if ! use nessus; then + sed -i -e '/MODULE_NESSUS=/ s/enable/disable/g' configure + fi + if ! use trayicon; then + sed -i -e '/TRAYICON=/ s/enable/disable/g' configure + fi + if ! use console; then + sed -i -e '/MODULE_CONSOLE=/ s/enable/disable/g' configure + fi + ./configure --distrib-gentoo || die "Configure failed" + emake || die "emake failed" +} diff --git a/net-analyzer/autoscan-network/files/digest-autoscan-network-1.10 b/net-analyzer/autoscan-network/files/digest-autoscan-network-1.10 new file mode 100644 index 000000000..18a9b3aba --- /dev/null +++ b/net-analyzer/autoscan-network/files/digest-autoscan-network-1.10 @@ -0,0 +1,3 @@ +MD5 134f1f3a111292eda9baf234b85fa1f3 autoscan-network-1.10.tar.gz 911808 +RMD160 4d2c1a9a2a03b047894f5a82197fc468e7239ac5 autoscan-network-1.10.tar.gz 911808 +SHA256 961b32453e6bb36c7440f855e2974ae500911e476978a4e93984236a5bba3a1a autoscan-network-1.10.tar.gz 911808 diff --git a/net-analyzer/dnsa/Manifest b/net-analyzer/dnsa/Manifest new file mode 100644 index 000000000..a8d4835fe --- /dev/null +++ b/net-analyzer/dnsa/Manifest @@ -0,0 +1,8 @@ +DIST dnsa-0.5-beta.tar.gz 554091 RMD160 3fd87d8d4e74150baa4246aac0330d5343514b50 SHA1 9066dbe9b474d5e629b1e8b217a71ec59d8a8f86 SHA256 d63d52a1315ce234a2b41a2410e2e8fec92ddbfa0896c11528bdb7dc2514f1b2 +EBUILD dnsa-0.5_beta.ebuild 806 RMD160 b56da7bfa22a1d4ed2899288df2102aca310a37a SHA1 e5b7e174882e10f6dfbff1fa418e7c82c420ed46 SHA256 315e00b0e37fd483f9165319d9e548dd75193acef2dee7a35567e51281a0fb89 +MD5 aa425601da9cf1728ebad89533da39f0 dnsa-0.5_beta.ebuild 806 +RMD160 b56da7bfa22a1d4ed2899288df2102aca310a37a dnsa-0.5_beta.ebuild 806 +SHA256 315e00b0e37fd483f9165319d9e548dd75193acef2dee7a35567e51281a0fb89 dnsa-0.5_beta.ebuild 806 +MD5 195d1f1b707d1093a59337dccead4547 files/digest-dnsa-0.5_beta 241 +RMD160 88803e90704d019218442e0890e3aefa821b9f91 files/digest-dnsa-0.5_beta 241 +SHA256 1947468a8fcd0f6c3efc211fcd8f6411da6836cb43e6aa817087c615943d1817 files/digest-dnsa-0.5_beta 241 diff --git a/net-analyzer/dnsa/dnsa-0.5_beta.ebuild b/net-analyzer/dnsa/dnsa-0.5_beta.ebuild new file mode 100644 index 000000000..2ba646aaa --- /dev/null +++ b/net-analyzer/dnsa/dnsa-0.5_beta.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/dnsa/dnsa-0.5_beta.ebuild,v 1.1.1.1 2006/02/27 20:03:41 grimmlin Exp $ + +inherit eutils + +DESCRIPTION="Swiss-army knife tool for dns auditing" +HOMEPAGE="http://www.packetfactory.net/projects/dnsa/" + +MY_P="${PN}-0.5-beta" + +SRC_URI="http://www.packetfactory.net/projects/${PN}/${MY_P}.tar.gz" +LICENSE="GPL" +SLOT="0" +KEYWORDS="~x86" +IUSE="debug" + +DEPEND="=net-libs/libnet-1.0.2a-r3 + virtual/libpcap" + +S=${WORKDIR}/${MY_P}/sources + +src_compile() { + use debug && conf="--enable-debug" + econf ${conf} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + einstall || die "install failed" + dodoc ../docs/README ../docs/EXAMPLES +} diff --git a/net-analyzer/dnsa/files/digest-dnsa-0.5_beta b/net-analyzer/dnsa/files/digest-dnsa-0.5_beta new file mode 100644 index 000000000..129a88043 --- /dev/null +++ b/net-analyzer/dnsa/files/digest-dnsa-0.5_beta @@ -0,0 +1,3 @@ +MD5 86f96250911dd08f8d782801cfe8e9e1 dnsa-0.5-beta.tar.gz 554091 +RMD160 3fd87d8d4e74150baa4246aac0330d5343514b50 dnsa-0.5-beta.tar.gz 554091 +SHA256 d63d52a1315ce234a2b41a2410e2e8fec92ddbfa0896c11528bdb7dc2514f1b2 dnsa-0.5-beta.tar.gz 554091 diff --git a/net-analyzer/dnsenum/Manifest b/net-analyzer/dnsenum/Manifest new file mode 100644 index 000000000..c9d649500 --- /dev/null +++ b/net-analyzer/dnsenum/Manifest @@ -0,0 +1,12 @@ +AUX dnsenum-gentoo.patch 390 RMD160 1d5c53ece2a6084f0656495ea183904fd158ce96 SHA1 d6d077bd35f6fe461077a5197e690860e1068bfa SHA256 bdef41b3a8ae64a321b63b70eef0ad96e31cdffe5e754ffbf4356e38141138c3 +MD5 425a3c9b96cd503ba9a61cd2e627979d files/dnsenum-gentoo.patch 390 +RMD160 1d5c53ece2a6084f0656495ea183904fd158ce96 files/dnsenum-gentoo.patch 390 +SHA256 bdef41b3a8ae64a321b63b70eef0ad96e31cdffe5e754ffbf4356e38141138c3 files/dnsenum-gentoo.patch 390 +DIST dnsenum.zip 2976 RMD160 774d06cec10246589c2084720fe3b726302db70b SHA1 91925bfe31ffce8432b042a2104c9843bc0b4aaa SHA256 f4978177d240a78a9f740f6802aff5a4a303543634e143d074128e57b587ef0d +EBUILD dnsenum-1.0.ebuild 615 RMD160 99ab862ad0e2441ab28a9bbc83ae53fb5f16310d SHA1 42ec735eca23e0119d0adaf348f41ae27c1eb806 SHA256 8f31e5b25ef307d9d283aa03672ba385d88b9745c2b3f8d6f781976ffc631839 +MD5 4561764ad3087490499a8364f1dbd23b dnsenum-1.0.ebuild 615 +RMD160 99ab862ad0e2441ab28a9bbc83ae53fb5f16310d dnsenum-1.0.ebuild 615 +SHA256 8f31e5b25ef307d9d283aa03672ba385d88b9745c2b3f8d6f781976ffc631839 dnsenum-1.0.ebuild 615 +MD5 d5b3e37bff78a9228ba5c447e1c52633 files/digest-dnsenum-1.0 208 +RMD160 ec0d87cc657afedc70c3ea7df61fec194ac9f44f files/digest-dnsenum-1.0 208 +SHA256 6c55a2ac0e5b39a10f394bc14638cfff71e15bc22cef6ebadda33f35a3bd7c26 files/digest-dnsenum-1.0 208 diff --git a/net-analyzer/dnsenum/dnsenum-1.0.ebuild b/net-analyzer/dnsenum/dnsenum-1.0.ebuild new file mode 100644 index 000000000..2e16bd6c8 --- /dev/null +++ b/net-analyzer/dnsenum/dnsenum-1.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/dnsenum/dnsenum-1.0.ebuild,v 1.1.1.1 2006/03/30 21:15:43 grimmlin Exp $ + +inherit eutils + +DESCRIPTION="A perl script to enumerate DNS from a server" +HOMEPAGE="http://packetstormsecurity.org" +SRC_URI="http://packetstormsecurity.org/UNIX/scanners/${PN}.zip" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" +DEPEND="" +S=${WORKDIR} + +src_compile () { + einfo "Nothing to compile" + epatch ${FILESDIR}/${PN}-gentoo.patch +} + +src_install () { + dodoc *.txt + newsbin ${PN}.pl ${PN} +} diff --git a/net-analyzer/dnsenum/files/digest-dnsenum-1.0 b/net-analyzer/dnsenum/files/digest-dnsenum-1.0 new file mode 100644 index 000000000..0f7a674ca --- /dev/null +++ b/net-analyzer/dnsenum/files/digest-dnsenum-1.0 @@ -0,0 +1,3 @@ +MD5 d04ba89b205f4e707804ab4b5a46fdd6 dnsenum.zip 2976 +RMD160 774d06cec10246589c2084720fe3b726302db70b dnsenum.zip 2976 +SHA256 f4978177d240a78a9f740f6802aff5a4a303543634e143d074128e57b587ef0d dnsenum.zip 2976 diff --git a/net-analyzer/dnsenum/files/dnsenum-gentoo.patch b/net-analyzer/dnsenum/files/dnsenum-gentoo.patch new file mode 100644 index 000000000..18f0cca1b --- /dev/null +++ b/net-analyzer/dnsenum/files/dnsenum-gentoo.patch @@ -0,0 +1,18 @@ +--- dnsenum.pl.old 2006-03-28 23:00:46.000000000 +0200 ++++ dnsenum.pl 2006-03-28 23:01:07.000000000 +0200 +@@ -20,7 +20,7 @@ + #usage + + if (@ARGV!=2){ +- print "Usage: perl dnsenum.pl \n\n"; ++ print "Usage: dnsenum \n\n"; + exit 1; + } + +@@ -182,4 +182,4 @@ + $rr->print; + } + } +- } +\ No newline at end of file ++ } diff --git a/net-analyzer/fierce/Manifest b/net-analyzer/fierce/Manifest new file mode 100644 index 000000000..9c3dabc70 --- /dev/null +++ b/net-analyzer/fierce/Manifest @@ -0,0 +1,13 @@ +AUX fierce-path.patch 897 RMD160 ba027be3046a9b2e44012f786c14fcdc72d03676 SHA1 73e34c43dc6eaebdb032b20430cea638b78614ad SHA256 b55d5af293ae2bd5ebd62082f8757b11fc1d2c28a8321b98ff6545ac68838bbd +MD5 380ed2b302c7f9688c0a23937902d714 files/fierce-path.patch 897 +RMD160 ba027be3046a9b2e44012f786c14fcdc72d03676 files/fierce-path.patch 897 +SHA256 b55d5af293ae2bd5ebd62082f8757b11fc1d2c28a8321b98ff6545ac68838bbd files/fierce-path.patch 897 +DIST fierce.pl 19719 RMD160 98d4059907e78cea1bb1173e44b9561d15576340 SHA1 d1acaf1c4120f3d52b445fb2d84ee659338c3c6b SHA256 b51ee8549f4249f4e62d2523d46ddc64292c42f26e5c84392f53d57e054fa18d +DIST hosts.txt 11850 RMD160 48e3fe38e84887f1b1a4e79547f72ff4e468e8a3 SHA1 a2645ab4e4e1ba8090997eaae8f2bb2dd1bb8ea1 SHA256 257be39eb0bf18162f132722d4ec8db18d7c43219ce4654fbc293341aafb0573 +EBUILD fierce-1.0.2.ebuild 735 RMD160 03a4fbb96daf26334a70d7696b14eeef865e806c SHA1 2f1effad85ab54b27c0cfa2ac80a0af05f3cccbd SHA256 96882cdc90d8091aa68cecf7884214a71792998affc728b1c5805a5e62ef78d1 +MD5 4d869aee3c1a723104969fa3725a6f1a fierce-1.0.2.ebuild 735 +RMD160 03a4fbb96daf26334a70d7696b14eeef865e806c fierce-1.0.2.ebuild 735 +SHA256 96882cdc90d8091aa68cecf7884214a71792998affc728b1c5805a5e62ef78d1 fierce-1.0.2.ebuild 735 +MD5 0bff45cfb54d168cee09c35d93767590 files/digest-fierce-1.0.2 410 +RMD160 1fb780593b3065c701b2e7c7556fc7a0ac9df317 files/digest-fierce-1.0.2 410 +SHA256 4a514870b8ed77c633752912894bb30799469e633e857d08c7839d5e1245a2be files/digest-fierce-1.0.2 410 diff --git a/net-analyzer/fierce/fierce-1.0.2.ebuild b/net-analyzer/fierce/fierce-1.0.2.ebuild new file mode 100644 index 000000000..eaa7ac733 --- /dev/null +++ b/net-analyzer/fierce/fierce-1.0.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils +DESCRIPTION="Fierce is a DNS reconnaissance tool written in perl" +HOMEPAGE="http://ha.ckers.org/fierce/" +SRC_URI="http://ha.ckers.org/fierce/"${PN}".pl + http://ha.ckers.org/fierce/hosts.txt" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="dev-perl/Net-DNS" +SLOT="0" + +S="${WORKDIR}"/"${PN}" + +src_unpack() { + einfo "Nothing to unpack" + mkdir "${S}" + for x in $A + do + cp "${DISTDIR}"/"${x}" "${S}" + done + cd "${S}" + epatch "${FILESDIR}"/"${PN}"-path.patch +} + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + insinto /usr/share/"${PN}" + doins hosts.txt + dobin "${PN}".pl +} diff --git a/net-analyzer/fierce/files/digest-fierce-1.0.2 b/net-analyzer/fierce/files/digest-fierce-1.0.2 new file mode 100644 index 000000000..b40def82d --- /dev/null +++ b/net-analyzer/fierce/files/digest-fierce-1.0.2 @@ -0,0 +1,6 @@ +MD5 7732d23f92be4cf0480c35360322fadb fierce.pl 19719 +RMD160 98d4059907e78cea1bb1173e44b9561d15576340 fierce.pl 19719 +SHA256 b51ee8549f4249f4e62d2523d46ddc64292c42f26e5c84392f53d57e054fa18d fierce.pl 19719 +MD5 4a6a5eeb2ff9868575e1acab017fb1d7 hosts.txt 11850 +RMD160 48e3fe38e84887f1b1a4e79547f72ff4e468e8a3 hosts.txt 11850 +SHA256 257be39eb0bf18162f132722d4ec8db18d7c43219ce4654fbc293341aafb0573 hosts.txt 11850 diff --git a/net-analyzer/fierce/files/fierce-path.patch b/net-analyzer/fierce/files/fierce-path.patch new file mode 100644 index 000000000..d18a978f7 --- /dev/null +++ b/net-analyzer/fierce/files/fierce-path.patch @@ -0,0 +1,25 @@ +--- fierce.pl.orig 2008-01-31 21:44:51.000000000 +0000 ++++ fierce.pl 2008-01-31 22:32:12.000000000 +0000 +@@ -252,11 +252,11 @@ + output("\nUnsuccessful in zone transfer (it was worth a shot)"); + } + output("Okay, trying the good old fashioned way... brute force"); +- $wordlist = $wordlist || 'hosts.txt'; ++ $wordlist = $wordlist || '/usr/share/fierce/hosts.txt'; + if (-e $wordlist) { + # user provided or default + open (WORDLIST, '<', $wordlist) or +- open (WORDLIST, '<', 'hosts.txt') or ++ open (WORDLIST, '<', '/usr/share/fierce/hosts.txt') or + quit_early("Can't open $wordlist or the default wordlist"); + for (){ + chomp; +@@ -635,6 +635,8 @@ + -wordlist Use a seperate wordlist (one word per line). Usage: + + perl fierce.pl -dns examplecompany.com -wordlist dictionary.txt ++ ++ Default hosts list is in /usr/share/fierce/hosts.txt + EOHELP + exit; + } diff --git a/net-analyzer/geoedge/Manifest b/net-analyzer/geoedge/Manifest new file mode 100644 index 000000000..fd1a54f6f --- /dev/null +++ b/net-analyzer/geoedge/Manifest @@ -0,0 +1,8 @@ +DIST geoedge.py 2799 RMD160 a52ea0db5679e2706a1768eed9a8084dadad53d5 SHA1 b9bb44add713b963bcd1cc650d576d8613b9e8dc SHA256 1ba15494c90eacb1d4afb33b9ece5cbba172b978de579338d933dd6dd3da83b1 +EBUILD geoedge-0.1.ebuild 561 RMD160 48a30aa6f364bf9ab9d62ab09f9ce7b7df249f3a SHA1 fedc6a1f98549fe7af913fa1c9516478e7105471 SHA256 00a5b37bb36407fca53654d6c9bc237764bfa8483b7590b91f46768ef308a7ec +MD5 1a6d88a8dc055b778e80abecf24f9a15 geoedge-0.1.ebuild 561 +RMD160 48a30aa6f364bf9ab9d62ab09f9ce7b7df249f3a geoedge-0.1.ebuild 561 +SHA256 00a5b37bb36407fca53654d6c9bc237764bfa8483b7590b91f46768ef308a7ec geoedge-0.1.ebuild 561 +MD5 08064feff3be67d0e8254b9a277db160 files/digest-geoedge-0.1 205 +RMD160 5eaf26042a4cb9498bee2476ff79615859cc5cdb files/digest-geoedge-0.1 205 +SHA256 42f17f4a9bde9daadea743f59a4ddd91ad173a0c9b708c3aaa470a18b58e61d7 files/digest-geoedge-0.1 205 diff --git a/net-analyzer/geoedge/files/digest-geoedge-0.1 b/net-analyzer/geoedge/files/digest-geoedge-0.1 new file mode 100644 index 000000000..8a137945d --- /dev/null +++ b/net-analyzer/geoedge/files/digest-geoedge-0.1 @@ -0,0 +1,3 @@ +MD5 fac037e23769af04344135e98deb61e9 geoedge.py 2799 +RMD160 a52ea0db5679e2706a1768eed9a8084dadad53d5 geoedge.py 2799 +SHA256 1ba15494c90eacb1d4afb33b9ece5cbba172b978de579338d933dd6dd3da83b1 geoedge.py 2799 diff --git a/net-analyzer/geoedge/geoedge-0.1.ebuild b/net-analyzer/geoedge/geoedge-0.1.ebuild new file mode 100644 index 000000000..7b26c315f --- /dev/null +++ b/net-analyzer/geoedge/geoedge-0.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="This little tools is designed to get geolocalization information of a host" +HOMEPAGE="http://www.edge-security.com/edge-soft.php" +SRC_URI="http://www.edge-security.com/soft/${PN}.py" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="" +SLOT="0" + +src_unpack() { + elog "Nothing to unpack" + mkdir "${S}" + cp "${DISTDIR}"/"${A}" "${S}" +} + +src_compile() { + elog "Nothing to compile" +} + +src_install() { + dobin "${PN}".py +} diff --git a/net-analyzer/httprint/Manifest b/net-analyzer/httprint/Manifest new file mode 100644 index 000000000..1f2c600ae --- /dev/null +++ b/net-analyzer/httprint/Manifest @@ -0,0 +1,2 @@ +MD5 e08c15de8b11767eff2cbfaa398aa9d8 files/digest-httprint-301 67 +MD5 98cb9a1a689f888aea1fb97396f63aca httprint-301.ebuild 687 diff --git a/net-analyzer/httprint/files/digest-httprint-301 b/net-analyzer/httprint/files/digest-httprint-301 new file mode 100644 index 000000000..aafa6f82a --- /dev/null +++ b/net-analyzer/httprint/files/digest-httprint-301 @@ -0,0 +1 @@ +MD5 af53704de9c1851bd439cbe3fab3e0ad httprint_linux_301.zip 679128 diff --git a/net-analyzer/httprint/httprint-301.ebuild b/net-analyzer/httprint/httprint-301.ebuild new file mode 100644 index 000000000..c6351ca47 --- /dev/null +++ b/net-analyzer/httprint/httprint-301.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/httprint/httprint-301.ebuild,v 1.1.1.1 2006/03/09 21:57:23 grimmlin Exp $ + +inherit eutils + +DESCRIPTION="HTTP fingerprinter tool" +HOMEPAGE="http://net-square.com/${PN}/" + +MY_P="${PN}_${PV}" + +SRC_URI="http://net-square.com/${PN}/${PN}_linux_${PV}.zip" +LICENSE="GPL" +SLOT="0" +KEYWORDS="~x86" +IUSE="allsigs" + +DEPEND="dev-libs/openssl" + +S=${WORKDIR}/${MY_P}/linux + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + use allsigs && sed -i -e '/^#[a-zA-Z0-9]/ s/^#//g' signatures.txt + insinto /opt/"${MY_P}"/ + doins httprint nmapportlist.txt signatures.txt + insinto /opt/"${MY_P}"/images/ + doins images/* + dodoc input.txt readme.txt +} diff --git a/net-analyzer/ike-scan/Manifest b/net-analyzer/ike-scan/Manifest new file mode 100644 index 000000000..f56ef4392 --- /dev/null +++ b/net-analyzer/ike-scan/Manifest @@ -0,0 +1,8 @@ +DIST ike-scan-1.8.tar.gz 1376995 RMD160 25a55ef2679c5d42ab979d7b22e6ed0af33834b6 SHA1 74fa7d14334f28e862d837fd3c13503a5cecd8af SHA256 fc7b4aea32e4cf577411237410323c8bc327f65e54b88184b1a85118d79c918c +EBUILD ike-scan-1.8.ebuild 701 RMD160 84c3326ddc03c61a67d66d9c91c796ec1f1fbdce SHA1 926b143ad07b7d529930439840c85be57d71ca7a SHA256 df4eda720f28c8d9056ae9e0978d0bd3f0bdafac140e38c670233502a57221a5 +MD5 c079912682ac049f2f18f4268afa3c05 ike-scan-1.8.ebuild 701 +RMD160 84c3326ddc03c61a67d66d9c91c796ec1f1fbdce ike-scan-1.8.ebuild 701 +SHA256 df4eda720f28c8d9056ae9e0978d0bd3f0bdafac140e38c670233502a57221a5 ike-scan-1.8.ebuild 701 +MD5 b57b16c7478e6d47a750bf201431b23b files/digest-ike-scan-1.8 241 +RMD160 2559114409bf3801c21876479997b9f893dff32e files/digest-ike-scan-1.8 241 +SHA256 0ac33581ab674df0cb19aa2d0d3d1ad3c9d7a02f430738fb66745bbd5031a2bc files/digest-ike-scan-1.8 241 diff --git a/net-analyzer/ike-scan/files/digest-ike-scan-1.7 b/net-analyzer/ike-scan/files/digest-ike-scan-1.7 new file mode 100644 index 000000000..f424673cd --- /dev/null +++ b/net-analyzer/ike-scan/files/digest-ike-scan-1.7 @@ -0,0 +1 @@ +MD5 c06c6a3d78ba9b93c0abf79b3a3d2a11 ike-scan-1.7.tar.gz 1350170 diff --git a/net-analyzer/ike-scan/files/digest-ike-scan-1.8 b/net-analyzer/ike-scan/files/digest-ike-scan-1.8 new file mode 100644 index 000000000..b1a7a0ec2 --- /dev/null +++ b/net-analyzer/ike-scan/files/digest-ike-scan-1.8 @@ -0,0 +1,3 @@ +MD5 961310e6f3c07d26c90447e392dfb97e ike-scan-1.8.tar.gz 1376995 +RMD160 25a55ef2679c5d42ab979d7b22e6ed0af33834b6 ike-scan-1.8.tar.gz 1376995 +SHA256 fc7b4aea32e4cf577411237410323c8bc327f65e54b88184b1a85118d79c918c ike-scan-1.8.tar.gz 1376995 diff --git a/net-analyzer/ike-scan/ike-scan-1.8.ebuild b/net-analyzer/ike-scan/ike-scan-1.8.ebuild new file mode 100644 index 000000000..c77214af5 --- /dev/null +++ b/net-analyzer/ike-scan/ike-scan-1.8.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/ike-scan/ike-scan-1.8.ebuild,v 1.1.1.1 2006/02/27 20:03:41 grimmlin Exp $ + +DESCRIPTION="A utility for finding, fingerprinting and testing IKE VPN servers" +HOMEPAGE="http://www.nta-monitor.com/ike-scan/" +SRC_URI="http://www.nta-monitor.com/ike-scan/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="openssl" + +DEPEND="virtual/libc + openssl? dev-libs/openssl" + +src_compile() { + use openssl && conf="--with-openssl" + econf ${conf} || die + emake || die +} + +src_install() { + einstall install || die + dodoc ChangeLog NEWS INSTALL README TODO +} diff --git a/net-analyzer/inguma/Manifest b/net-analyzer/inguma/Manifest new file mode 100644 index 000000000..bc930b8c2 --- /dev/null +++ b/net-analyzer/inguma/Manifest @@ -0,0 +1,4 @@ +AUX inguma 47 RMD160 4a7734253d7400a8f1c55cfcb5148ab573e40d56 SHA1 de7fb22ec7a8892b526fd0258d67c4a5ea49a49d SHA256 7fa501a7298bed4401c4452ff805131fd17b2d350de1ea25b49ffb86b4f91e3b +AUX ingumagui 50 RMD160 bdcb9fbbae77c64bd78fd77fa3aa188738ff6bb3 SHA1 8eb522e8a2e8f1f4bc77402b49f7db4265dd313e SHA256 e9209d7798192d7d13398afb8f1e7100683ee2e3506815afe5e682f51bf19813 +DIST inguma-0.0.7.2.tar.gz 3103814 RMD160 5372862f78752771f7c6dd6cafdef15910364bfa SHA1 ac7d424e04ead24961b2307e6ecc294efa76280a SHA256 8ca227a5185935eb4e9d9d9589b2b5a530796988f05cb346e009c89cdf86cd5d +EBUILD inguma-0.0.7.2.ebuild 1087 RMD160 fc069de4640f75b1b525a54b9532ca07af1a648d SHA1 1c3a2b2a37eeea96b10eea1cedcb491b655c0e1e SHA256 820508def87d82421c6f668bc242a28fb3891b4369a848a4a9d59e47ca33480d diff --git a/net-analyzer/inguma/files/inguma b/net-analyzer/inguma/files/inguma new file mode 100644 index 000000000..b22295e7d --- /dev/null +++ b/net-analyzer/inguma/files/inguma @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/lib/inguma +python inguma.py diff --git a/net-analyzer/inguma/files/ingumagui b/net-analyzer/inguma/files/ingumagui new file mode 100644 index 000000000..1d2d60bd6 --- /dev/null +++ b/net-analyzer/inguma/files/ingumagui @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/lib/inguma +python ingumagui.py diff --git a/net-analyzer/inguma/inguma-0.0.7.2.ebuild b/net-analyzer/inguma/inguma-0.0.7.2.ebuild new file mode 100644 index 000000000..8ba299e94 --- /dev/null +++ b/net-analyzer/inguma/inguma-0.0.7.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="Inguma is an open source penetration testing toolkit written completely in Python" +HOMEPAGE="http://inguma.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="qt oracle" +SLOT="0" +RDEPEND="dev-python/Impacket + oracle? ( dev-python/cxoracle ) + dev-python/paramiko + dev-python/pysnmp + app-fuzz/scapy + qt? ( dev-python/PyQt )" + +MY_P=${PN}-0.0.7 +S=${WORKDIR}/${MY_P} +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + if ! use qt; then + rm -rf gui ingumagui.py + else + dosbin ${FILESDIR}/ingumagui + fi + dodir /usr/lib/${PN} + dodoc AUTHORS COPYING.txt ChangeLog LICENSE MODULES.txt README REQUIRES THANKS TODO TUTORIAL.txt doc/* + rm -rf AUTHORS COPYING.txt ChangeLog LICENSE MODULES.txt README REQUIRES THANKS TODO TUTORIAL.txt doc + rm -rf scapy* winscapy* + cp -pPR ${S}/* ${D}usr/lib/${PN} || die + chown -R root:0 ${D} + dosbin ${FILESDIR}/inguma +} diff --git a/net-analyzer/medusa/Manifest b/net-analyzer/medusa/Manifest new file mode 100644 index 000000000..aab13217a --- /dev/null +++ b/net-analyzer/medusa/Manifest @@ -0,0 +1,20 @@ +AUX medusa-1.3-automagic.patch 1474 RMD160 464a60dfdfc55b501b5993e4b4cc917db0318a55 SHA1 b6c5a2331a50da51941623cc3579cfcd84e17e57 SHA256 9cb925f0b7e054a6d0c1f7ff678b8131c4aa8d473e1b153c59b6a18e4ff55b3a +MD5 55253a78594d3606e58b4b1c25f4121a files/medusa-1.3-automagic.patch 1474 +RMD160 464a60dfdfc55b501b5993e4b4cc917db0318a55 files/medusa-1.3-automagic.patch 1474 +SHA256 9cb925f0b7e054a6d0c1f7ff678b8131c4aa8d473e1b153c59b6a18e4ff55b3a files/medusa-1.3-automagic.patch 1474 +DIST medusa-1.3.tar.gz 273154 RMD160 04f91b39555bf4ca5142096220f817710c4afc62 SHA1 a87e60484f4077b253058415f212b982e967ae85 SHA256 d87a7b1654a5c12af77c7f6c0e274dc2c1391e555b1abdc53dc2f921a010d40f +DIST medusa-1.4.tar.gz 306232 RMD160 af4c57f5b36bdbbb21253f8560ffd1dde594f414 SHA1 782dee6cbba5eba9636b8a1a25421739bc3348b3 SHA256 08af3917c8c53741627362ce3831f808bd8e9598b631e74cf49ec7c912adb237 +EBUILD medusa-1.3.ebuild 1211 RMD160 d4c387d2286f8ff9f6cff6f83c6c9e2b83088eae SHA1 10cc99177ec94870d43189145206bb64813eb438 SHA256 a35392334d9f5556cba55e4a6613960d904a39cc546f119ef6ffe59bf8cfce9d +MD5 03dbd7b383c5cbf41ec041d0b005ef89 medusa-1.3.ebuild 1211 +RMD160 d4c387d2286f8ff9f6cff6f83c6c9e2b83088eae medusa-1.3.ebuild 1211 +SHA256 a35392334d9f5556cba55e4a6613960d904a39cc546f119ef6ffe59bf8cfce9d medusa-1.3.ebuild 1211 +EBUILD medusa-1.4.ebuild 1212 RMD160 2f20af235248369a947a9a7153b5e49ad25401e3 SHA1 96570567ceda0326d14085aa5c1e8ed12d9682ac SHA256 e4cae30d43b0a553e31554afd5260194648f972998b9c40a0b033df5c5ace749 +MD5 b83bed04d772df60cd658625fdcd3b66 medusa-1.4.ebuild 1212 +RMD160 2f20af235248369a947a9a7153b5e49ad25401e3 medusa-1.4.ebuild 1212 +SHA256 e4cae30d43b0a553e31554afd5260194648f972998b9c40a0b033df5c5ace749 medusa-1.4.ebuild 1212 +MD5 c8eac688121217a44ba334918b8e6449 files/digest-medusa-1.3 232 +RMD160 1d41d100a52a7f2769325281777535949dd9a32a files/digest-medusa-1.3 232 +SHA256 18971b1f54370bb1f27eff4ea63a460707ec72039558179d5144497ea0bff563 files/digest-medusa-1.3 232 +MD5 75be1f94334adf877dd9fade9265cb33 files/digest-medusa-1.4 232 +RMD160 db9cb1bd8b74996af58a501c6232cfb04bee300c files/digest-medusa-1.4 232 +SHA256 d44d52b2482f799091e59d4e25f416b5e289df86f68469e1afac78dd86017be5 files/digest-medusa-1.4 232 diff --git a/net-analyzer/medusa/files/digest-medusa-1.3 b/net-analyzer/medusa/files/digest-medusa-1.3 new file mode 100644 index 000000000..4c44718c6 --- /dev/null +++ b/net-analyzer/medusa/files/digest-medusa-1.3 @@ -0,0 +1,3 @@ +MD5 08e04a1cfd1b4b3a354a29db3e5514fa medusa-1.3.tar.gz 273154 +RMD160 04f91b39555bf4ca5142096220f817710c4afc62 medusa-1.3.tar.gz 273154 +SHA256 d87a7b1654a5c12af77c7f6c0e274dc2c1391e555b1abdc53dc2f921a010d40f medusa-1.3.tar.gz 273154 diff --git a/net-analyzer/medusa/files/digest-medusa-1.4 b/net-analyzer/medusa/files/digest-medusa-1.4 new file mode 100644 index 000000000..b049f19b6 --- /dev/null +++ b/net-analyzer/medusa/files/digest-medusa-1.4 @@ -0,0 +1,3 @@ +MD5 aad236c87aaadbdc9162b6658c2118e6 medusa-1.4.tar.gz 306232 +RMD160 af4c57f5b36bdbbb21253f8560ffd1dde594f414 medusa-1.4.tar.gz 306232 +SHA256 08af3917c8c53741627362ce3831f808bd8e9598b631e74cf49ec7c912adb237 medusa-1.4.tar.gz 306232 diff --git a/net-analyzer/medusa/files/medusa-1.3-automagic.patch b/net-analyzer/medusa/files/medusa-1.3-automagic.patch new file mode 100644 index 000000000..844c5c825 --- /dev/null +++ b/net-analyzer/medusa/files/medusa-1.3-automagic.patch @@ -0,0 +1,47 @@ +--- configure.in.orig 2007-06-02 03:49:34.000000000 +0200 ++++ configure.in 2007-06-02 03:56:31.000000000 +0200 +@@ -58,9 +58,14 @@ + [AC_MSG_WARN([ *** OpenSSL header files required for SSL support. *** ])] + ) + ++AC_ARG_WITH([postgres], AS_HELP_STRING([--without-postgres], [Build without PostgreSQL module (default: test)])) ++if test "x$with_postgres" != "xno"; then + AC_CHECKING([for PostgreSQL Library files]) + AC_CHECK_LIB(pq, main, [], [AC_MSG_WARN([ *** LIBPQ required for PostgreSQL module. *** ])]) ++fi + ++AC_ARG_WITH([ssh2], AS_HELP_STRING([--without-ssh2], [Build without SSH2 module (default: test)])) ++if test "x$with_ssh2" != "xno"; then + AC_CHECKING([for Libssh2 Library files]) + AC_CHECK_LIB(ssh2, main, [], [AC_MSG_WARN([ *** Libssh2 required for SSH2 module. *** + +@@ -69,7 +74,10 @@ + + ])] + ) ++fi + ++AC_ARG_WITH([ncp], AS_HELP_STRING([--without-ncp], [Build without NCP module (default: test)])) ++if test "x$with_ncp" != "xno"; then + AC_CHECKING([for NCPFS Library and Header files]) + dnl [AC_DEFINE(HAVE_LIBNCP, 1, [Enabling NCP Module.])], + AC_CHECK_HEADER([ncp/nwcalls.h], +@@ -93,7 +101,10 @@ + + ])] + ) ++fi + ++AC_ARG_WITH([svn], AS_HELP_STRING([--without-svn], [Build without SVN module (default: test)])) ++if test "x$with_svn" != "xno"; then + AC_CHECKING([for Subversion Library and Header files]) + AC_CHECK_HEADER([apr-0/apr_tables.h], + [AC_CHECK_LIB(svn_client-1, main, +@@ -107,6 +118,7 @@ + + ])] + ) ++fi + + AC_CHECK_FUNCS(strcasestr) + diff --git a/net-analyzer/medusa/medusa-1.3.ebuild b/net-analyzer/medusa/medusa-1.3.ebuild new file mode 100644 index 000000000..3cf1eb4a5 --- /dev/null +++ b/net-analyzer/medusa/medusa-1.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools + +DESCRIPTION="A Modular,Parallel,Multiprotocol, Network Login Auditor" +HOMEPAGE="http://www.foofus.net/jmk/medusa/medusa.html" +SRC_URI="http://www.foofus.net/jmk/tools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="debug ncp postgres ssh2 subversion untested-modules" + +RDEPEND="ssh2? ( net-libs/libssh2 ) + ncp? ( net-fs/ncpfs ) + postgres? ( dev-db/libpq ) + subversion? ( dev-util/subversion )" +DEPEND="${RDEPEND} + dev-libs/openssl + sys-devel/autoconf" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix automagics (libssh2, ncp, postgres, subversion). + epatch "${FILESDIR}/${P}-automagic.patch" + + eautoreconf || die "autoconf failed" +} + +src_compile() { + + econf \ + --with-default-mod-path="/usr/lib/medusa/modules" \ + `use_enable debug` \ + `use_enable untested-modules untested` \ + `use_with ssh2` \ + `use_with ncp` \ + `use_with postgres` \ + `use_with subversion svn` \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "Install failed!" + + dodoc README TODO ChangeLog + dohtml doc/*.html +} diff --git a/net-analyzer/medusa/medusa-1.4.ebuild b/net-analyzer/medusa/medusa-1.4.ebuild new file mode 100644 index 000000000..6488779a6 --- /dev/null +++ b/net-analyzer/medusa/medusa-1.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools + +DESCRIPTION="A Modular,Parallel,Multiprotocol, Network Login Auditor" +HOMEPAGE="http://www.foofus.net/jmk/medusa/medusa.html" +SRC_URI="http://www.foofus.net/jmk/tools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="debug ncp postgres ssh2 subversion untested-modules" + +RDEPEND="ssh2? ( net-libs/libssh2 ) + ncp? ( net-fs/ncpfs ) + postgres? ( dev-db/libpq ) + subversion? ( dev-util/subversion )" +DEPEND="${RDEPEND} + dev-libs/openssl + sys-devel/autoconf" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix automagics (libssh2, ncp, postgres, subversion). + #epatch "${FILESDIR}/${P}-automagic.patch" + + eautoreconf || die "autoconf failed" +} + +src_compile() { + + econf \ + --with-default-mod-path="/usr/lib/medusa/modules" \ + `use_enable debug` \ + `use_enable untested-modules untested` \ + `use_with ssh2` \ + `use_with ncp` \ + `use_with postgres` \ + `use_with subversion svn` \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "Install failed!" + + dodoc README TODO ChangeLog + dohtml doc/*.html +} diff --git a/net-analyzer/metacoretex-ng/Manifest b/net-analyzer/metacoretex-ng/Manifest new file mode 100644 index 000000000..500020a74 --- /dev/null +++ b/net-analyzer/metacoretex-ng/Manifest @@ -0,0 +1,11 @@ +AUX mctx.sh 506 RMD160 1feb5b1e6241059e5c4516d34ef78cf2bb2a8759 SHA1 c419803e9773471439183443d0f92a3f88da2e55 SHA256 b9267816bb3c5caed49e50afad946ba12607d1b1c5691174644349d5cd35d01a +MD5 a5da95df709970abd9937ecf385154e5 files/mctx.sh 506 +RMD160 1feb5b1e6241059e5c4516d34ef78cf2bb2a8759 files/mctx.sh 506 +SHA256 b9267816bb3c5caed49e50afad946ba12607d1b1c5691174644349d5cd35d01a files/mctx.sh 506 +EBUILD metacoretex-ng-9999.ebuild 960 RMD160 36e7215ad172d72067c26c53e9e009bd7e298ed5 SHA1 21b8665c75baa81edf65fc253ad57e2236272269 SHA256 052041056f14e0de89023eaeb518836a0945514c0e16109d5d716422eb704337 +MD5 01b115c80945bbe2e1daff7966c05bbf metacoretex-ng-9999.ebuild 960 +RMD160 36e7215ad172d72067c26c53e9e009bd7e298ed5 metacoretex-ng-9999.ebuild 960 +SHA256 052041056f14e0de89023eaeb518836a0945514c0e16109d5d716422eb704337 metacoretex-ng-9999.ebuild 960 +MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-metacoretex-ng-9999 1 +RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-metacoretex-ng-9999 1 +SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-metacoretex-ng-9999 1 diff --git a/net-analyzer/metacoretex-ng/files/digest-metacoretex-ng-9999 b/net-analyzer/metacoretex-ng/files/digest-metacoretex-ng-9999 new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/net-analyzer/metacoretex-ng/files/digest-metacoretex-ng-9999 @@ -0,0 +1 @@ + diff --git a/net-analyzer/metacoretex-ng/files/mctx.sh b/net-analyzer/metacoretex-ng/files/mctx.sh new file mode 100755 index 000000000..8bdad527f --- /dev/null +++ b/net-analyzer/metacoretex-ng/files/mctx.sh @@ -0,0 +1,28 @@ +#!/bin/sh +cd /opt/metacoretex-ng/ +echo "Starting MetaCoretex" + +JARNAME="MetaCoreTex-NG.jar" + +DIR=/opt/metacoretex-ng/ + +DIST="${DIR}/dist/" +CONTRIB="${DIR}/contrib/" +PROBES="${DIR}/probes/" + +MCTXJAR="${DIST}${JARNAME}" +BIN="${DIR}/bin/" + +JARZ=`ls ${CONTRIB}` + +CP="${MCTXJAR}:${PROBES}" + +if [ -f ${JDK_HOME}/lib/tools.jar ]; then + CP="${CP}:${JDK_HOME}/lib/tools.jar" +fi + +for I in ${JARZ}; do + CP="${CP}:${CONTRIB}${I}" +done + +java -cp ${CP} -Dswing.aatext=true com.securitycentric.metacoretex.Init & diff --git a/net-analyzer/metacoretex-ng/metacoretex-ng-9999.ebuild b/net-analyzer/metacoretex-ng/metacoretex-ng-9999.ebuild new file mode 100644 index 000000000..70160d45d --- /dev/null +++ b/net-analyzer/metacoretex-ng/metacoretex-ng-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/metacoretex-ng/metacoretex-ng-9999.ebuild,v 1.1.1.1 2006/03/20 21:30:18 grimmlin Exp $ + +inherit cvs + +DESCRIPTION="A nice, java-based, MYSQL/Oracle/MSSQL/ODBC attack framework" +HOMEPAGE="http://metacoretex-ng.sourceforge.net" +LICENSE="GPL-2" + +ECVS_SERVER="metacoretex-ng.cvs.sourceforge.net:/cvsroot/metacoretex-ng/" +ECVS_MODULE="MetaCoreTex-NG" +ECVS_LOCALNAME="${P}" + +KEYWORDS="-*" +IUSE="" +DEPEND="dev-java/ant" +RDEPEND="virtual/jre" +SLOT="0" + +src_compile() { + ant probes +} + +src_install() { + find ./ -name CVS | xargs rm -rf + dodoc -r license readme todo docs/* + insinto /opt/${PN}/ + doins -r conf/ contrib/ dist/ html/ probes/ schema/ test/ *.txt *.xsl *.xml + newsbin "${FILESDIR}"/mctx.sh mctx +} + +pkg_postinst() { + ewarn + ewarn "This is a CVS ebuild - Any bugs reported to Gentoo will be marked INVALID" + ewarn +} diff --git a/net-analyzer/metagoofil/Manifest b/net-analyzer/metagoofil/Manifest new file mode 100644 index 000000000..d236182da --- /dev/null +++ b/net-analyzer/metagoofil/Manifest @@ -0,0 +1,8 @@ +DIST metagoofil-1.3b.tar 40960 RMD160 19f41cdcebb1b0a278db0682b93ad5b87d76d352 SHA1 812d5d0dee20a6e1da836fd5672e329df5a65314 SHA256 ae987e090aad61e7b1c50cae11c56847fdbf8ecd50483249312040daa131bf0d +EBUILD metagoofil-1.3.ebuild 592 RMD160 ed6ae479f05ba0b2d463bd3c55f690d57123e879 SHA1 0aabea782bff7d9fc7a1ef7bc21a7779a77525e3 SHA256 b79881505ed733c455ad2d9470e6329fd790ead335e032a046876a7a13708a36 +MD5 a0c2ced45216cfddfdf84b0fea102f12 metagoofil-1.3.ebuild 592 +RMD160 ed6ae479f05ba0b2d463bd3c55f690d57123e879 metagoofil-1.3.ebuild 592 +SHA256 b79881505ed733c455ad2d9470e6329fd790ead335e032a046876a7a13708a36 metagoofil-1.3.ebuild 592 +MD5 d51cc0410f6e6f2f217cb2ce97df44da files/digest-metagoofil-1.3 235 +RMD160 e175b7811b49368f424dde731074ad81d52593b3 files/digest-metagoofil-1.3 235 +SHA256 a4958af1058b1326bdd9fde0d2aca2671d550280cad05f5cd6e56ca54d735dd6 files/digest-metagoofil-1.3 235 diff --git a/net-analyzer/metagoofil/files/digest-metagoofil-1.3 b/net-analyzer/metagoofil/files/digest-metagoofil-1.3 new file mode 100644 index 000000000..d84610ffb --- /dev/null +++ b/net-analyzer/metagoofil/files/digest-metagoofil-1.3 @@ -0,0 +1,3 @@ +MD5 f38a23699cfd6ba76fbc7ee493533f4b metagoofil-1.3b.tar 40960 +RMD160 19f41cdcebb1b0a278db0682b93ad5b87d76d352 metagoofil-1.3b.tar 40960 +SHA256 ae987e090aad61e7b1c50cae11c56847fdbf8ecd50483249312040daa131bf0d metagoofil-1.3b.tar 40960 diff --git a/net-analyzer/metagoofil/metagoofil-1.3.ebuild b/net-analyzer/metagoofil/metagoofil-1.3.ebuild new file mode 100644 index 000000000..b9c600a49 --- /dev/null +++ b/net-analyzer/metagoofil/metagoofil-1.3.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils +DESCRIPTION="Metagoofil is an information gathering tool designed for extracting metadata of public documents" +HOMEPAGE="http://www.edge-security.com/metagoofil.php" +SRC_URI="http://www.edge-security.com/soft/${P}b.tar" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="" +SLOT="0" +S="${WORKDIR}"/"${PN}" + +src_unpack() { + unpack "${A}" + cd "${S}" +} + +src_compile() { + elog "Nothing to compile" +} + +src_install() { + dobin "${PN}".py + dodoc README +} diff --git a/net-analyzer/mosref/Manifest b/net-analyzer/mosref/Manifest new file mode 100644 index 000000000..b87d9817b --- /dev/null +++ b/net-analyzer/mosref/Manifest @@ -0,0 +1,13 @@ +AUX mosref-gentoo.patch 1463 RMD160 22cc6efa9cbe0c289f8585a3ffaf8409ac489af3 SHA1 af044276cda23cf06ad1f6064eeddc095e2da866 SHA256 d09279b404c607db82c9c8a3534ce4879111610f6d69375c0079026b3d61cecf +MD5 a69491e57454f379a758a791acaea424 files/mosref-gentoo.patch 1463 +RMD160 22cc6efa9cbe0c289f8585a3ffaf8409ac489af3 files/mosref-gentoo.patch 1463 +SHA256 d09279b404c607db82c9c8a3534ce4879111610f6d69375c0079026b3d61cecf files/mosref-gentoo.patch 1463 +DIST mosref-2.0-beta3-documentation.tar.gz 151687 RMD160 950e61042e5098a5c1dae01f07a00b68abfb9f2e SHA1 a5a94bb38026a8dd0e998ef3dd83e087c7726560 SHA256 c38ce9e3fc7e431f30ef2b16935b562da93aecf92c5db353678a488c87a12af3 +DIST mosref-2.0-beta3.tar.gz 1191694 RMD160 ac3c726906495bad827083a413fb62365c944cac SHA1 7b406a0bd96060c26c326e5cd95cf9ef2cc6a560 SHA256 7d2e32efda1ba5c9245cd6f6378b33b0b9e0ca43a7d9a02f1a3d0e8b1a55b00a +EBUILD mosref-2.0_beta3.ebuild 1168 RMD160 11a6331fbbe8ea3e81f746f2170ef6010234272e SHA1 bac941be112fd23df389f7d49983cb159b48c79b SHA256 945dad169c2f2d6eee3a5c757aa061d417f3eeeb84caf8671d37fc31746f9ced +MD5 772ca3fb59a35c2c298ec7e627a11a17 mosref-2.0_beta3.ebuild 1168 +RMD160 11a6331fbbe8ea3e81f746f2170ef6010234272e mosref-2.0_beta3.ebuild 1168 +SHA256 945dad169c2f2d6eee3a5c757aa061d417f3eeeb84caf8671d37fc31746f9ced mosref-2.0_beta3.ebuild 1168 +MD5 416f1ba2ac169e1148428453dc83fb28 files/digest-mosref-2.0_beta3 545 +RMD160 7dc69a97621f00ed9b662a5ffda6299ee5f3128b files/digest-mosref-2.0_beta3 545 +SHA256 668acab3c1205663e5451afb42d55c9b733f8b19136ed9bf1344ec18c969f658 files/digest-mosref-2.0_beta3 545 diff --git a/net-analyzer/mosref/files/digest-mosref-2.0_beta3 b/net-analyzer/mosref/files/digest-mosref-2.0_beta3 new file mode 100644 index 000000000..11c090b89 --- /dev/null +++ b/net-analyzer/mosref/files/digest-mosref-2.0_beta3 @@ -0,0 +1,6 @@ +MD5 fe5164985a6e5d1d1ddacb0f73ae5a2d mosref-2.0-beta3-documentation.tar.gz 151687 +RMD160 950e61042e5098a5c1dae01f07a00b68abfb9f2e mosref-2.0-beta3-documentation.tar.gz 151687 +SHA256 c38ce9e3fc7e431f30ef2b16935b562da93aecf92c5db353678a488c87a12af3 mosref-2.0-beta3-documentation.tar.gz 151687 +MD5 a8e1d9a2778c4e7e1e0b1dc408bcd2e1 mosref-2.0-beta3.tar.gz 1191694 +RMD160 ac3c726906495bad827083a413fb62365c944cac mosref-2.0-beta3.tar.gz 1191694 +SHA256 7d2e32efda1ba5c9245cd6f6378b33b0b9e0ca43a7d9a02f1a3d0e8b1a55b00a mosref-2.0-beta3.tar.gz 1191694 diff --git a/net-analyzer/mosref/files/mosref-gentoo.patch b/net-analyzer/mosref/files/mosref-gentoo.patch new file mode 100644 index 000000000..4b72049ec --- /dev/null +++ b/net-analyzer/mosref/files/mosref-gentoo.patch @@ -0,0 +1,36 @@ +diff -Naur mosref-2.0-beta3.orig/bin/install.ms mosref-2.0-beta3/bin/install.ms +--- mosref-2.0-beta3.orig/bin/install.ms 2006-07-29 21:02:07.000000000 +0000 ++++ mosref-2.0-beta3/bin/install.ms 2008-01-10 00:31:08.000000000 +0000 +@@ -2,10 +2,10 @@ + (import "lib/build") + + (define (main . args) +- (define base-dir #f) +- (define mod-dir #f) +- (define stub-dir #f) +- (define bin-dir #f) ++ (define base-dir "%%DESTDIR%%") ++ (define mod-dir (string-append base-dir "/lib/mosvm")) ++ (define stub-dir (string-append mod-dir "-stubs")) ++ (define bin-dir (string-append base-dir "/bin")) + (define good #f) + + (define (do-config-prompt title current guess-fn description) +@@ -82,13 +82,13 @@ + (" Stub Directory" stub-dir) + (" Binary Directory" bin-dir)))) + +- (configure) ++ ;(configure) + + (write-data-file "site/config.ms" + (string-append ";;; Generated by bin/install.ms" *line-sep* +- "(set-site-config! 'bin-path \"" bin-dir "\")" *line-sep* +- "(set-site-config! 'mod-path '(\".\" \"" mod-dir "\"))" *line-sep* +- "(set-site-config! 'stub-path \"" stub-dir "\")" *line-sep*)) ++ "(set-site-config! 'bin-path \"/usr/bin\")" *line-sep* ++ "(set-site-config! 'mod-path '(\".\" \"/usr/lib/mosvm\"))" *line-sep* ++ "(set-site-config! 'stub-path \"/usr/lib/mosvm-stubs\")" *line-sep*)) + + (mosc "site/config.ms") + diff --git a/net-analyzer/mosref/mosref-2.0_beta3.ebuild b/net-analyzer/mosref/mosref-2.0_beta3.ebuild new file mode 100644 index 000000000..395a310e3 --- /dev/null +++ b/net-analyzer/mosref/mosref-2.0_beta3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils +MY_P="${P/_/-}" +DESCRIPTION="A secure remote execution framework using a compact Scheme-influenced VM" +HOMEPAGE="http://sourceforge.net/projects/mosref/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz + doc? ( mirror://sourceforge/${PN}/${MY_P}-documentation.tar.gz )" +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~x86" +RESTRICT="strip" +DEPEND="" +RDEPEND="${DEPEND}" +IUSE="doc sources" + +S="${WORKDIR}"/"${MY_P}" + +src_unpack() { + for x in ${A} + do + unpack "${x}" + done + if use sources;then + cp -a "${MY_P}" "${MY_P}.src" + fi +} + +src_compile() { + epatch ${FILESDIR}/${PN}-gentoo.patch + make || die "make failed" +} + +src_install() { + sed -i -e "s|%%DESTDIR%%|${D}usr|" bin/install.ms || die "sed failed" + make install || die "emake install failed" + if use doc;then + dodoc doc/vm-implementation* + cd "${WORKDIR}"/"${PN}"-reference + dodoc * + fi + if use sources;then + einfo "Installing the sources for further cross-compile" + dodir /usr/src/ + cd "${WORKDIR}" + rm -rf "${MY_P}.src"/doc + cp -R "${MY_P}.src" "${D}"/usr/src/"${P}" + fi +} diff --git a/net-analyzer/ntp-fingerprint/Manifest b/net-analyzer/ntp-fingerprint/Manifest new file mode 100644 index 000000000..a69d28599 --- /dev/null +++ b/net-analyzer/ntp-fingerprint/Manifest @@ -0,0 +1,15 @@ +AUX README.txt 1244 RMD160 d6e2ec928ed68d29b4553ffbb61ab7de7c535ad4 SHA1 1579dc4251d709136d30e22e7de0359946254f78 SHA256 66304f8ad79bac86390923df623829ada8eae128e65ce20e3cb736b56d100069 +MD5 c3da4667165a5bc9bf993fc51fd05b49 files/README.txt 1244 +RMD160 d6e2ec928ed68d29b4553ffbb61ab7de7c535ad4 files/README.txt 1244 +SHA256 66304f8ad79bac86390923df623829ada8eae128e65ce20e3cb736b56d100069 files/README.txt 1244 +AUX ntp-fingerprint.pl 3930 RMD160 ba4383d1289ac001e93c462b5661a1a7f89dba76 SHA1 76c220d47816613540f0cfbf56f74fd27e2ee699 SHA256 f017b3db70b202ab355b02cb6de5cb2a4e04ecca3d52de3c2c1752cbe7829803 +MD5 9289a86bca91757877925ce6506dee9f files/ntp-fingerprint.pl 3930 +RMD160 ba4383d1289ac001e93c462b5661a1a7f89dba76 files/ntp-fingerprint.pl 3930 +SHA256 f017b3db70b202ab355b02cb6de5cb2a4e04ecca3d52de3c2c1752cbe7829803 files/ntp-fingerprint.pl 3930 +EBUILD ntp-fingerprint-0.1.ebuild 449 RMD160 c608257b5458263a20d93ff832f7f89340ed172f SHA1 74e793dbf10ec781864ba2985caea76dc6a5c3d0 SHA256 76f0d64ec1c902b57ea202d7715ad8e2edda3d798eee2e3d979c98dc84750f37 +MD5 41b724832547d74d8d6c0f22777968f8 ntp-fingerprint-0.1.ebuild 449 +RMD160 c608257b5458263a20d93ff832f7f89340ed172f ntp-fingerprint-0.1.ebuild 449 +SHA256 76f0d64ec1c902b57ea202d7715ad8e2edda3d798eee2e3d979c98dc84750f37 ntp-fingerprint-0.1.ebuild 449 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-ntp-fingerprint-0.1 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-ntp-fingerprint-0.1 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-ntp-fingerprint-0.1 0 diff --git a/net-analyzer/ntp-fingerprint/files/README.txt b/net-analyzer/ntp-fingerprint/files/README.txt new file mode 100644 index 000000000..cc3f8d5c7 --- /dev/null +++ b/net-analyzer/ntp-fingerprint/files/README.txt @@ -0,0 +1,23 @@ +NTPd servers always give away information about the OS they are running under. +This seems to be a reliable and simple method of remote OS fingerprinting. +Sometimes the output is limited: + +$ perl ntp.pl -t cisco2600 +ntp-fingerprint.pl, , v 0.1 +************* NTP server found at host 192.168.66.202 ******* +#It was possible to gather the following information # +#from the remote NTP host 192.168.66.202 # +# Operating system: cisco # +************************************************************* + +But sometimes it's not: +$ perl ntp.pl -t pingo +ntp-fingerprint.pl, , v 0.1 +************* NTP server found at host pingo ******************************** +#It was possible to gather the following information # +#from the remote NTP host pingo # +# NTP daemon:ôoversion=ntpd 4.2.0@1.1161-r Sun Nov 7 22:50:28 GMT 2004 (1) # +# Processor:i686 # +# Operating system:Linux/2.6.10-gentoo-r5 # +***************************************************************************** +So, it is useful to have a utility to query NTPd for OS versions. diff --git a/net-analyzer/ntp-fingerprint/files/digest-ntp-fingerprint-0.1 b/net-analyzer/ntp-fingerprint/files/digest-ntp-fingerprint-0.1 new file mode 100644 index 000000000..e69de29bb diff --git a/net-analyzer/ntp-fingerprint/files/ntp-fingerprint.pl b/net-analyzer/ntp-fingerprint/files/ntp-fingerprint.pl new file mode 100755 index 000000000..a84c34dea --- /dev/null +++ b/net-analyzer/ntp-fingerprint/files/ntp-fingerprint.pl @@ -0,0 +1,153 @@ +#!/usr/bin/perl +use IO::Socket; +use Net::hostent; +use Getopt::Std; + +my $VERSION = "0.1"; + +sub usage { # print a short 'usage` message and exit + print "usage: perl $0 -t \n"; + print"###############################################################\n"; + print"# NTP finger version $VERSION #\n"; + print"# Becase we need it... #\n"; + print"# http://www.arhont.com/index-5.html #\n"; + print"###############################################################\n"; + print"\n"; + + + + exit; +} + +use vars qw($opt_h $opt_t); # command line options + + +print "$0, $PgmName, V $VERSION \n"; + # handle the commandline options + getopts('ht'); # look for -h and -t + $opt_h && usage; # -h print usage message and exit + + (!$ARGV[0]) && usage; # no server: print usage message and exit + + my $server = $ARGV[0]; + my $serverIPv4 =""; + if (gethostbyname($server)) { + $serverIPv4 = sprintf("%d.%d.%d.%d",unpack("C4",gethostbyname($server))); + } + +my $timeout = 2; + + + +my $ntp_msg; # NTP message according to NTP/SNTP protocol specification + + sub get_ntp { + + # open the connection to the ntp server, + # prepare the ntp request packet + # send and receive + + my ($remote); + my $ntp_msg; + +$ntp_msg = pack "C*", (0x16, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00); + + # open the connection to the ntp server + $remote = IO::Socket::INET -> new(Proto => "udp", PeerAddr => $server, + PeerPort => 123, + Timeout => $timeout) + or die "Can't connect to \"$server\"\n"; + +# send the ntp-request to the server + $remote -> send($ntp_msg) or return undef; + + +# receive the ntp-message from the server + + sysread( $remote, $ntp_msg, 4096 ) or + do { print "Receive error from $server \n"; exit}; + close $remote; +print "#It was possible to gather the following information\n#from the remote NTP host $server #\n "; + $ntp_msg =~ s/^\s+//; + $ntp_msg =~ s/\"//g; + @fields = split(/,/, $ntp_msg); + foreach (@fields) { + if ($_=~/version/) { + $_=~s/mversion=//i; + $_=~ s/^\s+//; + print "# NTP daemon:$_ #\n"; + } + if ($_=~/processor/) { + $_=~s/processor=//i; + $_=~ s/^\s+//; + print "# Processor:$_ #\n"; + } + if ($_=~/system/) { + $_=~s/system=//i; + $_=~ s/^\s+//; + print "# Operating system:$_ #\n"; + } + } + + } + + +sub ntp_installed + { +my $ndata; +my $timeout = 2; + + +$ndata = pack "C*",(0xDB, 0x00, 0x04, 0xFA, 0x00, 0x01, + 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xBE, 0x78, 0x2F, 0x1D, 0x19, 0xBA, + 0x00, 0x00); +$remote = IO::Socket::INET -> new(Proto => "udp", PeerAddr => $server, + PeerPort => 123, + Timeout => $timeout); + + + if ($remote) + { +# send the ntp-request to the server + $remote -> send($ndata); + + +# receive the ntp-message from the server +$SIG{ALRM} = \&timed_out; + alarm ($timeout); + eval { $remote -> recv($ndata, length(4096),0); + close $remote; + alarm (0); + } + + } + if ($ndata) + { + + return (1); + + +} +return (0); +} + + + +sub get { +my $nlist; +if (ntp_installed) +{ +print "************* NTP server found at host $server **************\n"; + get_ntp; +print "*************************************************************\n"; +} + +} + + + +$opt_t && get ; diff --git a/net-analyzer/ntp-fingerprint/ntp-fingerprint-0.1.ebuild b/net-analyzer/ntp-fingerprint/ntp-fingerprint-0.1.ebuild new file mode 100644 index 000000000..b27b796f6 --- /dev/null +++ b/net-analyzer/ntp-fingerprint/ntp-fingerprint-0.1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/ntp-fingerprint/ntp-fingerprint-0.1.ebuild,v 1.1.1.1 2006/03/09 21:57:23 grimmlin Exp $ + +DESCRIPTION="A ntp fingerprinter" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="" + +src_install() { + newbin "${FILESDIR}"/"${PN}".pl "${PN}" + dodoc "${FILESDIR}"/README.txt +} diff --git a/net-analyzer/onesixtyone/Manifest b/net-analyzer/onesixtyone/Manifest new file mode 100644 index 000000000..f6554bf60 --- /dev/null +++ b/net-analyzer/onesixtyone/Manifest @@ -0,0 +1,2 @@ +DIST onesixtyone-0.3.2.tar.gz 7325 RMD160 2b6a4e6c15f198843da0e50dd8722b5d94c655e6 SHA1 347e24efa91385a7fb8283986b3e7521aa1fb059 SHA256 450806718f72a75ea108e3675ca7856f15c518fcf517df68483c486c39910d02 +EBUILD onesixtyone-0.3.2.ebuild 531 RMD160 4b19fd70a03f737556d78d8a3f81c35ca34f5093 SHA1 f0ca1db8e0a37d34cf079e5525f8b4c62118ba9a SHA256 15b0ec2287709942fa1be7895057c04910290c4d2d1f602d6827f6393e51dab5 diff --git a/net-analyzer/onesixtyone/onesixtyone-0.3.2.ebuild b/net-analyzer/onesixtyone/onesixtyone-0.3.2.ebuild new file mode 100644 index 000000000..023c78d98 --- /dev/null +++ b/net-analyzer/onesixtyone/onesixtyone-0.3.2.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# Nonofficial ebuild by Ycarus. For new version look here : http://gentoo.zugaina.org/ + +DESCRIPTION="An efficient SNMP scanner" +HOMEPAGE="http://www.phreedom.org/solar/onesixtyone/" +SRC_URI="http://www.phreedom.org/solar/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +DEPEND="" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc" +IUSE="" +RESTRICT="nomirror" + + +src_install() { + dobin onesixtyone + dodoc ChangeLog INSTALL README dict.txt +} diff --git a/net-analyzer/sipvicious/Manifest b/net-analyzer/sipvicious/Manifest new file mode 100644 index 000000000..bcdf02805 --- /dev/null +++ b/net-analyzer/sipvicious/Manifest @@ -0,0 +1,12 @@ +AUX sipvicious-gentoo.patch 591 RMD160 4f1d1e684e65675b0e43e05f0029739a91607e80 SHA1 70bee280b6ab646253bba4794844c38c6b57f8cb SHA256 7be8a7f904022c984ac7de997588fbb9ea3598cdb591b1c96048aaf64498d356 +MD5 65b42f2b6cb3d1dc9a9af956f93ad720 files/sipvicious-gentoo.patch 591 +RMD160 4f1d1e684e65675b0e43e05f0029739a91607e80 files/sipvicious-gentoo.patch 591 +SHA256 7be8a7f904022c984ac7de997588fbb9ea3598cdb591b1c96048aaf64498d356 files/sipvicious-gentoo.patch 591 +DIST sipvicious-0.2.1.tar.gz 49105 RMD160 cd0779441d15a223028304506e825ae09a05c819 SHA1 b851ceee3c63b7e26baa593faec64718401ac62b SHA256 44b8f1330394d7ee5c5a5ce92f71f1909241c1b2caa71c754c83930bc18bd737 +EBUILD sipvicious-0.2.1.ebuild 739 RMD160 7f7d0121adfb7dc7e168f7549bcb7d970198c4d1 SHA1 fccd3543ceb72f52f8f1e612d27b186e3e297cae SHA256 b0edef2a147e2737d3a658ebc95fdafb4a09f4e4e754070b05b7e0c9c8a71064 +MD5 fece15a881bfe320b594b94974cddb4c sipvicious-0.2.1.ebuild 739 +RMD160 7f7d0121adfb7dc7e168f7549bcb7d970198c4d1 sipvicious-0.2.1.ebuild 739 +SHA256 b0edef2a147e2737d3a658ebc95fdafb4a09f4e4e754070b05b7e0c9c8a71064 sipvicious-0.2.1.ebuild 739 +MD5 8e9b1f536da18d4813ef5af6096777cf files/digest-sipvicious-0.2.1 247 +RMD160 b25f25df22ddeeb5eba8d356058f6516508968ff files/digest-sipvicious-0.2.1 247 +SHA256 69ccd1c4629a718869e249a7a7e6f6e464fe759102f3e9d8c13f4a0d95ab11a2 files/digest-sipvicious-0.2.1 247 diff --git a/net-analyzer/sipvicious/files/digest-sipvicious-0.2.1 b/net-analyzer/sipvicious/files/digest-sipvicious-0.2.1 new file mode 100644 index 000000000..0ce380872 --- /dev/null +++ b/net-analyzer/sipvicious/files/digest-sipvicious-0.2.1 @@ -0,0 +1,3 @@ +MD5 a41df16fef97293f0623b1c59390b545 sipvicious-0.2.1.tar.gz 49105 +RMD160 cd0779441d15a223028304506e825ae09a05c819 sipvicious-0.2.1.tar.gz 49105 +SHA256 44b8f1330394d7ee5c5a5ce92f71f1909241c1b2caa71c754c83930bc18bd737 sipvicious-0.2.1.tar.gz 49105 diff --git a/net-analyzer/sipvicious/files/sipvicious-gentoo.patch b/net-analyzer/sipvicious/files/sipvicious-gentoo.patch new file mode 100644 index 000000000..18af0bd24 --- /dev/null +++ b/net-analyzer/sipvicious/files/sipvicious-gentoo.patch @@ -0,0 +1,12 @@ +diff -Naur sipvicious.orig/helper.py sipvicious/helper.py +--- sipvicious.orig/helper.py 2007-11-07 09:42:05.000000000 +0100 ++++ sipvicious/helper.py 2008-01-10 00:41:51.000000000 +0100 +@@ -634,7 +634,7 @@ + prefix='| ', postfix=' |',wrapfunc=lambda x: wrap_onspace(x,width)) + return o + +-def outputtoxml(title,labels,db,resdb=None,xsl='sv.xsl'): ++def outputtoxml(title,labels,db,resdb=None,xsl='/usr/lib/sipvicious/sv.xsl'): + from xml.sax.saxutils import escape + o = '\r\n' + o += '\r\n' % escape(xsl) diff --git a/net-analyzer/sipvicious/sipvicious-0.2.1.ebuild b/net-analyzer/sipvicious/sipvicious-0.2.1.ebuild new file mode 100644 index 000000000..ea73435f5 --- /dev/null +++ b/net-analyzer/sipvicious/sipvicious-0.2.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils +DESCRIPTION="A voip pentest tools suite" +HOMEPAGE="http://code.google.com/p/sipvicious/" +SRC_URI="http://sipvicious.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="" +S="${WORKDIR}/${PN}" +SLOT="0" + +src_compile() { + epatch "${FILESDIR}"/"${PN}"-gentoo.patch +} + +src_install() { + dodir /usr/lib/sipvicious + dodir /usr/sbin/ + dodoc Changelog README THANKS TODO + rm -f Changelog README THANKS TODO + cp -pPR * ${D}usr/lib/sipvicious/ || die + chown -R root:0 ${D} + for file in `ls sv*.py`; do + dosym /usr/lib/sipvicious/${file} /usr/bin/${file} + done +} diff --git a/net-analyzer/smtpmap/Manifest b/net-analyzer/smtpmap/Manifest new file mode 100644 index 000000000..49fd746a8 --- /dev/null +++ b/net-analyzer/smtpmap/Manifest @@ -0,0 +1,12 @@ +AUX gcc-3.4.patch 2891 RMD160 39ee04483d4f086409dc92458d14f08e005a5e8e SHA1 0acb55a6f4619ebda44b51f26deaa35d9d84d8a0 SHA256 b11da87d931b251417e0c792ddd1a1163649c8128ae452e692164d5770bfd9f8 +MD5 5ae7a4a427926d64f31073470ababf66 files/gcc-3.4.patch 2891 +RMD160 39ee04483d4f086409dc92458d14f08e005a5e8e files/gcc-3.4.patch 2891 +SHA256 b11da87d931b251417e0c792ddd1a1163649c8128ae452e692164d5770bfd9f8 files/gcc-3.4.patch 2891 +DIST smtpmap-0.8.234-BETA.tar.bz2 84923 RMD160 19edb786d43ff87b35a510125bc3ab65d19fc5cb SHA1 0efd069cb1257e9603f5e8571e5c35ed103b8a46 SHA256 09fb1aa68a67032dd4ec8816d45ea5fc48796d4b4c11350f3f593fdf307559c2 +EBUILD smtpmap-0.8.234_beta.ebuild 759 RMD160 f02d6253afdbaa86d70af1a313c6d49c1a28028a SHA1 184b26c7e86959297dbcd7442a4166b987babc19 SHA256 92a65814e2983ba2205849334d1a935963dad31759888d86d8f674229e7b9733 +MD5 f4781b619c8c4484bdee106d4170ba37 smtpmap-0.8.234_beta.ebuild 759 +RMD160 f02d6253afdbaa86d70af1a313c6d49c1a28028a smtpmap-0.8.234_beta.ebuild 759 +SHA256 92a65814e2983ba2205849334d1a935963dad31759888d86d8f674229e7b9733 smtpmap-0.8.234_beta.ebuild 759 +MD5 9e6a2f4782cf4016b13216d026284b96 files/digest-smtpmap-0.8.234_beta 262 +RMD160 1e9a5f23404fa2c26dd0f312aec57f5fc02c0ceb files/digest-smtpmap-0.8.234_beta 262 +SHA256 3b143df71ab9ca6c21fb8d015e3b4322eab07d5f31de250060188739669a1c3d files/digest-smtpmap-0.8.234_beta 262 diff --git a/net-analyzer/smtpmap/files/digest-smtpmap-0.8.234_beta b/net-analyzer/smtpmap/files/digest-smtpmap-0.8.234_beta new file mode 100644 index 000000000..d491511b5 --- /dev/null +++ b/net-analyzer/smtpmap/files/digest-smtpmap-0.8.234_beta @@ -0,0 +1,3 @@ +MD5 ed748597a1368388844e8bba6e9d4721 smtpmap-0.8.234-BETA.tar.bz2 84923 +RMD160 19edb786d43ff87b35a510125bc3ab65d19fc5cb smtpmap-0.8.234-BETA.tar.bz2 84923 +SHA256 09fb1aa68a67032dd4ec8816d45ea5fc48796d4b4c11350f3f593fdf307559c2 smtpmap-0.8.234-BETA.tar.bz2 84923 diff --git a/net-analyzer/smtpmap/files/gcc-3.4.patch b/net-analyzer/smtpmap/files/gcc-3.4.patch new file mode 100644 index 000000000..777a688d8 --- /dev/null +++ b/net-analyzer/smtpmap/files/gcc-3.4.patch @@ -0,0 +1,71 @@ +diff -Naur smtpmap-0.8.234-BETA.orig/include/bintree.h smtpmap-0.8.234-BETA/include/bintree.h +--- smtpmap-0.8.234-BETA.orig/include/bintree.h 2003-02-25 20:50:31.000000000 +0100 ++++ smtpmap-0.8.234-BETA/include/bintree.h 2006-06-30 01:23:11.000000000 +0200 +@@ -17,6 +17,11 @@ + class treenode; + template + class bintreeiterator; ++ ++// forward declarations to allow friend declarations ++template class bintree; ++template ostream& operator<< (ostream & o, const bintree & t); ++ + template + class bintree /*{{{*/ + { +@@ -398,6 +403,13 @@ + Root = NULL; + }/*}}}*/ + enum avl_tree_skew { left, right, noone }; ++ ++// forward declarations to allow friend declarations ++template class treenode; ++template ostream& operator<< ( ostream & o, const treenode & v); ++template bool operator < ( const treenode & a, const treenode & b); ++template bool operator > ( const treenode & a, const treenode & b); ++ + template + class treenode/*{{{*/ + { +diff -Naur smtpmap-0.8.234-BETA.orig/include/dllist.h smtpmap-0.8.234-BETA/include/dllist.h +--- smtpmap-0.8.234-BETA.orig/include/dllist.h 2003-04-17 00:23:59.000000000 +0200 ++++ smtpmap-0.8.234-BETA/include/dllist.h 2006-06-30 00:52:30.000000000 +0200 +@@ -31,6 +31,12 @@ + // ********** definition dllist class + // ********** + ++// forward declarations to allow friend declarations ++template class dllist; ++template ostream & operator<< ( ostream& o , const dllist & v); ++template bool operator < ( const dllist & a, const dllist & b) ; ++template bool operator > ( const dllist & a, const dllist & b) ; ++ + template + class dllist/*{{{*/ + { +@@ -408,6 +414,13 @@ + * These Nodes contain the actual elements fo the list + * together with the control data + */ ++ ++// forward declarations to allow friend declarations ++template class dllnode; ++template ostream& operator<< ( ostream & o, const dllnode & v); ++template bool operator < ( const dllnode & a, const dllnode & b); ++template bool operator > ( const dllnode & a, const dllnode & b); ++ + template + class dllnode/*{{{*/ + { +diff -Naur smtpmap-0.8.234-BETA.orig/src/smtpmap.cpp smtpmap-0.8.234-BETA/src/smtpmap.cpp +--- smtpmap-0.8.234-BETA.orig/src/smtpmap.cpp 2003-04-09 19:54:10.000000000 +0200 ++++ smtpmap-0.8.234-BETA/src/smtpmap.cpp 2006-06-30 01:18:38.000000000 +0200 +@@ -455,7 +455,7 @@ + cout << "Note: More than -v -v -v will not produce more verbositiy" << endl; + break; + } +- ((int)debuglevel)++; ++ (*(int**)&debuglevel)++; + break; + case 'V': + cout << "smtp-map " << VERSION << endl; diff --git a/net-analyzer/smtpmap/smtpmap-0.8.234_beta.ebuild b/net-analyzer/smtpmap/smtpmap-0.8.234_beta.ebuild new file mode 100644 index 000000000..87e3aed95 --- /dev/null +++ b/net-analyzer/smtpmap/smtpmap-0.8.234_beta.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils +MY_P=${P/_beta/-BETA} +DESCRIPTION="Smtpmap is a very complete and well done fingerprinter for SMTP, FTP and POP3 fingerprinter" +HOMEPAGE="http://www.projectiwear.org/~plasmahh/software.html" +SRC_URI="http://www.projectiwear.org/~plasmahh/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" +DEPEND="" +S=${WORKDIR}/${MY_P} + +src_compile(){ + epatch ${FILESDIR}/gcc-3.4.patch + ./configure +# It has is own configuration script... maybe some sed here after needs to be done + emake || die "make failed" +} + +src_install() { + insinto /usr/share/smtpmap + doins share/* + dobin src/smtpmap + dodoc ChangeLog README TODO +} diff --git a/net-analyzer/snmpenum/Manifest b/net-analyzer/snmpenum/Manifest new file mode 100644 index 000000000..e2c17accb --- /dev/null +++ b/net-analyzer/snmpenum/Manifest @@ -0,0 +1,12 @@ +AUX snmpenum-gentoo.patch 572 RMD160 4afd313671094e41915c441179e51c7c763061ee SHA1 c128ef785d954af00f81f315e676cc66ae50e998 SHA256 997a51036c7173c46e000a9526b9583117d074992ba9514f6d6765b889e39004 +MD5 414dd2a7d7ebb757ac8d51a5d61ad425 files/snmpenum-gentoo.patch 572 +RMD160 4afd313671094e41915c441179e51c7c763061ee files/snmpenum-gentoo.patch 572 +SHA256 997a51036c7173c46e000a9526b9583117d074992ba9514f6d6765b889e39004 files/snmpenum-gentoo.patch 572 +DIST snmpenum.zip 3030 RMD160 c8e87e57ea9bbdc4a8c8d0bbc1538ad9d1be5b97 SHA1 74be0662ca90b5ac39bc3f79323cc286019999f8 SHA256 4f4f920f8b8d8bb5b11f535163c3bba075a441377d423b39895918db914bc1b4 +EBUILD snmpenum-1.0.ebuild 617 RMD160 24d104c9c3509fcf72356e1aed2a0d31099b433d SHA1 605ed36ee03a62462b2cab8d4cab72ffca881c62 SHA256 974b47de1229664795a5fd8f26a302b196cd3a8bef90820d121eb75b48f1d12e +MD5 49a0014c52202cbbbbae0f7c388baabf snmpenum-1.0.ebuild 617 +RMD160 24d104c9c3509fcf72356e1aed2a0d31099b433d snmpenum-1.0.ebuild 617 +SHA256 974b47de1229664795a5fd8f26a302b196cd3a8bef90820d121eb75b48f1d12e snmpenum-1.0.ebuild 617 +MD5 f5d3acf98ee4407f0d72050ccd48c2dd files/digest-snmpenum-1.0 211 +RMD160 ad820cfa9ecffb03e93431926e91a96c821eeafa files/digest-snmpenum-1.0 211 +SHA256 4ed3da5d6c5d10948611991ce2ced7610677cf48bc88a728db42949341c6f8eb files/digest-snmpenum-1.0 211 diff --git a/net-analyzer/snmpenum/files/digest-snmpenum-1.0 b/net-analyzer/snmpenum/files/digest-snmpenum-1.0 new file mode 100644 index 000000000..c0c60393b --- /dev/null +++ b/net-analyzer/snmpenum/files/digest-snmpenum-1.0 @@ -0,0 +1,3 @@ +MD5 f19a37f5f407c74ab09b588ec9f7e3cd snmpenum.zip 3030 +RMD160 c8e87e57ea9bbdc4a8c8d0bbc1538ad9d1be5b97 snmpenum.zip 3030 +SHA256 4f4f920f8b8d8bb5b11f535163c3bba075a441377d423b39895918db914bc1b4 snmpenum.zip 3030 diff --git a/net-analyzer/snmpenum/files/snmpenum-gentoo.patch b/net-analyzer/snmpenum/files/snmpenum-gentoo.patch new file mode 100644 index 000000000..2a6a3de1b --- /dev/null +++ b/net-analyzer/snmpenum/files/snmpenum-gentoo.patch @@ -0,0 +1,24 @@ +--- snmpenum.pl.old 2006-03-28 22:47:07.000000000 +0200 ++++ snmpenum.pl 2006-03-28 22:47:44.000000000 +0200 +@@ -1,4 +1,4 @@ +-#! /usr/local/bin/perl -w ++#! /usr/bin/perl -w + # + # Simple Perl script to enumerate information on Machines that are running SNMP + # +@@ -30,7 +30,7 @@ + #usage + + if (@ARGV!=3){ +- print "Usage: perl enum.pl \n\n"; ++ print "Usage: snmpenum \n\n"; + exit 1; + } + +@@ -132,4 +132,4 @@ + + } + } +- } +\ No newline at end of file ++ } diff --git a/net-analyzer/snmpenum/snmpenum-1.0.ebuild b/net-analyzer/snmpenum/snmpenum-1.0.ebuild new file mode 100644 index 000000000..04e560687 --- /dev/null +++ b/net-analyzer/snmpenum/snmpenum-1.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/snmpenum/snmpenum-1.0.ebuild,v 1.1.1.1 2006/03/30 21:16:49 grimmlin Exp $ + +inherit eutils + +DESCRIPTION="A perl script to enumerate SNMP table dumper" +HOMEPAGE="http://packetstormsecurity.org" +SRC_URI="http://packetstormsecurity.org/UNIX/scanners/${PN}.zip" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" +DEPEND="" +S=${WORKDIR} + +src_compile () { + einfo "Nothing to compile" + epatch ${FILESDIR}/${PN}-gentoo.patch +} + +src_install () { + dodoc *.txt + newsbin ${PN}.pl ${PN} +} diff --git a/net-analyzer/subdomainer/Manifest b/net-analyzer/subdomainer/Manifest new file mode 100644 index 000000000..592b500d8 --- /dev/null +++ b/net-analyzer/subdomainer/Manifest @@ -0,0 +1,12 @@ +AUX subdomainer-python_fix.patch 206 RMD160 6cc8ddf732c1ee5c0c76748e3ca2e6aaba19cfb0 SHA1 c2e2e44b9e5e8d5850fa53ca473eacf97c9e7dcd SHA256 4337e4445203d7714fe2dd40968cfc242a8d5aab8b82d809a19570dcdd35e352 +MD5 2c29f03216e54b2a9926c29e25c79496 files/subdomainer-python_fix.patch 206 +RMD160 6cc8ddf732c1ee5c0c76748e3ca2e6aaba19cfb0 files/subdomainer-python_fix.patch 206 +SHA256 4337e4445203d7714fe2dd40968cfc242a8d5aab8b82d809a19570dcdd35e352 files/subdomainer-python_fix.patch 206 +DIST subdomainer-1.3a.tar 30720 RMD160 c2d381f6127b93bbf05cc5caad9efe36af51112f SHA1 480dab0162dd5beb283ca6c16178e86a9ef39202 SHA256 1f9c45e3e8a541c3cbdbdc247614adb47a0f96a1e29141cce6f116efa0d9db43 +EBUILD subdomainer-1.3.ebuild 641 RMD160 e6165a7cef4ad0dde44d11fc0c64995f5ac2d6c4 SHA1 da0243b59d8298f2231512caff4d952c2d59ac33 SHA256 732560e96a746560104484b48e4e12837fb32c3e42567ec161df09f07822e998 +MD5 b74d9071dec13ddcdeb2522d4eeb4a79 subdomainer-1.3.ebuild 641 +RMD160 e6165a7cef4ad0dde44d11fc0c64995f5ac2d6c4 subdomainer-1.3.ebuild 641 +SHA256 732560e96a746560104484b48e4e12837fb32c3e42567ec161df09f07822e998 subdomainer-1.3.ebuild 641 +MD5 6ca7563d934b0b986b989f2776179745 files/digest-subdomainer-1.3 238 +RMD160 9e043c710898c5e78170c3a2317e6347bd14a76d files/digest-subdomainer-1.3 238 +SHA256 5317ab8ed3f05bb8249553bb95e78a2c276bc3809e6db31c32c74c07df795006 files/digest-subdomainer-1.3 238 diff --git a/net-analyzer/subdomainer/files/digest-subdomainer-1.3 b/net-analyzer/subdomainer/files/digest-subdomainer-1.3 new file mode 100644 index 000000000..4044e030a --- /dev/null +++ b/net-analyzer/subdomainer/files/digest-subdomainer-1.3 @@ -0,0 +1,3 @@ +MD5 2b9e5930bf90c689358c2cba4a395f08 subdomainer-1.3a.tar 30720 +RMD160 c2d381f6127b93bbf05cc5caad9efe36af51112f subdomainer-1.3a.tar 30720 +SHA256 1f9c45e3e8a541c3cbdbdc247614adb47a0f96a1e29141cce6f116efa0d9db43 subdomainer-1.3a.tar 30720 diff --git a/net-analyzer/subdomainer/files/subdomainer-python_fix.patch b/net-analyzer/subdomainer/files/subdomainer-python_fix.patch new file mode 100644 index 000000000..b026fc61c --- /dev/null +++ b/net-analyzer/subdomainer/files/subdomainer-python_fix.patch @@ -0,0 +1,7 @@ +--- subdomainer.py.orig 2008-01-31 00:33:03.000000000 +0000 ++++ subdomainer.py 2008-01-31 00:32:26.000000000 +0000 +@@ -1,3 +1,4 @@ ++#!/usr/bin/env python + #Covered by GPL V2.0:w + import time + import string diff --git a/net-analyzer/subdomainer/subdomainer-1.3.ebuild b/net-analyzer/subdomainer/subdomainer-1.3.ebuild new file mode 100644 index 000000000..34badc351 --- /dev/null +++ b/net-analyzer/subdomainer/subdomainer-1.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils +DESCRIPTION="This script will search in Google, Msn.search and Yahoo for subdomains related to the target domain" +HOMEPAGE="http://www.edge-security.com/edge-soft.php" +SRC_URI="http://www.edge-security.com/soft/${P}a.tar" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="" +SLOT="0" +S="${WORKDIR}"/"${PN}" + +src_unpack() { + unpack "${A}" + cd "${S}" + epatch "${FILESDIR}"/"${PN}"-python_fix.patch +} + +src_compile() { + elog "Nothing to compile" +} + +src_install() { + dobin "${PN}".py + dodoc README +} diff --git a/net-analyzer/theHarvester/Manifest b/net-analyzer/theHarvester/Manifest new file mode 100644 index 000000000..b101fae34 --- /dev/null +++ b/net-analyzer/theHarvester/Manifest @@ -0,0 +1,8 @@ +DIST theHarvester.py 4314 RMD160 03815af939278f93ed8a4fdb7ef4aee40324b163 SHA1 19da3599bce36b2ff82a1b6e7c580a7852439291 SHA256 52fedd044382e9d36c25f6f6de50814e318aa26adc1b6f625786c640991fc600 +EBUILD theHarvester-1.1.ebuild 566 RMD160 5553d5c6a28ea1f8c59b4e8c75aa6ecf0acda110 SHA1 ddd4b5bc72b70bf14ceb360a35093b0ffc8d8e1b SHA256 a38ce264ab6dbc78f42a27a89c12421708066f064532a0098ebf0f68e45dadd3 +MD5 83e71a35a159c5f91999cd9141ebb23f theHarvester-1.1.ebuild 566 +RMD160 5553d5c6a28ea1f8c59b4e8c75aa6ecf0acda110 theHarvester-1.1.ebuild 566 +SHA256 a38ce264ab6dbc78f42a27a89c12421708066f064532a0098ebf0f68e45dadd3 theHarvester-1.1.ebuild 566 +MD5 b75292a882f81fc7b6901fc2a01708ac files/digest-theHarvester-1.1 220 +RMD160 8371d899ac223d887a173063a915b80331efd552 files/digest-theHarvester-1.1 220 +SHA256 688695ed4f899f88b0f425d53360e2b1f24756768202c92b9e5dc8ba10054f91 files/digest-theHarvester-1.1 220 diff --git a/net-analyzer/theHarvester/files/digest-theHarvester-1.1 b/net-analyzer/theHarvester/files/digest-theHarvester-1.1 new file mode 100644 index 000000000..6fd755052 --- /dev/null +++ b/net-analyzer/theHarvester/files/digest-theHarvester-1.1 @@ -0,0 +1,3 @@ +MD5 802758ffc8f2ca551b9571a29608a761 theHarvester.py 4314 +RMD160 03815af939278f93ed8a4fdb7ef4aee40324b163 theHarvester.py 4314 +SHA256 52fedd044382e9d36c25f6f6de50814e318aa26adc1b6f625786c640991fc600 theHarvester.py 4314 diff --git a/net-analyzer/theHarvester/theHarvester-1.1.ebuild b/net-analyzer/theHarvester/theHarvester-1.1.ebuild new file mode 100644 index 000000000..3526f72e5 --- /dev/null +++ b/net-analyzer/theHarvester/theHarvester-1.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="The Harvester is a tool designed to collect email accounts of the target domain" +HOMEPAGE="http://www.edge-security.com/edge-soft.php" +SRC_URI="http://www.edge-security.com/soft/${PN}.py" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +RDEPEND="" +SLOT="0" + +src_unpack() { + elog "Nothing to unpack" + mkdir "${S}" + cp "${DISTDIR}"/"${A}" "${S}" +} + +src_compile() { + elog "Nothing to compile" +} + +src_install() { + dobin "${PN}".py +} diff --git a/net-analyzer/upnpscan/Manifest b/net-analyzer/upnpscan/Manifest new file mode 100644 index 000000000..3bce84735 --- /dev/null +++ b/net-analyzer/upnpscan/Manifest @@ -0,0 +1,8 @@ +DIST upnpscan-v0.4-src.tgz 309011 RMD160 ed32678ec25f2627a36d622cba8548bec87faf9e SHA1 d15125d147ef962107fc3f01b52160d50f0d8710 SHA256 0d41d63efcc9ed15133306d9996ec72a07ddb047552fca0ac417eeb412db045b +EBUILD upnpscan-0.4.ebuild 621 RMD160 873476a9dafa29967c782360d29c530f564b86fb SHA1 5d7b66524f8598295c8b9783d157207f54ed9b0d SHA256 00a1a11e2c1b1470e8f86e2c1b9f7d8a3f235184cee1e618540aaf604dfcadf1 +MD5 75556c796c68a5dad9b684238ecd4ea1 upnpscan-0.4.ebuild 621 +RMD160 873476a9dafa29967c782360d29c530f564b86fb upnpscan-0.4.ebuild 621 +SHA256 00a1a11e2c1b1470e8f86e2c1b9f7d8a3f235184cee1e618540aaf604dfcadf1 upnpscan-0.4.ebuild 621 +MD5 7f80f931ed342ce8081dfce0ff7c2164 files/digest-upnpscan-0.4 244 +RMD160 3ce41d213b016a5cd7bee787e63ce78f26391282 files/digest-upnpscan-0.4 244 +SHA256 3b4d6c40ac261f4d27f31e8f391199b22767396413494fddad46895efa648d55 files/digest-upnpscan-0.4 244 diff --git a/net-analyzer/upnpscan/files/digest-upnpscan-0.4 b/net-analyzer/upnpscan/files/digest-upnpscan-0.4 new file mode 100644 index 000000000..4c4ce4a7d --- /dev/null +++ b/net-analyzer/upnpscan/files/digest-upnpscan-0.4 @@ -0,0 +1,3 @@ +MD5 23db71f206cefd67a5d4c1397577d77f upnpscan-v0.4-src.tgz 309011 +RMD160 ed32678ec25f2627a36d622cba8548bec87faf9e upnpscan-v0.4-src.tgz 309011 +SHA256 0d41d63efcc9ed15133306d9996ec72a07ddb047552fca0ac417eeb412db045b upnpscan-v0.4-src.tgz 309011 diff --git a/net-analyzer/upnpscan/upnpscan-0.4.ebuild b/net-analyzer/upnpscan/upnpscan-0.4.ebuild new file mode 100644 index 000000000..3bb8bcd78 --- /dev/null +++ b/net-analyzer/upnpscan/upnpscan-0.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /root/portage/net-analyzer/upnpscan/upnpscan-0.4.ebuild,v 1.1.1.1 2006/02/27 20:03:41 grimmlin Exp $ + + +DESCRIPTION="Scans the network for UPNP capable devices" +HOMEPAGE="http://www.cqure.net/tools.jsp?id=23" +SRC_URI="http://www.cqure.net/tools/${PN}-v${PV}-src.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="static" + +DEPEND="" + +S=${WORKDIR}/${PN} + +src_compile() { + if use static + then + ./configure || die + else + ./configure --enable-static=no || die + fi +} + +src_install () { + + einstall || die + +} diff --git a/net-analyzer/voiphopper/Manifest b/net-analyzer/voiphopper/Manifest new file mode 100644 index 000000000..ac34f0759 --- /dev/null +++ b/net-analyzer/voiphopper/Manifest @@ -0,0 +1,8 @@ +DIST voiphopper-0.9.7.tar.gz 44029 RMD160 ce2b98ebde3aa6b1b638f8e9c33475c6d2790734 SHA1 80a49459844c2a8114cac44365a68091c4532c76 SHA256 afe30abd1d57d5b8edc7ad7f368d65d9a86551b4f7171f07c01b91279d1bd9d5 +EBUILD voiphopper-0.9.7.ebuild 494 RMD160 3e3b376b349da9473e0ade1f44a42d059dbdae2c SHA1 3cc5e0b59632aa61f336c1d676d88e1140661e47 SHA256 8e1c349e95610e1b88a7d15d799a4a5f6be583e438263787644ef86c8f908c5c +MD5 654040fae6155aecb4196aec0ed8d059 voiphopper-0.9.7.ebuild 494 +RMD160 3e3b376b349da9473e0ade1f44a42d059dbdae2c voiphopper-0.9.7.ebuild 494 +SHA256 8e1c349e95610e1b88a7d15d799a4a5f6be583e438263787644ef86c8f908c5c voiphopper-0.9.7.ebuild 494 +MD5 cb16b0a10e57f73a7ae15ba82a9b8340 files/digest-voiphopper-0.9.7 247 +RMD160 620c476f5c117cae87ef1dbd2e10c727c5d75063 files/digest-voiphopper-0.9.7 247 +SHA256 cbc761b5cdc225b3d6e2c53f1f559e68af90e430e2e63c9fa1649a297c023ce9 files/digest-voiphopper-0.9.7 247 diff --git a/net-analyzer/voiphopper/files/digest-voiphopper-0.9.7 b/net-analyzer/voiphopper/files/digest-voiphopper-0.9.7 new file mode 100644 index 000000000..fbdb030bc --- /dev/null +++ b/net-analyzer/voiphopper/files/digest-voiphopper-0.9.7 @@ -0,0 +1,3 @@ +MD5 2c316ac0834669c5d02bed7813e32dcf voiphopper-0.9.7.tar.gz 44029 +RMD160 ce2b98ebde3aa6b1b638f8e9c33475c6d2790734 voiphopper-0.9.7.tar.gz 44029 +SHA256 afe30abd1d57d5b8edc7ad7f368d65d9a86551b4f7171f07c01b91279d1bd9d5 voiphopper-0.9.7.tar.gz 44029 diff --git a/net-analyzer/voiphopper/voiphopper-0.9.7.ebuild b/net-analyzer/voiphopper/voiphopper-0.9.7.ebuild new file mode 100644 index 000000000..e09ff60f6 --- /dev/null +++ b/net-analyzer/voiphopper/voiphopper-0.9.7.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="VoIP Hopper is a tool that rapidly runs a VLAN Hop into the Voice VLAN" +HOMEPAGE="http://voiphopper.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="x86" +IUSE="" +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dobin voiphopper + dodoc README +} diff --git a/net-analyzer/w3af/Manifest b/net-analyzer/w3af/Manifest new file mode 100644 index 000000000..a931b140e --- /dev/null +++ b/net-analyzer/w3af/Manifest @@ -0,0 +1,19 @@ +AUX w3af 37 RMD160 ba77819fa632e1e32001d7042d1922b69f68e6d0 SHA1 47e9945bddeda0a9f15b084fbfb3b728ba85cba2 SHA256 106bd9a98bc26fe5ba15d11d5ab7f40795b97d346c169c7b3379518e3da9d7fe +MD5 6d6f98661c4df5c976c242bfd250641c files/w3af 37 +RMD160 ba77819fa632e1e32001d7042d1922b69f68e6d0 files/w3af 37 +SHA256 106bd9a98bc26fe5ba15d11d5ab7f40795b97d346c169c7b3379518e3da9d7fe files/w3af 37 +DIST w3af-beta5.tar.bz2 10275597 RMD160 4f43dedb7619ebd6476d3f4440f472634fb64739 SHA1 c58c8ce242ec8095abc561e814dda0e3943f4cc8 SHA256 67d891aa6500e7df47db2f09f38d9e2c51954964e0f2cf5cf740433665379e95 +EBUILD w3af-0_beta5.ebuild 810 RMD160 b75db9901749e6feab268dc21aa984e88e88e043 SHA1 9aafc385611a2f60a2be3dd2e17182503d3f9d57 SHA256 00203f4a448365040a48ccddff474d5afc64cb3cebfbe5b63fe271885f85aec6 +MD5 28dfb30f9cf57959447a86c9f703e770 w3af-0_beta5.ebuild 810 +RMD160 b75db9901749e6feab268dc21aa984e88e88e043 w3af-0_beta5.ebuild 810 +SHA256 00203f4a448365040a48ccddff474d5afc64cb3cebfbe5b63fe271885f85aec6 w3af-0_beta5.ebuild 810 +EBUILD w3af-9999.ebuild 674 RMD160 e68a958c89e7d5b933548c2677c89032a2fb7cb3 SHA1 19f88126f2fdb7aa6e2173699f4eb9168edc10d9 SHA256 f68ef7f0c64401f235aedffd15dbac6bb95617e45317470744f843c0feffa109 +MD5 48238ea008de9264d5b71a599e6f3300 w3af-9999.ebuild 674 +RMD160 e68a958c89e7d5b933548c2677c89032a2fb7cb3 w3af-9999.ebuild 674 +SHA256 f68ef7f0c64401f235aedffd15dbac6bb95617e45317470744f843c0feffa109 w3af-9999.ebuild 674 +MD5 8ae580df43ab59a1708eeeb78488a94c files/digest-w3af-0_beta5 241 +RMD160 86b0cb2b32c04a04da78502488b184c526d85163 files/digest-w3af-0_beta5 241 +SHA256 01cf2a936c36f47ccdfb2b1472cb7dd73b32cbc85fdebd8bec0f76b995ee0c19 files/digest-w3af-0_beta5 241 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-w3af-9999 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-w3af-9999 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-w3af-9999 0 diff --git a/net-analyzer/w3af/files/digest-w3af-0_beta5 b/net-analyzer/w3af/files/digest-w3af-0_beta5 new file mode 100644 index 000000000..d838b8e4a --- /dev/null +++ b/net-analyzer/w3af/files/digest-w3af-0_beta5 @@ -0,0 +1,3 @@ +MD5 e6e662fc3e221756641b6456ad008bb6 w3af-beta5.tar.bz2 10275597 +RMD160 4f43dedb7619ebd6476d3f4440f472634fb64739 w3af-beta5.tar.bz2 10275597 +SHA256 67d891aa6500e7df47db2f09f38d9e2c51954964e0f2cf5cf740433665379e95 w3af-beta5.tar.bz2 10275597 diff --git a/net-analyzer/w3af/files/digest-w3af-9999 b/net-analyzer/w3af/files/digest-w3af-9999 new file mode 100644 index 000000000..e69de29bb diff --git a/net-analyzer/w3af/files/w3af b/net-analyzer/w3af/files/w3af new file mode 100644 index 000000000..8b0a19343 --- /dev/null +++ b/net-analyzer/w3af/files/w3af @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/lib/w3af +./w3af $* diff --git a/net-analyzer/w3af/w3af-0_beta5.ebuild b/net-analyzer/w3af/w3af-0_beta5.ebuild new file mode 100644 index 000000000..3c5c2b4e6 --- /dev/null +++ b/net-analyzer/w3af/w3af-0_beta5.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils +MY_P="${PN}-${PV/0_/}" +S="${WORKDIR}/${PN}" +DESCRIPTION="Web Application Attack and Audit Framework" +HOMEPAGE="http://w3af.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +SLOT="0" +RDEPEND=" dev-python/utidylib" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + dodir /usr/lib/ + dodir /usr/bin/ + + # should be as simple as copying everything into the target... + cp -pPR ${S} ${D}usr/lib/w3af || die + + # and creating symlinks in the /usr/bin dir + cd ${D}/usr/bin + ln -s ../lib/w3af/w3af ./w3af || die + + chown -R root:0 ${D} + +} diff --git a/net-analyzer/w3af/w3af-9999.ebuild b/net-analyzer/w3af/w3af-9999.ebuild new file mode 100644 index 000000000..5b87909df --- /dev/null +++ b/net-analyzer/w3af/w3af-9999.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils subversion +DESCRIPTION="Web Application Attack and Audit Framework" +HOMEPAGE="http://w3af.sourceforge.net/" +ESVN_REPO_URI="https://w3af.svn.sourceforge.net/svnroot/w3af/trunk" + +LICENSE="GPL-2" +KEYWORDS="-*" +IUSE="" +SLOT="0" +RDEPEND="dev-python/utidylib + dev-python/soappy" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + dodir /usr/lib/ + # should be as simple as copying everything into the target... + cp -pPR ${S} ${D}usr/lib/w3af || die + dobin "${FILESDIR}"/w3af + chown -R root:0 ${D} +} diff --git a/net-analyzer/wfuzz/Manifest b/net-analyzer/wfuzz/Manifest new file mode 100644 index 000000000..1ad2e41ca --- /dev/null +++ b/net-analyzer/wfuzz/Manifest @@ -0,0 +1,12 @@ +AUX wfuzz 49 RMD160 bb61dc9159dcf71c789cbc1ded67f8fa4de79cd8 SHA1 89a9b20bba23c64f12638b6ee65bc798ed44ff12 SHA256 c3f327c9caca48f84df5af6b28c7849998a8e4fbbccb7855120020f389136749 +MD5 4c07faa22588033f3fa33f9e487e2b35 files/wfuzz 49 +RMD160 bb61dc9159dcf71c789cbc1ded67f8fa4de79cd8 files/wfuzz 49 +SHA256 c3f327c9caca48f84df5af6b28c7849998a8e4fbbccb7855120020f389136749 files/wfuzz 49 +DIST wfuzz-1.4.tar.gz 148273 RMD160 5d4c8968e178774c950aff4fc6fc10575f6ad7ab SHA1 f6bd4e6da3e63d456cd2aebfe3598e81787d5ab6 SHA256 fc1a73ded9af26968df62c865343f4ddfe5300ca020cd32a41ab9f0bb2577adb +EBUILD wfuzz-1.4.ebuild 735 RMD160 6c15c76d37ad113387e4220b02ea4213198451fd SHA1 3a8241023a38a1566f15d57bed1c2ac300b5a7f4 SHA256 49e252d491a6c4c41c9330939204175a709445ccd13f37ca56627a7899cba309 +MD5 374db8365c6f98b4e5a7e9a8a2e3a4f9 wfuzz-1.4.ebuild 735 +RMD160 6c15c76d37ad113387e4220b02ea4213198451fd wfuzz-1.4.ebuild 735 +SHA256 49e252d491a6c4c41c9330939204175a709445ccd13f37ca56627a7899cba309 wfuzz-1.4.ebuild 735 +MD5 10bb8c190c18958b567d924b3a47d013 files/digest-wfuzz-1.4 229 +RMD160 88cb2224d4569a411bb768f13a198ea69cf431f7 files/digest-wfuzz-1.4 229 +SHA256 e72269051b9e969ba7b0a5483ba6812e14389e18f9e2761bee955f240ffb900d files/digest-wfuzz-1.4 229 diff --git a/net-analyzer/wfuzz/files/digest-wfuzz-1.4 b/net-analyzer/wfuzz/files/digest-wfuzz-1.4 new file mode 100644 index 000000000..2b50fa5e0 --- /dev/null +++ b/net-analyzer/wfuzz/files/digest-wfuzz-1.4 @@ -0,0 +1,3 @@ +MD5 b42b4449a9dade16c65a2a6928858e51 wfuzz-1.4.tar.gz 148273 +RMD160 5d4c8968e178774c950aff4fc6fc10575f6ad7ab wfuzz-1.4.tar.gz 148273 +SHA256 fc1a73ded9af26968df62c865343f4ddfe5300ca020cd32a41ab9f0bb2577adb wfuzz-1.4.tar.gz 148273 diff --git a/net-analyzer/wfuzz/files/wfuzz b/net-analyzer/wfuzz/files/wfuzz new file mode 100644 index 000000000..f01f18c34 --- /dev/null +++ b/net-analyzer/wfuzz/files/wfuzz @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/lib/wfuzz/ +python wfuzz.py $* diff --git a/net-analyzer/wfuzz/wfuzz-1.4.ebuild b/net-analyzer/wfuzz/wfuzz-1.4.ebuild new file mode 100644 index 000000000..ba75a38cf --- /dev/null +++ b/net-analyzer/wfuzz/wfuzz-1.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils +DESCRIPTION="Wfuzz is a tool designed for bruteforcing Web Applications" +HOMEPAGE="http://www.edge-security.com/" +SRC_URI="http://www.edge-security.com/soft/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +SLOT="0" +RDEPEND="dev-python/pycurl" + +src_compile() { + elog "Nothing to compile" +} + +src_install() { + dodir /usr/lib/ + dodir /usr/bin/ + + dodoc README + rm COPYING README LICENSES + + # should be as simple as copying everything into the target... + cp -pPR "${S}" "${D}"usr/lib/wfuzz || die + + dobin "${FILESDIR}"/wfuzz + chown -R root:0 ${D} + +} diff --git a/net-misc/karma/Manifest b/net-misc/karma/Manifest new file mode 100644 index 000000000..442408fce --- /dev/null +++ b/net-misc/karma/Manifest @@ -0,0 +1,12 @@ +AUX karma-gentoo.patch 1358 RMD160 0c1b63237278ce477bb49f27e9b72f9230fe2d5c SHA1 f5a07ed920a99519bc7e4b7d8589561134450602 SHA256 bffa908cc360aac3745f8478b1786aecdc49ee46aaccf447deef7265d77f78c9 +MD5 83721462d9e7be3f44bc98e2d39495c9 files/karma-gentoo.patch 1358 +RMD160 0c1b63237278ce477bb49f27e9b72f9230fe2d5c files/karma-gentoo.patch 1358 +SHA256 bffa908cc360aac3745f8478b1786aecdc49ee46aaccf447deef7265d77f78c9 files/karma-gentoo.patch 1358 +DIST karma-20060124.tar.gz 983407 RMD160 4856d65e135cb12159e7bc9106e18f5d73788bd1 SHA1 a4021a4860068d33844f65e9c9207482241ecddd SHA256 82ac69711015679afe30fcdb534449b03f7ea2dc2cff16bfd6ab36c88fd8b9a1 +EBUILD karma-20060124.ebuild 687 RMD160 a202f616d545c0531422dbd4da6b6371cb0d8a8b SHA1 64fd4fbf67ae21553cf16b0540f7e8a1f46fc974 SHA256 45cc5ef9c92b7f9eb0d244590f726139e6a72f2b916bf8474d7af7bce395eb62 +MD5 a76abf806f64c1c96fd4c46189eeddef karma-20060124.ebuild 687 +RMD160 a202f616d545c0531422dbd4da6b6371cb0d8a8b karma-20060124.ebuild 687 +SHA256 45cc5ef9c92b7f9eb0d244590f726139e6a72f2b916bf8474d7af7bce395eb62 karma-20060124.ebuild 687 +MD5 1047a26862b93a952d2690ead07f12cc files/digest-karma-20060124 244 +RMD160 dd1a786cf0399e0a34b3db89759851d30258a180 files/digest-karma-20060124 244 +SHA256 57f74e1ffa43460fc3718c68f07007d4eb603ea654cdd62fee2a8c82f632a033 files/digest-karma-20060124 244 diff --git a/net-misc/karma/files/digest-karma-20060124 b/net-misc/karma/files/digest-karma-20060124 new file mode 100644 index 000000000..9eff03b6d --- /dev/null +++ b/net-misc/karma/files/digest-karma-20060124 @@ -0,0 +1,3 @@ +MD5 e9d4ccbda89b4b1cd70eefb1db339d0a karma-20060124.tar.gz 983407 +RMD160 4856d65e135cb12159e7bc9106e18f5d73788bd1 karma-20060124.tar.gz 983407 +SHA256 82ac69711015679afe30fcdb534449b03f7ea2dc2cff16bfd6ab36c88fd8b9a1 karma-20060124.tar.gz 983407 diff --git a/net-misc/karma/files/karma-gentoo.patch b/net-misc/karma/files/karma-gentoo.patch new file mode 100644 index 000000000..f41e055de --- /dev/null +++ b/net-misc/karma/files/karma-gentoo.patch @@ -0,0 +1,36 @@ +diff -Naur karma-20060124.orig/bin/karma karma-20060124/bin/karma +--- karma-20060124.orig/bin/karma 2005-06-07 07:01:03.000000000 +0200 ++++ karma-20060124/bin/karma 2006-11-08 23:40:46.000000000 +0100 +@@ -4,14 +4,14 @@ + # + + require 'rexml/document' +-require File::dirname(__FILE__) + "/../modules/loader" ++require "/usr/lib/karma/modules/loader" + + ### + # Main + ### + + if (ARGV.length < 1) +- puts "usage: #{$0} " ++ puts "usage: #{$0} " + exit -1 + end + +diff -Naur karma-20060124.orig/modules/servers/AccessPoint/module.xml karma-20060124/modules/servers/AccessPoint/module.xml +--- karma-20060124.orig/modules/servers/AccessPoint/module.xml 2006-01-25 05:59:08.000000000 +0100 ++++ karma-20060124/modules/servers/AccessPoint/module.xml 2006-11-08 23:18:39.000000000 +0100 +@@ -17,9 +17,9 @@ + + +