diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-11 01:28:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-11 01:28:44 +0100 |
commit | b46b9834b3fbf80b22ccc12e95f660512cd0fa75 (patch) | |
tree | f7eb18ccc89e078e2f175e5249fe0d4dfdb5b104 /www-apps | |
parent | 62f7102650b24618880e8e6f08fcb8fbd235025b (diff) |
gentoo auto-resync : 11:07:2022 - 01:28:44
Diffstat (limited to 'www-apps')
24 files changed, 474 insertions, 0 deletions
diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz Binary files differindex c45cddce9f99..02ca0b661ffc 100644 --- a/www-apps/Manifest.gz +++ b/www-apps/Manifest.gz diff --git a/www-apps/jellyfin/Manifest b/www-apps/jellyfin/Manifest new file mode 100644 index 000000000000..f81ebba21a51 --- /dev/null +++ b/www-apps/jellyfin/Manifest @@ -0,0 +1,6 @@ +AUX jellyfin.init 475 BLAKE2B ac786dec5e89f1967b00c9b1283774b8c735821fae1a03fffbfcde5dc829ab764c51266b7d6a22ab65bff86eb6d4d4025903489e8b19350184aa60192c43af4e SHA512 1ce4600adad64e8535a4a0d87b17798e9e273af4c764746285169e4898ed341b275b4822ff90f93e50505223a31bcf0c2bf3566aebda786dbdf0f68099874c45 +AUX jellyfin.service 832 BLAKE2B e09a02c41f33aeabf5846946df1738e04516acf414041dc84cb8e107cedd546014ae1700af7994aa9643d26cc1edc99190615814353aad846af99d727702bb59 SHA512 f79b13cc2b0de47a31727affd633e9afde04d215fc28b82a6593e9aeaa8ff9c15796ab9aab4651922d2c14d2761e381c9d30c98ee56eeba57cf708bfde3ee73d +DIST jellyfin_10.8.1_amd64.tar.gz 99055788 BLAKE2B 1e4be154cfa4982e4f2a9f33b17e23dae3ed888b49c993a0f9dded2267904e41195c0dd0d9b2a47ac8bc10d7d4f45a52141d922e8a1b3348e29cba7e60a9d64c SHA512 ac755137c1859b7b322ff2369d92ebe98757a53c58fa49b9fd178a0b703d829d6c254f4e94a27a7b36b44b92e8b003d86a97cf55e620cd58008f89775f7e4cb4 +DIST jellyfin_10.8.1_arm64.tar.gz 95977557 BLAKE2B ecaee96df0e8f01cb31b08b7e3c55d4d906e9dbdada28353ea6653d1f365fa41d68ccc87e26b528d6b25c60b9ae3fc1a31823f7b6f661d12609c7e01bac8eff7 SHA512 4ed2748d5efd9fc18a2a4a0c4da24c24e33eb7962441c2864117d31ac1a952639dcc7968f3ff492015f7f1d9d054e93716f745527ca48778f6fdf91cef79e95f +EBUILD jellyfin-10.8.1.ebuild 1354 BLAKE2B e4523ee1fc79dc074200d65045242a0df5434775ecd5ed03161d3b17e8430c7c75211d2862f8610a727d72a353b35b118db14c645230a1cbcb541ca13f1c2852 SHA512 de232edb354d5f987eec9845193e9e9cef99b70726cfd7236877c2d674016ad252b155c8fc8fccdaaecca0c67475ef21748dabbbbf6aebd0bda0bbf1d6fdf64f +MISC metadata.xml 648 BLAKE2B a5c4c046a0cf41fdb5b432841f217621a55d44e990616f34116390ee46585a6cb0253a4022d8933ed1c36397bc411756abb225c3aedbc11a0bb9ae341a22c7b9 SHA512 21f9706c18ba6cda69d247a8d1afc8ca138882595ab8692396a3c606bbaf1a40c4d57e38fc915592710d0aa6a054f5e59210bc962967be2e8579df5d74d8ae63 diff --git a/www-apps/jellyfin/files/jellyfin.init b/www-apps/jellyfin/files/jellyfin.init new file mode 100644 index 000000000000..c4bdacd7c6d1 --- /dev/null +++ b/www-apps/jellyfin/files/jellyfin.init @@ -0,0 +1,14 @@ +#!/sbin/openrc-run + +pidfile="/run/${RC_SVCNAME}.pid" +command="/opt/jellyfin/jellyfin" +command_args="--logdir /var/log/jellyfin --cachedir /var/cache/jellyfin --configdir /etc/jellyfin --datadir /var/lib/jellyfin" +command_user="${RC_SVCNAME}:${RC_SVCNAME}" +command_background=true + +start_pre() { + # (Commands necessary to prepare to start the service) + # Ensure that our dirs are correct + checkpath --directory --owner jellyfin:jellyfin --mode 0775 \ + /var/cache/jellyfin +} diff --git a/www-apps/jellyfin/files/jellyfin.service b/www-apps/jellyfin/files/jellyfin.service new file mode 100644 index 000000000000..f20bfeb3e352 --- /dev/null +++ b/www-apps/jellyfin/files/jellyfin.service @@ -0,0 +1,38 @@ +[Unit] +Description = Jellyfin Media Server +After=syslog.target network.target + +[Service] +User=jellyfin +Group=jellyfin + +Type=simple +StateDirectory=jellyfin +CacheDirectory=jellyfin +LogsDirectory=jellyfin +ConfigurationDirectory=jellyfin +ExecStart=/opt/jellyfin/jellyfin --logdir "$LOGS_DIRECTORY" --cachedir "$CACHE_DIRECTORY" --configdir "$CONFIGURATION_DIRECTORY" --datadir "$STATE_DIRECTORY" +TimeoutStopSec=20 +KillMode=process +Restart=always + +PrivateTmp=yes +PrivateMounts=yes +ProtectHome=yes +ProtectSystem=full +NoNewPrivileges=yes +ProtectHostname=yes +ProtectClock=yes +ProtectKernelTunables=yes +ProtectKernelModules=yes +ProtectKernelLogs=yes +ProtectControlGroups=yes +RemoveIPC=true +RestrictRealtime=yes +DeviceAllow=char-drm rw +DeviceAllow=char-nvidia-frontend rw +DeviceAllow=char-nvidia-uvm rw + +[Install] +WantedBy=multi-user.target + diff --git a/www-apps/jellyfin/jellyfin-10.8.1.ebuild b/www-apps/jellyfin/jellyfin-10.8.1.ebuild new file mode 100644 index 000000000000..561fafc14add --- /dev/null +++ b/www-apps/jellyfin/jellyfin-10.8.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +DESCRIPTION="Jellyfin puts you in control of managing and streaming your media" +HOMEPAGE="https://jellyfin.readthedocs.io/en/latest/" + +SRC_URI=" + arm64? ( + https://repo.jellyfin.org/releases/server/linux/stable/combined/${PN}_${PV}_arm64.tar.gz + https://repo.jellyfin.org/archive/linux/stable/${PV}/combined/${PN}_${PV}_arm64.tar.gz + ) + amd64? ( + https://repo.jellyfin.org/releases/server/linux/stable/combined/${PN}_${PV}_amd64.tar.gz + https://repo.jellyfin.org/archive/linux/stable/${PV}/combined/${PN}_${PV}_amd64.tar.gz + )" + +RESTRICT="mirror test" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +DEPEND="acct-user/jellyfin" +RDEPEND="${DEPEND} + dev-util/lttng-ust:0 + media-video/ffmpeg[vpx,x264]" +BDEPEND="acct-user/jellyfin" +INST_DIR="/opt/${PN}" +QA_PREBUILT="${INST_DIR#/}/*.so ${INST_DIR#/}/jellyfin ${INST_DIR#/}/createdump" + +src_unpack() { + unpack ${A} + mv ${PN}_${PV} ${P} || die +} + +src_install() { + keepdir /var/log/jellyfin + fowners jellyfin:jellyfin /var/log/jellyfin + keepdir /etc/jellyfin + fowners jellyfin:jellyfin /etc/jellyfin + insinto ${INST_DIR} + dodir ${INST_DIR} + doins -r "${S}"/* + chmod 755 "${D}${INST_DIR}/jellyfin" + newinitd "${FILESDIR}/${PN}.init" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" +} diff --git a/www-apps/jellyfin/metadata.xml b/www-apps/jellyfin/metadata.xml new file mode 100644 index 000000000000..9a547e28ad43 --- /dev/null +++ b/www-apps/jellyfin/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>gentoo@wb9.se</email> + <name>Fredrik Eriksson</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="person"> + <email>candrews@gentoo.org</email> + <name>Craig Andrews</name> + </maintainer> + <upstream> + <remote-id type="github">jellyfin/jellyfin</remote-id> + <bugs-to>https://github.com/jellyfin/jellyfin/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/www-apps/prowlarr/Manifest b/www-apps/prowlarr/Manifest new file mode 100644 index 000000000000..5f431191c812 --- /dev/null +++ b/www-apps/prowlarr/Manifest @@ -0,0 +1,8 @@ +AUX prowlarr.init 139 BLAKE2B 5d2e870b142fd95c42459d5fbce0370a222c64385eb30d7642a1b9b42e76ba8ee3b6d4577e4fad1d6c27ac0018e966f8846fe3dd5451e67c2d42ed65e6ba551f SHA512 b32cadf3ee9ce142cb48c01cbc576dc8a56a03b55fe9e371cd4205a9c927001a988621827dad02618b1bd95cb44ace3fb90974340e8ce5d9f553c4be1ac8ba5e +AUX prowlarr.logrotate 88 BLAKE2B c5480a0b3f2f21aeb7632c6f7bd6fd95aab8c4fde55447281939f1e1fc67bc4786b64db74f56682af5705b1654eb4a1bdb3f62300001b46eb92536f62502c15e SHA512 fbf91e62a30a929bf6b8b24a2708ef7eaaee7e42e83247f2f2af88a6d6f83571aabf7e9e8fc14253cf5b0efd4271f34ce143e24bd92c67674eba279e332e3ba1 +AUX prowlarr.service 558 BLAKE2B 8bb379f30a93ce537016133627e54cf5d71b666f31db50c29659d0e44fc0df54374fce23cf1e2d20f59e19b9cfaab66253c79df718e86b402c0572ac781e1f58 SHA512 0cb3461a5160da1a617691040c7d6378e5d89f5809a12faa8cb182c8180bceb7a459d3d881cd3a96eee4928eac410533876b90c90d3d62dcde12ba2f0b9f328b +DIST Prowlarr.develop.0.4.2.1879.linux-core-arm.tar.gz 85892990 BLAKE2B 5e0cb3dba04f2cf1824527e0274cb8f11a8636de12b2ced43eaa234352860ec18bd83d65dc6fdccae2fd127fe9fefbd09578a43446dd0bc43f21d9c32b160d6e SHA512 115bf5c62091c514867129046d662bae17b721c3d46376493be5caf44f09929d6b0b3844ef93747bf56b64e9f4fdc4b5c0824ee6842f170776b7a4536ec4bef7 +DIST Prowlarr.develop.0.4.2.1879.linux-core-arm64.tar.gz 85152796 BLAKE2B 033a426af2ce96eba38606216bb1f75689c8f16dec460395f432f57041cbd28b197f9eacf0ad0f8cb2558a7980ae1b9c4eec70601b2bdd5ac96f77e9aeb93ea9 SHA512 f652f40713d27cc9486444b4fd0185e343bcc869b4798d22446097bff962bd3a51cf0f54a66a7a1acf07a6d7db29e8cf828427f3c81cd637c30618a19de85da6 +DIST Prowlarr.develop.0.4.2.1879.linux-core-x64.tar.gz 90155053 BLAKE2B 3baca7360f9d8e1a6c02783288423f01591b70895bae5909748f56d9a8e830d51809ebb378a0010a72f28dec76cc6563100d969bf224acc6ef966cccb40fa60d SHA512 a9c0a52a3ee02ed38f501307c59bdc90dee8ddd686fbd132de8625892cba89b4267594f3c4df714e488aad14612238c6400ccb82d3d0438c078ed92f61cd49ce +EBUILD prowlarr-0.4.2.1879.ebuild 1265 BLAKE2B b381689ece9f5b8b476b9bfb994c362a1f62d4aebcaed6e3663e10ef022fe6123f41a60fd8cbcd4c1b03eb8cedf436b8058a0749b1c4d5ab71355873f6de5a2a SHA512 df58f2ae28200e604dc04100fa8bdcf91134e4c0902b374fe8dc4cf35abf30fe3d2a40537c51b41db58db94c8160824f2527eb7ac7e24dbae291c77d0a2c8e13 +MISC metadata.xml 706 BLAKE2B 2e6aa23d0f7dd1e3c42ef8f7795260246e21cb6d678786befdf2a371c4b6222437bd1145c1bec5e93f35c613ee5ef001b791b13e995ef7e073966c88e1ffb15d SHA512 10c7e504364a6f3296474146cf8dd6ce632df77674c0f21768249388ce1584b3ff37c9053b9da943dae9bf9384beadde3a459b7ce383013663d801f3e2174f77 diff --git a/www-apps/prowlarr/files/prowlarr.init b/www-apps/prowlarr/files/prowlarr.init new file mode 100644 index 000000000000..831a4425a80a --- /dev/null +++ b/www-apps/prowlarr/files/prowlarr.init @@ -0,0 +1,7 @@ +#!/sbin/openrc-run + +pidfile="/run/prowlarr.pid" +command="/opt/prowlarr/Prowlarr" +command_user="prowlarr:prowlarr" +command_background=true + diff --git a/www-apps/prowlarr/files/prowlarr.logrotate b/www-apps/prowlarr/files/prowlarr.logrotate new file mode 100644 index 000000000000..5b7588e2b51a --- /dev/null +++ b/www-apps/prowlarr/files/prowlarr.logrotate @@ -0,0 +1,4 @@ +/var/lib/prowlarr/.config/prowlarr/logs/*.log{ + missingok + su prowlarr prowlarr +} diff --git a/www-apps/prowlarr/files/prowlarr.service b/www-apps/prowlarr/files/prowlarr.service new file mode 100644 index 000000000000..7fe9097bf338 --- /dev/null +++ b/www-apps/prowlarr/files/prowlarr.service @@ -0,0 +1,30 @@ +[Unit] +Description=An indexer manager/proxy to integrate with your various PVR apps. +After=syslog.target network.target + +[Service] +User=prowlarr +Group=prowlarr + +Type=simple +ExecStart=/opt/prowlarr/Prowlarr +TimeoutStopSec=20 +KillMode=process +Restart=always + +PrivateTmp=yes +PrivateDevices=yes +PrivateMounts=yes +ProtectHome=yes +ProtectSystem=full +NoNewPrivileges=yes +ProtectHostname=yes +ProtectClock=yes +ProtectKernelTunables=yes +ProtectKernelModules=yes +ProtectKernelLogs=yes +ProtectControlGroups=yes +RestrictRealtime=yes + +[Install] +WantedBy=multi-user.target diff --git a/www-apps/prowlarr/metadata.xml b/www-apps/prowlarr/metadata.xml new file mode 100644 index 000000000000..4540c8160d1d --- /dev/null +++ b/www-apps/prowlarr/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>mcrawford@eliteitminds.com</email> + <name>Mike Crawford</name> + <description>Primary maintainer</description> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="person"> + <email>candrews@gentoo.org</email> + <name>Craig Andrews</name> + </maintainer> + <upstream> + <remote-id type="github">Prowlarr/Prowlarr</remote-id> + <bugs-to>https://github.com/Prowlarr/Prowlarr/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/www-apps/prowlarr/prowlarr-0.4.2.1879.ebuild b/www-apps/prowlarr/prowlarr-0.4.2.1879.ebuild new file mode 100644 index 000000000000..1ffb456610d0 --- /dev/null +++ b/www-apps/prowlarr/prowlarr-0.4.2.1879.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +SRC_URI=" + amd64? ( https://github.com/Prowlarr/Prowlarr/releases/download/v${PV}/Prowlarr.develop.${PV}.linux-core-x64.tar.gz ) + arm? ( https://github.com/Prowlarr/Prowlarr/releases/download/v${PV}/Prowlarr.develop.${PV}.linux-core-arm.tar.gz ) + arm64? ( https://github.com/Prowlarr/Prowlarr/releases/download/v${PV}/Prowlarr.develop.${PV}.linux-core-arm64.tar.gz ) +" + +DESCRIPTION="An indexer manager/proxy to integrate with your various PVR apps" +HOMEPAGE="https://wiki.servarr.com/prowlarr" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +RESTRICT="bindist strip test" + +RDEPEND=" + acct-group/prowlarr + acct-user/prowlarr + dev-libs/icu + dev-util/lttng-ust:0 + dev-db/sqlite" + +S="${WORKDIR}/Prowlarr" + +src_install() { + newinitd "${FILESDIR}/${PN}.init" ${PN} + + keepdir /var/lib/${PN} + fowners -R ${PN}:${PN} /var/lib/${PN} + + insinto /etc/logrotate.d + insopts -m0644 -o root -g root + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + dodir "/opt/${PN}" + cp -R "${S}/." "${D}/opt/prowlarr" || die "Install failed!" + + systemd_dounit "${FILESDIR}/prowlarr.service" + systemd_newunit "${FILESDIR}/prowlarr.service" "${PN}@.service" +} diff --git a/www-apps/radarr/Manifest b/www-apps/radarr/Manifest new file mode 100644 index 000000000000..05d8398ed2f8 --- /dev/null +++ b/www-apps/radarr/Manifest @@ -0,0 +1,8 @@ +AUX radarr.init 129 BLAKE2B f3f8ebe12146d302019c2301ca5b7db3b3e3678447df36cb218b0c5f0f882e1a8f6e003f4e69536fa4ebbf31f4035bd167f4d98be961db41607635e3e49daca6 SHA512 b8e8baeab9f0efee8115d0a1230bf85796ddbb2653754efffc9ffa23ef61906e05ae83d5d4b1b2719b1292d1d5d67fb0f7efd19c0af9b474a15d34bcbd6ae40e +AUX radarr.logrotate 80 BLAKE2B e7ec91346dc522935b7f5ecd0d72bb2eb49a91666444808de8646d55da3ba79809c0eee9d872885000e0f87614a8547df6906850626e2c1a7fdea57f4a41a077 SHA512 2603fde64cbeaa10a06325da7c448d16e42b810e4fb767bc4e3caf90bfebc4d9a4109c807d0b8a71d36245d930e118eb22dca7c3c2ad430d4da03ecc5670c2d9 +AUX radarr.service 540 BLAKE2B ef6e69463aa577c9da67efc8f11c943531bde1e8ee4b56ae15f77e39c2900a1b11d5cd9e2c568d293b6852d80cbf6d3b6f15b9226ac3defc2e8b6be231eaa5ca SHA512 38af47dc6ddc5df3be1e6323147f0bec20b18994195eff3e6e6a61691f6c8beb9a058aa361f9b9c6a11c362f12bf86fb8f3f311a70ceceb78e18d909910a2840 +DIST Radarr.master.4.1.0.6175.linux-core-arm.tar.gz 92189393 BLAKE2B 4420ba558e7791b80d667adc08fd7d1cbbc9f2a3caac0e9ed79417a6325129e68f6bce262519ae1eafbb61046fd4aa011f36e9101a9b6d7023bf20469b983892 SHA512 13ef8a393c257a0bbd70c7b69ed9a768df69896e4d021af10262faea1508ec9ec9a129c9c9302bf6692ebadcdefb9270f8391668b09fbb16925f2c8ad6c24ab0 +DIST Radarr.master.4.1.0.6175.linux-core-arm64.tar.gz 91841527 BLAKE2B 864330f1cc8f654bbf0f6cd6db903c2679a4e4d6857f7e844d9999f0624d16790b845759558a6c013faee567aedd932cef27e04eca60c0fc0e6f7b7841970ca0 SHA512 02ba1440fe09ef5fc43263cbdbd546218ba4f7167b596a56edd510d05f9db382e8aa5901ad32c851c488492323e1351446e34a01d5b75638015879b5f3a598f9 +DIST Radarr.master.4.1.0.6175.linux-core-x64.tar.gz 97882876 BLAKE2B 9d14649d5059afe2497be25b5514bffa48e4b762b6f0683b57a250ceb5723f1ffb4041d5510fcc8287e4b56083d34ebed083ec7c6454525773578769def39778 SHA512 b3d88b2eb58a4b8125704299ddd9aaec306e9119eaffa142504e96d4d77ccefd77c226e24d6f32222811e5a0727194758940eae6890ad0927e2aa553777eaa60 +EBUILD radarr-4.1.0.6175.ebuild 1220 BLAKE2B 58e0893e860dba2820c314dbfccd95777483600fbe2c73ede2bd7a320264135a548f8dbc344956aa681c2a16b3ea45060e40dd733332228c3cb023ae8bc6dcf2 SHA512 acd71001682db5b1f17280b30859cba062efba542a120c97e5f1ee6a7de44c82266d7fd73eccec3e4f06242a34c6abca3535d20127b8a229e95a80810453ea63 +MISC metadata.xml 687 BLAKE2B 138345fa29c3630e2f8cb63a36ed6a88b17953aeb15889459e661f4c5f217bc7e847ea8a0aa1f5aed2f1da3c76afad97c594e6d2a8b50599d972c6e0504e81e3 SHA512 ec2330fc37df1aaaf1ffe87598f883080d1480fb848d8e7a711c7caae5faf4924e5b09916755045e86a5ea4a0483e28b54c5a7ca7a536d6de8cd1ccd4a4e1e8d diff --git a/www-apps/radarr/files/radarr.init b/www-apps/radarr/files/radarr.init new file mode 100644 index 000000000000..8abff709a970 --- /dev/null +++ b/www-apps/radarr/files/radarr.init @@ -0,0 +1,7 @@ +#!/sbin/openrc-run + +pidfile="/run/radarr.pid" +command="/opt/radarr/Radarr" +command_user="radarr:radarr" +command_background=true + diff --git a/www-apps/radarr/files/radarr.logrotate b/www-apps/radarr/files/radarr.logrotate new file mode 100644 index 000000000000..c6f14d75e1e4 --- /dev/null +++ b/www-apps/radarr/files/radarr.logrotate @@ -0,0 +1,4 @@ +/var/lib/radarr/.config/radarr/logs/*.log{ + missingok + su radarr radarr +} diff --git a/www-apps/radarr/files/radarr.service b/www-apps/radarr/files/radarr.service new file mode 100644 index 000000000000..daff14f543b1 --- /dev/null +++ b/www-apps/radarr/files/radarr.service @@ -0,0 +1,30 @@ +[Unit] +Description=A fork of Sonarr to work with movies à la Couchpotato. +After=syslog.target network.target + +[Service] +User=radarr +Group=radarr + +Type=simple +ExecStart=/opt/radarr/Radarr +TimeoutStopSec=20 +KillMode=process +Restart=always + +PrivateTmp=yes +PrivateDevices=yes +PrivateMounts=yes +ProtectHome=yes +ProtectSystem=full +NoNewPrivileges=yes +ProtectHostname=yes +ProtectClock=yes +ProtectKernelTunables=yes +ProtectKernelModules=yes +ProtectKernelLogs=yes +ProtectControlGroups=yes +RestrictRealtime=yes + +[Install] +WantedBy=multi-user.target diff --git a/www-apps/radarr/metadata.xml b/www-apps/radarr/metadata.xml new file mode 100644 index 000000000000..b097043a5b49 --- /dev/null +++ b/www-apps/radarr/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mcrawford@eliteitminds.com</email> + <name>Michael Crawford</name> + <description>Primary maintainer</description> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="person"> + <email>candrews@gentoo.org</email> + <name>Craig Andrews</name> + </maintainer> + <upstream> + <remote-id type="github">Radarr/Radarr</remote-id> + <bugs-to>https://github.com/Radarr/Radarr/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/www-apps/radarr/radarr-4.1.0.6175.ebuild b/www-apps/radarr/radarr-4.1.0.6175.ebuild new file mode 100644 index 000000000000..6aa69a1c190d --- /dev/null +++ b/www-apps/radarr/radarr-4.1.0.6175.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +SRC_URI=" + amd64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.master.${PV}.linux-core-x64.tar.gz ) + arm? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.master.${PV}.linux-core-arm.tar.gz ) + arm64? ( https://github.com/Radarr/Radarr/releases/download/v${PV}/Radarr.master.${PV}.linux-core-arm64.tar.gz ) +" + +DESCRIPTION="A fork of Sonarr to work with movies a la Couchpotato" +HOMEPAGE="https://www.radarr.video" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="bindist strip test" + +RDEPEND=" + acct-group/radarr + acct-user/radarr + media-video/mediainfo + dev-libs/icu + dev-util/lttng-ust:0 + dev-db/sqlite" + +S="${WORKDIR}/Radarr" + +src_install() { + newinitd "${FILESDIR}/${PN}.init" ${PN} + + keepdir /var/lib/${PN} + fowners -R ${PN}:${PN} /var/lib/${PN} + + insinto /etc/logrotate.d + insopts -m0644 -o root -g root + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + dodir "/opt/${PN}" + cp -R "${S}/." "${D}/opt/radarr" || die "Install failed!" + + systemd_dounit "${FILESDIR}/radarr.service" + systemd_newunit "${FILESDIR}/radarr.service" "${PN}@.service" +} diff --git a/www-apps/sonarr/Manifest b/www-apps/sonarr/Manifest new file mode 100644 index 000000000000..c59c0285b354 --- /dev/null +++ b/www-apps/sonarr/Manifest @@ -0,0 +1,6 @@ +AUX sonarr.init 153 BLAKE2B b5a4d6540daf982180186d4d46b58669d2afa0ef5cb2f56e2657ffc635c61276c2950f07c56cd6a0d4d55c5302406c28c39e37057882b3ca9d4d4e9382a2489a SHA512 ee42b108d004c4d428ce0db191e2b58e1223997419b3d553908c6ed3d3306eca0fd36d99d59015a20ba73034a4e059f16aa735f512afd247aa0470b945afa1d0 +AUX sonarr.logrotate 187 BLAKE2B ee4f6641669084be16aa4e5bc731d3f86dc50e2d5a71a469364ff86d2af5a9f5a124445d22f1da9e25b4af4dc6891ce9d594323df5757daca8a7dbaa07e2a6cb SHA512 a31988829ee49fcf0fc2d08c1627689d73de08cc08a344c0e01f3f42767c7feae0b89255a30b0f95f45291a284661f150eadeddc146e2d4d1b1d21f22fe8b2cd +AUX sonarr.service 586 BLAKE2B ee1adb8a3da32d9b7a0b9f51a08c05f2589e29b341773d5d83f49c3f16fab31f097c1e40c992062b7fde174970963cbede3fe5fc4c80c4340109f16ffc2ea7ce SHA512 b19daa0c08dea5349011567ade976a3c6a9d2edce85047d37eb583dbd83716ee6d461d46876c686bb8cf7de136b4b0c77a8b8c7c73dc94dbde6ee7d2559d3589 +DIST Sonarr.main.3.0.8.1507.linux.tar.gz 13647325 BLAKE2B bd269ec2e628075548c9c11db0f9d31f0b9a8c24bb55e0b7d0c58cc32c33423ca4988e9e63170fa6b5f49d438877a88402cebca3183fb98ac5995eb2a38e96e5 SHA512 32efec2207e853a1d7737fc72e9484e62c07a4b39f7e9c6ea0519bcc3220bf4bdb189c6b5dc30aa168912ba912a78c4c5832e2b84bc0a42c46844e76d3b9cc1a +EBUILD sonarr-3.0.8.1507.ebuild 942 BLAKE2B bde457686df66f85f5eda295c3c173b7c8657585a5c1ce656ea9f221e2ea88703f38b8665330d8fb3fe1f2978033b1e603f9b08fd9b0e8f4b52aef089793a1c8 SHA512 bcd01d40fafd7a6c5e4b04a99a5c1a65c5007304279b0060f6ca0d44781b7ffcdc9886427da00954525e1cdc0c7760d0d668b7f762a21742da899d36fc08e388 +MISC metadata.xml 674 BLAKE2B db1f3c4382004198336463c89e025c0f2683e9d778bed348670742f1dc5ec56339eecab92e9209f6ebae7ffe8d5684a3b8453536b9066af7116746fdb9020aea SHA512 8978b2f97a2ef7d361df75a78c397e25a82464a5fe99eb26c433dd6a27a810fc3fb8c6b530bf52a53e41dc1f9fe5dd7ab8f172a8331e790751bb1cb9405af3a4 diff --git a/www-apps/sonarr/files/sonarr.init b/www-apps/sonarr/files/sonarr.init new file mode 100644 index 000000000000..2ca5082cfbc0 --- /dev/null +++ b/www-apps/sonarr/files/sonarr.init @@ -0,0 +1,8 @@ +#!/sbin/openrc-run + +pidfile="/run/sonarr.pid" +command="mono" +command_args="/opt/sonarr/Sonarr.exe" +command_user="sonarr:sonarr" +command_background=true + diff --git a/www-apps/sonarr/files/sonarr.logrotate b/www-apps/sonarr/files/sonarr.logrotate new file mode 100644 index 000000000000..3d374d3ad3c2 --- /dev/null +++ b/www-apps/sonarr/files/sonarr.logrotate @@ -0,0 +1,7 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +/var/lib/sonarr/.config/NzbDrone/logs/*.txt{ + missingok + su sonarr sonarr +} diff --git a/www-apps/sonarr/files/sonarr.service b/www-apps/sonarr/files/sonarr.service new file mode 100644 index 000000000000..562ad1229fd8 --- /dev/null +++ b/www-apps/sonarr/files/sonarr.service @@ -0,0 +1,30 @@ +[Unit] +Description=Sonarr is a Smart PVR for newsgroup and bittorrent users. +After=syslog.target network.target network-online.target + +[Service] +User=sonarr +Group=sonarr + +Type=simple +ExecStart=/usr/bin/mono /opt/sonarr/Sonarr.exe +TimeoutStopSec=20 +KillMode=process +Restart=on-failure + +PrivateTmp=yes +PrivateDevices=yes +PrivateMounts=yes +ProtectHome=yes +ProtectSystem=full +NoNewPrivileges=yes +ProtectHostname=yes +ProtectClock=yes +ProtectKernelTunables=yes +ProtectKernelModules=yes +ProtectKernelLogs=yes +ProtectControlGroups=yes +RestrictRealtime=yes + +[Install] +WantedBy=multi-user.target diff --git a/www-apps/sonarr/metadata.xml b/www-apps/sonarr/metadata.xml new file mode 100644 index 000000000000..dac0f3be1aaa --- /dev/null +++ b/www-apps/sonarr/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>mcrawford@eliteitminds.com</email> + <name>Michael Crawford</name> + <description>Primary maintainer</description> +</maintainer> +<maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> +</maintainer> +<maintainer type="person"> + <email>candrews@gentoo.org</email> + <name>Craig Andrews</name> +</maintainer> + <upstream> + <remote-id type="github">Sonarr/Sonarr</remote-id> + <bugs-to>https://github.com/Sonarr/Sonarr/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/www-apps/sonarr/sonarr-3.0.8.1507.ebuild b/www-apps/sonarr/sonarr-3.0.8.1507.ebuild new file mode 100644 index 000000000000..36a30c93cf45 --- /dev/null +++ b/www-apps/sonarr/sonarr-3.0.8.1507.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +SRC_URI="https://download.sonarr.tv/v3/main/${PV}/Sonarr.main.${PV}.linux.tar.gz" + +DESCRIPTION="Sonarr is a Smart PVR for newsgroup and bittorrent users" +HOMEPAGE="https://www.sonarr.tv" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="bindist strip test" + +RDEPEND=" + acct-group/sonarr + acct-user/sonarr + >=dev-lang/mono-6.6.0.161 + media-video/mediainfo + dev-db/sqlite" + +S="${WORKDIR}/Sonarr" + +src_install() { + newinitd "${FILESDIR}/${PN}.init" ${PN} + + keepdir /var/lib/${PN} + fowners -R ${PN}:${PN} /var/lib/${PN} + + insinto /etc/logrotate.d + insopts -m0644 -o root -g root + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + dodir "/opt/${PN}" + cp -R "${S}/." "${D}/opt/${PN}" || die "Install failed!" + + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service" +} |