Package Details: peerflix-server 0.5.1-2

Git Clone URL: https://aur.archlinux.org/peerflix-server.git (read-only, click to copy)
Package Base: peerflix-server
Description: Streaming torrent client for node.js with web ui
Upstream URL: https://github.com/asapach/peerflix-server
Licenses: MIT
Submitter: robertfoster
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 8
Popularity: 1.74
First Submitted: 2014-08-12 15:50
Last Updated: 2021-03-27 18:15

Latest Comments

whynothugo commented on 2021-03-11 09:33

Oh, actually, to make things simpler, you can just symlink to bin.js:

So instead of this:

install -Dm775 "${srcdir}/peerflix-server.sh" "${pkgdir}/usr/bin/peerflix-server"

You can do this:

ln -s /usr/lib/node_modules/peerflix-server/server/bin.js $pkgdir/usr/bin/peerflix-server

whynothugo commented on 2021-03-10 20:19

The way the wrapper script is written, it's impossible to see the output (including errors) of running this.

peerflix-server.sh should not fork on the last line, and it'll work normally:

#!/usr/bin/sh
cd /usr/lib/node_modules/peerflix-server/server
node bin.js

This also eliminates the need for Type=forking in peerflix-server.service.

There's also no reason to run this as root, as user service would likely make more sense than a system service.

je-vv commented on 2019-12-16 22:37

Hi, can the package restrict write permissions for groups and others recursively on:

/usr/lib/node_modules/peerflix-server

Thanks !

jingjinghack commented on 2017-06-09 15:43

This package is required npm. Can you add it to depends?

je-vv commented on 2016-08-15 04:09

Besides upgrading to 0.0.30, npm install, as advertise on upstream instructions are all required. No need for bower, neither no need for the /opt thing...

As an alternative, in the service file the working directory can be removed, and SH wrapper is not required either...

Here it's what I'm using:

+++++++++++++++++++++++++++

pkgname=peerflix-server
pkgver=0.0.30
pkgrel=1
pkgdesc="Streaming torrent client for node.js with web ui"
arch=('i686' 'x86_64')
url="https://github.com/asapach/peerflix-server"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
source=(https://github.com/asapach/peerflix-server/archive/v${pkgver}.tar.gz
peerflix-server.service)
conflicts=('peerflix-server-git')
options=('!strip')

package(){
cd $srcdir/$pkgname-$pkgver
npm install --user root -g --prefix "${pkgdir}/usr"

install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "${srcdir}/peerflix-server.service" "${pkgdir}/usr/lib/systemd/system/peerflix-server.service"
}

sha256sums=('d905553fe230a8fc58db8ef91ec39eb6a0f5fe193b73bef056797de9b6cfe9f0'
'35a2ac40055d9c2527e4c026e57b62c8a5f8a828a47a9f6a51b9411d835ddcca')

whynothugo commented on 2015-10-09 07:18

makedepends should list "bower" (which is in now in [community]).