Add net-p2p/kubo-0.18.1
This commit is contained in:
parent
f9b5c68037
commit
d71ae6e908
10 changed files with 187 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
BDEPEND=|| ( ( >=dev-lang/python-3.10.9-r1:3.10 dev-python/six[python_targets_python3_10(-)] ) ( >=dev-lang/python-3.9.16-r1:3.9 dev-python/six[python_targets_python3_9(-)] ) ) >=dev-libs/protobuf-3.0.0 dev-util/gyp dev-util/ninja virtual/pkgconfig emacs? ( app-editors/emacs:* ) fcitx4? ( sys-devel/gettext )
|
||||
DEFINED_PHASES=compile configure install postinst postrm prepare setup test unpack
|
||||
DEPEND=>=dev-libs/protobuf-3.0.0:= fcitx4? ( app-i18n/fcitx:4 virtual/libintl ) fcitx5? ( app-i18n/fcitx5:5 ) gui? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 ) ibus? ( >=app-i18n/ibus-1.4.1 dev-libs/glib:2 x11-libs/libxcb ) renderer? ( dev-libs/glib:2 x11-libs/cairo x11-libs/gtk+:2 x11-libs/pango ) test? ( >=dev-cpp/gtest-1.8.0 dev-libs/jsoncpp )
|
||||
DESCRIPTION=Mozc - Japanese input method editor
|
||||
EAPI=7
|
||||
HOMEPAGE=https://github.com/google/mozc
|
||||
INHERIT=elisp-common multiprocessing python-any-r1 toolchain-funcs
|
||||
IUSE=debug emacs fcitx4 fcitx5 ut +gui ibus renderer test
|
||||
KEYWORDS=amd64 ~arm64 ~ppc64 x86
|
||||
LICENSE=BSD BSD-2 ipadic public-domain unicode
|
||||
RDEPEND=>=dev-libs/protobuf-3.0.0:= emacs? ( app-editors/emacs:* ) fcitx4? ( app-i18n/fcitx:4 virtual/libintl ) fcitx5? ( app-i18n/fcitx5:5 ) gui? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 ) ibus? ( >=app-i18n/ibus-1.4.1 dev-libs/glib:2 x11-libs/libxcb ) renderer? ( dev-libs/glib:2 x11-libs/cairo x11-libs/gtk+:2 x11-libs/pango )
|
||||
REQUIRED_USE=|| ( emacs fcitx4 fcitx5 ibus )
|
||||
RESTRICT=!test? ( test )
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/google/mozc/archive/7329757e1ad30e327c1ae823a8302c79482d6b9c.tar.gz -> mozc-2.26.4632-20220130192938.tar.gz https://github.com/abseil/abseil-cpp/archive/215105818dfde3174fe799600bb0f3cae233d0bf.tar.gz -> abseil-cpp-215105818dfde3174fe799600bb0f3cae233d0bf.tar.gz https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/a4a66772e33746b91e99caceecced9a28507e925.tar.gz -> japanese-usage-dictionary-20180701040110.tar.gz fcitx5? ( https://github.com/fcitx/mozc/archive/4d2e3bdc0a2e99197f03cf241924639fef1378f0.tar.gz -> fcitx-mozc-2.26.4632-20220202104242.tar.gz ) ut? ( https://osdn.net/downloads/users/37/37667/mozcdic-ut-20220206.tar.bz2 -> mozcdic-ut-20220206.tar.bz2 )
|
||||
_eclasses_=elisp-common 79f8e13c80c89792e5c9b3fc8ef59f3b multiprocessing b4e253ab22cef7b1085e9b67c7a3b730 eapi8-dosym cd7d420bb5be5ee079f27239ce76b8f5 toolchain-funcs 6001248ef162a5fa2a21ce132a212f6b multilib 5ca4e49abed8e3a2f7b56920eadee157 python-utils-r1 429bfd4e8d8e39db5385ba5744f30788 python-any-r1 d2955aaac8daaaa69fcc6dc93ed19f29
|
||||
_md5_=786b791530b64507650eb888f6536b02
|
15
metadata/md5-cache/media-sound/furnace-0.6_pre1
Normal file
15
metadata/md5-cache/media-sound/furnace-0.6_pre1
Normal file
|
@ -0,0 +1,15 @@
|
|||
BDEPEND=>=dev-util/ninja-1.8.2 >=dev-util/cmake-3.20.5 >=dev-vcs/git-1.8.2.1[curl]
|
||||
DEFINED_PHASES=compile configure install prepare test unpack
|
||||
DEPEND=midi? ( media-libs/rtmidi ) >=media-libs/libsdl2-2.0.18 >=sci-libs/fftw-3.3 >=dev-libs/libfmt-7.1.0 media-libs/libsndfile sys-libs/zlib media-libs/alsa-lib pulseaudio? ( media-libs/libpulse ) x11-libs/libX11 virtual/opengl
|
||||
DESCRIPTION=A multi-system chiptune tracker compatible with DefleMask modules
|
||||
EAPI=8
|
||||
HOMEPAGE=https://github.com/tildearrow/furnace
|
||||
INHERIT=cmake git-r3
|
||||
IUSE=jack midi pulseaudio +demos +instruments
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2
|
||||
PROPERTIES=live
|
||||
RDEPEND=midi? ( media-libs/rtmidi ) >=media-libs/libsdl2-2.0.18 >=sci-libs/fftw-3.3 >=dev-libs/libfmt-7.1.0 media-libs/libsndfile sys-libs/zlib media-libs/alsa-lib pulseaudio? ( media-libs/libpulse ) x11-libs/libX11 virtual/opengl
|
||||
SLOT=0
|
||||
_eclasses_=toolchain-funcs 6001248ef162a5fa2a21ce132a212f6b multilib 5ca4e49abed8e3a2f7b56920eadee157 flag-o-matic 69394e25812406faa1f90edaf4969395 multiprocessing b4e253ab22cef7b1085e9b67c7a3b730 ninja-utils 38c85b725d0467e51954ea921b6c104b xdg-utils ac0e315a3688929e34ac75b139e7349a cmake 449b4785acace35308fe747fc939bde1 git-r3 2347f8fe2d392b2a091191f94be37e6f
|
||||
_md5_=533e310de62c2eb0910652181ab51e0c
|
15
metadata/md5-cache/media-sound/furnace-0.6_pre15
Normal file
15
metadata/md5-cache/media-sound/furnace-0.6_pre15
Normal file
|
@ -0,0 +1,15 @@
|
|||
BDEPEND=>=dev-util/ninja-1.8.2 >=dev-util/cmake-3.20.5 >=dev-vcs/git-1.8.2.1[curl]
|
||||
DEFINED_PHASES=compile configure install prepare test unpack
|
||||
DEPEND=midi? ( media-libs/rtmidi ) >=media-libs/libsdl2-2.0.18 >=sci-libs/fftw-3.3 >=dev-libs/libfmt-7.1.0 media-libs/libsndfile sys-libs/zlib media-libs/alsa-lib pulseaudio? ( media-libs/libpulse ) x11-libs/libX11 virtual/opengl
|
||||
DESCRIPTION=A multi-system chiptune tracker compatible with DefleMask modules
|
||||
EAPI=8
|
||||
HOMEPAGE=https://github.com/tildearrow/furnace
|
||||
INHERIT=cmake git-r3
|
||||
IUSE=jack midi pulseaudio +demos +instruments
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2
|
||||
PROPERTIES=live
|
||||
RDEPEND=midi? ( media-libs/rtmidi ) >=media-libs/libsdl2-2.0.18 >=sci-libs/fftw-3.3 >=dev-libs/libfmt-7.1.0 media-libs/libsndfile sys-libs/zlib media-libs/alsa-lib pulseaudio? ( media-libs/libpulse ) x11-libs/libX11 virtual/opengl
|
||||
SLOT=0
|
||||
_eclasses_=toolchain-funcs 6001248ef162a5fa2a21ce132a212f6b multilib 5ca4e49abed8e3a2f7b56920eadee157 flag-o-matic 69394e25812406faa1f90edaf4969395 multiprocessing b4e253ab22cef7b1085e9b67c7a3b730 ninja-utils 38c85b725d0467e51954ea921b6c104b xdg-utils ac0e315a3688929e34ac75b139e7349a cmake 449b4785acace35308fe747fc939bde1 git-r3 2347f8fe2d392b2a091191f94be37e6f
|
||||
_md5_=9a57a90d8ade9ea8f75c0a8e778e8302
|
15
metadata/md5-cache/net-p2p/kubo-0.18.1
Normal file
15
metadata/md5-cache/net-p2p/kubo-0.18.1
Normal file
|
@ -0,0 +1,15 @@
|
|||
BDEPEND=dev-lang/go >=dev-lang/go-1.18 app-arch/unzip virtual/pkgconfig
|
||||
DEFINED_PHASES=compile install postinst test unpack
|
||||
DEPEND=acct-group/ipfs acct-user/ipfs sys-fs/fuse:0
|
||||
DESCRIPTION=Main implementation of IPFS
|
||||
EAPI=8
|
||||
HOMEPAGE=https://ipfs.io/ https://github.com/ipfs/kubo/
|
||||
INHERIT=bash-completion-r1 go-module systemd
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0
|
||||
RDEPEND=acct-group/ipfs acct-user/ipfs sys-fs/fuse:0
|
||||
RESTRICT=strip
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/ipfs/kubo/releases/download/v0.18.1/kubo-source.tar.gz -> kubo-0.18.1.tar.gz
|
||||
_eclasses_=toolchain-funcs 6001248ef162a5fa2a21ce132a212f6b multilib 5ca4e49abed8e3a2f7b56920eadee157 bash-completion-r1 f5e7a020fd9c741740756aac61bf75ff multiprocessing b4e253ab22cef7b1085e9b67c7a3b730 go-module f2c9bcab49079a176b3ae061c94bb344 systemd 5f4bb0758df2e483babf68cd517078ca
|
||||
_md5_=4843a8f7a721fed92d1c2d3d1a6cf198
|
1
net-p2p/kubo/Manifest
Normal file
1
net-p2p/kubo/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST kubo-0.18.1.tar.gz 13582874 BLAKE2B bc5ae67a476e796d774b47d29a5338cf2d1f1029197177bc69a36be255502bf12b45a8c6f5c4009ea100c749d73addc2195ce308e52883c8a36fecd08df26850 SHA512 eb6245abfef2079980f67f6a2dffad36346d06587df754d8477eeeda96464d9fa1428bb5d9ae628cca3ffa6a52c66c20e980c5a20ade389c1089aba947df6365
|
18
net-p2p/kubo/files/ipfs-at.service
Normal file
18
net-p2p/kubo/files/ipfs-at.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=InterPlanetary File System
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
CPUSchedulingPolicy=batch
|
||||
Environment=IPFS_PATH=
|
||||
ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
|
||||
ExecStop=/usr/bin/ipfs shutdown
|
||||
LimitNOFILE=8192
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
Restart=on-failure
|
||||
Type=simple
|
||||
User=%i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
net-p2p/kubo/files/ipfs.confd
Normal file
1
net-p2p/kubo/files/ipfs.confd
Normal file
|
@ -0,0 +1 @@
|
|||
IPFS_PATH=/var/lib/ipfs/.ipfs
|
17
net-p2p/kubo/files/ipfs.init
Normal file
17
net-p2p/kubo/files/ipfs.init
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
export IPFS_PATH=${IPFS_PATH:-/var/lib/ipfs/.ipfs}
|
||||
|
||||
pidfile="/run/ipfs.pid"
|
||||
command="/usr/bin/ipfs"
|
||||
command_args="daemon --enable-gc --migrate"
|
||||
command_user="ipfs:ipfs"
|
||||
start_stop_daemon_args="--wait 1000 -b -m \
|
||||
-1 /var/log/ipfs/ipfs.log \
|
||||
-2 /var/log/ipfs/ipfs.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
19
net-p2p/kubo/files/ipfs.service
Normal file
19
net-p2p/kubo/files/ipfs.service
Normal file
|
@ -0,0 +1,19 @@
|
|||
[Unit]
|
||||
Description=InterPlanetary File System
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
CPUSchedulingPolicy=batch
|
||||
Environment=IPFS_PATH=/var/lib/ipfs/.ipfs
|
||||
ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
|
||||
ExecStop=/usr/bin/ipfs shutdown
|
||||
Group=ipfs
|
||||
LimitNOFILE=8192
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
Restart=on-failure
|
||||
Type=simple
|
||||
User=ipfs
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
69
net-p2p/kubo/kubo-0.18.1.ebuild
Normal file
69
net-p2p/kubo/kubo-0.18.1.ebuild
Normal file
|
@ -0,0 +1,69 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit bash-completion-r1 go-module systemd
|
||||
|
||||
DESCRIPTION="Main implementation of IPFS"
|
||||
HOMEPAGE="https://ipfs.io/ https://github.com/ipfs/kubo/"
|
||||
SRC_URI="https://github.com/ipfs/${PN}/releases/download/v${PV}/kubo-source.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
acct-group/ipfs
|
||||
acct-user/ipfs
|
||||
sys-fs/fuse:0
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="dev-lang/go"
|
||||
|
||||
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md docs/ )
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_compile() {
|
||||
local mygoargs
|
||||
mygoargs=(
|
||||
-tags release
|
||||
)
|
||||
|
||||
ego build "${mygoargs[@]}" -o ipfs ./cmd/ipfs
|
||||
ego build "${mygoargs[@]}" -o ipfswatch ./cmd/ipfswatch
|
||||
|
||||
IPFS_PATH="" ./ipfs commands completion bash > ipfs-completion.bash || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test ./cmd/ipfs/... ./cmd/ipfswatch/...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ipfs
|
||||
dobin ipfswatch
|
||||
newbashcomp ipfs-completion.bash ipfs
|
||||
einstalldocs
|
||||
|
||||
systemd_dounit "${FILESDIR}/ipfs.service"
|
||||
systemd_newunit "${FILESDIR}/ipfs-at.service" "ipfs@.service"
|
||||
|
||||
newinitd "${FILESDIR}/ipfs.init" ipfs
|
||||
newconfd "${FILESDIR}/ipfs.confd" ipfs
|
||||
|
||||
keepdir /var/log/ipfs
|
||||
fowners -R ipfs:ipfs /var/log/ipfs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog 'To be able to use the ipfs service you will need to create the ipfs repository'
|
||||
elog '(eg: su -s /bin/sh -c "ipfs init -e" ipfs)'
|
||||
elog 'or change IPFS_PATH of /etc/conf.d/ipfs with another with proper permissions.'
|
||||
|
||||
# See https://bugs.gentoo.org/838238
|
||||
ewarn 'In case kubo CPU usage is too high run the next workaround'
|
||||
ewarn 'su -s /bin/sh -c "ipfs config profile apply lowpower" ipfs'
|
||||
ewarn 'Be aware that this will make your node less visible to other peers'
|
||||
}
|
Loading…
Reference in a new issue