diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/rats | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/rats')
-rw-r--r-- | dev-util/rats/Manifest | 4 | ||||
-rw-r--r-- | dev-util/rats/files/rats-2.4-fix-build-system.patch | 27 | ||||
-rw-r--r-- | dev-util/rats/metadata.xml | 13 | ||||
-rw-r--r-- | dev-util/rats/rats-2.4.ebuild | 40 |
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-util/rats/Manifest b/dev-util/rats/Manifest new file mode 100644 index 000000000000..9786ccfaf5ac --- /dev/null +++ b/dev-util/rats/Manifest @@ -0,0 +1,4 @@ +AUX rats-2.4-fix-build-system.patch 1131 BLAKE2B a9890ebe1af624e2ede486da6ede63318a7de2775028df5d37f004b575e35890cd833cfc1211196b4cc772b3fff13b6b0f76e0dd0558b781b1e54b96a9a2af4e SHA512 d56accaedbb5b0fa5961c79ee19510ddd36428d3a96b6066ffd304a3167df5cd510041f3eeee9aabfe66b71a29090a9199125d14ae6be6443b5e490e2cdeaf07 +DIST rats-2.4.tgz 393114 BLAKE2B 73dfefc42cd99420edba9ac28d56b51e058b144d9deaf9f1e322e7fe4331e16d05cff049efccd344723fe1634c3691f911dd71001671058c5912f84cfdc0bdbb SHA512 f402717fc935a2f9c2464e1623807575044258fd998cabc8f115c063141004b5978bad739021f109cbbd1abd84231155eb59671ae202aefb40e1fd6733d8ac6d +EBUILD rats-2.4.ebuild 1127 BLAKE2B b52d2b6c3df8a763d7d89ceea46b0812940afb376819d110c79817dd89cd47100353bb7756924fb25bf0b13df3bb4cf4b914a7cc9eced7fdc41cc0f111f7788f SHA512 ceb6ced278b7c50f321cddfbb705737d97edd821e97543e515996576fbc0589248d2fc6cfe0a38f9b6c4afdf7fa673369bb436d64dedef6d3ddbb65439336217 +MISC metadata.xml 604 BLAKE2B 1df7626ac554d569d4bae9ff3821a998cf2457441e81c55d57b1ed0bc319226847083de8a97f4362339b9b6f9d9de973777274270d19540dfdba95674f456478 SHA512 14edf04ecb58d9fd69c549b9cd64713338aaa8dab9230ddc00824dfaaa3b2e77090deeb0dc7f87fc875ebb3851ea3bae4765ee8e140b8695ad4088f1eb1fbdad diff --git a/dev-util/rats/files/rats-2.4-fix-build-system.patch b/dev-util/rats/files/rats-2.4-fix-build-system.patch new file mode 100644 index 000000000000..42972876a5c8 --- /dev/null +++ b/dev-util/rats/files/rats-2.4-fix-build-system.patch @@ -0,0 +1,27 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -50,15 +50,15 @@ + $(LEX) $(LEXFLAGS) -Pyyruby ruby-lex.l
+
+ install: $(BIN)
+- ./mkinstalldirs $(BINDIR) $(LIBDIR) $(MANDIR) $(MANDIR)/man1 $(SHAREDIR)
+- $(INSTALL_PROGRAM) $(BIN) $(BINDIR)
+- $(INSTALL_DATA) rats-python.xml $(SHAREDIR)
+- $(INSTALL_DATA) rats-c.xml $(SHAREDIR)
+- $(INSTALL_DATA) rats-perl.xml $(SHAREDIR)
+- $(INSTALL_DATA) rats-php.xml $(SHAREDIR)
+- $(INSTALL_DATA) rats-ruby.xml $(SHAREDIR)
+- $(INSTALL_DATA) rats-openssl.xml $(SHAREDIR)
+- $(INSTALL_DATA) rats.1 $(MANDIR)/man1
++ ./mkinstalldirs $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(SHAREDIR)
++ $(INSTALL_PROGRAM) $(BIN) $(DESTDIR)$(BINDIR)
++ $(INSTALL_DATA) rats-python.xml $(DESTDIR)$(SHAREDIR)
++ $(INSTALL_DATA) rats-c.xml $(DESTDIR)$(SHAREDIR)
++ $(INSTALL_DATA) rats-perl.xml $(DESTDIR)$(SHAREDIR)
++ $(INSTALL_DATA) rats-php.xml $(DESTDIR)$(SHAREDIR)
++ $(INSTALL_DATA) rats-ruby.xml $(DESTDIR)$(SHAREDIR)
++ $(INSTALL_DATA) rats-openssl.xml $(DESTDIR)$(SHAREDIR)
++ $(INSTALL_DATA) rats.1 $(DESTDIR)$(MANDIR)/man1
+
+ clean:
+ rm -f $(OBJ) *~ $(BIN) core
diff --git a/dev-util/rats/metadata.xml b/dev-util/rats/metadata.xml new file mode 100644 index 000000000000..d7aaff12cec9 --- /dev/null +++ b/dev-util/rats/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>robbat2@gentoo.org</email> +</maintainer> +<longdescription>RATS - Rough Auditing Tool for Security - is an open source + tool developed and maintained by Secure Software security engineers. RATS + is a tool for scanning C, C++, Perl, PHP and Python source code and + flagging common security related programming errors such as buffer + overflows and TOCTOU (Time Of Check, Time Of Use) race conditions. +</longdescription> +</pkgmetadata> diff --git a/dev-util/rats/rats-2.4.ebuild b/dev-util/rats/rats-2.4.ebuild new file mode 100644 index 000000000000..0a41658a9907 --- /dev/null +++ b/dev-util/rats/rats-2.4.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="RATS - Rough Auditing Tool for Security" +HOMEPAGE="https://code.google.com/p/rough-auditing-tool-for-security/" +SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rough-auditing-tool-for-security/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +RDEPEND="dev-libs/expat:=" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-2.4-fix-build-system.patch ) + +src_prepare() { + default + + local f + while IFS="" read -d $'\0' -r f; do + einfo "Converting ${f} from CRLF to LF" + edos2unix "${f}" + done < <(find \( -name '*.[chl]' -o -name '*.in' -o -name '*.am' \) -print0) +} + +src_configure() { + econf --datadir="${EPREFIX}/usr/share/${PN}/" +} + +pkg_postinst() { + ewarn "Please be careful when using this program with it's force language" + ewarn "option, '--language <LANG>' it may take huge amounts of memory when" + ewarn "it tries to treat binary files as some other type." +} |