diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-02-25 18:23:15 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-02-25 18:23:15 +0000 |
commit | 5286f1592baed93d0d9a7b74e13035f38a0946ee (patch) | |
tree | 0306574ab74670df950401148665a4f386daf053 /net-p2p | |
parent | Add imrpoved initd, bug #500602 (diff) | |
download | historical-5286f1592baed93d0d9a7b74e13035f38a0946ee.tar.gz historical-5286f1592baed93d0d9a7b74e13035f38a0946ee.tar.bz2 historical-5286f1592baed93d0d9a7b74e13035f38a0946ee.zip |
Add imrpoved initd, bug #500602
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/datacoin-hp/ChangeLog | 5 | ||||
-rw-r--r-- | net-p2p/datacoin-hp/Manifest | 30 | ||||
-rw-r--r-- | net-p2p/datacoin-hp/files/datacoin.initd | 111 | ||||
-rw-r--r-- | net-p2p/ppcoind/ChangeLog | 8 | ||||
-rw-r--r-- | net-p2p/ppcoind/Manifest | 30 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoin.initd-r1 | 29 | ||||
-rw-r--r-- | net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild | 116 |
7 files changed, 205 insertions, 124 deletions
diff --git a/net-p2p/datacoin-hp/ChangeLog b/net-p2p/datacoin-hp/ChangeLog index 0561cd45a882..fdd5afdf7000 100644 --- a/net-p2p/datacoin-hp/ChangeLog +++ b/net-p2p/datacoin-hp/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-p2p/datacoin-hp # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/datacoin-hp/ChangeLog,v 1.2 2014/01/08 06:29:46 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/datacoin-hp/ChangeLog,v 1.3 2014/02/25 18:22:17 blueness Exp $ + + 25 Feb 2014; Anthony G. Basile <blueness@gentoo.org> files/datacoin.initd: + Add imrpoved initd, bug #500602 08 Jan 2014; Mike Frysinger <vapier@gentoo.org> datacoin-hp-9999.ebuild: Inherit the user eclass for enewuser/etc... diff --git a/net-p2p/datacoin-hp/Manifest b/net-p2p/datacoin-hp/Manifest index a3d314232294..44d97768e53f 100644 --- a/net-p2p/datacoin-hp/Manifest +++ b/net-p2p/datacoin-hp/Manifest @@ -4,26 +4,26 @@ Hash: SHA256 AUX datacoin-hp-sys_leveldb.patch 6653 SHA256 67bd9bd4b3d0f90688aa8635588b296d326032be5474581397f263f75a3e9ba5 SHA512 b8cfc741682df5b3f1330a2dbc01c47b4c597b8cd7e7d97c150eec66e1659b056cfa3f3703bb95d21f82e349d220a75bc7c1a97916d84d25261bffb165a3627c WHIRLPOOL eb9a0104975eee4223eeaec3751514df22e7669161265c4534abe692ab1148a6ea1648570cd3ba22e9662fbf33c05dfd6541c5e0f14f9d0f3f70406379286f3c AUX datacoin.conf 108 SHA256 490bd98e4fae82d04aac70d030f8d5c8aa9fd22a8ff5d2c8238e49c26fb215b2 SHA512 e1c34d0a2799d618fb0b5dd17a5117957fb18532a1ecd223e3dfd6f815352c71abaaa7653715491f8e10ab6684b793da43e1841a1c63f5b5ed20c82dddee9ff6 WHIRLPOOL d1dd055b338c5fa5d0b94a1cd4f9ba686a310a0012788585ff1b73942284fbd4d87c4ebad8f11eb446a39b0ed1039994bf4eff4a7c01bd17995ba26836a59a70 AUX datacoin.confd 194 SHA256 7415d875efd0b19a0f28abddaa9b54ad4748b91d543ca9791331c55078a7f884 SHA512 696a884f4f8b38d330547cf72c5f113b82a2a3e3583fa7fe4803ad4d90c25fc2a5a5536700b4e0f0a83be6fbeb51c61fe3d27973fe6fda530dba7e31e5f6ceb6 WHIRLPOOL cca73de6c5e32b384e9ca5dd0b67460b822ffa62b1064e7a8ed1feba9d750e0f9fee04e291e456d0696b4af3f50670aaa332de95cbd87459bd528d5366aec1fa -AUX datacoin.initd 2511 SHA256 9b91f3869835cec68c577bd452572dd035f4ccc7507e4b9d1602570affac84fe SHA512 e75f69552e51029cffcb93fefe72a19c51aaae67ac68713a751dba128214409eeef901efa8b08d264d056b277ca5c963dbc754fd2d3fbbd55c1fae1dc0558a79 WHIRLPOOL 41694d3d221ca1a887080be7d0e722b70dd6f041d4e5f8620ca5e50e903a189cac3eb0df784eb07bf24025f7f325161de9faa79c7addf254dcc241073e2db09e +AUX datacoin.initd 944 SHA256 7f9b513231bdbd63b760ecb997ee5bdf157d86a836454e2185d977e0ea3f3032 SHA512 c4ffbbc4106db7d0044961c5a46945c0f8595256c5c1d754efb7b5356022cd65d69da4608ee109202905c7d1ef14a56c8b2c9384f7e38875a8061c0c5b30ec5f WHIRLPOOL c93151af6a0e026bc55d9d6a5710aee50043ae112e58f18e14352720dc244a04361028020d44221d0a1a3521cbb81684045bbbad492c238b708b83a1ace6f013 AUX datacoin.logrotate 113 SHA256 b87dad90d7a14f6715f173b79dff9fbb8c751e5db56cda31e246476be46a3c71 SHA512 f77f8aca6ea979374e2d0a8661afab8bff0d3b65ad903a3bbdee0339271f947e0c0dd41aa884175ef6837b54227ad02e48b91255362dabb1fc16b038af1ede59 WHIRLPOOL 568bde8af0f7a852f53834c89a124f3584619dc6ff32f273b7efa6f70cb871f8951cbaa48ccfc35b36430732c3d0986501d691ef8e17c88d6c8cbe12f5100da7 AUX datacoin.service 880 SHA256 a5840f12b558ef99cddfba4360a92064ebe4b88c5626cfe2c5e189a205e2d512 SHA512 3bb8639e1d95fb89949d65f7d0dffdcd9562b4a4d6cfd5523a4832f46091b6fe16ca84557e358c330e26f45701d2279f5b3cd06f29990b7457535e53b3f5df9c WHIRLPOOL be8767e02c7508d0789bc65d8cd67642831bd131cb3d0c4665ec541432235f0f23adc0dc847c0054794ea5889d2fac158290a433501e7a03a0c89e62ca5d1426 EBUILD datacoin-hp-9999.ebuild 3110 SHA256 be4f08a29614e1c06943d651be2be1b902e0f706849e7d5b4c0ba94c337d3fa3 SHA512 e537a0dbc6e7bfc8188097215fdcdc893cf1b47e509cf5aa5116663428e5e66f5c64db82ac60a6d075b5b0d5fb6c2d19ec82e02c0f7b5827eff8531e7e94363b WHIRLPOOL de6fb2b4bc83133289d3ad6de9ca9728259dc09d13143d87a00e39d504242f9eaee9822337da4b8932fef08c4e77bf16d8faa2f70fbd44ff15f9267d9e0224b1 -MISC ChangeLog 662 SHA256 d3bd4dfd50ef4da56bcbb9e38fc7fbc5eddff30ee4e02201f7778e3e3243f979 SHA512 ce0fde8bc324c733a52902520d6e80d57fde733c6ef1492c006ec8ade1d1c8b1b256bf689183efdfd3d772d7b8211378a5f4da1d38ad04cdbd6429aa3cc5bd1e WHIRLPOOL b94a760f6417ae8e35bd5cb55ebe5768a0ff591299da02be83523cf71d0dba236c3c06c32aa865fc53d1555db924f6c5cc06827186fb309912c6bc5d2fb92f21 +MISC ChangeLog 776 SHA256 33be4170b45fd2af983d8460c5b545122b280d33ef19fd6dade61e2e5819aa9e SHA512 a3bb3411eff998c24026352e975e14a0fbd9e57e83aa68ee57b279cff745a0c2e0563f4a83b78122c7850690ff490dbb617e69e1384fdceff768095378b38421 WHIRLPOOL b9970be4620b60b318d46a768055cab00710985ba66cfef45b40dd85100da11bb8333f33684e7367fa9582feb83addef1508c66c195145d3fd259ba4ab88c331 MISC metadata.xml 428 SHA256 37185f0813deae6715abf70319a9a2c1f66a5d7fcef18ec86c49f690b4c610fc SHA512 fcb008832f815b27d3f488a7514d9b9caa2077adecaf742c040f8f4143fc9c6b53e058e0a48584eb83e9cee72bf43e114a36b5b419c9583647a24034be5324df WHIRLPOOL 8c6d8845baff5e9b60a55a1f78195f030eae39867faf12c2e8ab764a1e7c3f1e8687d99990491679175103319f5f00668cf1be8a67b92b6f18a2854ec5aa46e3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJSzPBiAAoJEPGu1DbS6WIA2fcQAJJd/R8OHLU5hkKUKD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+39wx+JndtC/mhetGyleZHYGLrggbcMvGkt8CXy5J1SYlNgOIFmehg1M42p5H0wWp +0ihVASy7o1V5XJB0LpITMtWg8NB7TejHmv/vqIWhgaOSH205y+CaWCWnUJMC4OrS +YO83/F3DlImcVfNRHT18XYwPjfBjDto1uaivX2TRxHKex4drXunU/sp3PcF6+ysY +hierf3aM/GiMsorfnIqLUEoJnZaXWxU1Pb/Un/C2TbhOJN82RXW0srtjanNf7PZD +4E1IMRyq7hRGxQCB3KBGgdClQJijtYc5QZa5ZrLLrYsY51vHQG0b+QLhswXguZPx +wq6dCMnodtt+T5l5zLXz +=WoPf -----END PGP SIGNATURE----- diff --git a/net-p2p/datacoin-hp/files/datacoin.initd b/net-p2p/datacoin-hp/files/datacoin.initd index 415f410d31fc..158062a7e7a3 100644 --- a/net-p2p/datacoin-hp/files/datacoin.initd +++ b/net-p2p/datacoin-hp/files/datacoin.initd @@ -1,104 +1,29 @@ #!/sbin/runscript -# Distributed under the terms of the GNU General Public License, v2 or later +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/datacoin-hp/files/datacoin.initd,v 1.2 2014/02/25 18:22:16 blueness Exp $ -VARDIR="/var/lib/datacoin" -CONFFILE="${VARDIR}/.datacoin/datacoin.conf" +vardir="/var/lib/datacoin" +conffile="${vardir}/.datacoin/datacoin.conf" +datacoind_user="${DATACOIN_USER:-nobody:nobody}" + +description="Bitcoin crypto-currency wallet for automated services" +pidfile="/run/${SVCNAME}.pid" +command="/usr/bin/datacoind" +command_args="${DATACOIN_OPTS}" +command_background="true" +start_stop_daemon_args="-u ${datacoind_user} -e HOME=${vardir} -N ${NICELEVEL:-0} -w 2000" depend() { need net } -checkconfig() { - if [[ "${DATACOIN_USER}" == "" ]] ; then - eerror "Please edit /etc/conf.d/datacoind" - eerror "A user must be specified to run datacoind 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 "${DATACOIN_USER}" | cut -d ':' -f 1 ) -sq` ; then - eerror "Please edit /etc/conf.d/datacoind" - eerror "Specified user must exist!" - return 1 - fi - if `echo "${DATACOIN_USER}" | grep ':' -sq` ; then - if ! `cut -d ':' -f 1 /etc/group | grep $( echo "${DATACOIN_USER}" | cut -d ':' -f 2 ) -sq` ; then - eerror "Please edit /etc/conf.d/datacoind" - eerror "Specified group must exist!" - return 1 - fi - fi - if ! grep -q '^rpcpassword=' "${CONFFILE}"; then - eerror "Please edit `readlink -f ${CONFFILE}`" +start_pre() { + checkpath -f -o ${datacoind_user} -m 0400 ${conffile} || return 1 + + 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 Datacoind daemon" - - pkg-config openrc - if [ $? = 0 ]; then - start_openrc - else - start_baselayout - fi -} - -stop() { - ebegin "Stopping Datacoin daemon" - - pkg-config openrc - if [ $? = 0 ]; then - stop_openrc - else - stop_baselayout - fi -} - -start_openrc() { - start-stop-daemon \ - --start --user "${DATACOIN_USER}" --name datacoind \ - --pidfile /var/run/datacoind.pid --make-pidfile \ - --env HOME="${VARDIR}" --exec /usr/bin/datacoind \ - --nicelevel "${NICELEVEL}" \ - --background \ - --wait 2000 \ - -- ${DATACOIN_OPTS} - eend $? -} - -stop_openrc() { - start-stop-daemon --stop --user "${DATACOIN_USER}" \ - --name datacoind --pidfile /var/run/datacoind.pid \ - --wait 30000 \ - --progress - eend $? -} - -start_baselayout() { - start-stop-daemon \ - --start --user "${DATACOIN_USER}" --name datacoind \ - --pidfile /var/run/datacoind.pid --make-pidfile \ - --env HOME="${VARDIR}" --exec /usr/bin/datacoind \ - --chuid "${DATACOIN_USER}" \ - --nicelevel "${NICELEVEL}" \ - --background \ - -- ${DATACOIN_OPTS} - eend $? -} - -stop_baselayout() { - start-stop-daemon \ - --stop \ - --user "${DATACOIN_USER}" \ - --name datacoind \ - --pidfile /var/run/datacoind.pid - eend $? } diff --git a/net-p2p/ppcoind/ChangeLog b/net-p2p/ppcoind/ChangeLog index 04eaa0df8c4d..86ef5fa15e8c 100644 --- a/net-p2p/ppcoind/ChangeLog +++ b/net-p2p/ppcoind/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-p2p/ppcoind # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ChangeLog,v 1.2 2014/01/08 06:27:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ChangeLog,v 1.3 2014/02/25 18:23:04 blueness Exp $ + +*ppcoind-0.3.0-r1 (25 Feb 2014) + + 25 Feb 2014; Anthony G. Basile <blueness@gentoo.org> +files/ppcoin.initd-r1, + +ppcoind-0.3.0-r1.ebuild: + Add imrpoved initd, bug #500602 08 Jan 2014; Mike Frysinger <vapier@gentoo.org> ppcoind-0.3.0.ebuild: Inherit the user eclass for enewuser/etc... diff --git a/net-p2p/ppcoind/Manifest b/net-p2p/ppcoind/Manifest index cf8f6fbb4999..7129e87aa65e 100644 --- a/net-p2p/ppcoind/Manifest +++ b/net-p2p/ppcoind/Manifest @@ -4,26 +4,28 @@ Hash: SHA256 AUX ppcoin.conf 80 SHA256 541ae10cc2246b620de3e7efa97eee59efacf83d28ea5f1297a121d0708226d2 SHA512 43bef890505a1fac88887bb39e9fdd4ec673ae8838a40279b33711e970551f5a75ac25171c41f8c83de2c953b157f7a3f57171e868fd9f626007d9909331a19f WHIRLPOOL 728e38b62da2c7c3a1149ac511b92d156f7b3c51dacfadd7ce74d9e6f915a6547c4cc8d34159243f50eee333c63b35949b311ea5a7f48a6c3bf17a5d4d47c123 AUX ppcoin.confd 233 SHA256 fb877ae7608b5c2aaae29e522d8cfb42e51e064831c64b228b64da2b11aac64d SHA512 efb8f210143d993e922668e3daffc8bb74406be2f912729f68ebfcbcb3d44e10e0fed495963c4273a95099d37f3afc66b49616724bd827e6b4359b2e3a27d9c3 WHIRLPOOL 12e7a8e82d33b023be054c6c019cc61a5783e32e108e54358c76789e1e89ce441a095561e1a4750cb341350ef7da7a97b6ebfb06f8ec3a7fcd2809e27d5eb110 AUX ppcoin.initd 2451 SHA256 36146630912dcf0468f0ec8311baa3eb5150e596c8a5963f293610804ba818dc SHA512 ed289b877653b42132a3c9b85832a7248da2c2956adffadfe71523b7d01feafd7738ebf050c0dee974237ea015b46610221ecb1d706ea4593e53ee6cb6c02448 WHIRLPOOL 5460640f1aed58cca4e1b3a45d0e93f8997a16df21c75beb1972dd4371bdf166a6d3b067acd1167a850e97794abd2943bebd12b8cac7cfd8ee9252cbdc0968e5 +AUX ppcoin.initd-r1 940 SHA256 a6ae9e168e0def520018181d1c1623862f91b7840219526180fe77c5690747a0 SHA512 b6ea69d74a4622e3614f67535b8e6cf1ae3ddea729f206971b1170e0225130c9fa5ce44b522a069184cdf574f845e5ffb753f0b7c5bbc756c7ba6eab3a80b291 WHIRLPOOL 3a09ce5b55272bc1e0cbe56bb1b6fd333e0970b2328cf3f88b37bf0dc8bed31ad6a8a2187d6a524490f31d0d2ac6a526593c500aed1fa3af5483648b55661bca AUX ppcoin.service 859 SHA256 df6e7f616816a07efb4d3d627d1ee80699f541bdcbafce7ba7aef2640291bce9 SHA512 8395ef4f5b026757f4202c78eb55b6978d2cdec49f6db801bb6daddea8d8a524afacf53368a78c3a7055ce5cc4ada53ac6c88567b02951fa7a722e5dd9ebd3c1 WHIRLPOOL bbd546e3d7043132f65117e567fe0f0b756f60093184e67316398cc8589f46a5029d9118431a4fa2d5e9e834c1f2beb180f0e5e20f8d7a8ae1fa96273b278076 AUX ppcoind.logrotate 107 SHA256 5aefed737e73b6393e2f004318b34429616a35187131bade4743a1c8aa7e7d91 SHA512 bf36d07a6dcebcc50ac7e0b74433333902df6ef22396a876b96289cca90882720ed95ef0cc8fbf3abeea6800cbe2386e56b27bb798922f3be98134dee1caed69 WHIRLPOOL 68521503b26df24b66dd20a9ef3174ffc1427abf483185b709d46fc54d148250e4a85ee887e292398063205737640b7accd7365cd707ea5c3e80b72b503e3880 DIST ppcoin-0.3.0.tar.gz 12233878 SHA256 919bb1c60eeebdd173ddcd4c83264f745bbf2af29410ded062f6c6bfce44f694 SHA512 c5f505a162e5044b3173c301d52b4851a6e3fbb4dbc2742c7204d583f534e235b1c8942b1afc5d9613d6a37009da83e1a9708fe4edfb68cb9717b76666bf029f WHIRLPOOL ab23d64672cfa9882d1dd23aad6a7448c9f4d7669557ddadabf80a1733682a46d4b5becc4605b40fbd2e943203897edfc4ba8904dee284bde055d81769404246 +EBUILD ppcoind-0.3.0-r1.ebuild 2696 SHA256 0268134f26a5cebcc170066130fb67279ae58b1e0b94a0a5714f7d505f084a94 SHA512 271ccb6870c88ae894fb8063f83ef1e547273592be87069dbdb348db8be4470ac93cb1e45a676ede8fcb9e042379341528c5466188ce2c7e240876717bbeaedc WHIRLPOOL 9b3997336d5b00c71c1b1685dba68bde03d25c6754cbb4868f9bc6f1e80b9c12c94d0759777357e356073606f7ec9e12d035502d772f6a7c39412cd1220c4355 EBUILD ppcoind-0.3.0.ebuild 2688 SHA256 f4c46f5b8b36e97087a144d71b5936d550d1387bcf0d5583fe267e8d0cf59901 SHA512 14d2b2a85a6348d428ed04538ea4bed9692b74d9c0c00f64fbb571d0c7804723cdef6158c8fcf846dd9d23d69e3440f20a4db229c069e87ed029380a4cac64d9 WHIRLPOOL 7a232acb5da88aa784be82b6214cd7f408271d8c9047f836b152690ca7820761ca1c74f7529990c596b389e3294f5b7db9f9f124d09309d3814082d5dfe1e78c -MISC ChangeLog 577 SHA256 98ff735923b9ec0aa6ee366575685872e6be1a6f156d775750b8ae36d2d53fe6 SHA512 8767e139c4b4e0fb2b04b2efe58b0ad477e2d3f6366f0acd7c92009e5671f5812dad5349085afce53e32f922e1051f9c0403fcfa882f6a8934386b2e5a0886e3 WHIRLPOOL d00565777f788b842ce762f0a1d40b69de51bb711fdeace1dd4a94c2c271ad4601bd254418f4dfcc0936e1a78fa1f788d628f1307ecb589362d6b3e536c90022 +MISC ChangeLog 754 SHA256 077bdf198329557bd6ed318239e69365cfef6291c6cde895ad74a68d04a1549e SHA512 b99a8e37c97bdb1d2230eebfce1a70b83e20f028cd0b6f2535cc26719f6fdbbb2d6a5e50635e59459c8db365556e64417896d51e574e2ad49605e6bdd573cea4 WHIRLPOOL a28a257d11a7d2643c96f8f02cb3b6ef28e9c1485a5c997f656e49fd401f574112475496f0cff1887fb085f2a5be86ade7f024ff544c758c23a22ed92504ed91 MISC metadata.xml 327 SHA256 2009a65ac31a6a928926715ab212766020927524623581b18ee1f5026a6a689c SHA512 4d68f30b7c29aa5b6c3f7fd5c657ffbbe12706ce5d8d332cd8848906a27ae852e39d48219f6137a65c31db9c7693c2218edf8b6b1511cb1098d86bdb394cd0f9 WHIRLPOOL f7ad1bdb29423c9a88a721e77168aa35372a3411f77c775e2ac518eefc7ee39def4a307a66b4da02f80a6e9d8cdcff8fafa20da1792b7909e84bcad67598c4d9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJSzO/cAAoJEPGu1DbS6WIAj24P/AjefrMBz+QL5JiA2UrgBh5p -VUrECqHM5j/tmFHuOp6brkvALMiALXIpfNu24b5L/UohMpYqjf/m0S/QHml4xD0k -rL0z2xlSCaTJElEf6pswzilE84MDnV4ylYv+b1KViY8uL9k6p78QtCFRx3hSiuga -ePkld7UmGEXVIrMjQuMdKAPMvEU/hwy65413QgWXDGnVXlyX/ezSFy/7QvyBJmg5 -xIuInK6lanAy+Zx03Njt7VFTT9G1CX5gkt8CdQIVJ/cHUJgGZpBdePh6nELBqp+Y -C2yg0ObqaYaroO3oPRjSCiJNPcLU1ut5okTu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2NKrS7DlODDmkg4M5LusRljcDJnXLqnYKx7 +BTkNe7ns/kILuXjoiOje +=bJOp -----END PGP SIGNATURE----- diff --git a/net-p2p/ppcoind/files/ppcoin.initd-r1 b/net-p2p/ppcoind/files/ppcoin.initd-r1 new file mode 100644 index 000000000000..976c6f521b65 --- /dev/null +++ b/net-p2p/ppcoind/files/ppcoin.initd-r1 @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/files/ppcoin.initd-r1,v 1.1 2014/02/25 18:23:04 blueness Exp $ + +vardir="/var/lib/ppcoin" +conffile="${vardir}/.ppcoin/ppcoin.conf" +ppcoind_user="${PPCOIN_USER:-nobody:nobody}" + +description="Cryptocurrency forked from Bitcoin which aims to be energy efficiency." +pidfile="/run/${SVCNAME}.pid" +command="/usr/bin/ppcoind" +command_args="${PPCOIN_OPTS}" +command_background="true" +start_stop_daemon_args="-u ${ppcoind_user} -e HOME=${vardir} -N ${NICELEVEL:-0} -w 2000" + +depend() { + need net +} + +start_pre() { + checkpath -f -o ${ppcoind_user} -m 0400 ${conffile} || return 1 + + 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 +} diff --git a/net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild b/net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild new file mode 100644 index 000000000000..d8e6689c3a16 --- /dev/null +++ b/net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild,v 1.1 2014/02/25 18:23:04 blueness Exp $ + +EAPI=5 + +DB_VER="4.8" + +inherit bash-completion-r1 db-use eutils systemd user + +MyPV="${PV/_/-}" +MyPN="ppcoin" +MyP="${MyPN}-${MyPV}" + +DESCRIPTION="Cryptocurrency forked from Bitcoin which aims to be energy efficiency." +HOMEPAGE="http://peercoin.net/" +SRC_URI="mirror://sourceforge/${MyPN}/${MyP}-linux.tar.gz -> ${MyP}.tar.gz" + +LICENSE="MIT ISC GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples ipv6 logrotate upnp" + +RDEPEND=" + dev-libs/boost[threads(+)] + dev-libs/openssl:0[-bindist] + logrotate? ( + app-admin/logrotate + ) + upnp? ( + net-libs/miniupnpc + ) + sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] +" +DEPEND="${RDEPEND} + >=app-shells/bash-4.1 + sys-apps/sed +" + +S="${WORKDIR}/${MyP}-linux/src" + +pkg_setup() { + local UG='ppcoin' + enewgroup "${UG}" + enewuser "${UG}" -1 -1 /var/lib/ppcoin "${UG}" +} + +src_prepare() { + if has_version '>=dev-libs/boost-1.52'; then + sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix + fi +} + +src_configure() { + OPTS=() + + OPTS+=("DEBUGFLAGS=") + OPTS+=("CXXFLAGS=${CXXFLAGS}") + OPTS+=("LDFLAGS=${LDFLAGS}") + + if use upnp; then + OPTS+=("USE_UPNP=1") + else + OPTS+=("USE_UPNP=-") + fi + + use ipv6 || OPTS+=("USE_IPV6=-") + + OPTS+=("USE_SYSTEM_LEVELDB=1") + OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") + OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") + + cd src || die + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN} +} + +#Tests are broken +#src_test() { +# cd src || die +# emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_ppcoin +# ./test_ppcoin || die 'Tests failed' +#} + +src_install() { + dobin src/${PN} + + insinto /etc/ppcoin + doins "${FILESDIR}/ppcoin.conf" + fowners ppcoin:ppcoin /etc/ppcoin/ppcoin.conf + fperms 600 /etc/ppcoin/ppcoin.conf + + newconfd "${FILESDIR}/ppcoin.confd" ${PN} + newinitd "${FILESDIR}/ppcoin.initd-r1" ${PN} + systemd_dounit "${FILESDIR}/ppcoin.service" + + keepdir /var/lib/ppcoin/.ppcoin + fperms 700 /var/lib/ppcoin + fowners ppcoin:ppcoin /var/lib/ppcoin/ + fowners ppcoin:ppcoin /var/lib/ppcoin/.ppcoin + dosym /etc/ppcoin/ppcoin.conf /var/lib/ppcoin/.ppcoin/ppcoin.conf + + dodoc README + newman contrib/debian/manpages/bitcoind.1 ppcoind.1 + newman contrib/debian/manpages/bitcoin.conf.5 ppcoin.conf.5 + + if use examples; then + docinto examples + dodoc -r contrib/{bitrpc,gitian-descriptors,gitian-downloader,pyminer,wallettools} + + fi + + if use logrotate; then + insinto /etc/logrotate.d + newins "${FILESDIR}/ppcoind.logrotate" ppcoind + fi +} |