nextcloud-notify_push-0.2.0.ebuild

Download (5.7 KB)

# Copyright 2017-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

CRATES="
addr2line-0.15.2
adler-1.0.2
ahash-0.7.4
aho-corasick-0.7.18
ansi_term-0.11.0
ansi_term-0.12.1
arrayvec-0.5.2
async-stream-0.3.2
async-stream-impl-0.3.2
async-trait-0.1.50
atoi-0.3.3
atoi-0.4.0
atty-0.2.14
autocfg-0.1.7
autocfg-1.0.1
backtrace-0.3.60
base64-0.12.3
base64-0.13.0
beef-0.5.0
bitflags-1.2.1
bitvec-0.19.5
block-buffer-0.9.0
buf_redux-0.8.4
build_const-0.2.2
bumpalo-3.7.0
byteorder-1.4.3
bytes-1.0.1
cc-1.0.68
cfg-if-1.0.0
chrono-0.4.19
chunked_transfer-1.4.0
clap-2.33.3
color-eyre-0.5.11
color-spantrace-0.1.6
combine-4.5.2
cpufeatures-0.1.4
crc-1.8.1
crc16-0.4.0
crossbeam-channel-0.5.1
crossbeam-queue-0.3.2
crossbeam-utils-0.8.5
crypto-mac-0.10.0
dashmap-4.0.2
derivative-2.2.0
digest-0.9.0
dirs-3.0.2
dirs-sys-0.3.6
dotenv-0.15.0
dtoa-0.4.8
either-1.6.1
encoding_rs-0.8.28
eyre-0.6.5
flexi_logger-0.18.0
fnv-1.0.7
form_urlencoded-1.0.1
funty-1.1.0
futures-0.3.15
futures-channel-0.3.15
futures-core-0.3.15
futures-executor-0.3.15
futures-io-0.3.15
futures-macro-0.3.15
futures-sink-0.3.15
futures-task-0.3.15
futures-util-0.3.15
generic-array-0.14.4
getrandom-0.1.16
getrandom-0.2.3
gimli-0.24.0
glob-0.3.0
h2-0.3.3
hashbrown-0.11.2
hashbrown-0.9.1
hashlink-0.7.0
headers-0.3.4
headers-core-0.2.0
heck-0.3.3
hermit-abi-0.1.18
hex-0.4.3
hmac-0.10.1
http-0.2.4
http-auth-basic-0.1.3
http-body-0.4.2
httparse-1.4.1
httpdate-1.0.1
hyper-0.14.9
hyper-rustls-0.22.1
idna-0.2.3
indenter-0.3.3
indexmap-1.6.2
input_buffer-0.4.0
instant-0.1.9
ipnet-2.3.1
itoa-0.4.7
js-sys-0.3.51
lazy_static-1.4.0
lexical-core-0.7.6
libc-0.2.97
libm-0.2.1
libsqlite3-sys-0.22.2
lock_api-0.4.4
log-0.4.14
logos-0.12.0
logos-derive-0.12.0
maplit-1.0.2
matchers-0.0.1
matches-0.1.8
md-5-0.9.1
memchr-2.4.0
mime-0.3.16
mime_guess-2.0.3
mini-redis-0.4.0
miniz_oxide-0.4.4
mio-0.7.13
miow-0.3.7
multipart-0.17.1
nextcloud-config-parser-0.2.0
nextcloud_appinfo-0.6.0
nom-6.1.2
ntapi-0.3.6
num-bigint-0.3.2
num-bigint-0.4.0
num-bigint-dig-0.7.0
num-integer-0.1.44
num-iter-0.1.42
num-traits-0.2.14
num_cpus-1.13.0
numtoa-0.1.0
object-0.25.3
once_cell-1.8.0
opaque-debug-0.3.0
owo-colors-1.3.0
parking_lot-0.11.1
parking_lot_core-0.8.3
parse-display-0.5.0
parse-display-derive-0.5.0
pem-0.8.3
percent-encoding-2.1.0
peresil-0.3.0
php-literal-parser-0.2.10
pin-project-1.0.7
pin-project-internal-1.0.7
pin-project-lite-0.2.6
pin-utils-0.1.0
pkg-config-0.3.19
ppv-lite86-0.2.10
proc-macro-error-1.0.4
proc-macro-error-attr-1.0.4
proc-macro-hack-0.5.19
proc-macro-nested-0.1.7
proc-macro2-1.0.27
quick-error-1.2.3
quote-1.0.9
radium-0.5.3
rand-0.7.3
rand-0.8.4
rand_chacha-0.2.2
rand_chacha-0.3.1
rand_core-0.5.1
rand_core-0.6.3
rand_hc-0.2.0
rand_hc-0.3.1
redis-0.20.1
redox_syscall-0.2.8
redox_termios-0.1.2
redox_users-0.4.0
regex-1.5.4
regex-automata-0.1.10
regex-syntax-0.6.25
remove_dir_all-0.5.3
reqwest-0.11.3
rfc7239-0.1.0
ring-0.16.20
rsa-0.4.0
rustc-demangle-0.1.19
rustls-0.19.1
ryu-1.0.5
safemem-0.3.3
scoped-tls-1.0.0
scopeguard-1.1.0
sct-0.6.1
semver-0.10.0
semver-parser-0.7.0
serde-1.0.126
serde_derive-1.0.126
serde_json-1.0.64
serde_urlencoded-0.7.0
sha-1-0.9.6
sha1-0.6.0
sha2-0.9.5
sharded-slab-0.1.1
signal-hook-registry-1.4.0
simple_asn1-0.5.3
slab-0.4.3
smallvec-1.6.1
socket2-0.4.0
source-span-2.2.1
spin-0.5.2
sqlformat-0.1.6
sqlx-0.5.5
sqlx-core-0.5.5
sqlx-macros-0.5.5
sqlx-rt-0.5.5
static_assertions-1.1.0
stringprep-0.1.2
strsim-0.8.0
structmeta-0.1.3
structmeta-derive-0.1.3
structopt-0.3.21
structopt-derive-0.4.14
subtle-2.4.0
sxd-document-0.3.2
sxd-xpath-0.4.2
syn-1.0.73
synstructure-0.12.4
tap-1.0.1
tempfile-3.2.0
termion-1.5.6
textwrap-0.11.0
thiserror-1.0.25
thiserror-impl-1.0.25
thread_local-1.1.3
time-0.1.43
tinyvec-1.2.0
tinyvec_macros-0.1.0
tokio-1.7.0
tokio-macros-1.2.0
tokio-rustls-0.22.0
tokio-stream-0.1.6
tokio-tungstenite-0.13.0
tokio-tungstenite-0.14.0
tokio-util-0.6.7
tower-service-0.3.1
tracing-0.1.26
tracing-attributes-0.1.15
tracing-core-0.1.18
tracing-error-0.1.2
tracing-futures-0.2.5
tracing-log-0.1.2
tracing-serde-0.1.2
tracing-subscriber-0.2.18
try-lock-0.2.3
tungstenite-0.12.0
tungstenite-0.13.0
twoway-0.1.8
typed-arena-1.7.0
typenum-1.13.0
uncased-0.9.6
unicase-2.6.0
unicode-bidi-0.3.5
unicode-normalization-0.1.19
unicode-segmentation-1.7.1
unicode-width-0.1.8
unicode-xid-0.2.2
unicode_categories-0.1.1
untrusted-0.7.1
ureq-2.1.1
url-2.2.2
utf-8-0.7.6
utf8-ranges-1.0.4
vcpkg-0.2.13
vec_map-0.8.2
version_check-0.9.3
want-0.3.0
warp-0.3.1
warp-real-ip-0.2.0
wasi-0.10.2+wasi-snapshot-preview1
wasi-0.9.0+wasi-snapshot-preview1
wasm-bindgen-0.2.74
wasm-bindgen-backend-0.2.74
wasm-bindgen-futures-0.4.24
wasm-bindgen-macro-0.2.74
wasm-bindgen-macro-support-0.2.74
wasm-bindgen-shared-0.2.74
web-sys-0.3.51
webpki-0.21.4
webpki-roots-0.21.1
whoami-1.1.2
winapi-0.3.9
winapi-i686-pc-windows-gnu-0.4.0
winapi-x86_64-pc-windows-gnu-0.4.0
winreg-0.7.0
wyz-0.2.0
xpath_reader-0.5.3
yansi-0.5.0
zeroize-1.3.0
zeroize_derive-1.1.0
"

inherit cargo systemd

DESCRIPTION="Push daemon for Nextcloud clients"
HOMEPAGE="https://github.com/nextcloud/notify_push"
SRC_URI="https://github.com/nextcloud/notify_push/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	$(cargo_crate_uris ${CRATES})"
LICENSE="MIT Apache-2.0 BSD GPL-3 ISC MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="test"

RDEPEND="acct-group/nobody
	acct-user/nobody"

S="${WORKDIR}/notify_push-${PV}"

QA_FLAGS_IGNORED="usr/bin/${PN}"

src_install() {
	cargo_src_install
	einstalldocs

	# default name is too generic
	mv "${ED}/usr/bin/notify_push" "${ED}/usr/bin/${PN}" || die

	newconfd "${FILESDIR}"/${PN}-r1.confd ${PN}
	newinitd "${FILESDIR}"/${PN}-r1.init ${PN}
	systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service

	# restrict access because conf.d entry could contain
	# database credentials
	fperms 0640 /etc/conf.d/${PN}
}

Thank you!