diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-12-01 15:26:56 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-12-01 15:26:56 +0000 |
commit | 151cf8a21b09fb4f04068afbc40aadfce2d10dfd (patch) | |
tree | 6f18098b8c2011520c5b92a20941a54568d713b8 /net-dns/namecoind | |
parent | Initial commit (diff) | |
download | historical-151cf8a21b09fb4f04068afbc40aadfce2d10dfd.tar.gz historical-151cf8a21b09fb4f04068afbc40aadfce2d10dfd.tar.bz2 historical-151cf8a21b09fb4f04068afbc40aadfce2d10dfd.zip |
Initial commit
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'net-dns/namecoind')
-rw-r--r-- | net-dns/namecoind/ChangeLog | 12 | ||||
-rw-r--r-- | net-dns/namecoind/Manifest | 28 | ||||
-rw-r--r-- | net-dns/namecoind/files/namecoin.conf | 8 | ||||
-rw-r--r-- | net-dns/namecoind/files/namecoin.confd | 10 | ||||
-rw-r--r-- | net-dns/namecoind/files/namecoin.initd | 104 | ||||
-rw-r--r-- | net-dns/namecoind/files/namecoind-0.3.72-makefile.patch | 52 | ||||
-rw-r--r-- | net-dns/namecoind/metadata.xml | 8 | ||||
-rw-r--r-- | net-dns/namecoind/namecoind-0.3.72.ebuild | 77 |
8 files changed, 299 insertions, 0 deletions
diff --git a/net-dns/namecoind/ChangeLog b/net-dns/namecoind/ChangeLog new file mode 100644 index 000000000000..d384b8dfefe5 --- /dev/null +++ b/net-dns/namecoind/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-dns/namecoind +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/namecoind/ChangeLog,v 1.1 2013/12/01 15:26:44 blueness Exp $ + +*namecoind-0.3.72 (01 Dec 2013) + + 01 Dec 2013; Anthony G. Basile <blueness@gentoo.org> + +namecoind-0.3.72.ebuild, +files/namecoind-0.3.72-makefile.patch, + +files/namecoin.conf, +files/namecoin.confd, +files/namecoin.initd, + +metadata.xml: + Initial commit + diff --git a/net-dns/namecoind/Manifest b/net-dns/namecoind/Manifest new file mode 100644 index 000000000000..ca051ea84039 --- /dev/null +++ b/net-dns/namecoind/Manifest @@ -0,0 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX namecoin.conf 80 SHA256 541ae10cc2246b620de3e7efa97eee59efacf83d28ea5f1297a121d0708226d2 SHA512 43bef890505a1fac88887bb39e9fdd4ec673ae8838a40279b33711e970551f5a75ac25171c41f8c83de2c953b157f7a3f57171e868fd9f626007d9909331a19f WHIRLPOOL 728e38b62da2c7c3a1149ac511b92d156f7b3c51dacfadd7ce74d9e6f915a6547c4cc8d34159243f50eee333c63b35949b311ea5a7f48a6c3bf17a5d4d47c123 +AUX namecoin.confd 244 SHA256 4fbf157c72d254497298f0e08440dd038f668b921dd61ff5c3306e0a02bb8e1f SHA512 dedd94211b7808a8bd067c929ce5dd7f864cb8ae9c90eceb4856cf88cd81ec0ae20ad12c38450257e6d5c08f7eeca7cb116bfc2b7fe28bd854668eaf67f65b5d WHIRLPOOL 55b75fe9cd772fc24fb857ec2c9930cdb162dd425b5903adb586f9220516ef1b06a3090f5733a471d5819797b6763bb7350a57d0786f29b4bcdfa737ee5ac9d9 +AUX namecoin.initd 2510 SHA256 794f327eb304a9e7ea47a8b9c3cae99a671b4069046ab02845f3ddc2deed73a0 SHA512 cf639ccb07366e29e00f3165ede6497109d72c820d27b186d31003768deeea2103568f2d24f2cc04d994e096d6a33e3b15c8aacd2c340ffc2f5d6d9d71b58842 WHIRLPOOL 78b8c1033570089e4d7609c14a8548d2c4f4d9bfdac1c99f7f6f0a800af14f6a12488a5c5e5215b5d1e6add13e163e234dd06748a338227a1a5eeb30ec34af8c +AUX namecoind-0.3.72-makefile.patch 1582 SHA256 c69a27a610e906fe7605fa5c5df4c497795c5580b2f55b0db987ce95616110cc SHA512 9102a487acdb176c7b77fc7fab73b5aa7f5098819030bad813890e96d01ba9250817b39b1fa2c945cc6bce67f92f66ae429a81c7d760a1740d46fc88d8f9efd5 WHIRLPOOL 717a4eaeb253d1c4aab5fce83daddfcee26a06a999487625c9c8df3c70448b591ae8b5a358e08a33450c4d2da6ea08aee75a54e2761c6448ac1d30c1d93e239e +DIST namecoind-0.3.72.tar.gz 1453901 SHA256 74d088f96735b3397b9a71bc10bbbe1211cd2594baf593c4b9062457c1d4b869 SHA512 63d42fb1a982f725f22d35992fadb192116b7ee73a418cba52285325df5a56d41b47d3de7d1b9b53b816c160d1909ecff70117de94edead0eab343da6809e417 WHIRLPOOL bd2385a3118406a9076bf3587e3cc8f4e25ddac350ec62901e1d577d92fc113de58fa59f9138dac2e82efcb1553d4dba657cd2092f23800e995756fe98c3f012 +EBUILD namecoind-0.3.72.ebuild 1846 SHA256 fdd14cd377d5ab03b1bf4a1b4ec77edd1b5b480dd8472f84ffbe26b92285d3da SHA512 a4e368adf942d8753123337fdac419e1a5e4391acbe5bc6103e773f162d05fb98f4bdbacff13fc511dfe47b1afee478ea50be823e42756cdf1c30b882639aa75 WHIRLPOOL bd63e62076ca28acf180e8581338f05fdf247252c1ffee2962fda678e1cd15f9aa91a92ce2b35b2abed526da51a44881dd00c8c9a21c3381d05ecb25a5e2a289 +MISC ChangeLog 470 SHA256 4c876507d45920538d17c07c0b08b7398f8efabc7ef2b80b902c9c9472e1f0a6 SHA512 4e3c97662c7766dd629fe0e18fc7c2cd18928e52ec29050f64c6874a19b1711ed4f5919003fd114691b394130dbadc5f868f74344efaa2c07c37d49ad892590f WHIRLPOOL 1bfb44bc98a041a2c2f37dd40e6e70683357261b481adaa4d7f88167a88a282069ffadd94f33a8177b829dd928ec3bff182eca5b1441f0ba5c0c2ae51ef7148e +MISC metadata.xml 238 SHA256 f13e6e7b65d20beb9ae945d520160ef0dba80c1965754958945904d7e3c0a75f SHA512 3c3d75f1cb90ffcfb98df47481fbde6d451254a29fa87577acd25bc27cbcc3e5dbc0c1efce5974be905428f0b7caf912c8b051417aff92763847fa377493a153 WHIRLPOOL 6ec3d597b87aff99014404b8b732e6f600aafc3c3eeebfab135c9c19cde2e43161cfa23f841bd72826cc3393b724e1dac115c15dcce2b74ace6f1d6ec209dbf3 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQIcBAEBCAAGBQJSm1WAAAoJEJOE+m71LUu6jNsQAIZ1VnPXKvR5A9wL5bnMWMvT +rgTHHn5ifjOstYGfXDwm2dPvPHFzZ0kQI7hVKlexEGVJ8qJS8UbADdLM9UVnIZPT +KyO9XtQUbV0g3TgPdn4unBHPzQ64XFn1Lemqm7v5yeW2dybmciliZWqeaMoQ7WS3 ++bfE0Sx2lhwW6aoODJ5cvPF1SdQfKe7ss/7qXX3XxML7Y19Mdo/lxpJUz3AvLyKA ++3z51LkzAH3mXRK1IpQusLc1i5+kW1eCgSBKZ4O0rgYVJx5MvgeOQCWzLc125ji4 +HaL1k9YajBZmKjwknmsoNVJnooMCTr9t8NUi6faTsCFd44MAxxN13FhN19L/cPFZ +FBptbypxj0iApFINQtAoO/PeMdu+ZyLXbGG5qCc6BOwcuQmJNE/s2nRBJF/WY0r9 +w8S0ItSL1SnynlR6BJDFC5xfsyc3CmkYtiE0BcnK8sZrV0q9HPwVpFA6lIGhl+9v +UmoP4gKfPS5czmxx56n2bOepHfphgrIlwzgC9HpzdnuZFslMp8UDGrB/VIbYVKpu +JbalblIztLTvbgThGz7IBzHG2/D07D2LcOf15iNPFHE2WTBb86E0TYh9OU2cnDkQ +ZnzE7sapES7RcF6Y+LEKV6rfJXKLIUjHBBYfUVWQzrO/cyDSCqTf7RvGySWrOzaU +EJwXFGK5AjWP3nrP9CFm +=E5i+ +-----END PGP SIGNATURE----- diff --git a/net-dns/namecoind/files/namecoin.conf b/net-dns/namecoind/files/namecoin.conf new file mode 100644 index 000000000000..c6a55f3d9133 --- /dev/null +++ b/net-dns/namecoind/files/namecoin.conf @@ -0,0 +1,8 @@ +# http://www.bitcoin.org/smf/index.php?topic=644.0 +#rpcuser= +#rpcpassword= + + + + + diff --git a/net-dns/namecoind/files/namecoin.confd b/net-dns/namecoind/files/namecoin.confd new file mode 100644 index 000000000000..0120a560b644 --- /dev/null +++ b/net-dns/namecoind/files/namecoin.confd @@ -0,0 +1,10 @@ +# Config file for /etc/init.d/namecoin + +# owner of namecoind process (don't change, must be existing) +NAMECOIN_USER="namecoin" + +# See http://www.bitcoin.org/smf/index.php?topic=1063 +NAMECOIN_OPTS="${NAMECOIN_OPTS}" + +# nice level +NICELEVEL="19" diff --git a/net-dns/namecoind/files/namecoin.initd b/net-dns/namecoind/files/namecoin.initd new file mode 100644 index 000000000000..4330c918e44b --- /dev/null +++ b/net-dns/namecoind/files/namecoin.initd @@ -0,0 +1,104 @@ +#!/sbin/runscript +# Distributed under the terms of the GNU General Public License, v2 or later + +VARDIR="/var/lib/namecoin" +CONFFILE="${VARDIR}/.namecoin/bitcoin.conf" + +depend() { + need net +} + +checkconfig() { + if [[ "${NAMECOIN_USER}" == "" ]] ; then + eerror "Please edit /etc/conf.d/namecoind" + eerror "A user must be specified to run namecoind as that user." + eerror "Modify USER to your needs (you may also add a group after a colon)" + return 1 + fi + if ! `getent passwd | cut -d ':' -f 1 | grep $( echo "${NAMECOIN_USER}" | cut -d ':' -f 1 ) -sq` ; then + eerror "Please edit /etc/conf.d/namecoind" + eerror "Specified user must exist!" + return 1 + fi + if `echo "${NAMECOIN_USER}" | grep ':' -sq` ; then + if ! `cut -d ':' -f 1 /etc/group | grep $( echo "${NAMECOIN_USER}" | cut -d ':' -f 2 ) -sq` ; then + eerror "Please edit /etc/conf.d/namecoind" + eerror "Specified group must exist!" + return 1 + fi + fi + if ! grep -q '^rpcpassword=' "${CONFFILE}"; then + eerror "Please edit `readlink -f ${CONFFILE}`" + eerror "There must be at least a line assigning rpcpassword=something-secure" + return 1 + fi + if ! stat -Lc '%a' "${CONFFILE}" | grep -q '^[4567]00$'; then + eerror "`readlink -f ${CONFFILE}` should not be readable by other users" + return 1 + fi + return 0 +} + +start() { + checkconfig || return 1 + ebegin "Starting Namecoind daemon" + + pkg-config openrc + if [ $? = 0 ]; then + start_openrc + else + start_baselayout + fi +} + +stop() { + ebegin "Stopping Namecoin daemon" + + pkg-config openrc + if [ $? = 0 ]; then + stop_openrc + else + stop_baselayout + fi +} + +start_openrc() { + start-stop-daemon \ + --start --user "${NAMECOIN_USER}" --name namecoind \ + --pidfile /var/run/namecoind.pid --make-pidfile \ + --env HOME="${VARDIR}" --exec /usr/bin/namecoind \ + --nicelevel "${NICELEVEL}" \ + --background \ + --wait 2000 \ + -- ${NAMECOIN_OPTS} + eend $? +} + +stop_openrc() { + start-stop-daemon --stop --user "${NAMECOIN_USER}" \ + --name namecoind --pidfile /var/run/namecoind.pid \ + --wait 30000 \ + --progress + eend $? +} + +start_baselayout() { + start-stop-daemon \ + --start --user "${NAMECOIN_USER}" --name namecoind \ + --pidfile /var/run/namecoind.pid --make-pidfile \ + --env HOME="${VARDIR}" --exec /usr/bin/namecoind \ + --chuid "${NAMECOIN_USER}" \ + --nicelevel "${NICELEVEL}" \ + --background \ + -- ${NAMECOIN_OPTS} + eend $? +} + +stop_baselayout() { + start-stop-daemon \ + --stop \ + --user "${NAMECOIN_USER}" \ + --name namecoind \ + --pidfile /var/run/namecoind.pid + eend $? +} diff --git a/net-dns/namecoind/files/namecoind-0.3.72-makefile.patch b/net-dns/namecoind/files/namecoind-0.3.72-makefile.patch new file mode 100644 index 000000000000..f8996944e13c --- /dev/null +++ b/net-dns/namecoind/files/namecoind-0.3.72-makefile.patch @@ -0,0 +1,52 @@ +diff -Naur namecoinq-vQ.3.72.orig/src/Makefile namecoinq-vQ.3.72/src/Makefile +--- namecoinq-vQ.3.72.orig/src/Makefile 2013-10-29 09:38:10.000000000 -0400 ++++ namecoinq-vQ.3.72/src/Makefile 2013-11-30 18:43:25.016028725 -0500 +@@ -1,6 +1,6 @@ +-CXX=g++ ++CXX?=g++ + +-DEFS=-D_MT -DNOPCH -DFOURWAYSSE2 -DUSE_SSL ++DEFS=-D_MT -DNOPCH -DFOURWAYSSE2 -DUSE_SSL + + # Detect MinGW + MINGW=$(shell uname -s|grep -i mingw32) +@@ -8,20 +8,10 @@ + # Link boost statically + DEFS += -DBOOST_THREAD_USE_LIB + +-INCLUDEPATHS= \ +- -I../libs/openssl-1.0.1e/include \ +- -I../libs/db-4.7.25.NC/build_unix \ +- -I../libs/boost_1_50_0 +- +-LIBPATHS= \ +- -L../libs/openssl-1.0.1e \ +- -L../libs/db-4.7.25.NC/build_unix \ +- -L../libs/boost_1_50_0/stage/lib +- + LIBBOOST_SUFFIX= + + LIBS= \ +- -Wl,-Bstatic \ ++ -Wl,-Bdynamic \ + -l boost_system$(LIBBOOST_SUFFIX) \ + -l boost_filesystem$(LIBBOOST_SUFFIX) \ + -l boost_program_options$(LIBBOOST_SUFFIX) \ +@@ -70,7 +60,7 @@ + -l pthread + endif + +-CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEFS) $(INCLUDEPATHS) ++#CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEFS) $(INCLUDEPATHS) + HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \ + script.h allocators.h db.h walletdb.h crypter.h net.h irc.h keystore.h main.h wallet.h bitcoinrpc.h uibase.h ui.h noui.h init.h auxpow.h + +@@ -110,7 +100,7 @@ + obj/nogui/namecoin.o: namecoin.h + + namecoind: $(OBJS:obj/%=obj/nogui/%) obj/nogui/namecoin.o +- $(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) ++ $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) + + clean: + -rm -f namecoin namecoind diff --git a/net-dns/namecoind/metadata.xml b/net-dns/namecoind/metadata.xml new file mode 100644 index 000000000000..1e7587374fdf --- /dev/null +++ b/net-dns/namecoind/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> +</pkgmetadata> diff --git a/net-dns/namecoind/namecoind-0.3.72.ebuild b/net-dns/namecoind/namecoind-0.3.72.ebuild new file mode 100644 index 000000000000..3e14134a134a --- /dev/null +++ b/net-dns/namecoind/namecoind-0.3.72.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/namecoind/namecoind-0.3.72.ebuild,v 1.1 2013/12/01 15:26:44 blueness Exp $ + +EAPI=4 + +DB_VER="4.8" + +inherit db-use eutils toolchain-funcs + +DESCRIPTION="A P2P network based domain name system" +HOMEPAGE="https://dot-bit.org/" +SRC_URI="https://github.com/namecoinq/namecoinq/archive/v${PV/0/Q}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT ISC cryptopp" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ssl upnp" + +RDEPEND=" + dev-libs/boost[threads(+)] + dev-libs/crypto++ + dev-libs/openssl[-bindist] + upnp? ( + net-libs/miniupnpc + ) + sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] +" +DEPEND="${RDEPEND} + >=app-shells/bash-4.1 +" + +S="${WORKDIR}/namecoinq-v${PV/0/Q}" + +pkg_setup() { + local UG='namecoin' + enewgroup "${UG}" + enewuser "${UG}" -1 -1 /var/lib/namecoin "${UG}" +} + +src_prepare() { + epatch "${FILESDIR}"/namecoind-0.3.72-makefile.patch +} + +src_compile() { + local OPTS=() + + OPTS+=("CXXFLAGS=${CXXFLAGS} -I$(db_includedir "${DB_VER}")") + OPTS+=("LDFLAGS=${LDFLAGS} -ldb_cxx-${DB_VER}") + + use ssl && OPTS+=(USE_SSL=1) + use upnp && OPTS+=(USE_UPNP=1) + + cd src || die + emake CXX="$(tc-getCXX)" "${OPTS[@]}" ${PN} +} + +src_install() { + dobin src/${PN} + + insinto /etc/namecoin + doins "${FILESDIR}/namecoin.conf" + fowners namecoin:namecoin /etc/namecoin/namecoin.conf + fperms 600 /etc/namecoin/namecoin.conf + + newconfd "${FILESDIR}/namecoin.confd" ${PN} + newinitd "${FILESDIR}/namecoin.initd" ${PN} + + keepdir /var/lib/namecoin/.namecoin + fperms 700 /var/lib/namecoin + fowners namecoin:namecoin /var/lib/namecoin/ + fowners namecoin:namecoin /var/lib/namecoin/.namecoin + dosym /etc/namecoin/namecoin.conf /var/lib/namecoin/.namecoin/bitcoin.conf + + dodoc doc/README + dodoc DESIGN-namecoin.md FAQ.md doc/README_merged-mining.md +} |