diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-21 01:07:09 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-21 01:07:09 -0400 |
commit | acf31d3f7569b7db4c14a6011aab88b0ce48a696 (patch) | |
tree | 3f532f4ae06e8de6c5f3aff4a720d2c0d75619f9 /libre/parabolaweb-utils/helper.sh | |
parent | 53b785c979542521ba7bd7135246f1f9ba51757b (diff) |
improve libre/parabolaweb-utils
meta:
* add `python2-flup` as a dependency (needed for fcgi)
filesystem:
* mv `/usr/sbin/{update-parabolaweb,parabolaweb-update}`
* pull `/usr/sbin/parabolaweb-fgci` out of `/etc/rc.d/parabolaweb`
* pull `/etc/conf.d/parabolaweb` out of `/etc/rc.d/parabolaweb`
* add `/usr/lib/systemd/system/parabolaweb.service`
Diffstat (limited to 'libre/parabolaweb-utils/helper.sh')
-rw-r--r-- | libre/parabolaweb-utils/helper.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libre/parabolaweb-utils/helper.sh b/libre/parabolaweb-utils/helper.sh index d00f83f7f..5ce4182b3 100644 --- a/libre/parabolaweb-utils/helper.sh +++ b/libre/parabolaweb-utils/helper.sh @@ -23,13 +23,15 @@ _get_pkgver() { _get_depends() { _mksource 1>&2 - pushd "${srcdir:-src}" >/dev/null - python2_packages='markdown|psycopg2|pyinotify|pytz|south' - < parabolaweb/requirements_prod.txt sed -r \ - -e 's/.*/\L&/' -e 's/==/=/' \ - -e 's/^python-memcached/python2-memcached/' \ - -e "s/^(${python2_packages})/python2-&/" - popd >/dev/null + if [[ -f "${srcdir:-src}/parabolaweb/requirements_prod.txt" ]]; then + pushd "${srcdir:-src}" >/dev/null + python2_packages='markdown|psycopg2|pyinotify|pytz|south' + < parabolaweb/requirements_prod.txt sed -r \ + -e 's/.*/\L&/' -e 's/==/=/' \ + -e 's/^python-memcached/python2-memcached/' \ + -e "s/^(${python2_packages})/python2-&/" + popd >/dev/null + fi } _get_depends_nover() { |