added debian/ packaging
This commit is contained in:
parent
fac3cb9bf9
commit
419d7e298e
|
@ -0,0 +1,7 @@
|
|||
expression (0.1-1) unstable; urgency=low
|
||||
|
||||
* First release.
|
||||
|
||||
-- Frederic Peters <fpeters@debian.org> Thu, 1 Jul 2004 09:26:33 +0200
|
||||
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0"?>
|
||||
<configuration xmlns="http://www.entrouvert.org/namespaces/expression/0.0">
|
||||
<logFilePath>/var/log/expression.log</logFilePath>
|
||||
<accessLogFilePath>/var/log/expression-access.log</accessLogFilePath>
|
||||
<pidFilePath>/var/run/expression.pid</pidFilePath>
|
||||
<sessionsPath>/tmp/</sessionsPath>
|
||||
<!--
|
||||
<user>www-data</user>
|
||||
<group>www-data</group>
|
||||
-->
|
||||
|
||||
<defaultMode>list</defaultMode> <!-- allow to navigate through directories -->
|
||||
|
||||
<virtualHost>
|
||||
<port>8000</port>
|
||||
<documentRoot>/var/www/</documentRoot>
|
||||
<siteXsltFilePath>/usr/share/expression/xslt/site.xsl</siteXsltFilePath>
|
||||
</virtualHost>
|
||||
|
||||
</configuration>
|
|
@ -0,0 +1,17 @@
|
|||
Source: expression
|
||||
Section: net
|
||||
Priority: optional
|
||||
Maintainer: Frederic Peters <fpeters@debian.org>
|
||||
Build-Depends-Indep: debhelper (>> 4.1.67), python, python-dev (>= 2.1), python-dev (<< 2.4)
|
||||
Standards-Version: 3.6.1.0
|
||||
|
||||
Package: expression
|
||||
Architecture: all
|
||||
Depends: ${python:Depends}, xml-core (>= 0.09), libxml2-python2.3,
|
||||
libxslt1-python2.3
|
||||
Description: Expression web server
|
||||
Expression is a Liberty Alliance, WebDAV and XML based web application
|
||||
framework and HTTP server.
|
||||
.
|
||||
Homepage: http://expression.entrouvert.org
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
This package was debianized by Frederic Peters <fpeters@debian.org> on
|
||||
Thu, 1 Jul 2004 10:13:28 +0200
|
||||
|
||||
It was downloaded from http://expression.entrouvert.org/download.xml
|
||||
|
||||
Upstream Authors:
|
||||
Frederic Peters <fpeters@entrouvert.com>
|
||||
Emmanuel Raviart <eraviart@entrouvert.com>
|
||||
|
||||
Copyright (C) 2004 Entr'ouvert, Frederic Peters & Emmanuel Raviart
|
||||
Licensed under the GNU GPL (see /usr/share/common-licenses/GPL)
|
||||
|
|
@ -0,0 +1 @@
|
|||
/etc/expression/config.xml
|
|
@ -0,0 +1,3 @@
|
|||
etc/expression/
|
||||
usr/sbin/
|
||||
|
|
@ -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
|
||||
|
||||
NAME=expression
|
||||
DAEMON=/usr/sbin/expression-server
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
CONF=/etc/$NAME/config.xml
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting expression web server: $NAME"
|
||||
$ENV start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON > /dev/null
|
||||
;;
|
||||
|
||||
stop)
|
||||
echo -n "Stopping expression 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
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
#!/usr/bin/make -f
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatibility version to use.
|
||||
export DH_COMPAT=4
|
||||
|
||||
PYTHON_VERSION=$(shell /usr/bin/python -V 2>&1 | /usr/bin/perl -le 'print "$$1.$$2" if <> =~m/^Python\s+(\d+)\.(\d+)(\.\d+)*/')
|
||||
|
||||
build:
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -rf build/
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
# Commands to install the package into debian/expression
|
||||
chmod +x ./setup.py
|
||||
./setup.py install --prefix=$(CURDIR)/debian/expression/usr \
|
||||
--install-lib $(CURDIR)/debian/expression/usr/lib/expression/modules \
|
||||
--install-data $(CURDIR)/debian/expression/usr/share
|
||||
mv $(CURDIR)/debian/expression/usr/bin/expression-server \
|
||||
$(CURDIR)/debian/expression/usr/sbin/expression-server
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-arch: build install
|
||||
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-indep: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
cp $(CURDIR)/debian/config.xml $(CURDIR)/debian/expression/etc/expression/
|
||||
dh_installdocs
|
||||
dh_installinit
|
||||
dh_installxmlcatalogs
|
||||
dh_installexamples
|
||||
dh_installmenu
|
||||
dh_installmime
|
||||
dh_installman
|
||||
dh_installchangelogs
|
||||
dh_link
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_python
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
Reference in New Issue