summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Kojouharov2015-11-02 09:48:03 +0200
committerViktor Kojouharov2015-11-02 09:51:05 +0200
commitaff86349fff04e6de1c6d442689d96f814e8590b (patch)
treec1aff8f9a4bb0abbe0e4d68f1227375b94e018bf
downloadaur-aff86349fff04e6de1c6d442689d96f814e8590b.tar.gz
initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD52
-rw-r--r--readeef-tmpfile.conf1
-rw-r--r--readeef-user.conf1
-rw-r--r--readeef.cfg72
-rw-r--r--readeef.install8
-rw-r--r--readeef.service12
7 files changed, 170 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..98ae6cf85f4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = readeef
+ pkgdesc = Self-hosted feed aggregator
+ pkgver = 1.0.0
+ pkgrel = 1
+ install = readeef.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = go
+ makedepends = git
+ backup = etc/readeef/readeef.cfg
+ source = https://github.com/urandom/readeef/archive/1.0.0.tar.gz
+ source = readeef.service
+ source = readeef.cfg
+ source = readeef-user.conf
+ source = readeef-tmpfile.conf
+ md5sums = 8fd5d126d3429d572ba74ee3ff66f562
+ md5sums = c34b33ec0e1b49823ebc90011644fb85
+ md5sums = 90ee66da93df0331b127de5c1bde3d65
+ md5sums = eb803cfce3dfb686ee7bf035db9c60fc
+ md5sums = d3c89d35743e09890928dea50e7facb2
+
+pkgname = readeef
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f68432beab7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+pkgname=readeef
+pkgver="1.0.0"
+pkgrel=1
+pkgdesc="Self-hosted feed aggregator"
+arch=('i686' 'x86_64')
+license=('GPL')
+makedepends=('go' 'git')
+install="readeef.install"
+source=(
+ "https://github.com/urandom/$pkgname/archive/$pkgver.tar.gz"
+ "readeef.service"
+ "readeef.cfg"
+ "readeef-user.conf"
+ "readeef-tmpfile.conf"
+)
+backup=(
+ "etc/readeef/readeef.cfg"
+)
+md5sums=('8fd5d126d3429d572ba74ee3ff66f562'
+ 'c34b33ec0e1b49823ebc90011644fb85'
+ '90ee66da93df0331b127de5c1bde3d65'
+ 'eb803cfce3dfb686ee7bf035db9c60fc'
+ 'd3c89d35743e09890928dea50e7facb2')
+
+build() {
+ cd $srcdir
+ base="src/github.com/urandom"
+ target="$base/$pkgname"
+ cmd="cmd/$pkgname-server"
+
+ mkdir -p $base
+ ln -sf "$srcdir/$pkgname-$pkgver" $target
+
+ export GOPATH="$srcdir"
+
+ cd "$srcdir/$target/$cmd"
+
+ GO15VENDOREXPERIMENT=1 go get -v
+
+ cd "$srcdir"
+ go build -o $pkgname github.com/urandom/$pkgname/$cmd
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -DT -m644 "$srcdir/${pkgname}.cfg" "$pkgdir/etc/$pkgname/${pkgname}.cfg"
+ install -DT -m0755 "$srcdir/${pkgname}.service" "$pkgdir/usr/lib/systemd/system/${pkgname}.service"
+ echo "$srcdir/${pkgname}-user.conf"
+ install -DT -m644 "$srcdir/${pkgname}-user.conf" "$pkgdir/usr/lib/sysusers.d/${pkgname}.conf"
+ echo "$srcdir/${pkgname}-tmpfile.conf"
+ install -DT -m644 "$srcdir/${pkgname}-tmpfile.conf" "$pkgdir/usr/lib/tmpfiles.d/${pkgname}.conf"
+}
diff --git a/readeef-tmpfile.conf b/readeef-tmpfile.conf
new file mode 100644
index 00000000000..5e605080104
--- /dev/null
+++ b/readeef-tmpfile.conf
@@ -0,0 +1 @@
+d /var/lib/readeef 0755 readeef readeef -
diff --git a/readeef-user.conf b/readeef-user.conf
new file mode 100644
index 00000000000..4fa4b49fee8
--- /dev/null
+++ b/readeef-user.conf
@@ -0,0 +1 @@
+u readeef - "readeef user"
diff --git a/readeef.cfg b/readeef.cfg
new file mode 100644
index 00000000000..1ffd2bfcbf7
--- /dev/null
+++ b/readeef.cfg
@@ -0,0 +1,72 @@
+# The default configuration values are listed as comments below
+# Uncomment and value allow with its category to change it
+#
+# [logger]
+# level = error # error, info, debug
+# file = - # stderr, or a filename
+# formatter = text # text, json
+# access-file = - # stdout or a filename
+# [api]
+# emulators
+# # emulators = tt-rss
+# # emulators = fever
+[db]
+# driver = sqlite3
+ connect = file:/var/lib/readeef/db.sqlite3?cache=shared&mode=rwc
+# [feed-manager]
+# update-interval = 30m
+# monitors
+# monitors = index
+# monitors = thumbnailer
+# [timeout]
+# connect = 1s
+# read-write = 2s
+# [hubbub]
+# relative-path = /hubbub
+# from = readeef
+# [popularity]
+# delay = 5s
+# providers
+# providers = Facebook
+# providers = GoogleP
+# providers = Twitter
+# providers = Reddit
+# providers = Linkedin
+# providers = StumbleUpon
+# [feed-parser]
+# processors
+# processors = cleanup
+# processors = top-image-marker
+# # processors = relative-url
+# # processors = proxy-http
+#
+# proxy-http-url-template = "/proxy?url={{ . }}"
+[content]
+# extractor = goose # readability
+# thumbnailer = description # extract
+# search-provider = bleve # elastic
+#
+# article-processors
+# article-processors = insert-thumbnail-target
+# # article-processors = relative-url
+# # article-processors = proxy-http
+#
+# search-batch-size = 100
+#
+ bleve-path = /var/lib/readeef/bleve
+# elastic-url = http://localhost:9200
+# proxy-http-url-template = "/proxy?url={{ . }}"
+#
+# [server]
+# port = 8080
+# # devel
+#
+# [static]
+# expires = 5m # 5 minutes
+#
+ [session]
+ dir = /var/lib/readeef/session
+# # secret = Your_secret_string_goes_here
+# max-age = 360h # 15 days
+# cleanup-interval = 1h # 1 hour
+# cleanup-max-age = 360h # 15 days
diff --git a/readeef.install b/readeef.install
new file mode 100644
index 00000000000..fd600392e51
--- /dev/null
+++ b/readeef.install
@@ -0,0 +1,8 @@
+post_install() {
+ systemd-sysusers readeef.conf
+ systemd-tmpfiles --create readeef.conf
+}
+
+post_upgrade() {
+ systemd-tmpfiles --create readeef.conf
+}
diff --git a/readeef.service b/readeef.service
new file mode 100644
index 00000000000..ff06f5fdf7c
--- /dev/null
+++ b/readeef.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Self-hosted feed aggregator
+After=network.target
+
+[Service]
+User=readeef
+Group=readeef
+ExecStart=/usr/bin/readeef -config /etc/readeef/readeef.cfg
+Restart=always
+
+[Install]
+WantedBy=multi-user.target