Skip to content

Commit 7f98df6

Browse files
committed
Starting to get Debian packaging working.
1 parent 24fdeaf commit 7f98df6

File tree

4 files changed

+43
-26
lines changed

4 files changed

+43
-26
lines changed

debian/control

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
Source: dataflow-datastage
22
Section: python
3-
Priority: optional
3+
Priority: extra
44
Maintainer: DataFlow <[email protected]>
55
Build-Depends: debhelper (>= 7.0.50~),
6-
python-all (>= 2.5),
7-
python-setuptools,
8-
python-support,
9-
default-jre
6+
python-all,
7+
python-setuptools
108
Standards-Version: 3.9.2
119
Vcs-Git: git://github.com/dataflow/DataStage.git
1210
Homepage: https://github.com/dataflow/DataStage
13-
XS-Python-Version: >= 2.5
1411
Uploaders: Alexander Dutton <[email protected]>
12+
XS-Python-Version: >= 2.6
1513

1614
Package: dataflow-datastage
1715
Architecture: all
1816
Depends: ${python:Depends},
19-
libjs-flot,
20-
libjs-jquery,
21-
libjs-jquery-ui,
22-
libjs-mochikit
17+
python-django-conneg,
18+
python-django-longliving,
19+
python-rdflib,
20+
libpam-python,
21+
redis-server,
22+
postgresql,
23+
python-psycopg2,
24+
python-django (>= 1.3),
25+
python-xattr
2326
Description: DataStage allows research groups to manage research data locally,
2427
which can then be pushed to an institutional data repository.
2528

debian/dataflow-datastage.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debian-conf/* /usr/share/dataflow-datastage/conf/

debian/postinst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
django-admin collectstatic --settings=datastage.web.settings --noinput --link
4+
5+
if [ ! -f /etc/datastage.conf ];
6+
then
7+
ln -s /usr/share/dataflow-datastage/conf/datastage.conf /etc/datastage.conf
8+
fi

debian/rules

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,31 @@
99
# Uncomment this to turn on verbose mode.
1010
#export DH_VERBOSE=1
1111

12-
export DISTUTILS_ARGS=--root=debian/tmp \
12+
#DEB_PYTHON_SYSTEM=pysupport
13+
#
14+
#include /usr/share/cdbs/1/rules/debhelper.mk
15+
#include /usr/share/cdbs/1/class/python-distutils.mk
16+
17+
export DISTUTILS_ARGS=--root=debian/dataflow-datastage \
1318
--install-layout=deb \
14-
--install-lib=/usr/share/dataflow \
15-
--install-scripts=/usr/share/dataflow \
16-
--install-data=/usr/share/dataflow
19+
# --install-lib=/usr/share/dataflow \
20+
# --install-scripts=/usr/share/dataflow \
21+
# --install-data=/usr/share/dataflow
1722

1823

1924
%:
20-
dh $@
25+
dh $@ --with python2
2126

2227
override_dh_auto_install:
2328
python setup.py install ${DISTUTILS_ARGS}
24-
25-
# These JS libraries are already packaged for Debian, so use those instead.
26-
( cd debian/tmp/usr/share/dataflow/datastage ; \
27-
rm -Rf flot jquery jquery-ui mochikit ; \
28-
ln -s ../../javascript/flot flot ; \
29-
ln -s ../../javascript/jquery jquery ; \
30-
ln -s ../../javascript/jquery-ui jquery-ui ; \
31-
ln -s ../../javascript/mochikit mochikit ; \
32-
)
33-
34-
override_dh_auto_build:
29+
#
30+
# # These JS libraries are already packaged for Debian, so use those instead.
31+
# ( cd debian/tmp/usr/share/dataflow/datastage ; \
32+
# rm -Rf flot jquery jquery-ui mochikit ; \
33+
# ln -s ../../javascript/flot flot ; \
34+
# ln -s ../../javascript/jquery jquery ; \
35+
# ln -s ../../javascript/jquery-ui jquery-ui ; \
36+
# ln -s ../../javascript/mochikit mochikit ; \
37+
# )
38+
#
39+
#override_dh_auto_build:

0 commit comments

Comments
 (0)