Skip to content

Commit

Permalink
Initial Push
Browse files Browse the repository at this point in the history
  • Loading branch information
Mhynlo committed Feb 19, 2016
1 parent 29d32d8 commit 4824bac
Show file tree
Hide file tree
Showing 1,003 changed files with 238,077 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
couchpotato (3.0.1) stable; urgency=low

* Initial release for ReadyNAS OS

-- Mhynlo <[email protected]> Tue, 26 Jan 2016 23:46:16 -0700
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
13 changes: 13 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: couchpotato
Section: contrib
Priority: extra
Maintainer: Mhynlo <[email protected]>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.6
Homepage: https://couchpota.to/

Package: couchpotato
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, readynasos (>= 6.1.0), php5-sqlite, python, git
Description: CouchPotato
Automatic Movie Downloading via NZBs & Torrents.
674 changes: 674 additions & 0 deletions debian/copyright

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/sh
# postinst script for sample1
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
configure)
mkhomedir_helper admin 027
chown -R admin:admin /apps/couchpotato
if [ ! -d "/home/admin/.couchpotato" ]; then
mkdir /home/admin/.couchpotato
chown -R admin:admin /home/admin/.couchpotato
fi
event_push app readynasd '<add-s resource-type="LocalApp" resource-id="LocalApp"><LocalApp appname="couchpotato" success="1"/></add-s>' 0 0
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
39 changes: 39 additions & 0 deletions debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#! /bin/sh
# postrm script for couchpotato
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see /usr/share/doc/packaging-manual/

case "$1" in
purge)
rm -f /apps/couchpotato/*
find /apps/couchpotato/* -maxdepth 0 -type 'd' | grep -v "app-config" | xargs rm -rf
rm /apps/couchpotato/.localapp

event_push app readynasd '<delete-s resource-type="LocalApp" resource-id="LocalApp"><LocalApp appname="couchpotato" success="1" reboot="0"/></delete-s>' 0 0
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;

*)
echo "postrm called with unknown argument \`$1'" >&2
exit 0

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#
36 changes: 36 additions & 0 deletions debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#! /bin/sh
# prerm script for sample1
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see /usr/share/doc/packaging-manual/

case "$1" in
remove|upgrade|deconfigure)
systemctl stop fvapp-couchpotato.service
systemctl disable fvapp-couchpotato.service || true
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 0
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
21 changes: 21 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_ALWAYS_EXCLUDE=.git


DESTDIR = $(CURDIR)/debian/couchpotato

%:
dh $@

override_dh_install:
mkdir $(DESTDIR)/apps $(DESTDIR)/apps/couchpotato $(DESTDIR)/apps/couchpotato/app-config
cp -R pkg_files/* $(DESTDIR)/apps/couchpotato
11 changes: 11 additions & 0 deletions pkg_files/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
source=
./couchpotato/
omit =
./libs/*
./node_modules/*
[report]
omit =
*/python?.?/*
./libs/*
./node_modules/*
16 changes: 16 additions & 0 deletions pkg_files/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.py]
indent_style = space

[*.md]
trim_trailing_whitespace = false
12 changes: 12 additions & 0 deletions pkg_files/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.pyc
/data/
/_env/
/_source/
.project
.pydevproject
/node_modules/
/.tmp/
/.sass-cache/
.coverage
coverage.xml
nosetests.xml
2 changes: 2 additions & 0 deletions pkg_files/.nosetestsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[nosetests]
where=couchpotato
37 changes: 37 additions & 0 deletions pkg_files/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: python
sudo: false
python:
# - "2.6"
- "2.7"
# - "3.2"
# - "3.3"
# - "3.4"
# - "3.5"
# - "3.5-dev" # 3.5 development branch
# - "nightly" # currently points to 3.6-dev

cache:
pip: true
directories:
- node_modules
- libs

# command to install dependencies
install:
- npm install
- pip install --upgrade pip
- pip install coverage
- pip install coveralls
# disabled, since we don't require colors for tests on travis
- pip install --upgrade nose
# - pip install rednose

- nosetests --plugins

# command to run tests
script:
- grunt test
- grunt coverage

after_success:
coveralls
Loading

0 comments on commit 4824bac

Please sign in to comment.