diff options
Diffstat (limited to 'net-misc/rwhoisd')
-rw-r--r-- | net-misc/rwhoisd/Manifest | 10 | ||||
-rw-r--r-- | net-misc/rwhoisd/files/rwhoisd | 17 | ||||
-rw-r--r-- | net-misc/rwhoisd/files/rwhoisd-destdir-1.5.9.5.patch | 39 | ||||
-rw-r--r-- | net-misc/rwhoisd/files/rwhoisd.conf | 7 | ||||
-rw-r--r-- | net-misc/rwhoisd/metadata.xml | 6 | ||||
-rw-r--r-- | net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild | 46 | ||||
-rw-r--r-- | net-misc/rwhoisd/rwhoisd-1.5.9.6.ebuild | 46 |
7 files changed, 171 insertions, 0 deletions
diff --git a/net-misc/rwhoisd/Manifest b/net-misc/rwhoisd/Manifest new file mode 100644 index 000000000000..e072621a5f09 --- /dev/null +++ b/net-misc/rwhoisd/Manifest @@ -0,0 +1,10 @@ +AUX rwhoisd 280 SHA256 e561589202783dc562c263e61b4f81247e42c3f359ac41e9f1aa52d03206aa66 SHA512 cd278c6dd828d7f07c50147e5dedad7cf8c8e44926b4717fec442b91d891838b59f61dc2a51968df5b4b1dfe181958148a9a7f9e93e65fc815b69c6219dabd6d WHIRLPOOL b1d635b22f6707aa6c458700cfb733c70885c481ea5b0454b5642e46d4a92ef02a0cb9daf55c46bc70c3ae012be075afedabf1d3977779559f91b560841a4a41 +AUX rwhoisd-destdir-1.5.9.5.patch 1007 SHA256 402dcf51c2735f3f2dc956373c939154cce7b9955cf3e4c36bbaacc0bf5e7c8f SHA512 9fc08f639cd087c1cbbc3139eb648fc4afed1c8aa299fcec867c3938a773e8c0ca9b1be40acdc61026ded1f012df9eea2bb713ec1207464f1cd66d215c2fa221 WHIRLPOOL 7508fbba3d72486d0a859f7ade65132184d7972106c412ea8be46821458bad87889e938fe16ae44c711ec6a76c55321d6df372f01314901a0d75aff049970069 +AUX rwhoisd.conf 154 SHA256 977db3d945ba6862b4161256a0cd2bce92f181246e3945d64f8e44a78de8b974 SHA512 882d93ddf72f6a909ab6a33a6f5026e35f52ae025a9e4653cc0449c4b0ab1b2fda5799e1b44b19c620eb98337270a7a1c1eb9cff66af49832adf9726f4713bb8 WHIRLPOOL 4150fb3a5e357540ca3f1be4cc876287a5b9b9d08be31cd785d2d6edf2f6bb4fdab2b0c5b79a5a775cb335b49d422c0c7df54d01503371ccc7cfad997789c69f +DIST rwhoisd-1.5.9.5.tar.gz 491600 SHA256 832da8faff58070fcc8685c67375dcced3b6bb225ffbe3542dd6052add61cf92 SHA512 d9227cd700cb14e0c83003c7a8dff43f859eba58390f4ba74b03c58fe629bcc9e8a39f2aaf7ce9b55aa4f17f43fc54fed9ba05a29bcbe1df5fc1340202d7b04c WHIRLPOOL ba6f7741462468d8f9e933c69f576c2204ede70b0315486df1885afa2a45755c32b7e4170df7792c2aa6516f51c39eb01495ba8cec453f676265817fff8cecb2 +DIST rwhoisd-1.5.9.6.tar.gz 491955 SHA256 c1768d2414bca88f10acc2e50a23288a21176416ddfe697ee4326636c0b062f7 SHA512 ab5674d9ed9f9c5fc00b2859b1336c766c546ca067ddf9d3863a0728c6d0eac11be3a9cd22dce8c25999ed8c8e5377e6da4aa1252e396d5b3c8e959794903c52 WHIRLPOOL 4933df098968598fb7e988cfc114b0048d96d3ddce460b5ed92ee321f405e30cfb3bcb93264be4623c955c454723f9c45336be75dbf36b315c88396c69b40b23 +EBUILD rwhoisd-1.5.9.5-r3.ebuild 892 SHA256 fdfe5116b5927bf3100e69af94a84db5713991ec6f159675f9414c97082ce516 SHA512 ba47902133b686606c3aa64571ca7d9bf8530201971fe7f8abd750714dced074e4365e2c2418238f88b62bc3a40884462cd67e6a44d56d8b756f5ba0b9df40a0 WHIRLPOOL eede462e2d2aedaa676ca926966806eec59ee3e4c2efbe8317acef1c1428d7e8b1193286a28e3da628b6b69f6e85f4a16969e047983eb4fd6835ea6093d7925d +EBUILD rwhoisd-1.5.9.6.ebuild 873 SHA256 685c508120c15e36fd3f473cf77e75729a678c108c4f8cd9c336168c23c070fb SHA512 8959505ad0dff653851c312c6be15302163d5ba0b9190ec339a9f6180f2ccd838d5e520018463a0fb0b94567d9722ec2a06fdff3950e17444d40e6ab724acf67 WHIRLPOOL 4009f5c787bb961328805c3ce49f3567d9cedb02a19ae071c4eee0fc646c2d18d7414c3edbeada54f5c0d689847224593d80a566baa4c4eeecc2b21297562295 +MISC ChangeLog 3020 SHA256 1493e886f3d60b49d7c34e0d55e44e8a7e2781c63dbab36e0a08d14e6a47d0ae SHA512 caafa0a40077533fe2e82d1b83fee68210da378ebb419f6ff4bbecccf570989497d83701423c132f35aaa1be633ca79d84f9f413201494f0deb36c5357ca6595 WHIRLPOOL c0c4ca744323368196032690fc749c00f17742973fdc7b31a3314050d1498e42c1dfe21e73b3f1d8fa9e5eb9f805f6a6d69313f69cc609fd1bea1d560cbc0aed +MISC ChangeLog-2015 1569 SHA256 d002f4094aec270cc07e66b0c2458594f3af4094a52c21b797ca1b1f5d57179d SHA512 3d6aab923ef3191457fdbd29e78555db2de2454dd8475a3cad5ed58a8d8c437b924ef10da574de1f1010b10ea8bc8823fc9fa7ab8b8237d44a431bfdb7e1466c WHIRLPOOL 39d392e6bb0081d01a75673602430a374c76889adbaafab849c5ccd8f6c29771f7d40090f76e5ac0527983cf9327fbf933954493409372990201ceff5ec8b200 +MISC metadata.xml 225 SHA256 0acfe9892935de316181c7b1b1d10e759f27ad33afd741015b31a3ce351ae6ad SHA512 0b610f2ab50e3c82c7e3fb9bbe1af0ce84851de95ad8b8caec506e4d8260e3bd64995e7d51d447c29bbd4696285a67d14fc1f10ceab9185e4501802986e27980 WHIRLPOOL b1b95cd871b82227b82dc206207bbf9283c34c591919d1b814877574a86d9a25798298340f81c86afa5dbeefbcd08380e017cbd2abaf281aecf01188b2579377 diff --git a/net-misc/rwhoisd/files/rwhoisd b/net-misc/rwhoisd/files/rwhoisd new file mode 100644 index 000000000000..f6978f662e27 --- /dev/null +++ b/net-misc/rwhoisd/files/rwhoisd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run + +depend() { + use logger +} + +start() { + ebegin "Starting rwhoisd" + start-stop-daemon --start --quiet --exec /usr/sbin/rwhoisd -- ${RWHOISD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping rwhoisd" + start-stop-daemon --stop --quiet --exec /usr/sbin/rwhoisd + eend $? +} diff --git a/net-misc/rwhoisd/files/rwhoisd-destdir-1.5.9.5.patch b/net-misc/rwhoisd/files/rwhoisd-destdir-1.5.9.5.patch new file mode 100644 index 000000000000..6cd6b28f2e51 --- /dev/null +++ b/net-misc/rwhoisd/files/rwhoisd-destdir-1.5.9.5.patch @@ -0,0 +1,39 @@ +--- a/tools/rwhois_repack/Makefile.in ++++ b/tools/rwhois_repack/Makefile.in +@@ -52,9 +52,9 @@ + # procedural + + install: +- if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi +- if [ ! -d $(bindir) ]; then mkdir $(bindir); fi +- $(INSTALL) rwhois_repack $(bindir) ++ if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir $(DESTDIR)$(exec_prefix); fi ++ if [ ! -d $(DESTDIR)$(bindir) ]; then mkdir $(DESTDIR)$(bindir); fi ++ $(INSTALL) rwhois_repack $(DESTDIR)$(bindir) + + uninstall: + $(RM) $(bindir)/rwhois_repack + +--- a/sample.data/Makefile.in ++++ b/sample.data/Makefile.in +@@ -10,7 +10,7 @@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + bindir = $(exec_prefix)/bin +-etcdir = $(exec_prefix)/etc ++etcdir = /etc + + srcdir = @srcdir@ + VPATH = @srcdir@ + +--- a/sample.data/Makefile.in ++++ b/sample.data/Makefile.in +@@ -17,7 +17,7 @@ + + DESTDIR = + +-RWHOIS_ROOT_DIR = $(DESTDIR)$(etcdir)/rwhoisd/samples ++RWHOIS_ROOT_DIR = $(DESTDIR)/var/rwhoisd/samples + + FILES = \ + a.com \ diff --git a/net-misc/rwhoisd/files/rwhoisd.conf b/net-misc/rwhoisd/files/rwhoisd.conf new file mode 100644 index 000000000000..eb32d26d55ed --- /dev/null +++ b/net-misc/rwhoisd/files/rwhoisd.conf @@ -0,0 +1,7 @@ +# configuration file for /etc/init.d/rwhoisd + +OPTS="-c /etc/rwhoisd/rwhoisd.conf" + +# Pass any additional options to rwhoisd here. + +RWHOISD_OPTS="${OPTS}" diff --git a/net-misc/rwhoisd/metadata.xml b/net-misc/rwhoisd/metadata.xml new file mode 100644 index 000000000000..d15ef5a13193 --- /dev/null +++ b/net-misc/rwhoisd/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<longdescription>rwhois server from ARIN</longdescription> +</pkgmetadata> diff --git a/net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild b/net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild new file mode 100644 index 000000000000..0ff7fbf1072d --- /dev/null +++ b/net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic user + +DESCRIPTION="ARIN rwhois daemon" +HOMEPAGE="http://projects.arin.net/rwhois/" +SRC_URI="http://projects.arin.net/rwhois/ftp/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + sys-devel/flex + virtual/yacc +" + +pkg_setup() { + enewgroup rwhoisd + enewuser rwhoisd -1 -1 /var/rwhoisd rwhoisd +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-destdir-${PV}.patch + append-cflags -DNEW_STYLE_BIN_SORT +} + +src_compile() { + emake -C common + emake -C regexp + emake -C mkdb + default +} + +src_install () { + default + doinitd "${FILESDIR}"/rwhoisd + newconfd "${FILESDIR}"/rwhoisd.conf rwhoisd +} + +pkg_postinst () { + einfo "Please make sure to set the userid in rwhoisd.conf to rwhoisd." + einfo "It is highly inadvisable to run rwhoisd as root." +} diff --git a/net-misc/rwhoisd/rwhoisd-1.5.9.6.ebuild b/net-misc/rwhoisd/rwhoisd-1.5.9.6.ebuild new file mode 100644 index 000000000000..e08fd625c8a6 --- /dev/null +++ b/net-misc/rwhoisd/rwhoisd-1.5.9.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic user + +DESCRIPTION="ARIN rwhois daemon" +HOMEPAGE="http://projects.arin.net/rwhois/" +SRC_URI="https://github.com/arineng/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + sys-devel/flex + virtual/yacc +" +S=${WORKDIR}/${P}/${PN} + +pkg_setup() { + enewgroup rwhoisd + enewuser rwhoisd -1 -1 /var/rwhoisd rwhoisd +} + +src_compile() { + append-cflags -DNEW_STYLE_BIN_SORT + + emake -C common + emake -C regexp + emake -C mkdb + + default +} + +src_install () { + default + + doinitd "${FILESDIR}"/rwhoisd + newconfd "${FILESDIR}"/rwhoisd.conf rwhoisd +} + +pkg_postinst () { + einfo "Please make sure to set the userid in rwhoisd.conf to rwhoisd." + einfo "It is highly inadvisable to run rwhoisd as root." +} |