From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-text/rman/Manifest | 6 ++++ app-text/rman/files/rman-3.2-format-security.patch | 16 +++++++++++ app-text/rman/files/rman-3.2-gentoo.diff | 19 +++++++++++++ app-text/rman/files/rman-3.2-ldflags.patch | 13 +++++++++ app-text/rman/metadata.xml | 11 ++++++++ app-text/rman/rman-3.2-r1.ebuild | 33 ++++++++++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 app-text/rman/Manifest create mode 100644 app-text/rman/files/rman-3.2-format-security.patch create mode 100644 app-text/rman/files/rman-3.2-gentoo.diff create mode 100644 app-text/rman/files/rman-3.2-ldflags.patch create mode 100644 app-text/rman/metadata.xml create mode 100644 app-text/rman/rman-3.2-r1.ebuild (limited to 'app-text/rman') diff --git a/app-text/rman/Manifest b/app-text/rman/Manifest new file mode 100644 index 000000000000..3d66d947d52b --- /dev/null +++ b/app-text/rman/Manifest @@ -0,0 +1,6 @@ +AUX rman-3.2-format-security.patch 458 BLAKE2B 85807cbc0ffa292c56794f61f371333813283abce2eceee7485849ac60bed91c6c5e336c27a53049ec891bbaeb0cfc2253002fba487a79b713f91ec983519ceb SHA512 1994555d399656f9d22586464f1ee46f67d279c1d93184b69e551b87d9fb393ba24ad7dc6ea62dda1288fe605dedca1e4bdc20eb333acedc535f1063e2f62aab +AUX rman-3.2-gentoo.diff 560 BLAKE2B 7f63625d37971f537c44667a05ec5b65c7c2216c05b5cc447fc802be3a35df365def1c8a95aebd5ed2f462eeced80cd1c106fb2708c231568a7666d1fa7335d4 SHA512 528b2e7385882620ecaa0374a65579e0fe56803aa6991277ea1279d18d65a4331ebbfc2374a711bda2f5722a5fcc236681f9c4dfb3c0abed1e931ff986cbf74e +AUX rman-3.2-ldflags.patch 451 BLAKE2B ee44bfca1a15b8a52a42c703ca749722257f8ded019fa3119687f0808ad85ae696096bc29d5a7b04c4527382ad1f3f9d8d2d3e3bfb72005a167be3e95693a4b3 SHA512 936c9fb92e3f018ec0006370ea61f010b61469171a22a9f52a6773f32ef3ab01764b726573aa30548b1c9ea6db3893302a45d20c06bc19f7e272b5e531bec433 +DIST rman-3.2.tar.gz 79397 BLAKE2B 2be1c60f77c3b2c4fa73a59c5a8965da1c8b1f3b569e7e4d5716a372228bacb81c5421f4bbf330781aa231835393c915ed14057c717cb1e8ed57101f7febb37d SHA512 a70aea0af1510088fd88a736e63a6dab9200040be5eb89912ede4f50e3de97d423574841bbb66e90fb12934f3834dac0acefe78ff1c73a78a79c95c3dd6fa5ae +EBUILD rman-3.2-r1.ebuild 827 BLAKE2B c8009479031369a6fcbed5b82a19754d69cb580b3a6527c055bc7c611d377bf47bed9af2b5d4a37b8b6e532240ef8fa20c76a7d8c890025edb2381d8359fed01 SHA512 4d7b4a492185ae4924efda0d98816059468af14285891f609956ed6e7cbcc5d013d4d8172e96d7f1b9892fc8991aaa4d259aa807c730435716610bd90e76efac +MISC metadata.xml 334 BLAKE2B f3759592bab3b3f8426acb5a0fff5d5d7efb5618c951e2c0a26dcc119f609702f45327dcc47de6132befee7064536413006e77a09ab67415c041b0697129df6c SHA512 29d5b70060964469ce308fed8bc01e09bb74b3d2ac0605760d88f7dbd19a1cdd6517cdbab76f4269188454112837e0d27b32bbf3c5b9ecd5bb4d3ea4f862188c diff --git a/app-text/rman/files/rman-3.2-format-security.patch b/app-text/rman/files/rman-3.2-format-security.patch new file mode 100644 index 000000000000..77070026bdb9 --- /dev/null +++ b/app-text/rman/files/rman-3.2-format-security.patch @@ -0,0 +1,16 @@ + rman.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/rman.c b/rman.c +index d09e547..e5fc88d 100644 +--- a/rman.c ++++ b/rman.c +@@ -1372,7 +1372,7 @@ HTML(enum command cmd) { + break; + case BEGINSECTION: break; + case ENDSECTION: +- if (sectheadid==NAME && message!=NULL) printf(message); ++ if (sectheadid==NAME && message!=NULL) printf("%s", message); + break; + case BEGINSUBSECTION: break; + case ENDSUBSECTION: break; diff --git a/app-text/rman/files/rman-3.2-gentoo.diff b/app-text/rman/files/rman-3.2-gentoo.diff new file mode 100644 index 000000000000..ece1e3807e66 --- /dev/null +++ b/app-text/rman/files/rman-3.2-gentoo.diff @@ -0,0 +1,19 @@ +diff -urN rman-3.2.orig/Makefile rman-3.2/Makefile +--- rman-3.2.orig/Makefile 2003-07-26 12:15:00.000000000 -0700 ++++ rman-3.2/Makefile 2005-07-12 01:01:37.000000000 -0700 +@@ -15,13 +15,8 @@ + # this must be a directory that's in your bin PATH. + # MANDIR holds the man page. + +-BINDIR = /opt/local/bin +-#BINDIR = /usr/local/bin +-#BINDIR = //C/bin +-MANDIR = /usr/local/man/man1 +-# popular alternative +-#BINDIR = /opt/local/bin +-#MANDIR = /opt/local/man/man1 ++BINDIR = /usr/bin ++MANDIR = /usr/share/man/man1 + + + ### if you have GNU gcc, use these definitions diff --git a/app-text/rman/files/rman-3.2-ldflags.patch b/app-text/rman/files/rman-3.2-ldflags.patch new file mode 100644 index 000000000000..4a6f5f5d9eab --- /dev/null +++ b/app-text/rman/files/rman-3.2-ldflags.patch @@ -0,0 +1,13 @@ +Index: rman-3.2/Makefile +=================================================================== +--- rman-3.2.orig/Makefile ++++ rman-3.2/Makefile +@@ -102,7 +102,7 @@ all: rman + + # everyone but me zaps assertions with the -DNDEBUG flag + rman: rman.c Makefile +- $(CC) -DNDEBUG $(defs) -DPOLYGLOTMANVERSION=\"$(version)\" $(CFLAGS) -o rman rman.c ++ $(CC) $(LDFLAGS) -DNDEBUG $(defs) -DPOLYGLOTMANVERSION=\"$(version)\" $(CFLAGS) -o rman rman.c + + + debug: diff --git a/app-text/rman/metadata.xml b/app-text/rman/metadata.xml new file mode 100644 index 000000000000..142b07948920 --- /dev/null +++ b/app-text/rman/metadata.xml @@ -0,0 +1,11 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + polyglotman + + diff --git a/app-text/rman/rman-3.2-r1.ebuild b/app-text/rman/rman-3.2-r1.ebuild new file mode 100644 index 000000000000..a7c1c12e39bd --- /dev/null +++ b/app-text/rman/rman-3.2-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="PolyGlotMan man page translator AKA RosettaMan" +HOMEPAGE="https://sourceforge.net/projects/polyglotman/" +SRC_URI="mirror://sourceforge/polyglotman/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RESTRICT="test" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.diff \ + "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-format-security.patch +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin ${PN} + doman ${PN}.1 +} -- cgit v1.2.3