From 9098a3b0fbe9ae7a0d416a5ea0d0238735ca7baf Mon Sep 17 00:00:00 2001 From: ananteris Date: Tue, 27 Oct 2015 13:08:36 -0400 Subject: [PATCH] New package: couchpotato-3.0.1 --- srcpkgs/couchpotato/files/couchpotato/run | 12 ++++++++++++ srcpkgs/couchpotato/template | 24 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 srcpkgs/couchpotato/files/couchpotato/run create mode 100644 srcpkgs/couchpotato/template diff --git a/srcpkgs/couchpotato/files/couchpotato/run b/srcpkgs/couchpotato/files/couchpotato/run new file mode 100755 index 0000000000..e935516500 --- /dev/null +++ b/srcpkgs/couchpotato/files/couchpotato/run @@ -0,0 +1,12 @@ +#!/bin/sh +exec 2>&1 + +if [ ! -e /var/log/couchpotato.log ]; +then + touch /var/log/couchpotato.log + chmod 644 /var/log/couchpotato.log + chown couchpotato:couchpotato /var/log/couchpotato.log +fi + +exec > /var/log/couchpotato.log +exec chpst -ucouchpotato:couchpotato /usr/share/couchpotato/CouchPotato.py --data_dir=/var/lib/couchpotato diff --git a/srcpkgs/couchpotato/template b/srcpkgs/couchpotato/template new file mode 100644 index 0000000000..322e95df8e --- /dev/null +++ b/srcpkgs/couchpotato/template @@ -0,0 +1,24 @@ +# Template build file for 'couchpotato'. +pkgname=couchpotato +version=3.0.1 +revision=1 +depends="python" +short_desc="Usenet PVR for movies" +maintainer="Ananteris " +system_accounts="couchpotato" +couchpotato_homedir="/var/lib/couchpotato" +distfiles="https://github.com/RuudBurger/CouchPotatoServer/archive/build/${version}.tar.gz>${pkgname}-${version}.tar.gz" +checksum=f08f9c6ac02f66c6667f17ded1eea4c051a62bbcbadd2a8673394019878e92f7 +make_dirs=" + /var/lib/couchpotato 0755 couchpotato couchpotato" +homepage="http://couchpota.to" +license="GPL-3" +wrksrc="CouchPotatoServer-build-${version}" +noarch="yes" +pycompile_dirs="/usr/share/${pkgname}" + +do_install() { + vmkdir usr/share/couchpotato + mv * ${DESTDIR}/usr/share/couchpotato + vsv couchpotato +}