summaryrefslogtreecommitdiff
path: root/app-text/rman
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/rman')
-rw-r--r--app-text/rman/Manifest8
-rw-r--r--app-text/rman/files/rman-3.2-format-security.patch16
-rw-r--r--app-text/rman/files/rman-3.2-gentoo.diff19
-rw-r--r--app-text/rman/files/rman-3.2-ldflags.patch13
-rw-r--r--app-text/rman/metadata.xml11
-rw-r--r--app-text/rman/rman-3.2-r1.ebuild33
6 files changed, 100 insertions, 0 deletions
diff --git a/app-text/rman/Manifest b/app-text/rman/Manifest
new file mode 100644
index 000000000000..e3d36dee0956
--- /dev/null
+++ b/app-text/rman/Manifest
@@ -0,0 +1,8 @@
+AUX rman-3.2-format-security.patch 458 SHA256 8cd00bda12ac1dd13788ded52100955f38da22745d67478d1c1decd176407d59 SHA512 1994555d399656f9d22586464f1ee46f67d279c1d93184b69e551b87d9fb393ba24ad7dc6ea62dda1288fe605dedca1e4bdc20eb333acedc535f1063e2f62aab WHIRLPOOL 5d92d9a218de77b716e4118b0bff43fad73da44ee8d289cc692c1e3d2867699aa70ed8761cc703d0e9e3eaaa369f01675278cbaf963cae492b26d728b96eef81
+AUX rman-3.2-gentoo.diff 560 SHA256 1a0001de30f6f15b88d3951211f1d9d0bf19ea21fdbab4d222afcab5ca80ed2a SHA512 528b2e7385882620ecaa0374a65579e0fe56803aa6991277ea1279d18d65a4331ebbfc2374a711bda2f5722a5fcc236681f9c4dfb3c0abed1e931ff986cbf74e WHIRLPOOL c8781a58ca5c9249f67d4e1781b7033ada966a9536fb4ac4fbb53988e2fac044768c46f4697dcaed195fe2e00c5701a6dbdac1f3f8b84012795b03a84fe544a1
+AUX rman-3.2-ldflags.patch 451 SHA256 cc23e72b5bf113f899f0cf678acd5ac876a4600dd97654c0b233cc37063c396e SHA512 936c9fb92e3f018ec0006370ea61f010b61469171a22a9f52a6773f32ef3ab01764b726573aa30548b1c9ea6db3893302a45d20c06bc19f7e272b5e531bec433 WHIRLPOOL bd308aa721f38f7a3b83ceacf4c24d02b8722c4ab8eff424087e583269949bc28adbcf2712cb59bdb0ac73f42c3f0c10e6cd28a1fe65b1cf1356c39fbc833880
+DIST rman-3.2.tar.gz 79397 SHA256 68a130696b251966db10a4774e2bc8083a0147b83f64c11e9bb4cd654da32d5f SHA512 a70aea0af1510088fd88a736e63a6dab9200040be5eb89912ede4f50e3de97d423574841bbb66e90fb12934f3834dac0acefe78ff1c73a78a79c95c3dd6fa5ae WHIRLPOOL 4ca7685e17a9034eaca12d623c0bb4c9c803d26149e58608b3e45cfc934ebcf0bd4700db01cfbafe6893141b68a4d470d6c9cbee6e18a526f1929902d5e837f5
+EBUILD rman-3.2-r1.ebuild 828 SHA256 61723ce2eb46cfd387943913f800e74bbbed57c8e7db0b72e999321aa83cf8d1 SHA512 b382ed08fee10f3d4970c61ca5b2c0d3e77c214f151491e916392f92eed9e5f4dea6e14f8f4ece6d16294778b467971cf9f9fd307339029973ab8856206445ad WHIRLPOOL b891033a5090d361b827594799ae79a53f0df84bb463f0507e8f0c327d59958ab0ff1c213016c6d2282451f71ca4e831088a46fe69e6cdeff2c16330df473c2b
+MISC ChangeLog 2771 SHA256 59c0f1505f7fd7ce7c7fd21d64c2101f73cb4a766c9f6c64f4b70ae9bf173ef1 SHA512 c7c9263da986488dc0347b6ad70cc3182085da3c3a7936ad78196de76aea0359b61503a3aedede655f4624211310b8a0ececa72bf598b17cc9484cb0e9a58d3d WHIRLPOOL b1bfd82cec42de879a5c56998a1ca66ff7cedef46ce89c300d66422c8806ca1533aa7cf60bdc4fbd8b9c07484f98c70dceb7168288efeb7b7712e49a5e4348da
+MISC ChangeLog-2015 5621 SHA256 16b790c2ee3011043834fa9bb1980bfe5b100b0d1c99586cf727399d66b8765b SHA512 d44542431d1974609d2f66f0c74ba48998ed4eb837eb377bd506a259b6736f40f2a8f9031360397b8d34c79400555c85fc2750eed9b87cdfdd1a853c3b98aa05 WHIRLPOOL 319f5702c825eaa664463aa25a2448185f98885953946954f19cfa55e099bf9ad695d4638dbfe9fce720645d0dd05f717c677745324e5707a31d90cf40e37d0a
+MISC metadata.xml 334 SHA256 0643f12dfe54c7ccbe2139185e0fc08cdadb667deb80883ac24743328e05fc44 SHA512 29d5b70060964469ce308fed8bc01e09bb74b3d2ac0605760d88f7dbd19a1cdd6517cdbab76f4269188454112837e0d27b32bbf3c5b9ecd5bb4d3ea4f862188c WHIRLPOOL f93efde3bd3e33a3428e56e3cdc3b3e01d0416e9f9500c82ae755e8a908521ef9a428624cb450c2ea733513cf5850ff912f44c0664fa609df02fa9e285844aaa
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">polyglotman</remote-id>
+ </upstream>
+</pkgmetadata>
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..ab6d881923bd
--- /dev/null
+++ b/app-text/rman/rman-3.2-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 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
+}