untested begining of something hopefully useful for packaging
This commit is contained in:
parent
bdd60f7c28
commit
9722692a2f
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# expression Start the expression HTTP server.
|
||||||
|
#
|
||||||
|
# The variables below are NOT to be changed. They are there to make the
|
||||||
|
# script more readable. Look in /etc/defaults/apache for editable variables.
|
||||||
|
|
||||||
|
NAME=expression
|
||||||
|
DAEMON=/usr/bin/$NAME
|
||||||
|
PIDFILE=/var/run/$NAME.pid
|
||||||
|
CONF=/etc/$NAME/config.xml
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
echo -n "Starting web server: $NAME"
|
||||||
|
$ENV start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON > /dev/null
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
echo -n "Stopping web server: $NAME"
|
||||||
|
start-stop-daemon --stop --pidfile $PIDFILE --oknodo
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
echo -n "Restarting $NAME"
|
||||||
|
if ! start-stop-daemon -q --stop --pidfile $PIDFILE --signal HUP; then
|
||||||
|
$ENV start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON > /dev/null
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: /etc/init.d/$NAME {start|stop|reload|restart}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo .
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo " failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
22
setup.py
22
setup.py
|
@ -33,6 +33,7 @@ SAML & Liberty Alliance standards.
|
||||||
|
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
import sys
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
|
||||||
classifiers = """\
|
classifiers = """\
|
||||||
|
@ -67,6 +68,23 @@ setup(name = "Expression",
|
||||||
if classifier],
|
if classifier],
|
||||||
long_description = "\n".join(docLines[2:]),
|
long_description = "\n".join(docLines[2:]),
|
||||||
package_dir = {"expression": "src"},
|
package_dir = {"expression": "src"},
|
||||||
packages = ["expression", "expression.core", "expression.modules"],
|
packages = [
|
||||||
scripts = ["expression.py"])
|
"expression",
|
||||||
|
"expression.core",
|
||||||
|
"expression.modules",
|
||||||
|
"expression.modules.parsers",
|
||||||
|
"expression.modules.xforms"
|
||||||
|
],
|
||||||
|
scripts = ["expression-server"],
|
||||||
|
data_files=[
|
||||||
|
('/etc/expression', ['config.xml']),
|
||||||
|
('/usr/share/expression/css', glob.glob('vhosts/system/css/*.css')),
|
||||||
|
('/usr/share/expression/descriptions', glob.glob('vhosts/system/descriptions/*.xml')),
|
||||||
|
('/usr/share/expression/images', glob.glob('vhosts/system/images/*.png')),
|
||||||
|
('/usr/share/expression/javascript', glob.glob('vhosts/system/javascript/*.js')),
|
||||||
|
('/usr/share/expression/schemas', glob.glob('vhosts/system/schemas/*.xsd')),
|
||||||
|
('/usr/share/expression/xslt', glob.glob('vhosts/system/xslt/*.xsl')),
|
||||||
|
('/etc/init.d', ['initscripts/expression']),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
Reference in New Issue