diff options
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/Manifest.gz | bin | 9252 -> 9269 bytes | |||
-rw-r--r-- | net-p2p/bitcoin-cli/Manifest | 3 | ||||
-rw-r--r-- | net-p2p/bitcoin-cli/bitcoin-cli-0.17.1.ebuild | 96 | ||||
-rw-r--r-- | net-p2p/bitcoin-qt/Manifest | 7 | ||||
-rw-r--r-- | net-p2p/bitcoin-qt/bitcoin-qt-0.17.1.ebuild | 180 | ||||
-rw-r--r-- | net-p2p/bitcoin-qt/files/bitcoin-qt.protocol | 11 | ||||
-rw-r--r-- | net-p2p/bitcoin-qt/files/org.bitcoin.bitcoin-qt.desktop | 15 | ||||
-rw-r--r-- | net-p2p/bitcoin-qt/metadata.xml | 1 | ||||
-rw-r--r-- | net-p2p/bitcoind/Manifest | 5 | ||||
-rw-r--r-- | net-p2p/bitcoind/bitcoind-0.17.1.ebuild | 164 | ||||
-rw-r--r-- | net-p2p/bitcoind/metadata.xml | 1 | ||||
-rw-r--r-- | net-p2p/ktorrent/Manifest | 2 | ||||
-rw-r--r-- | net-p2p/ktorrent/files/ktorrent-5.1.0-cmake-3.11.patch | 13 | ||||
-rw-r--r-- | net-p2p/ktorrent/files/ktorrent-5.1.0-qt-5.11.patch | 76 | ||||
-rw-r--r-- | net-p2p/nicotine+/Manifest | 2 | ||||
-rw-r--r-- | net-p2p/nicotine+/nicotine+-1.4.1-r1.ebuild (renamed from net-p2p/nicotine+/nicotine+-1.4.1.ebuild) | 21 | ||||
-rw-r--r-- | net-p2p/syncthing/Manifest | 2 | ||||
-rw-r--r-- | net-p2p/syncthing/syncthing-1.0.0.ebuild | 92 |
18 files changed, 585 insertions, 106 deletions
diff --git a/net-p2p/Manifest.gz b/net-p2p/Manifest.gz Binary files differindex 347cb8bf924f..403181f6ec2d 100644 --- a/net-p2p/Manifest.gz +++ b/net-p2p/Manifest.gz diff --git a/net-p2p/bitcoin-cli/Manifest b/net-p2p/bitcoin-cli/Manifest index 89f5624e80b4..6de25fbabc95 100644 --- a/net-p2p/bitcoin-cli/Manifest +++ b/net-p2p/bitcoin-cli/Manifest @@ -1,4 +1,7 @@ DIST bitcoin-0.16.3.knots20180918.patches.tar.xz 466344 BLAKE2B c45b96513e4b6317e6a2a55cc3b47302fbe56fb87717ae0197010694013331b5d071b85a11a73c76f08f39e9f0294d3475e89ee63272047df83893de4dbaa390 SHA512 2c3540acc668aeef4b8f01774219736d95395201ddeaccaf70e0bad4a89f05cdd5ffaf630bae0577656efb3580fae92ce0ee4bb1a720ea757ca59e3fd66e1893 +DIST bitcoin-0.17.1.knots20181229.patches.tar.xz 475988 BLAKE2B ce19ccbbeaac48f24b2833858a186494f84cb54ac380c42104f4d16b0a6acb44bc7a83c1b11311e2c566326d7067530ea5f34404def5f22b4825e2fa15aca22d SHA512 da89f9510ee523c712aa137512dda752ab8d115eb8a45a999aa742555621f557694db34162a1f6979922268a3e22563883ea6d9d9a47e5c7613235c0ff06fda0 DIST bitcoin-v0.16.3.tar.gz 6658712 BLAKE2B 2c20b32ea30aed264115d1bd336b62fa28de69cbf116385508718efd7ff22537c3bd402c0965e0f6ddd8e79fc8b51f388f52f885847d36207a24523e927ca63e SHA512 2da25f56fe9b1f5a81815c14e70ff1a69ec15f742424e2c24d71303a71d57c8050dea5d5ba57425bbe0a01a3995ad9b30f0beea5dbafd1632a627cd3fd9a984d +DIST bitcoin-v0.17.1.tar.gz 6224852 BLAKE2B efc86768ee2d23db83496ff9e62bc86d10c4d24a7343f4c706a4d336aeb94087b2d496db53e393beb5a9dc228bb9fe957ca89254c2fdaf9980b03029efbac2f8 SHA512 ef911ac6b49075a4f3d8db7f9f4dc59590d49847006fa36d7b8cce1634945d418accd95b12da505df38314fb7768f544863169d4b26b230e88dd627a83947466 EBUILD bitcoin-cli-0.16.3.ebuild 2401 BLAKE2B 1f372febaea711cab1ba45ae3b9e29a55138d34b01235f3c6e375b67621b98086bf5b1982c305c50e050164238723e7e4550f686e86fcd80e35d734109d81b8c SHA512 e836b2ff0c3127febca2574bc09bc7e7e98171eafed08af54a8f5f19c9c87410acdb0be2341b8142f76d90ed450bf3ced1bfe57ecf106a77c865c2e72ce018d0 +EBUILD bitcoin-cli-0.17.1.ebuild 2388 BLAKE2B 81e9cb0972e053c324fc0206bd2630cf5438c1b3a7dbbf86b26ee9f2c3baaa4fb57139ae120b8e55d40ae46079fb1dbab2a95be1c118121c2403b5fafb7bcb67 SHA512 7c676fdd6abf87bd7f4e30fad4bf275b107352c4df2b2f421da746c4c75e8f724d09025fc9b0a6c5e2835b9880ae57b21582a149ab901cf541a648a859e5fc06 MISC metadata.xml 620 BLAKE2B e779b6a929a58fad28773a0aba3ef3112df14ce82ce62376b88cbc3519a857faaac6b580d2b5d866b0ec809062cf170e3c29324b03acc005246aea3cef9a0381 SHA512 c253ed29dff90ef2b9cd19b191ad870bd22cbdd371b2f353e724ba950735350225fe6d83c4ca8823ebb395dde9fb5004e781ff78987e2a30c0281ad5e0a4623a diff --git a/net-p2p/bitcoin-cli/bitcoin-cli-0.17.1.ebuild b/net-p2p/bitcoin-cli/bitcoin-cli-0.17.1.ebuild new file mode 100644 index 000000000000..e7296976041c --- /dev/null +++ b/net-p2p/bitcoin-cli/bitcoin-cli-0.17.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools bash-completion-r1 + +BITCOINCORE_COMMITHASH="ef70f9b52b851c7997a9f1a0834714e3eebc1fd8" +KNOTS_PV="${PV}.knots20181229" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="Command-line JSON-RPC client specifically for interfacing with bitcoind" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/0.17.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="knots libressl" + +DEPEND=" + >=dev-libs/boost-1.52.0:=[threads(+)] + dev-libs/libevent:= + >=dev-libs/univalue-1.0.4:= + !libressl? ( dev-libs/openssl:0=[-bindist] ) + libressl? ( dev-libs/libressl:0= ) +" +RDEPEND="${DEPEND}" + +DOCS=( doc/release-notes.md ) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/0.17.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2018/12/25/release-${PV}/" + fi +} + +src_prepare() { + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}.f.patch" + eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" + fi + + eapply_user + + echo '#!/bin/true' >share/genbuild.sh || die + mkdir -p src/obj || die + echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die + + eautoreconf + rm -r src/leveldb src/secp256k1 || die +} + +src_configure() { + local my_econf=( + --disable-asm + --without-qtdbus + --without-qrencode + --without-miniupnpc + --disable-tests + --disable-wallet + --disable-zmq + --enable-util-cli + --disable-util-tx + --disable-bench + --without-libs + --without-daemon + --without-gui + --disable-ccache + --disable-static + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + newbashcomp contrib/bitcoin-cli.bash-completion ${PN} +} diff --git a/net-p2p/bitcoin-qt/Manifest b/net-p2p/bitcoin-qt/Manifest index edb776d93838..d049614e05cb 100644 --- a/net-p2p/bitcoin-qt/Manifest +++ b/net-p2p/bitcoin-qt/Manifest @@ -1,4 +1,9 @@ +AUX bitcoin-qt.protocol 150 BLAKE2B b18645f52a6884fc0e475a85809d5b79e207adc346307623c5f1edececcb4564ac17bdb9a0deeb5c12c41409a34f83c1f22ab89f32852c58d948affa1de57edb SHA512 6b71d9d3fc9e05e6c6595aaaa307be9b5007c25f4b11162c5d873e200576d35156c2c660f229799400a3fba6dc8a9663ff8824371d83242d52ee6472687118ab +AUX org.bitcoin.bitcoin-qt.desktop 468 BLAKE2B e00d41612be14770d1f34b83f98a104aed197eb62707382a0189c5b9559f572336e8d236dcd290e1a4a43df041bfdef23209e1533401659228af8b004c9b3d76 SHA512 0cecb04d7813bcc0e5c9f1a5dfc32859708d3524548f6dcee33ba9fd600a7000f64b3d5f2dbdc1dcfce0a68fd82ea932b338da77ad495ebc03b097f462a75d88 DIST bitcoin-0.16.3.knots20180918.patches.tar.xz 466344 BLAKE2B c45b96513e4b6317e6a2a55cc3b47302fbe56fb87717ae0197010694013331b5d071b85a11a73c76f08f39e9f0294d3475e89ee63272047df83893de4dbaa390 SHA512 2c3540acc668aeef4b8f01774219736d95395201ddeaccaf70e0bad4a89f05cdd5ffaf630bae0577656efb3580fae92ce0ee4bb1a720ea757ca59e3fd66e1893 +DIST bitcoin-0.17.1.knots20181229.patches.tar.xz 475988 BLAKE2B ce19ccbbeaac48f24b2833858a186494f84cb54ac380c42104f4d16b0a6acb44bc7a83c1b11311e2c566326d7067530ea5f34404def5f22b4825e2fa15aca22d SHA512 da89f9510ee523c712aa137512dda752ab8d115eb8a45a999aa742555621f557694db34162a1f6979922268a3e22563883ea6d9d9a47e5c7613235c0ff06fda0 DIST bitcoin-v0.16.3.tar.gz 6658712 BLAKE2B 2c20b32ea30aed264115d1bd336b62fa28de69cbf116385508718efd7ff22537c3bd402c0965e0f6ddd8e79fc8b51f388f52f885847d36207a24523e927ca63e SHA512 2da25f56fe9b1f5a81815c14e70ff1a69ec15f742424e2c24d71303a71d57c8050dea5d5ba57425bbe0a01a3995ad9b30f0beea5dbafd1632a627cd3fd9a984d +DIST bitcoin-v0.17.1.tar.gz 6224852 BLAKE2B efc86768ee2d23db83496ff9e62bc86d10c4d24a7343f4c706a4d336aeb94087b2d496db53e393beb5a9dc228bb9fe957ca89254c2fdaf9980b03029efbac2f8 SHA512 ef911ac6b49075a4f3d8db7f9f4dc59590d49847006fa36d7b8cce1634945d418accd95b12da505df38314fb7768f544863169d4b26b230e88dd627a83947466 EBUILD bitcoin-qt-0.16.3.ebuild 4872 BLAKE2B 2cade1bc6b69928e1d05b74e11e29f3c8a79bec23cf8036724d0d535f91ffba04f47f9735a614c32baff08e16e6e863427e61e5e66de9b4752f33e7920ea2ccc SHA512 3409277590f09004dfcb08841eaab154f067d91cba3d265f1ffcfc59237827e25581b38fb296d5db0e7bd4e996b7e8556190227e5af879c786c8131cb043ba3c -MISC metadata.xml 1297 BLAKE2B a5d393ca42a85506f75d526bf01d06dffca54e5e46b6bcefc9f70ea719945539dccc7425ae8938b48dc21a1e09f5d0228d52fd854805c850e67a544797910b7a SHA512 a2963bce834917c9c722b9f427f3030be3a45a1f7e460afcf989affc5a4beb7e0781d55606853d56c967ca474e3d5e43aee0b2a28fd844758b2131dbc2374d3a +EBUILD bitcoin-qt-0.17.1.ebuild 5024 BLAKE2B 30a978cd1c4a7efa195e36cdc8a6694245fb026b92fa82cc46888bc3f62c3fa179273ec4b09c065141643f6d4f8cd50d25ce178c1a7bb863877212cbddbf5e53 SHA512 e5ecfdbc57c8cd6d175efda73c73167c9dd29e718191cc9dc66d65c9f2bb1fb6dec2efaee262249b5127d8a1a19bd45797c8417f358678401371bcc6c1676d95 +MISC metadata.xml 1390 BLAKE2B 2fc9611a5a3839183e28be1f49f3eebf3c01ba0097afbcbf2c587e53edbe9ec9973dc65b834d479e8870e9094cc3fb1cc3fda266818f7b6e209079f4c576b6c9 SHA512 a5d9727f4cc019d475f625d705c08f26958d5118d4433a9245e73ef4eb2ff7ffe840630de334c93df7107eecf3adf8c7782a85b7c35690c1c073ff489548ed70 diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.17.1.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.17.1.ebuild new file mode 100644 index 000000000000..f13ca6f859b7 --- /dev/null +++ b/net-p2p/bitcoin-qt/bitcoin-qt-0.17.1.ebuild @@ -0,0 +1,180 @@ +# Copyright 2010-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DB_VER="4.8" +inherit autotools bash-completion-r1 db-use gnome2-utils xdg-utils + +BITCOINCORE_COMMITHASH="ef70f9b52b851c7997a9f1a0834714e3eebc1fd8" +KNOTS_PV="${PV}.knots20181229" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/0.17.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="+asm +bip70 +bitcoin_policy_rbf dbus kde knots libressl +qrcode +system-leveldb test upnp +wallet zeromq" + +RDEPEND=" + >=dev-libs/boost-1.52.0:=[threads(+)] + >=dev-libs/libsecp256k1-0.0.0_pre20151118:=[recovery] + >=dev-libs/univalue-1.0.4:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + system-leveldb? ( virtual/bitcoin-leveldb ) + bip70? ( dev-libs/protobuf:= ) + dbus? ( dev-qt/qtdbus:5 ) + dev-libs/libevent:= + !libressl? ( dev-libs/openssl:0=[-bindist] ) + libressl? ( dev-libs/libressl:0= ) + qrcode? ( + media-gfx/qrencode:= + ) + upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) + wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) + zeromq? ( net-libs/zeromq:= ) +" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 + knots? ( + gnome-base/librsvg + media-gfx/imagemagick[png] + ) +" + +DOCS=( doc/bips.md doc/descriptors.md doc/files.md doc/reduce-traffic.md doc/release-notes.md doc/REST-interface.md doc/tor.md ) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/0.17.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2018/12/25/release-${PV}/" + fi + if use bitcoin_policy_rbf; then + elog "Replace By Fee policy is enabled: Your node will preferentially mine and" + elog "relay transactions paying the highest fee, regardless of receive order." + else + elog "Replace By Fee policy is disabled: Your node will only accept the first" + elog "transaction seen consuming a conflicting input, regardless of fee" + elog "offered by later ones." + fi +} + +src_prepare() { + sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die + + # Save the generic icon for later + cp src/qt/res/src/bitcoin.svg bitcoin128.svg || die + + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}.f.patch" + eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" + fi + + eapply_user + + if ! use bitcoin_policy_rbf; then + sed -i 's/\(DEFAULT_ENABLE_REPLACEMENT = \)true/\1false/' src/validation.h || die + fi + + echo '#!/bin/true' >share/genbuild.sh || die + mkdir -p src/obj || die + echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die + + eautoreconf + if use system-leveldb; then + rm -r src/leveldb src/secp256k1 || die + fi +} + +src_configure() { + local my_econf=( + $(use_enable asm) + $(use_enable bip70) + $(use_with dbus qtdbus) + $(use_with qrcode qrencode) + $(use_with upnp miniupnpc) + $(use_enable upnp upnp-default) + $(use_enable test tests) + $(use_enable wallet) + $(use_enable zeromq zmq) + --with-gui=qt5 + --disable-util-cli + --disable-util-tx + --disable-bench + --without-libs + --without-daemon + --disable-ccache + --disable-static + $(use_with system-leveldb) + --with-system-libsecp256k1 + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + rm -f "${ED%/}/usr/bin/test_bitcoin" || die + + insinto /usr/share/icons/hicolor/scalable/apps/ + doins bitcoin128.svg + if use knots; then + newins src/qt/res/src/bitcoin.svg bitcoinknots.svg + fi + + insinto /usr/share/applications + doins "${FILESDIR}/org.bitcoin.bitcoin-qt.desktop" + if ! use knots; then + sed -i 's/Knots/Core/;s/^\(Icon=\).*$/\1bitcoin128/' "${D}/usr/share/applications/org.bitcoin.bitcoin-qt.desktop" || die + fi + + use zeromq && dodoc doc/zmq.md + + newbashcomp contrib/bitcoind.bash-completion ${PN} + + if use kde; then + insinto /usr/share/kservices5 + doins "${FILESDIR}/bitcoin-qt.protocol" + dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol" + fi +} + +update_caches() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + update_caches + + elog "To have ${PN} automatically use Tor when it's running, be sure your" + elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" + elog "correctly, and add your user to the 'tor' user group." +} + +pkg_postrm() { + update_caches +} diff --git a/net-p2p/bitcoin-qt/files/bitcoin-qt.protocol b/net-p2p/bitcoin-qt/files/bitcoin-qt.protocol new file mode 100644 index 000000000000..014588d53679 --- /dev/null +++ b/net-p2p/bitcoin-qt/files/bitcoin-qt.protocol @@ -0,0 +1,11 @@ +[Protocol] +exec=bitcoin-qt '%u' +protocol=bitcoin +input=none +output=none +helper=true +listing= +reading=false +writing=false +makedir=false +deleting=false diff --git a/net-p2p/bitcoin-qt/files/org.bitcoin.bitcoin-qt.desktop b/net-p2p/bitcoin-qt/files/org.bitcoin.bitcoin-qt.desktop new file mode 100644 index 000000000000..0b03d45c1cdd --- /dev/null +++ b/net-p2p/bitcoin-qt/files/org.bitcoin.bitcoin-qt.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Name=Bitcoin Knots +Comment=Connect to the Bitcoin P2P Network +Comment[de]=Verbinde mit dem Bitcoin peer-to-peer Netzwerk +Comment[fr]=Bitcoin, monnaie virtuelle cryptographique pair à pair +Comment[tr]=Bitcoin, eşten eşe kriptografik sanal para birimi +Exec=bitcoin-qt %u +Terminal=false +Type=Application +Icon=bitcoinknots +MimeType=x-scheme-handler/bitcoin; +Categories=Office;Finance;P2P;Network;Qt; +StartupWMClass=Bitcoin-qt diff --git a/net-p2p/bitcoin-qt/metadata.xml b/net-p2p/bitcoin-qt/metadata.xml index f88446cdbbe8..0e5739a73259 100644 --- a/net-p2p/bitcoin-qt/metadata.xml +++ b/net-p2p/bitcoin-qt/metadata.xml @@ -16,6 +16,7 @@ <flag name="knots">Build enhanced Bitcoin Knots version, rather than Bitcoin Core</flag> <flag name="libevent">Use dev-libs/libevent (needed for JSON-RPC, REST, and Tor auto-configuration</flag> <flag name="qrcode">Enable generation of QR Codes for receiving payments</flag> + <flag name="system-leveldb">Use the system-wide dev-libs/leveldb instead of bundled</flag> <flag name="upnp">Enable Universal Plug and Play</flag> <flag name="wallet">Enable wallet support</flag> <flag name="zeromq">Report blocks and transactions via zeromq</flag> diff --git a/net-p2p/bitcoind/Manifest b/net-p2p/bitcoind/Manifest index 120378c9d0a7..f12b5625eae3 100644 --- a/net-p2p/bitcoind/Manifest +++ b/net-p2p/bitcoind/Manifest @@ -3,6 +3,9 @@ AUX bitcoin.conf.5 1438 BLAKE2B 8664545f78ee9e48a9c9ea2d11f54d7320d205182f6b81f7 AUX bitcoind.logrotate-r1 121 BLAKE2B 815316d97eaf71f1fe94673a58a91eaee3020fac39d5d6b84cc72afe5c22d48cb80ed561f9c6b43b6f85bd6f269f37fdd4fc1e4e96688f7a8ae25023ac560cea SHA512 a4783a310ea6b77f607bcc45d86d25ffd72794983bd1854b77eb057e86377e067f666ca38073c8efcb06256e1202918c77c8e09382cd8462832dee769017dde1 AUX bitcoind.service-r1 719 BLAKE2B 69a97909ccd6e1cef79f9c9835d8f9b63451d3bcc9ac9136f4a4695976b00ec71559b73811a027046e26373da506125b94439c031ca6cfcccd268b3217c7ac17 SHA512 43f0224d2a60f19b62f1b805be73efe91882339ed02267f8852d4154ddd634beefef6130101d92fc771c56477daf6aedab0bd751ee614bc8b9bf3a042697d76f DIST bitcoin-0.16.3.knots20180918.patches.tar.xz 466344 BLAKE2B c45b96513e4b6317e6a2a55cc3b47302fbe56fb87717ae0197010694013331b5d071b85a11a73c76f08f39e9f0294d3475e89ee63272047df83893de4dbaa390 SHA512 2c3540acc668aeef4b8f01774219736d95395201ddeaccaf70e0bad4a89f05cdd5ffaf630bae0577656efb3580fae92ce0ee4bb1a720ea757ca59e3fd66e1893 +DIST bitcoin-0.17.1.knots20181229.patches.tar.xz 475988 BLAKE2B ce19ccbbeaac48f24b2833858a186494f84cb54ac380c42104f4d16b0a6acb44bc7a83c1b11311e2c566326d7067530ea5f34404def5f22b4825e2fa15aca22d SHA512 da89f9510ee523c712aa137512dda752ab8d115eb8a45a999aa742555621f557694db34162a1f6979922268a3e22563883ea6d9d9a47e5c7613235c0ff06fda0 DIST bitcoin-v0.16.3.tar.gz 6658712 BLAKE2B 2c20b32ea30aed264115d1bd336b62fa28de69cbf116385508718efd7ff22537c3bd402c0965e0f6ddd8e79fc8b51f388f52f885847d36207a24523e927ca63e SHA512 2da25f56fe9b1f5a81815c14e70ff1a69ec15f742424e2c24d71303a71d57c8050dea5d5ba57425bbe0a01a3995ad9b30f0beea5dbafd1632a627cd3fd9a984d +DIST bitcoin-v0.17.1.tar.gz 6224852 BLAKE2B efc86768ee2d23db83496ff9e62bc86d10c4d24a7343f4c706a4d336aeb94087b2d496db53e393beb5a9dc228bb9fe957ca89254c2fdaf9980b03029efbac2f8 SHA512 ef911ac6b49075a4f3d8db7f9f4dc59590d49847006fa36d7b8cce1634945d418accd95b12da505df38314fb7768f544863169d4b26b230e88dd627a83947466 EBUILD bitcoind-0.16.3.ebuild 4845 BLAKE2B 6e974ad55e23ad07c81f03c841768be8df2967d18aab6cac73264c7ed812604aa5372bd7b06d97e7a40415cbcd346ddcb4181ae1d7224cdf4bf1092f781da7f5 SHA512 213152b613a69dadafc4d93e8eeb295cf652eed8eb058dfe7b6aaf84fe4e81623d75e29272c610ee335de8f520516a31b3e3042e44ccf9034aaae07a7c4819e1 -MISC metadata.xml 1033 BLAKE2B e79ed83740379df868320d024cf761995aac60ad9fcb451b137910814ce5b7964c8231853819c2b2ed95890f75c8ef18aee455eedd79543d8c44b2199124f0d0 SHA512 4e530a735d38119cc26b8fa31c2d4a117555004e79fad00f105f581ae6ba20d00d59d54f155c6e3f8c2bbe36aae745ff6e79a66187dac1975ec399e329d9a919 +EBUILD bitcoind-0.17.1.ebuild 4938 BLAKE2B 0db4ddb4b3da24fb715053bafaed717fd880eaa939663ec4260f0a5093e26fff5006febb71994f1c7876ccf0f7db0f789a31008838337491f78bf0decc05a322 SHA512 118d5ad80efac90a06523e1983e9ff4e492681cc423c4a272435babc8fac66a7cd64c7a13724a53d88844542bfda1ab74e2a353585b57037033178a207451904 +MISC metadata.xml 1126 BLAKE2B c109473fe9b14ded30c783f08664ffdddca59b27905ec3ed2c7af3b367102f30017bf79599e984546f431d9665a33f9fb7a75501a1f37a5212073a3ff6c57ea6 SHA512 8e6357a5c3860a0b0d4440f0f2341a13582a24a1256443b352834aea491ec15f1d7980b7c9b2568aa1d4f5c44dd189934065c23df4bd63199acc6189aebbf03a diff --git a/net-p2p/bitcoind/bitcoind-0.17.1.ebuild b/net-p2p/bitcoind/bitcoind-0.17.1.ebuild new file mode 100644 index 000000000000..71d8c912e3e6 --- /dev/null +++ b/net-p2p/bitcoind/bitcoind-0.17.1.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DB_VER="4.8" +inherit autotools bash-completion-r1 db-use systemd user + +BITCOINCORE_COMMITHASH="ef70f9b52b851c7997a9f1a0834714e3eebc1fd8" +KNOTS_PV="${PV}.knots20181229" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/0.17.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+asm +bitcoin_policy_rbf examples knots libressl +system-leveldb test upnp +wallet zeromq" + +DEPEND=" + >=dev-libs/boost-1.52.0:=[threads(+)] + dev-libs/libevent:= + >=dev-libs/libsecp256k1-0.0.0_pre20151118:=[recovery] + >=dev-libs/univalue-1.0.4:= + system-leveldb? ( virtual/bitcoin-leveldb ) + !libressl? ( dev-libs/openssl:0=[-bindist] ) + libressl? ( dev-libs/libressl:0= ) + upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) + wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) + zeromq? ( net-libs/zeromq:= ) +" +RDEPEND="${DEPEND}" + +DOCS=( doc/bips.md doc/descriptors.md doc/files.md doc/reduce-traffic.md doc/release-notes.md doc/REST-interface.md doc/tor.md ) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/0.17.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2018/12/25/release-${PV}/" + fi + if use bitcoin_policy_rbf; then + elog "Replace By Fee policy is enabled: Your node will preferentially mine and" + elog "relay transactions paying the highest fee, regardless of receive order." + else + elog "Replace By Fee policy is disabled: Your node will only accept the first" + elog "transaction seen consuming a conflicting input, regardless of fee" + elog "offered by later ones." + fi +} + +pkg_setup() { + enewgroup bitcoin + enewuser bitcoin -1 -1 /var/lib/bitcoin bitcoin +} + +src_prepare() { + sed -i 's/^\(complete -F _bitcoind bitcoind\) bitcoin-qt$/\1/' contrib/${PN}.bash-completion || die + + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}.f.patch" + eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" + fi + + eapply_user + + if ! use bitcoin_policy_rbf; then + sed -i 's/\(DEFAULT_ENABLE_REPLACEMENT = \)true/\1false/' src/validation.h || die + fi + + echo '#!/bin/true' >share/genbuild.sh || die + mkdir -p src/obj || die + echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die + + eautoreconf + if use system-leveldb; then + rm -r src/leveldb src/secp256k1 || die + fi +} + +src_configure() { + local my_econf=( + $(use_enable asm) + --without-qtdbus + --without-qrencode + $(use_with upnp miniupnpc) + $(use_enable upnp upnp-default) + $(use_enable test tests) + $(use_enable wallet) + $(use_enable zeromq zmq) + --with-daemon + --disable-util-cli + --disable-util-tx + --disable-bench + --without-libs + --without-gui + --disable-ccache + --disable-static + $(use_with system-leveldb) + --with-system-libsecp256k1 + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + rm -f "${ED%/}/usr/bin/test_bitcoin" || die + + insinto /etc/bitcoin + newins "${FILESDIR}/bitcoin.conf" bitcoin.conf + fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf + fperms 600 /etc/bitcoin/bitcoin.conf + + newconfd "contrib/init/bitcoind.openrcconf" ${PN} + newinitd "contrib/init/bitcoind.openrc" ${PN} + systemd_newunit "contrib/init/bitcoind.service" "bitcoind.service" + + keepdir /var/lib/bitcoin/.bitcoin + fperms 700 /var/lib/bitcoin + fowners bitcoin:bitcoin /var/lib/bitcoin/ + fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin + dosym ../../../../etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf + + doman "${FILESDIR}/bitcoin.conf.5" + + use zeromq && dodoc doc/zmq.md + + newbashcomp contrib/${PN}.bash-completion ${PN} + + if use examples; then + docinto examples + dodoc -r contrib/{linearize,qos,tidy_datadir.sh} + use zeromq && dodoc -r contrib/zmq + fi + + insinto /etc/logrotate.d + newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind +} + +pkg_postinst() { + elog "To have ${PN} automatically use Tor when it's running, be sure your" + elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" + elog "correctly, and:" + elog "- Using an init script: add the 'bitcoin' user to the 'tor' user group." + elog "- Running bitcoind directly: add that user to the 'tor' user group." +} diff --git a/net-p2p/bitcoind/metadata.xml b/net-p2p/bitcoind/metadata.xml index 91b80520930d..6283c9d733c0 100644 --- a/net-p2p/bitcoind/metadata.xml +++ b/net-p2p/bitcoind/metadata.xml @@ -13,6 +13,7 @@ <flag name="asm">Enable assembly for optimization</flag> <flag name="bitcoin_policy_rbf">Replace By Fee policy: Your node will preferentially mine and relay transactions paying the highest fee, regardless of receive order</flag> <flag name="knots">Build enhanced Bitcoin Knots version, rather than Bitcoin Core</flag> + <flag name="system-leveldb">Use the system-wide dev-libs/leveldb instead of bundled</flag> <flag name="upnp">Enable Universal Plug and Play</flag> <flag name="wallet">Enable wallet support</flag> <flag name="zeromq">Report blocks and transactions via zeromq</flag> diff --git a/net-p2p/ktorrent/Manifest b/net-p2p/ktorrent/Manifest index a7b685c88334..703971029f63 100644 --- a/net-p2p/ktorrent/Manifest +++ b/net-p2p/ktorrent/Manifest @@ -1,5 +1,3 @@ -AUX ktorrent-5.1.0-cmake-3.11.patch 412 BLAKE2B 4ee01320022113b981ff1a314f8ed73895e0606615a5b91967bc04e72a328554f2345952f8bfd5bb09ff08991657b662f7db6d5a778316fd5ea5f4da1c8aeb1f SHA512 d3c3020407aabf8166ff08a1cce16a20693f273de5a1da5a2c6c21f5359a32799247153ca5d9e22fba45790ffd56b86e53465e2d3d9b0ce986fd896d5eedd63e -AUX ktorrent-5.1.0-qt-5.11.patch 2249 BLAKE2B f6d27bc5ed7ccb55622412799df823e674b0e11d48a7fe91444e3f652a44fdffa17248e34446a54b197c1b177b333e85beeb73d0c0edcb62add96f7c65b3b98b SHA512 7482a3228794f36e368cf9ddadc9cb57f62cec0b87903a19a67572bc362fd8d63728400ac43626c5acc947b017c9e64886dc7c1ec949fed14a4fca401845b404 AUX ktorrent-5.1.1-scanfolder-memcorruption.patch 2244 BLAKE2B 53efe0320124f954adff60144981d740e5cdf45ed4712fa43f112bb6133fb24b4303e6f969d9a73598525dea4f6706c22e57d2e5c7378c69e494dd924360a307 SHA512 8d3868a6f75e2f53fa11762378a676736df09e14e6fbde04f0dcfb45eb56e8b739d17b3ea96af4be21edb22edad610982865b33508847f07ac2eba744f62ae5e DIST ktorrent-5.1.1.tar.xz 2049392 BLAKE2B 09ad841e1b6d7f332b19e2a660130b1f2b998cd6839614800cde7c99c8ec7f119f2adbdc3d9e06c8525e2dde534d73dab521c7df1d01b2fd0eb6b11fbb868d8f SHA512 bbe744853018380e30efc6ef95916a9b6f0ebec812d70d7970e5e7183d860d147b0693dd0107b146a5987aa27f30cd335fad73c8967839d53eee1c5b63a53c06 EBUILD ktorrent-5.1.1.ebuild 3083 BLAKE2B a0fbf718816b1bf154f01dad9ff914fd7e3c9e1e620be3a825f49d03c3af4600ac5e7413e6b743df3477275e227628bbf999144122da2c20ce96d0753d339649 SHA512 e699da98a02493847f71011008311a37555293e5878986489114b7a1f0999c1a6f1ab76c6874babd9d4ba2adae39b2be880b2eb1a4c3ce4689a91593145f3a09 diff --git a/net-p2p/ktorrent/files/ktorrent-5.1.0-cmake-3.11.patch b/net-p2p/ktorrent/files/ktorrent-5.1.0-cmake-3.11.patch deleted file mode 100644 index c0b9167636a8..000000000000 --- a/net-p2p/ktorrent/files/ktorrent-5.1.0-cmake-3.11.patch +++ /dev/null @@ -1,13 +0,0 @@ -https://docs.freebsd.org/cgi/getmsg.cgi?fetch=4423635+0+/usr/local/www/mailindex/archive/2018/svn-ports-all/20180415.svn-ports-all - ---- ktorrent-5.1.0/ktorrent/dialogs/torrentcreatordlg.h -+++ ktorrent-5.1.0/ktorrent/dialogs/torrentcreatordlg.h -@@ -23,6 +23,8 @@ - #define KT_TORRENTCREATORDLG_HH - - #include <QDialog> -+#include <QTimer> -+ - #include "ui_torrentcreatordlg.h" - #include <torrent/torrentcreator.h> - diff --git a/net-p2p/ktorrent/files/ktorrent-5.1.0-qt-5.11.patch b/net-p2p/ktorrent/files/ktorrent-5.1.0-qt-5.11.patch deleted file mode 100644 index f0d69b82c893..000000000000 --- a/net-p2p/ktorrent/files/ktorrent-5.1.0-qt-5.11.patch +++ /dev/null @@ -1,76 +0,0 @@ -From 4befccc3d0ebbd9235e6f10d411f139802e3871a Mon Sep 17 00:00:00 2001 -From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> -Date: Sun, 18 Mar 2018 19:13:26 +0100 -Subject: [PATCH] Fix build with Qt 5.11 (missing headers) - -Reviewers: stikonas - -Differential Revision: https://phabricator.kde.org/D11456 ---- - ktorrent/dialogs/fileselectdlg.cpp | 1 + - ktorrent/groups/groupview.cpp | 1 + - plugins/search/searchprefpage.cpp | 1 + - 3 files changed, 3 insertions(+) - -diff --git a/ktorrent/dialogs/fileselectdlg.cpp b/ktorrent/dialogs/fileselectdlg.cpp -index 139b4752..ec7d8ede 100644 ---- a/ktorrent/dialogs/fileselectdlg.cpp -+++ b/ktorrent/dialogs/fileselectdlg.cpp -@@ -20,6 +20,7 @@ - - #include "fileselectdlg.h" - -+#include <QButtonGroup> - #include <QMenu> - #include <QPushButton> - #include <QTextCodec> -diff --git a/ktorrent/groups/groupview.cpp b/ktorrent/groups/groupview.cpp -index 990ed0d3..76208144 100644 ---- a/ktorrent/groups/groupview.cpp -+++ b/ktorrent/groups/groupview.cpp -@@ -23,6 +23,7 @@ - #include <QAction> - #include <QDragEnterEvent> - #include <QDropEvent> -+#include <QHeaderView> - #include <QInputDialog> - #include <QMenu> - #include <QTreeWidgetItemIterator> -diff --git a/plugins/search/searchprefpage.cpp b/plugins/search/searchprefpage.cpp -index 667e7a82..4be6cd5c 100644 ---- a/plugins/search/searchprefpage.cpp -+++ b/plugins/search/searchprefpage.cpp -@@ -21,6 +21,7 @@ - - #include "searchprefpage.h" - -+#include <QButtonGroup> - #include <QCheckBox> - #include <QFile> - #include <QInputDialog> --- -2.16.2 -From c66233cd9f5b87f9e265beae0a16839d3a5645a3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= <dvratil@kde.org> -Date: Fri, 4 May 2018 00:33:44 +0200 -Subject: Fix build against Qt 5.11 (missing includes) - ---- - plugins/syndication/syndicationactivity.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/plugins/syndication/syndicationactivity.cpp b/plugins/syndication/syndicationactivity.cpp -index 61e8039..5736d52 100644 ---- a/plugins/syndication/syndicationactivity.cpp -+++ b/plugins/syndication/syndicationactivity.cpp -@@ -21,6 +21,7 @@ - #include <QHBoxLayout> - #include <QInputDialog> - #include <QToolButton> -+#include <QAction> - - #include <KMainWindow> - #include <KMessageBox> --- -cgit v0.11.2 - diff --git a/net-p2p/nicotine+/Manifest b/net-p2p/nicotine+/Manifest index 64b88991f0f8..c260101fcade 100644 --- a/net-p2p/nicotine+/Manifest +++ b/net-p2p/nicotine+/Manifest @@ -1,3 +1,3 @@ DIST nicotine+-1.4.1.tar.gz 3824830 BLAKE2B def211a4d06b1cb6a409917579652b3a1c8c36ec5ecfe5e295b9fabeaaca02cd4999fd20935c8999d4cf989f3ecff0a0a2c7f52a40f8c2b03e05b6c9dc2feca9 SHA512 894dfb318b205b6be21face0308f183da15772f329158c6a9a8a816dfdf231ad89245188acad5538821b2a778c8a8a6201ce8548cc58550c4eb6c0763db9d66a -EBUILD nicotine+-1.4.1.ebuild 922 BLAKE2B 3e8ea1376610df02253d6227401a608846f4b5ffe1b9c32e27ccf97c945a1bf8755bc11ebabc180252801e0ef26693b9b0452cbf93f8d17f92da07d164562c79 SHA512 3f6c34a919e632a18a051641879177e5998b2163863be0ea262640a982f48c301d350ad089f892d104e9ada4e3fd313d19f72551e58008644fd08ca20769bee2 +EBUILD nicotine+-1.4.1-r1.ebuild 746 BLAKE2B 48b5e06ac531ff0e3abebeea391e9c6fee9f6a2cbb164ca36c165a4b1905c6f141f407d2f56d0b570f717d29f0288a84d6e82c030c5064a235c2ed347e2049d2 SHA512 b72db2e76e4149e9a3b719c85c38bf7e7d2913da0067cc2d84374d633294575de363805cca072b43f1f3673af03abf9a8cd1a0fab5dbb9486001fc3714cb0f49 MISC metadata.xml 231 BLAKE2B 075020fec1acfe12f7c59c2c431a1d12da79dff829cd5823023b04a6f3434cba021b3d61d0061f22a38146676cd0c5a20a1fd7e16cdbbd1646fa73f388a10532 SHA512 18d2bbf36b6b85b3abf046081837bb270202adbeb40a2befc5293661b272c87509d0339002f1848cb88d48f240663f118064ae7580a9aa13ddcb04bea857d2c5 diff --git a/net-p2p/nicotine+/nicotine+-1.4.1.ebuild b/net-p2p/nicotine+/nicotine+-1.4.1-r1.ebuild index a6d9d9d6de41..97f31a510c6b 100644 --- a/net-p2p/nicotine+/nicotine+-1.4.1.ebuild +++ b/net-p2p/nicotine+/nicotine+-1.4.1-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 PYTHON_COMPAT=( python2_7 ) DISTUTILS_SINGLE_IMPL=1 @@ -17,19 +17,16 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" IUSE="" -RDEPEND=">=dev-python/pygtk-2.24[${PYTHON_USEDEP}]" +RDEPEND=" + >=dev-python/pygtk-2.24[${PYTHON_USEDEP}] + media-libs/mutagen[${PYTHON_USEDEP}] +" DEPEND="${RDEPEND}" S="${WORKDIR}/nicotine-plus-${PV}" -pkg_postinst() { - echo - elog "You may want to install these packages to add additional features" - elog "to Nicotine+:" - elog - elog "dev-python/geoip-python Country lookup and flag display" - elog "media-libs/mutagen Media metadata extraction" - elog "net-libs/miniupnpc UPnP portmapping" - echo +src_install() { + distutils-r1_src_install + mv "${ED}/usr/share/doc/nicotine" "${ED}/usr/share/doc/${PF}" || die } diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest index 2e93bd336558..edf27961bf4f 100644 --- a/net-p2p/syncthing/Manifest +++ b/net-p2p/syncthing/Manifest @@ -7,7 +7,9 @@ AUX syncthing.logrotate 101 BLAKE2B af499a6979e5c61cc4791932e247fe7f25baffbbf690 DIST syncthing-0.14.38.tar.gz 8246629 BLAKE2B 93c01750fedd57cc07bffa14fe65d98fc1cf48b43eaf965fc3ff9546a24acada411a89a19b47e2f5b5e7508e57646d0560559c35bb3c378b7c04e3db14b7ffaa SHA512 be5f7527d63e8db427705c34b26d783d9abd7cb5727d3dcf08ee62b1ace5454b7dfed4f030ec53e847a34f560cf349460f68c859a1008c5105aef65ef42c5cc5 DIST syncthing-0.14.51.tar.gz 10970620 BLAKE2B ba41debaddf217069b47901d0c43f163ff0ae3ca4aadb8689401195cfc9f11a3ed641d2d96a590821adac62d12d0ff83df26a4a336ca09476d755b8230a63c87 SHA512 d670b1df341c8da95d38170e03b40deb19dfcdf0c0df9b4630c74b4fcc979bd9a863c0ca0510e28739bac14b1aad51ce40abe695765186acad78ea0d7eb3a20c DIST syncthing-0.14.52.tar.gz 10583112 BLAKE2B cceaf0aba9dff96df0551d7aab855cb716be3d252fd677b82e20560f0a2e9eabf513ca7c7acdf4f1a3b4d3d8f6409692df7d2e92b86b1be1753bdd8913e06952 SHA512 cff48ea1d1286c8b1fe971b00423ad64ef10c9b0555f0cae6e008efc07a21698d54d402fe1a0ac3161c0b5180e5ca0099a0a302fd7e7c5da0f227bdb7e2853ce +DIST syncthing-1.0.0.tar.gz 10601948 BLAKE2B f9b509b78850efb315e33afff49f8468e3ea97a4aac90752e07851604960e817dbdcdb9824f2a6174b1f066ac277a119eea5aff75f6247a43652b70a5ff4f9af SHA512 79adbce03524665d02c1ca772fdf5aca68d9e41ee4bc02bcb9ac6ed0d8dca2fe8582139f52a0fe895ad5eb15c372d686277077ff884b67de1d45419e19407603 EBUILD syncthing-0.14.38.ebuild 3604 BLAKE2B 60ab7ee9417858f5732a894a19786e66aa875d68d2ae699dba844f0efd8c0db9addd91f88b21c3e54930fc55a14d3545ea65af1c2ed43b26fa1158bfe918f6a8 SHA512 7188b18639c97775e1aad68f8a8aa1e41e95e10855f491bee61aa5898599b34d7cc0c23ea7c585d2a30dcbf1e4f16a7b08b9a5f1fa55064b6e36bb7f35cb73be EBUILD syncthing-0.14.51.ebuild 3525 BLAKE2B 9a8bff37b22ba1fa7f90b457f3ddbae39252f188b52bb91d2ecafb8208be83af8e1ffc88e250180793e8126520c9e187602037374d0d76b02a5d9edab8be04dc SHA512 354fd1e41dc6ebd675d162f64ba3054f3ed1eca71343bec1f3ec23e80b1f575b3188d6e5bd574fd14e9a92ecbbbbc70c4c4deca791ad89a1122ccaa434c0ac3e EBUILD syncthing-0.14.52.ebuild 3520 BLAKE2B 06bbcffbe0d9d0c1769135c6564c0eee47e68ac1f23a81ea76d0a224598d473571e367e00d97349a501e7417e55a7fba000ae57534b88dfb4174e0e0e7c7e8b3 SHA512 581061000400abbe79abcc94cec13151624835c0622d77056cb9a5d25ca5d143c701b629cedfbb1b7e72602b890bdb32bb7e10623d02d9befe5826bd8eed34ea +EBUILD syncthing-1.0.0.ebuild 2366 BLAKE2B 281fda4131f5bda2c5631ec2e9dd2a60a9631bd5ea4a6402f157380a08f336f0a577d3221847f693ede53e30e9f57081608f119677c0b668a4b0aaed888953b7 SHA512 539ae3e284be9d757e141f1aa760b2c1a5e34c49e13f0ff417fd4985855807fa2ffe1fbc4312ed8f74d312273a42a2cccdba4d3697f722edb4abf0724ebc7d87 MISC metadata.xml 869 BLAKE2B e59a433fd94dda05e06eca9017cf4f35aa4d9897adcc76d5dc503d5ae90e90bf5c23b859c4b7abe9af86cd7f327dad99a7a1a095015330a105debeb1a428052c SHA512 f58ce3a33241a316a81ba94318cd8fa1ea8a9954cd3721ae6f78f96df08b38a6ee5ea214483dc92aa4301a2252bc712a65c196da4c871962d76d17d5ba2b7238 diff --git a/net-p2p/syncthing/syncthing-1.0.0.ebuild b/net-p2p/syncthing/syncthing-1.0.0.ebuild new file mode 100644 index 000000000000..d81107f9c516 --- /dev/null +++ b/net-p2p/syncthing/syncthing-1.0.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_PN="github.com/${PN}/${PN}" + +inherit golang-vcs-snapshot systemd user eapi7-ver + +DESCRIPTION="Open Source Continuous File Synchronization" +HOMEPAGE="https://syncthing.net" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="selinux tools" + +RDEPEND="selinux? ( sec-policy/selinux-syncthing )" + +DOCS=( README.md AUTHORS CONTRIBUTING.md ) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} + + if use tools ; then + # separate user for the relay server + enewgroup strelaysrv + enewuser strelaysrv -1 -1 /var/lib/strelaysrv strelaysrv + # and his home folder + keepdir /var/lib/strelaysrv + fowners strelaysrv:strelaysrv /var/lib/strelaysrv + fi +} + +src_prepare() { + default + sed -i \ + 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \ + src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \ + || die +} + +src_compile() { + export GOPATH="${S}:$(get_golibdir_gopath)" + cd src/${EGO_PN} || die + go run build.go -version "v${PV}" -no-upgrade install \ + $(usex tools "all" "") || die "build failed" +} + +src_test() { + cd src/${EGO_PN} || die + go run build.go test || die "test failed" +} + +src_install() { + pushd src/${EGO_PN} >& /dev/null || die + doman man/*.[157] + einstalldocs + + dobin bin/syncthing + if use tools ; then + exeinto /usr/libexec/syncthing + local exe + for exe in bin/* ; do + [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}" + done + fi + popd >& /dev/null || die + + # openrc and systemd service files + systemd_dounit src/${EGO_PN}/etc/linux-systemd/system/${PN}{@,-resume}.service + systemd_douserunit src/${EGO_PN}/etc/linux-systemd/user/${PN}.service + newconfd "${FILESDIR}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${PN}.initd" ${PN} + + keepdir /var/{lib,log}/${PN} + fowners ${PN}:${PN} /var/{lib,log}/${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + if use tools ; then + # openrc and systemd service files + systemd_dounit src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service + newconfd "${FILESDIR}/strelaysrv.confd" strelaysrv + newinitd "${FILESDIR}/strelaysrv.initd" strelaysrv + + insinto /etc/logrotate.d + newins "${FILESDIR}/strelaysrv.logrotate" strelaysrv + fi +} |