summaryrefslogtreecommitdiff
path: root/net-p2p/automatic
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-p2p/automatic
reinit the tree, so we can have metadata
Diffstat (limited to 'net-p2p/automatic')
-rw-r--r--net-p2p/automatic/Manifest7
-rw-r--r--net-p2p/automatic/automatic-0.8.3.ebuild64
-rw-r--r--net-p2p/automatic/files/automatic.confd8
-rw-r--r--net-p2p/automatic/files/automatic.initd36
-rw-r--r--net-p2p/automatic/files/automatic.logrotate8
-rw-r--r--net-p2p/automatic/metadata.xml23
6 files changed, 146 insertions, 0 deletions
diff --git a/net-p2p/automatic/Manifest b/net-p2p/automatic/Manifest
new file mode 100644
index 000000000000..a06246dce0f2
--- /dev/null
+++ b/net-p2p/automatic/Manifest
@@ -0,0 +1,7 @@
+AUX automatic.confd 216 SHA256 fc1979292469946ed62ec860f0c12c219cae691eb292b709c75493baec2757a6 SHA512 1e8e9920575f7e2ea45270498bed774c32b9c1078fb179c3de3ef62e3d95e1667c3b9b7600333218a2dcddc317478698fee01d95208e76b9034762f7683b88a5 WHIRLPOOL c8a11778a8dde8f2abf6a8c7fb0a3c13a7eebc90b8b98ad7a2d80036ce58e63f4edc319adba7520a08b1062eca2de511a695f0f0138f97e1f3b280f29986ddd1
+AUX automatic.initd 764 SHA256 7a88a7515946bd3254516ee99eb7d86643574e32f15b89d6aab846adf91cd02b SHA512 892fc15a51c3306db4edb9081df560e32af78ef35d6f982e47a6b272a5facf71f4503b5a885a753e3b99af607e09a81b8fba560b56df752e88431a0a31538f9b WHIRLPOOL 5bae4f7c6d9bad042d0a6b6e41f12e0b27be5421ed8e1542fb6f013101738fdcb7bd0de01c8c8ffa0f33df5167eec09673132882c9e492f1495a543c65e52185
+AUX automatic.logrotate 94 SHA256 68f9b3cd67105809519e031b4b8e25f25bfa9e046572e807abb43181ac924ae9 SHA512 91353a49d18eaac4ad65b5733a333bb173233d45622e8d421bb6ed2b3c0e8443b22f951f90a8f8964d13921debb6289a4c911ca40a8484a648f210a206589771 WHIRLPOOL 7837683ee9d7392e1a647af9e4179e64df45e48a54f5c71220bb121f279575e2c488e51db9c996d5c32c8186519fdd9cd28e1e1ee8463f63a656e23dd9897c0a
+DIST automatic-0.8.3.tar.gz 102181 SHA256 1b5c5c65989d12dc7dcdd031dd7d0c1efad80062d615f63836ac86bd010908b8 SHA512 34061065d53ab362c9bfab9b66aebf7090b7079e5988b1984398410ab07ca2bdfdf3c65dd90bb076b6189120877784294484803d4ce5fa813d3bc13207aeebdd WHIRLPOOL 1c5703919b9009887c2b51428839b5e90fae493e6b5216e1e5aa199448c65ed71086c9e5308b874c8021a0a26aa01e41ea87cfa83d9e9f5bed56c144b5354939
+EBUILD automatic-0.8.3.ebuild 1625 SHA256 c9ec6ebe4214d5f7b6bdcb01c18fe7bca28bdaf5cdead7c03f2bb03329333d72 SHA512 3b5f8123160274ec07c4e12d57ba6a182e4340ab4a2ce2bd39d05d7e93a5acad8aa3dbc5bad6a866a206eeb7724393845a28f9c02ea1635c7bfbaef33f343a94 WHIRLPOOL 32bbfc8e25ba3f099067aca725f743b340b38be5bb8933bfb148d9f1477b55291b9ca82f21bb58ce51e99127c787923ac07017b4e669bb242afbf633cd202233
+MISC ChangeLog 896 SHA256 2eefcc53865dc13233e68f1e2b6d866757a3b6a8ca3568938f79d055f9cf566e SHA512 7ad0cad3c0261654430459d3a3bbb3e649dfbad4d9ff7bb3b3d69821f551b7df47f361a64fd30861b4787054ed87f2e0d33bb4e5020c21d55746abe4902a3cc8 WHIRLPOOL 93c4b914019a9fca81b17d0135e349d3403600cb0f0802d6aa5c7773bc507e806ab0ffb2864071b0568f2760ef673d99c7a992c3b7b9d3026a9560c9f07c14c2
+MISC metadata.xml 917 SHA256 1e06ed0de7b23a7c0c4b9237e06ea73fa079ce0b68a91edd4924d4b8125f1ad2 SHA512 d4d710fc933d81b9b3099bd3ba1054406ee028c43ee600db936312521eb2f148dbb40b1b8cf78c00949072138a61e09445c1fb1e024a1580f4c626473e2605de WHIRLPOOL b6d18a3d6928f0a2565b62deb7e2cef7bae64d84791cd6faff9ee2cfeaae4ab42736ef27952c1133ddbb1f746914fe80518a19cf2d46a07dcbc772f80cec6154
diff --git a/net-p2p/automatic/automatic-0.8.3.ebuild b/net-p2p/automatic/automatic-0.8.3.ebuild
new file mode 100644
index 000000000000..3eb191d1c6b1
--- /dev/null
+++ b/net-p2p/automatic/automatic-0.8.3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools user
+
+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"
+S="${WORKDIR}/${P^}"
+
+RDEPEND="dev-libs/libxml2:2
+ dev-libs/libpcre:3
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ app-admin/logrotate"
+
+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"
+
+ eautoreconf
+}
+
+src_install() {
+ # Install and copy documentation
+ default
+
+ # Install Gentoo init script and its config
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ # Create automatic related directories
+ keepdir /var/lib/${PN}/
+ keepdir /var/log/${PN}/
+
+ # Install logrotate for automatic
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotate ${PN}
+}
+
+pkg_postinst() {
+ # Add automatic group and user to system
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+
+ elog ""
+ elog "To run automatic you should move /etc/automatic.conf-sample to /etc/automatic.conf and config it."
+ elog "If things go wrong, increase verbose level in /etc/conf.d/automatic and check log file in /var/log/automatic/"
+ elog ""
+}
diff --git a/net-p2p/automatic/files/automatic.confd b/net-p2p/automatic/files/automatic.confd
new file mode 100644
index 000000000000..5e9ae5d69625
--- /dev/null
+++ b/net-p2p/automatic/files/automatic.confd
@@ -0,0 +1,8 @@
+# Config file for /etc/init.d/automatic
+
+# Various options.
+# run `samplicator -h` for valid cmdline options
+OPTS="-v 1 -a -l /var/log/automatic/automatic.log"
+
+# Receiver config file
+CONFIG="-c /etc/automatic.conf"
diff --git a/net-p2p/automatic/files/automatic.initd b/net-p2p/automatic/files/automatic.initd
new file mode 100644
index 000000000000..a5c6189b56b1
--- /dev/null
+++ b/net-p2p/automatic/files/automatic.initd
@@ -0,0 +1,36 @@
+#!/sbin/openrc-run
+
+NAME=${SVCNAME##*.}
+if [ -n "${NAME}" -a "${SVCNAME}" != "automatic" ]; then
+ PID="/run/automatic.${NAME}.pid"
+ PNAME=$(echo ${RC_SVCNAME} | sed 's/\..*//g')
+ CONF_DEFAULT="/etc/conf.d/automatic.${NAME}"
+else
+ PID="/run/automatic.pid"
+ PNAME=${RC_SVCNAME}
+ CONF_DEFAULT="/etc/conf.d/automatic"
+fi
+CONF=${CONF:-${CONF_DEFAULT}}
+EXEC=${EXEC:-/usr/bin/automatic}
+
+depend() {
+ need net
+ provide automatic
+}
+
+start() {
+ ebegin "Starting automatic"
+ start-stop-daemon --start --quiet --make-pidfile --pidfile ${PID} --exec ${EXEC} -- ${OPTS} ${CONFIG}
+ eend $?
+}
+
+start_post() {
+ pgrep -n $(echo ${PNAME}) > ${PID}
+}
+
+stop() {
+ ebegin "Stopping automatic"
+ start-stop-daemon --stop --quiet --pidfile ${PID}
+ rm -f ${PID}
+ eend $?
+}
diff --git a/net-p2p/automatic/files/automatic.logrotate b/net-p2p/automatic/files/automatic.logrotate
new file mode 100644
index 000000000000..1af9c5c57cbc
--- /dev/null
+++ b/net-p2p/automatic/files/automatic.logrotate
@@ -0,0 +1,8 @@
+/var/log/automatic/*.log {
+ daily
+ missingok
+ rotate 90
+ compress
+ notifempty
+ copytruncate
+}
diff --git a/net-p2p/automatic/metadata.xml b/net-p2p/automatic/metadata.xml
new file mode 100644
index 000000000000..6c232fd6b845
--- /dev/null
+++ b/net-p2p/automatic/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>spiderx@spiderx.dp.ua</email>
+ <name>Vladimir Pavljuchenkov</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+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.
+ </longdescription>
+ <upstream>
+ <changelog>https://github.com/1100101/Automatic/blob/master/ChangeLog</changelog>
+ <bugs-to>https://github.com/1100101/Automatic/issues</bugs-to>
+ <remote-id type="github">1100101/Automatic</remote-id>
+ </upstream>
+</pkgmetadata>