From: "Anthony G. Basile (blueness)" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/namecoind/files: namecoin.confd namecoin.conf namecoin.initd namecoind-0.3.72-makefile.patch
Date: Sun, 1 Dec 2013 15:26:44 +0000 (UTC) [thread overview]
Message-ID: <20131201152644.707542004B@flycatcher.gentoo.org> (raw)
blueness 13/12/01 15:26:44
Added: namecoin.confd namecoin.conf namecoin.initd
namecoind-0.3.72-makefile.patch
Log:
Initial commit
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
Revision Changes Path
1.1 net-dns/namecoind/files/namecoin.confd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoin.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoin.confd?rev=1.1&content-type=text/plain
Index: namecoin.confd
===================================================================
# 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"
1.1 net-dns/namecoind/files/namecoin.conf
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoin.conf?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoin.conf?rev=1.1&content-type=text/plain
Index: namecoin.conf
===================================================================
# http://www.bitcoin.org/smf/index.php?topic=644.0
#rpcuser=
#rpcpassword=
1.1 net-dns/namecoind/files/namecoin.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoin.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoin.initd?rev=1.1&content-type=text/plain
Index: namecoin.initd
===================================================================
#!/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 $?
}
1.1 net-dns/namecoind/files/namecoind-0.3.72-makefile.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoind-0.3.72-makefile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoind/files/namecoind-0.3.72-makefile.patch?rev=1.1&content-type=text/plain
Index: namecoind-0.3.72-makefile.patch
===================================================================
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
reply other threads:[~2013-12-01 15:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131201152644.707542004B@flycatcher.gentoo.org \
--to=blueness@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox