Merge pull request #2830 from ananteris/couchpotato

New package: couchpotato-3.0.1
This commit is contained in:
Juan RP 2015-11-30 16:22:56 +01:00
commit b6cc69de0a
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
}