From abaa75b10f899ada8dd05b23cc03205064394bc6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 22 Jan 2021 20:28:19 +0000 Subject: gentoo resync : 22.01.2021 --- net-p2p/automatic/Manifest | 8 ++-- net-p2p/automatic/automatic-0.8.3-r1.ebuild | 67 +++++++++++++++++++++++++++++ net-p2p/automatic/files/automatic.confd | 2 +- net-p2p/automatic/files/automatic.initd | 1 - net-p2p/automatic/files/automatic.service | 12 ++++++ net-p2p/automatic/metadata.xml | 8 ++-- 6 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 net-p2p/automatic/automatic-0.8.3-r1.ebuild create mode 100644 net-p2p/automatic/files/automatic.service (limited to 'net-p2p/automatic') diff --git a/net-p2p/automatic/Manifest b/net-p2p/automatic/Manifest index f6583c1d331a..dcf006b0f3a5 100644 --- a/net-p2p/automatic/Manifest +++ b/net-p2p/automatic/Manifest @@ -1,6 +1,8 @@ -AUX automatic.confd 216 BLAKE2B 3fa337c3c0823e4769a7844f42e34c384cd0c12390e2e110c2951a46860de8da5f3fa69df8961d2ff727e20d33c93e06091576e3af6d023201339ec447de73c7 SHA512 1e8e9920575f7e2ea45270498bed774c32b9c1078fb179c3de3ef62e3d95e1667c3b9b7600333218a2dcddc317478698fee01d95208e76b9034762f7683b88a5 -AUX automatic.initd 764 BLAKE2B 79e29e0ed90ea396b4c4b8f9f66a42c1904e1935b89b662cc7f4d37f6905ee647eacc7de657066f41631deb60e44638b5db2f5cfd82255f77107ce97f5468277 SHA512 892fc15a51c3306db4edb9081df560e32af78ef35d6f982e47a6b272a5facf71f4503b5a885a753e3b99af607e09a81b8fba560b56df752e88431a0a31538f9b +AUX automatic.confd 214 BLAKE2B df9c0f34aee873dcc8db21e57b650926362a0030d13903317fb51aeb45ffd16b8c5c1b93ec6dd5be4ed48218285d333627cbfafee5401752744cbc9fa4d44d83 SHA512 8b8f6a1c3da195987c053639a564dc152d525f68da7891d54988e2dfd931bee7d91595734316ade23c29edd56cf3026bf78e19de04eda512cd2a6369ea5a6b6e +AUX automatic.initd 745 BLAKE2B 9e54668ffcff2502ae864ca2f645e71f991b6fa2f1381a7ca1104ce8a19fc5706d73bb50f08513b89b62de28c4dc203030197cc759509ae3de93c31dcc03a92e SHA512 bb576a0aeea4d371d5b44e07a2dea1cf4e6e515a23b8e7e8c274831f32fda4e3be64245c08f37878b0bc5da371880c6d1904c87463ad0704305cc7b0818a2b3f AUX automatic.logrotate 94 BLAKE2B 6f505920dca44514ccec80d4bd917c5254d6955aad195fa1b830f0daee93d9465a445a3fc3966b9ff221e51a0d06380eb963a56ff942833fbb3a83f34dd6fd19 SHA512 91353a49d18eaac4ad65b5733a333bb173233d45622e8d421bb6ed2b3c0e8443b22f951f90a8f8964d13921debb6289a4c911ca40a8484a648f210a206589771 +AUX automatic.service 303 BLAKE2B 90b2d3ed19c6347b31b90bca68f482d580f56b62212eea17b6d0b8a10bd7ee15ea3937ece839485da7efba4d61597c032f1dccd9fc0802967f7bf0fbf33f6b4d SHA512 4e398133d71b834855d77c6d23f8d4ae87100c48661825797ccfc0e7613933a2a8dd4eddffeac51ffbaa1619847d2e2de0b4ecb20bfa1b13f9596cb57cda392c DIST automatic-0.8.3.tar.gz 102181 BLAKE2B cdba7706f16eb552d2da960ae03206acce45149d6e8d8f32654c05b6dc3293368afe3c44a7c0d254fd895c7f5fe30fe541139375793a143c4a3d605d27486824 SHA512 34061065d53ab362c9bfab9b66aebf7090b7079e5988b1984398410ab07ca2bdfdf3c65dd90bb076b6189120877784294484803d4ce5fa813d3bc13207aeebdd +EBUILD automatic-0.8.3-r1.ebuild 1712 BLAKE2B b0468fb8ab99eec1a00d3b8f5605cc21350d5dfa18a5560bae79668b2fbc5ab6059fc2f408bd4a1c86c7e0b98b88db1445d8167dd99c2054dc13497d47587d60 SHA512 23b3bc1f2d035f8b16593f4ab730ac88a900c00985fa28fc8909c0aaae9d3ea2f6456239ad245abd9588070b9015e5407a16b02d40a0d664338881104e329caf EBUILD automatic-0.8.3.ebuild 1625 BLAKE2B 7b6d3dd41a9de064b13f17aca11dfa4c0e611547ab24cbc2aada82faa54cadc6b1df0845c8fb983282d39894f426a496322a7fcc7b87764c330735b1bf0aa44c SHA512 3b5f8123160274ec07c4e12d57ba6a182e4340ab4a2ce2bd39d05d7e93a5acad8aa3dbc5bad6a866a206eeb7724393845a28f9c02ea1635c7bfbaef33f343a94 -MISC metadata.xml 840 BLAKE2B 1137eb3e376a5bde360d41fe3562e5b3b7baa3f591345803de5d93aae5f98bec36684d6cd0f32d0d8253406e926a21ef50342aee801bb9ab9ac1b16a00084554 SHA512 f117c7d4887c9e54a16fdfdd31dcc7021c065c789ad13f0f8dd5e7fd14833c5279f06d8edd2211708e546896bc484f41953cb1a18d67cc4349166af86f261013 +MISC metadata.xml 694 BLAKE2B a2c08510e302ad62a86e3be5d9b734ebb04f38b56f834dbe0b5091f290aae33f220351f9ecaa5f52767fc360c2b2e071cc4a2944cf3544dc2140d5c4cad6b3a1 SHA512 8496ccd57e988c774937451236eb8a492c4a4f359fe0ec01d758fddec231de06ac59586dc3605209d7ff7aa3c81c5c0924fbf83e3df9226fed06c9c5eb45f1e7 diff --git a/net-p2p/automatic/automatic-0.8.3-r1.ebuild b/net-p2p/automatic/automatic-0.8.3-r1.ebuild new file mode 100644 index 000000000000..1edc2fdd4e89 --- /dev/null +++ b/net-p2p/automatic/automatic-0.8.3-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools readme.gentoo-r1 systemd + +DESCRIPTION="RSS downloader for Tranmission" +HOMEPAGE="https://github.com/1100101/Automatic" +SRC_URI="https://github.com/1100101/Automatic/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="acct-user/automatic + dev-libs/libxml2:2 + dev-libs/libpcre:3 + net-misc/curl" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P^}" + +DOC_CONTENTS="To run automatic you should move /etc/automatic.conf-sample +to /etc/automatic.conf and config it.\\n +If things go wrong, increase verbose level in /etc/conf.d/automatic +and check log file in /var/log/automatic/\\n" + +src_prepare() { + default + + # https://bugs.gentoo.org/426262 + mv configure.{in,ac} || die "rename failed" + + # Remove CFLAGS and CXXFLAGS defined by upstream + sed -i -e 's/CFLAGS="-Wdeclaration-after-statement -O3 -funroll-loops"/CFLAGS+=""/' \ + -e 's/CXXFLAGS="-O3 -funroll-loops"/CXXFLAGS+=""/' \ + configure.ac || die "sed for CXXFLAGS and CFLAGS failed" + + # tests fail with network-sandbox + sed -i -e '/check_PROGRAMS /s/http_test //' \ + -e '/check_PROGRAMS /s/prowl_test //' src/tests/Makefile.am \ + || die "sed failed for Makefile.am" + + eautoreconf +} + +src_install() { + default + + newinitd "${FILESDIR}"/automatic.initd automatic + newconfd "${FILESDIR}"/automatic.confd automatic + systemd_dounit "${FILESDIR}"/automatic.service + + insinto /etc/logrotate.d + newins "${FILESDIR}"/automatic.logrotate automatic + + readme.gentoo_create_doc + + diropts -o automatic -g automatic -m 0700 + keepdir /var/log/automatic/ +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/net-p2p/automatic/files/automatic.confd b/net-p2p/automatic/files/automatic.confd index 5e9ae5d69625..6f27e48781a8 100644 --- a/net-p2p/automatic/files/automatic.confd +++ b/net-p2p/automatic/files/automatic.confd @@ -1,7 +1,7 @@ # Config file for /etc/init.d/automatic # Various options. -# run `samplicator -h` for valid cmdline options +# run `automatic -h` for valid cmdline options OPTS="-v 1 -a -l /var/log/automatic/automatic.log" # Receiver config file diff --git a/net-p2p/automatic/files/automatic.initd b/net-p2p/automatic/files/automatic.initd index a5c6189b56b1..4eaa1dc810cd 100644 --- a/net-p2p/automatic/files/automatic.initd +++ b/net-p2p/automatic/files/automatic.initd @@ -15,7 +15,6 @@ EXEC=${EXEC:-/usr/bin/automatic} depend() { need net - provide automatic } start() { diff --git a/net-p2p/automatic/files/automatic.service b/net-p2p/automatic/files/automatic.service new file mode 100644 index 000000000000..4b86320e4791 --- /dev/null +++ b/net-p2p/automatic/files/automatic.service @@ -0,0 +1,12 @@ +[Unit] +Description=RSS downloader that adds torrents directly to Transmission + +[Service] +Type=simple +User=automatic +ExecStart=/usr/bin/automatic -v 1 -a -l /var/log/automatic/automatic.log -c /etc/automatic.conf +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGINT + +[Install] +WantedBy=multi-user.target diff --git a/net-p2p/automatic/metadata.xml b/net-p2p/automatic/metadata.xml index 0bd565db165a..26484715c449 100644 --- a/net-p2p/automatic/metadata.xml +++ b/net-p2p/automatic/metadata.xml @@ -10,13 +10,11 @@ Proxy Maintainers -Automatic is a RSS daemon that downloads torrent files -matching regular expression patterns at certain intervals. -It is capable of adding downloaded torrents directly to Transmission. + Automatic is a RSS daemon that downloads torrent files + matching regular expression patterns at certain intervals. + It is capable of adding downloaded torrents directly to Transmission. - https://github.com/1100101/Automatic/blob/master/ChangeLog - https://github.com/1100101/Automatic/issues 1100101/Automatic -- cgit v1.2.3