New package: couchpotato-3.0.1

This commit is contained in:
ananteris 2015-10-27 13:08:36 -04:00
parent 81c4218e95
commit 9098a3b0fb
2 changed files with 36 additions and 0 deletions

View file

@ -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

View file

@ -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 <ananteris@mailinator.com>"
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
}