diff options
author | Denis Saintilma | 2015-12-05 14:25:12 -0500 |
---|---|---|
committer | Denis Saintilma | 2015-12-05 14:25:12 -0500 |
commit | e7fa9aeae3138e299acfc80a6a706e3f0841c111 (patch) | |
tree | d48b9fa57ddd2f8ef0992fef95c6f6249f90c588 | |
download | aur-e7fa9aeae3138e299acfc80a6a706e3f0841c111.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | plexpy-git.install | 4 | ||||
-rw-r--r-- | plexpy.service | 16 | ||||
-rw-r--r-- | welcome.html.patch | 11 |
5 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..eb1fc48bdad0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +# Generated by mksrcinfo v8 +# Sat Dec 5 19:17:14 UTC 2015 +pkgbase = plexpy-git + pkgdesc = A Python based monitoring and tracking tool for Plex Media Server. + pkgver = 1.2.7.r0.81b22a8 + pkgrel = 1 + url = https://github.com/drzoidberg33/plexpy + install = plexpy-git.install + arch = any + license = GPL + makedepends = git + depends = python2 + provides = plexpy + source = plexpy-git::git+https://github.com/drzoidberg33/plexpy/ + source = plexpy.service + source = plexpy-git.install + source = welcome.html.patch + md5sums = SKIP + md5sums = 9cfa4e18a48b03922242dddd005cdad3 + md5sums = f39a0612d0d0b0e37f8fb8ed49850eb0 + md5sums = d4ab675b2351815bdc162b3615ace953 + +pkgname = plexpy-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5df33e2fc033 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Denis Saintilma <1068des@gmail.com> +pkgname=plexpy-git +pkgver=1.2.7.r0.81b22a8 +pkgrel=1 +pkgdesc="A Python based monitoring and tracking tool for Plex Media Server." +arch=('any') +url="https://github.com/drzoidberg33/plexpy" +license=('GPL') +depends=('python2') +makedepends=('git') +provides=("plexpy") +install=('plexpy-git.install') +source=("$pkgname::git+https://github.com/drzoidberg33/plexpy/" 'plexpy.service' 'plexpy-git.install' 'welcome.html.patch') +md5sums=('SKIP' + '9cfa4e18a48b03922242dddd005cdad3' + 'f39a0612d0d0b0e37f8fb8ed49850eb0' + 'd4ab675b2351815bdc162b3615ace953') + +prepare() { + patch -p1 < "${srcdir}/welcome.html.patch" +} + +pkgver() { + cd "${srcdir}/${pkgname%-VCS}" + git describe --long | sed -e 's/\([^-]*-\)g/r\1/;s/-/./g' -e 's/^v//' +} + +package() { + cd "${srcdir}/${pkgname%-VCS}" + install -Dm755 PlexPy.py "${pkgdir}/opt/plexpy/PlexPy.py" + install -Dm644 pylintrc "${pkgdir}/opt/plexpy/" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/plexpy/LICENSE" + + cp -a data/ lib/ plexpy/ "${pkgdir}/opt/plexpy/" + + install -Dm644 "${srcdir}/plexpy.service" "${pkgdir}/usr/lib/systemd/system/plexpy.service" +} diff --git a/plexpy-git.install b/plexpy-git.install new file mode 100644 index 000000000000..a1f11f0c46fa --- /dev/null +++ b/plexpy-git.install @@ -0,0 +1,4 @@ +post_install(){ + getent group plexpy &>/dev/null || groupadd -r plexpy >/dev/null + getent passwd plexpy &>/dev/null || useradd -r -g plexpy -s /bin/false plexpy >/dev/null +} diff --git a/plexpy.service b/plexpy.service new file mode 100644 index 000000000000..976e2927a62a --- /dev/null +++ b/plexpy.service @@ -0,0 +1,16 @@ +[Unit] +Description=PlexPy Service + +[Service] +User=plexpy +Group=plexpy +GuessMainPID=no +Type=forking + +PermissionsStartOnly=true +ExecStartPre=-/usr/bin/mkdir /var/lib/plexpy +ExecStartPre=/usr/bin/chown -R plexpy:plexpy /var/lib/plexpy/ +ExecStart=/usr/bin/python2 /opt/plexpy/PlexPy.py --quiet --daemon --nolaunch --config /var/lib/plexpy/config.ini --datadir /var/lib/plexpy --nolaunch + +[Install] +WantedBy=default.target diff --git a/welcome.html.patch b/welcome.html.patch new file mode 100644 index 000000000000..5db1da517c4c --- /dev/null +++ b/welcome.html.patch @@ -0,0 +1,11 @@ +--- src/plexpy-git/data/interfaces/default/welcome.html 2015-12-05 12:30:15.762440987 -0500 ++++ welcome_new.html 2015-12-05 12:32:22.161112298 -0500 +@@ -169,7 +169,7 @@ + <input type="checkbox" name="launch_browser" id="launch_browser" value="1" ${config['launch_browser']}> + <input type="checkbox" name="refresh_users_on_startup" id="refresh_users_on_startup" value="1" ${config['refresh_users_on_startup']}> + <input type="checkbox" name="first_run_complete" id="first_run_complete" value="1" checked> +- <input type="checkbox" name="check_github" id="check_github" value="1" checked> ++ <input type="checkbox" name="check_github" id="check_github" value="0" checked> + </div> + </div> + <!-- Required fields but hidden --> |