summaryrefslogtreecommitdiff
path: root/net-dns/totd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dns/totd
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dns/totd')
-rw-r--r--net-dns/totd/Manifest7
-rw-r--r--net-dns/totd/files/totd38
-rw-r--r--net-dns/totd/files/totd-1.5.1-no_werror.patch11
-rw-r--r--net-dns/totd/metadata.xml13
-rw-r--r--net-dns/totd/totd-1.5.1.ebuild45
5 files changed, 114 insertions, 0 deletions
diff --git a/net-dns/totd/Manifest b/net-dns/totd/Manifest
new file mode 100644
index 000000000000..b6d82a82a8a9
--- /dev/null
+++ b/net-dns/totd/Manifest
@@ -0,0 +1,7 @@
+AUX totd 703 SHA256 1bc60cc6a32b0a72b0cab0b64cef455de679c46afa6161cfd5abb1c761cb0f36 SHA512 1ff0bf4969a2670147646590e5f33f6dfbebc1e3e03b3d544f03567867f439b386695020766a6433a411664ea0ec64a4e816794a7cff9172ff6ea546d888a4b9 WHIRLPOOL cf8589f770de4eb9b974b5acb215d61ea2bb6e97d871286c850d50557b8607f687bd1af234504d362e496cdb43ad642fd737027998f10a64e504aea774ebc99f
+AUX totd-1.5.1-no_werror.patch 528 SHA256 2f33c9d1a6e18e8e889c4b47291a177b0d99dc09b6fa52995feed11c6c8b6149 SHA512 ae7dc467c1e404c705502b256635c62a80e6f087878af64e8a3d8367abad053fcfc1d2d1da47a772e57bd669bd26c409302b808eed2fe69bd64d3483c1f5c30c WHIRLPOOL 76d939dbbb53773257e93e36e1388cc80aa6086739a422ea04de51087bddfcad85b1fb9f475ab9e347c8d3bd7429972a42f77b01d4f89fb499cabd8c37479a3e
+DIST totd-1.5.1.tar.gz 235809 SHA256 1a09ef6dcf382beea3546eec3138eadfbaeec198a6f921c96e8937e91a1e06fa SHA512 47087fd0478bc2952b25a0952ffb7273e4fdebda019f61fd0bad3c0305ab8f6e32b8f8dd042364f9ae6e6bd31c223e8fd3b17e3b4d44219fd6509f530f56025a WHIRLPOOL 6ea01380cc9306937b919fefcc8f6eb7e8cc2c7992d391457ef08648c8379b419e92ffb9fd581bee57ec12780b32316d380606adb01c422bb28a2df966d74901
+EBUILD totd-1.5.1.ebuild 905 SHA256 00716d4eb25e743a3fe78dc1bc0852b62dd83273bbdd6504ad8210dc190139f3 SHA512 ca5087f4228d05228190dd158cd2972709a6c119cf38cb2ab991e26c7088d6d7b42daed91cf6e85a653e28c43485f480e50d9c57353351915d310d494b10107d WHIRLPOOL 5d0b179da614e65c93319687b38009734baed5d5cbfade4d2ecb3adefe1aa03d183da181790417da43bfb29062dbe24211c7aedd4f3116b8bfcf94131762b1c2
+MISC ChangeLog 2448 SHA256 e85ddcb989da947b7ba105db5db2dc15f7530f3985b84a756297bf12c0ef40c6 SHA512 6dfa12a5a3e534c6f1251c3a8045a4820c4c1af73dee3282329ee6ab23461729898639aa5aa1f3862e6cceaf6368f3b562f0201660665d6d051b3281215d419e WHIRLPOOL 7b228892b7ec3343587c96834bc5345733b5ec50e2dad1eefd9fa4c7c561769aafc3a01d7c4b5c87f88b7406c94cb4543f5a104ad5356ed69044261178f86b3a
+MISC ChangeLog-2015 2111 SHA256 07f035f90d5136e45b3a8a1c579db01528d99b1775c921fa797a851f70fbf981 SHA512 d0596394dfa073035c893172d1e25a8145cfdee1430a2db396858e1061b320445b169e8c40606e5126fe130da8764250841edfb65584aa215f0d2cdbc7868105 WHIRLPOOL d00af7b44bc1115ba38924edce31be81d323645fac984986b8b6df7b63f28e8181e323d985bf3f44a5a1267d322259f18bfccda7179da22d0567e1d8932c0dea
+MISC metadata.xml 471 SHA256 33484338c8bc4b7d63e8b71e0972e48fad50ce26d6e9a186fca8934fd8b75895 SHA512 95d9e3644841041c2a873f098bc1fc79ba53f205edd0af389792f5c544e794ab8883a6f1dfc1de98b110fc3b04185e610c2ee67b7bea4d4878a7d3e6557c30f7 WHIRLPOOL 76012bc656f4db8dacbdfd84c28ffe92e301d28dd935a0a3940cdc1f60a6e982d5cc11b72cdd9311bc9c65b5dcef3facd9991f13b8e0cac0d7d679f0853f8325
diff --git a/net-dns/totd/files/totd b/net-dns/totd/files/totd
new file mode 100644
index 000000000000..79d410acb013
--- /dev/null
+++ b/net-dns/totd/files/totd
@@ -0,0 +1,38 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f /etc/totd.conf ]
+ then
+ eerror "The config file /etc/totd.conf does not exist."
+ return 1
+ else
+ return 0
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting totd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/totd
+ eend $?
+}
+
+stop() {
+ local pid_file
+ pid_file="`grep ^pidfile /etc/totd.conf | cut -f2 -d ' '`"
+ ebegin "Stopping totd"
+ if [ -n "$pid_file" ]
+ then
+ start-stop-daemon --stop --quiet --pidfile $pid_file
+ else
+ start-stop-daemon --stop --quiet --pidfile /var/run/totd.pid
+ fi
+ eend $?
+}
diff --git a/net-dns/totd/files/totd-1.5.1-no_werror.patch b/net-dns/totd/files/totd-1.5.1-no_werror.patch
new file mode 100644
index 000000000000..246e709d5109
--- /dev/null
+++ b/net-dns/totd/files/totd-1.5.1-no_werror.patch
@@ -0,0 +1,11 @@
+--- totd-1.5.1/Makefile.in 2005-01-31 12:55:14.000000000 +0100
++++ totd-1.5.1_new/Makefile.in 2007-06-30 22:51:07.000000000 +0200
+@@ -19,7 +19,7 @@
+
+ INSTALL = /usr/bin/install
+
+-CFLAGS = @CFLAGS@ @DEFS@ -Werror -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
++CFLAGS = @CFLAGS@ @DEFS@ -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
+
+ # When debugging is enabled by --enable-malloc-debug flag to the configure
+ # script, the @DBMALLOC@ substitution will contain the empty string, thus
diff --git a/net-dns/totd/metadata.xml b/net-dns/totd/metadata.xml
new file mode 100644
index 000000000000..d71991b3359b
--- /dev/null
+++ b/net-dns/totd/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>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <longdescription lang="en">
+ Totd ( Trick Or Treat Daemon ) is a small DNS proxy nameserver that
+ supports IPv6 only hosts/networks that communicate with the IPv4 world
+ using some translation mechanism.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-dns/totd/totd-1.5.1.ebuild b/net-dns/totd/totd-1.5.1.ebuild
new file mode 100644
index 000000000000..8cb983f4b008
--- /dev/null
+++ b/net-dns/totd/totd-1.5.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Trick Or Treat Daemon, a DNS proxy for 6to4"
+HOMEPAGE="http://www.dillema.net/software/totd.html"
+SRC_URI="http://www.dillema.net/software/${PN}/${P}.tar.gz"
+
+LICENSE="totd BSD BSD-4"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no_werror.patch
+}
+
+src_configure() {
+ econf \
+ --enable-ipv4 \
+ --enable-ipv6 \
+ --enable-stf \
+ --enable-scoped-rewrite \
+ --disable-http-server
+}
+
+src_install() {
+ dosbin totd
+ doman totd.8
+ dodoc totd.conf.sample README INSTALL
+
+ doinitd "${FILESDIR}"/totd
+}
+
+pkg_postinst() {
+ elog "The totd.conf.sample file in /usr/share/doc/${P}/ contains"
+ elog "a sample config file for totd. Make sure you create"
+ elog "/etc/totd.conf with the necessary configurations"
+}