summaryrefslogtreecommitdiff
path: root/helper.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-21 01:07:09 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-21 01:07:09 -0400
commitdc45b9430e9c3716cd51152ca757753ebb177d66 (patch)
tree4bda2ef090ee0b4570d317e5cb7135f586eeb928 /helper.sh
parent8a605d4d9f6a191081d2d2e71badfd75a3c0a66a (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 'helper.sh')
-rw-r--r--helper.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/helper.sh b/helper.sh
index d00f83f..5ce4182 100644
--- a/helper.sh
+++ b/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() {