Commit 0145c293 authored by Aleksandr Konstantinov's avatar Aleksandr Konstantinov
Browse files

Merge branch 'master' into dev-controldir

parents 72619d51 c747caec
......@@ -3,18 +3,77 @@ Section: net
Priority: optional
Maintainer: Mattias Ellert <mattias.ellert@physics.uu.se>
Uploaders: Anders Waananen <waananen@nbi.dk>
Build-Depends: debhelper (>= 9), dh-autoreconf, autopoint, libxml2-dev (>= 2.4.0), libssl-dev, libglibmm-2.4-dev, libltdl-dev, libldap2-dev, uuid-dev, libcppunit-dev, pkg-config, libdb++-dev, libxmlsec1-dev (>= 1.2.4), libglobus-common-dev, libglobus-gssapi-gsi-dev, libglobus-ftp-client-dev, libglobus-ftp-control-dev, dh-python | python-support, openssl, swig, libnss3-dev, pylint, libjson-xs-perl, libxml-simple-perl, libdbi-perl, libsqlite3-dev (>= 3.6), libldns-dev, libinline-python-perl | dpkg (<< 1.18), python-dev | libinline-python-perl (>= 0.56-2~), python-twisted | libinline-python-perl (>= 0.56-2~), python-openssl | libinline-python-perl (>= 0.56-2~), python3-dev | libinline-python-perl (<< 0.56-2~) | dpkg (<< 1.18), python3-twisted | libinline-python-perl (<< 0.56-2~) | dpkg (<< 1.18), python3-openssl | libinline-python-perl (<< 0.56-2~) | dpkg (<< 1.18)
Build-Depends:
debhelper (>= 9),
dh-autoreconf,
autopoint,
dh-python | python-support,
dh-systemd | debhelper (>= 9.20160709) | debhelper (<< 9.20130630),
libxml2-dev (>= 2.4.0),
libssl-dev,
libglibmm-2.4-dev,
libltdl-dev,
libldap2-dev,
uuid-dev,
libcppunit-dev,
pkg-config,
libdb++-dev,
libxmlsec1-dev (>= 1.2.4),
libglobus-common-dev,
libglobus-gssapi-gsi-dev,
libglobus-ftp-client-dev,
libglobus-ftp-control-dev,
openssl,
swig,
libnss3-dev,
pylint,
libjson-xs-perl,
libxml-simple-perl,
libdbi-perl,
libsqlite3-dev (>= 3.6),
libldns-dev,
libsystemd-dev [linux-any] | debhelper (<< 9.20150101) [linux-any],
libinline-python-perl | dpkg (<< 1.18),
python-dev | libinline-python-perl (>= 0.56-2~),
python-twisted | libinline-python-perl (>= 0.56-2~),
python-openssl | libinline-python-perl (>= 0.56-2~),
python3-dev | libinline-python-perl (<< 0.56-2~) | dpkg (<< 1.18),
python3-twisted | libinline-python-perl (<< 0.56-2~) | dpkg (<< 1.18),
python3-openssl | libinline-python-perl (<< 0.56-2~) | dpkg (<< 1.18)
XS-Python-Version: current
Standards-Version: 4.0.0
Standards-Version: 4.4.1
Homepage: http://www.nordugrid.org
Package: libarccommon3
Replaces: nordugrid-arc-hed (<< 1.0.1~rc2~), nordugrid-arc-arex (<< 2.0.1~), libarccommon0, libarccommon1, libarccommon2
Conflicts: nordugrid-arc-chelonia (<< 2.0.0~), nordugrid-arc-hopi (<< 2.0.0~), nordugrid-arc-isis (<< 2.0.0~), nordugrid-arc-janitor (<< 2.0.0~), nordugrid-arc-doxygen (<< 4.0.0~), nordugrid-arc-arcproxyalt (<< 6.0.0~), nordugrid-arc-java (<< 6.0.0~), nordugrid-arc-egiis (<< 6.0.0~)
Breaks: nordugrid-arc-hed (<< 1.0.1~rc2~), nordugrid-arc-arex (<< 2.0.1~), libarccommon0, libarccommon1, libarccommon2
Replaces:
nordugrid-arc-hed (<< 1.0.1~rc2~),
nordugrid-arc-arex (<< 2.0.1~),
libarccommon0,
libarccommon1,
libarccommon2
Conflicts:
nordugrid-arc-chelonia (<< 2.0.0~),
nordugrid-arc-hopi (<< 2.0.0~),
nordugrid-arc-isis (<< 2.0.0~),
nordugrid-arc-janitor (<< 2.0.0~),
nordugrid-arc-doxygen (<< 4.0.0~),
nordugrid-arc-arcproxyalt (<< 6.0.0~),
nordugrid-arc-java (<< 6.0.0~),
nordugrid-arc-egiis (<< 6.0.0~)
Breaks:
nordugrid-arc-hed (<< 1.0.1~rc2~),
nordugrid-arc-arex (<< 2.0.1~),
libarccommon0,
libarccommon1,
libarccommon2
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ${python3:Depends}, openssl
Depends:
${shlibs:Depends},
${misc:Depends},
${python:Depends},
${python3:Depends},
openssl
XB-Python-Version: ${python:Versions}
Description: Advanced Resource Connector Middleware
NorduGrid is a collaboration aiming at development, maintenance and
......@@ -29,7 +88,11 @@ Description: Advanced Resource Connector Middleware
Package: nordugrid-arc-client
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), nordugrid-arc-plugins-needed (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
nordugrid-arc-plugins-needed (= ${binary:Version})
Description: ARC command line clients
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -40,11 +103,18 @@ Description: ARC command line clients
datatransfers.
Package: nordugrid-arc-hed
Replaces: nordugrid-arc-client (<< 1.0.1~rc2~)
Breaks: nordugrid-arc-client (<< 1.0.1~rc2~)
Replaces:
nordugrid-arc-client (<< 1.0.1~rc2~)
Breaks:
nordugrid-arc-client (<< 1.0.1~rc2~)
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), lsb-base (>= 3.0-6)
Recommends: nordugrid-arc-python (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
lsb-base (>= 3.0-6)
Recommends:
nordugrid-arc-python (= ${binary:Version})
Description: ARC Hosting Environment Daemon
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -55,7 +125,12 @@ Description: ARC Hosting Environment Daemon
Package: nordugrid-arc-gridftpd
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), nordugrid-arc-plugins-globus (= ${binary:Version}), lsb-base (>= 3.0-6)
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
nordugrid-arc-plugins-globus (= ${binary:Version}),
lsb-base (>= 3.0-6)
Description: ARC GridFTP server
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -67,7 +142,13 @@ Description: ARC GridFTP server
Package: nordugrid-arc-datadelivery-service
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), nordugrid-arc-hed (= ${binary:Version}), nordugrid-arc-plugins-needed (= ${binary:Version}), lsb-base (>= 3.0-6)
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
nordugrid-arc-hed (= ${binary:Version}),
nordugrid-arc-plugins-needed (= ${binary:Version}),
lsb-base (>= 3.0-6)
Description: ARC data delivery service
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -76,11 +157,24 @@ Description: ARC data delivery service
This package contains the ARC data delivery service.
Package: nordugrid-arc-infosys-ldap
Provides: nordugrid-arc-ldap-infosys, nordugrid-arc-aris
Replaces: nordugrid-arc-ldap-infosys (<< 6.0.0~), nordugrid-arc-aris (<< 6.0.0~), nordugrid-arc-ldap-egiis (<< 6.0.0~)
Conflicts: nordugrid-arc-ldap-infosys (<< 6.0.0~), nordugrid-arc-aris (<< 6.0.0~), nordugrid-arc-ldap-egiis (<< 6.0.0~)
Provides:
nordugrid-arc-ldap-infosys,
nordugrid-arc-aris
Replaces:
nordugrid-arc-ldap-infosys (<< 6.0.0~),
nordugrid-arc-aris (<< 6.0.0~),
nordugrid-arc-ldap-egiis (<< 6.0.0~)
Conflicts:
nordugrid-arc-ldap-infosys (<< 6.0.0~),
nordugrid-arc-aris (<< 6.0.0~),
nordugrid-arc-ldap-egiis (<< 6.0.0~)
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends}, slapd, bdii, lsb-base (>= 3.0-6)
Depends:
${misc:Depends},
${perl:Depends},
slapd,
bdii,
lsb-base (>= 3.0-6)
Description: ARC LDAP-based information services
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -92,10 +186,18 @@ Description: ARC LDAP-based information services
another package, the nordugrid-arc-arex.
Package: nordugrid-arc-monitor
Replaces: nordugrid-arc-ldap-monitor (<< 6.0.0~), nordugrid-arc-ws-monitor (<< 6.0.0~)
Conflicts: nordugrid-arc-ldap-monitor (<< 6.0.0~), nordugrid-arc-ws-monitor (<< 6.0.0~)
Replaces:
nordugrid-arc-ldap-monitor (<< 6.0.0~),
nordugrid-arc-ws-monitor (<< 6.0.0~)
Conflicts:
nordugrid-arc-ldap-monitor (<< 6.0.0~),
nordugrid-arc-ws-monitor (<< 6.0.0~)
Architecture: all
Depends: ${misc:Depends}, php-common | php5-common, php-ldap | php5-ldap, php-gd | php5-gd
Depends:
${misc:Depends},
php-common | php5-common,
php-ldap | php5-ldap,
php-gd | php5-gd
Description: ARC LDAP monitor web application
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -106,12 +208,35 @@ Description: ARC LDAP monitor web application
system and visualizes it.
Package: nordugrid-arc-arex
Provides: nordugrid-arc-cache-service, nordugrid-arc-candypond
Replaces: nordugrid-arc-cache-service (<< 6.0.0~), nordugrid-arc-candypond (<< 6.0.0~), nordugrid-arc-aris (<< 6.0.0~), nordugrid-arc-infosys-ldap (<< 6.3.0~)
Conflicts: nordugrid-arc-cache-service (<< 6.0.0~), nordugrid-arc-candypond (<< 6.0.0~)
Breaks: nordugrid-arc-aris (<< 6.0.0~), nordugrid-arc-infosys-ldap (<< 6.3.0~)
Provides:
nordugrid-arc-cache-service,
nordugrid-arc-candypond
Replaces:
nordugrid-arc-cache-service (<< 6.0.0~),
nordugrid-arc-candypond (<< 6.0.0~),
nordugrid-arc-aris (<< 6.0.0~),
nordugrid-arc-infosys-ldap (<< 6.3.0~),
nordugrid-arc-python (<< 6.4.0~)
Conflicts:
nordugrid-arc-cache-service (<< 6.0.0~),
nordugrid-arc-candypond (<< 6.0.0~)
Breaks:
nordugrid-arc-aris (<< 6.0.0~),
nordugrid-arc-infosys-ldap (<< 6.3.0~)
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python:Depends}, ${python3:Depends}, libarccommon3 (= ${binary:Version}), nordugrid-arc-hed (= ${binary:Version}), nordugrid-arc-plugins-needed (= ${binary:Version}), nordugrid-arc-python (= ${binary:Version}), libjson-xs-perl, libxml-simple-perl, ${pydeps:Depends}, lsb-base (>= 3.0-6)
Depends:
${shlibs:Depends},
${misc:Depends},
${perl:Depends},
${python:Depends},
${python3:Depends},
libarccommon3 (= ${binary:Version}),
nordugrid-arc-hed (= ${binary:Version}),
nordugrid-arc-plugins-needed (= ${binary:Version}),
libjson-xs-perl,
libxml-simple-perl,
${pydeps:Depends},
lsb-base (>= 3.0-6)
XB-Python-Version: ${python:Versions}
Description: ARC Resource-coupled EXecution service
NorduGrid is a collaboration aiming at development, maintenance and
......@@ -127,10 +252,18 @@ Description: ARC Resource-coupled EXecution service
publishing.
Package: nordugrid-arc-arex-python-lrms
Replaces: nordugrid-arc-arex (<< 6.0.0~)
Breaks: nordugrid-arc-arex (<< 6.0.0~)
Replaces:
nordugrid-arc-arex (<< 6.0.0~)
Breaks:
nordugrid-arc-arex (<< 6.0.0~)
Architecture: any
Depends: ${misc:Depends}, ${python:Depends}, ${python3:Depends}, libinline-python-perl, nordugrid-arc-arex (= ${binary:Version})
Depends:
${misc:Depends},
${python:Depends},
${python3:Depends},
libinline-python-perl,
nordugrid-arc-arex (= ${binary:Version}),
nordugrid-arc-python (= ${binary:Version})
XB-Python-Version: ${python:Versions}
Description: ARC Resource-coupled EXecution service - Python LRMS backends
NorduGrid is a collaboration aiming at development, maintenance and
......@@ -143,7 +276,10 @@ Description: ARC Resource-coupled EXecution service - Python LRMS backends
Package: nordugrid-arc-plugins-needed
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version})
Description: ARC base plugins
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -153,10 +289,15 @@ Description: ARC base plugins
and Data Manager Components (DMCs).
Package: nordugrid-arc-plugins-globus
Replaces: nordugrid-arc-plugins-needed (<< 1.0.1-2~)
Breaks: nordugrid-arc-plugins-needed (<< 1.0.1-2~)
Replaces:
nordugrid-arc-plugins-needed (<< 1.0.1-2~)
Breaks:
nordugrid-arc-plugins-needed (<< 1.0.1-2~)
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version})
Description: ARC Globus plugins
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -167,7 +308,11 @@ Description: ARC Globus plugins
Package: nordugrid-arc-plugins-internal
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), nordugrid-arc-arex (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
nordugrid-arc-arex (= ${binary:Version})
Description: ARC internal plugin
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -178,7 +323,11 @@ Description: ARC internal plugin
Package: nordugrid-arc-plugins-arcrest
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), nordugrid-arc-arex (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
nordugrid-arc-arex (= ${binary:Version})
Description: ARC REST plugin
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -188,7 +337,11 @@ Description: ARC REST plugin
Package: nordugrid-arc-acix-core
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, ${python3:Depends}, ${pydeps:Depends}
Depends:
${misc:Depends},
${python:Depends},
${python3:Depends},
${pydeps:Depends}
XB-Python-Version: ${python:Versions}
Description: ARC cache index - core components
NorduGrid is a collaboration aiming at development, maintenance and
......@@ -198,11 +351,20 @@ Description: ARC cache index - core components
Core components of the ARC Cache Index (ACIX).
Package: nordugrid-arc-acix-scanner
Provides: nordugrid-arc-acix-cache
Replaces: nordugrid-arc-acix-cache (<< 6.0.0~)
Conflicts: nordugrid-arc-acix-cache (<< 6.0.0~)
Provides:
nordugrid-arc-acix-cache
Replaces:
nordugrid-arc-acix-cache (<< 6.0.0~)
Conflicts:
nordugrid-arc-acix-cache (<< 6.0.0~)
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, ${python3:Depends}, libarccommon3 (>= ${source:Version}), nordugrid-arc-acix-core (= ${source:Version}), lsb-base (>= 3.0-6)
Depends:
${misc:Depends},
${python:Depends},
${python3:Depends},
libarccommon3 (>= ${source:Version}),
nordugrid-arc-acix-core (= ${source:Version}),
lsb-base (>= 3.0-6)
XB-Python-Version: ${python:Versions}
Description: ARC cache index - scanner server
NorduGrid is a collaboration aiming at development, maintenance and
......@@ -215,7 +377,13 @@ Description: ARC cache index - scanner server
Package: nordugrid-arc-acix-index
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, ${python3:Depends}, libarccommon3 (>= ${source:Version}), nordugrid-arc-acix-core (= ${source:Version}), lsb-base (>= 3.0-6)
Depends:
${misc:Depends},
${python:Depends},
${python3:Depends},
libarccommon3 (>= ${source:Version}),
nordugrid-arc-acix-core (= ${source:Version}),
lsb-base (>= 3.0-6)
XB-Python-Version: ${python:Versions}
Description: ARC cache index - index server
NorduGrid is a collaboration aiming at development, maintenance and
......@@ -230,7 +398,13 @@ Description: ARC cache index - index server
Package: nordugrid-arc-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), libxml2-dev (>= 2.4.0), libssl-dev, libglibmm-2.4-dev
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
libxml2-dev (>= 2.4.0),
libssl-dev,
libglibmm-2.4-dev
Description: ARC development files
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -241,7 +415,12 @@ Description: ARC development files
Package: nordugrid-arc-python
Architecture: any
Section: python
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ${python3:Depends}, libarccommon3 (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
${python:Depends},
${python3:Depends},
libarccommon3 (= ${binary:Version})
XB-Python-Version: ${python:Versions}
Description: ARC Python wrapper
NorduGrid is a collaboration aiming at development, maintenance and
......@@ -251,13 +430,24 @@ Description: ARC Python wrapper
Python bindings for ARC.
Package: nordugrid-arc-nordugridmap
Provides: nordugrid-arc-gridmap-utils
Replaces: nordugrid-arc-gridmap-utils (<< 6.0.0~)
Conflicts: nordugrid-arc-gridmap-utils (<< 6.0.0~)
Provides:
nordugrid-arc-gridmap-utils
Replaces:
nordugrid-arc-gridmap-utils (<< 6.0.0~)
Conflicts:
nordugrid-arc-gridmap-utils (<< 6.0.0~)
Architecture: all
Depends: libnet-ldap-perl, libxml-dom-perl, libcrypt-ssleay-perl, libsoap-lite-perl, libcrypt-openssl-x509-perl, ${perl:Depends}, ${misc:Depends}
Recommends: cron
Description: The nordugridmap tool
Depends:
libnet-ldap-perl,
libxml-dom-perl,
libcrypt-ssleay-perl,
libsoap-lite-perl,
libcrypt-openssl-x509-perl,
${perl:Depends},
${misc:Depends}
Recommends:
cron
Description: ARC's nordugridmap tool
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
......@@ -266,11 +456,18 @@ Description: The nordugridmap tool
files.
Package: nordugrid-arc-test-utils
Provides: nordugrid-arc-misc-utils
Replaces: nordugrid-arc-misc-utils (<< 6.0.0~)
Conflicts: nordugrid-arc-misc-utils (<< 6.0.0~)
Provides:
nordugrid-arc-misc-utils
Replaces:
nordugrid-arc-misc-utils (<< 6.0.0~)
Conflicts:
nordugrid-arc-misc-utils (<< 6.0.0~)
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libarccommon3 (= ${binary:Version}), nordugrid-arc-plugins-needed (= ${binary:Version})
Depends:
${shlibs:Depends},
${misc:Depends},
libarccommon3 (= ${binary:Version}),
nordugrid-arc-plugins-needed (= ${binary:Version})
Description: ARC test tools
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -282,7 +479,11 @@ Description: ARC test tools
Package: nordugrid-arc-archery-manage
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, ${python3:Depends}, ${pydeps:Depends}
Depends:
${misc:Depends},
${python:Depends},
${python3:Depends},
${pydeps:Depends}
Description: ARCHERY administration tool
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......@@ -293,7 +494,9 @@ Description: ARCHERY administration tool
Package: nordugrid-arc-wn
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends:
${shlibs:Depends},
${misc:Depends}
Description: ARC optional worker nodes components
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
......
......@@ -6,5 +6,6 @@ set -e
if [ "$1" = "remove" ] ; then
arcctl test-ca cleanup
rmdir /etc/grid-security/certificates 2>/dev/null || :
rmdir /etc/grid-security 2>/dev/null || :
fi
#!/usr/bin/make -f
-include /usr/share/dpkg/buildflags.mk
# Filter out -Wl,-Bsymbolic-functions from default Ubuntu LDFLAGS
COMMA = ,
LDFLAGS := $(filter-out -Wl$(COMMA)-Bsymbolic-functions,$(LDFLAGS))
export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions
ifeq ($(shell pkg-config --atleast-version 2.6 sigc++-2.0 && echo 1),1)
ifeq ($(shell echo __GNUC__ | gcc -E - | tail -1),5)
# Workaround for too new libsigc++/glibmm, too old gcc combination
CXXFLAGS += -std=c++11
export DEB_CXXFLAGS_MAINT_APPEND=-std=c++11
endif
endif
......@@ -25,54 +22,44 @@ else
PYVER = 2
endif
configure: configure-stamp
ifeq ($(shell type dh_systemd_enable > /dev/null 2> /dev/null && echo 1),1)
WSD = --with systemd
else
WSD =
endif
configure-stamp:
dh_testdir
ifeq ($(shell test -r /usr/include/systemd/sd-daemon.h && echo 1),1)
ifeq ($(DEB_HOST_ARCH_OS),linux)
SYSTEMD = yes
else
SYSTEMD = no
endif
else
SYSTEMD = no
endif
%:
dh $@ --with autoreconf --with python$(PYVER) $(WSD) $(N)
override_dh_auto_configure:
if [ ! -f po/POTFILES.in.save ] ; then \
cp -p po/POTFILES.in po/POTFILES.in.save ; \
fi
dh_autoreconf
CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--libexecdir='$${prefix}/lib' \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir='$${datadir}/man' \
--infodir='$${datadir}/info' \
LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \
dh_auto_configure -- \
--disable-doc \
--docdir='$${datadir}/doc/nordugrid-arc' \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--docdir=/usr/share/doc/nordugrid-arc \
--enable-internal \
--enable-systemd=$(SYSTEMD) \
--with-systemd-units-location=/lib/systemd/system \
--with-sysv-scripts-location=/etc/init.d \
--with-python=python$(PYVER)
touch $@
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE)
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
$(MAKE) check
endif
touch $@
clean:
dh_testdir
dh_testroot
if [ -r Makefile ] ; then $(MAKE) distclean ; fi
override_dh_auto_clean:
dh_auto_clean
rm -f debian/nordugrid-arc-arex.arc-arex.init
rm -f debian/nordugrid-arc-hed.arched.init
......@@ -82,31 +69,33 @@ clean:
rm -f debian/nordugrid-arc-acix-scanner.arc-acix-scanner.init
rm -f debian/nordugrid-arc-acix-index.arc-acix-index.init
rm -f debian/nordugrid-arc-arex.arc-arex.service
rm -f debian/nordugrid-arc-hed.arched.service
rm -f debian/nordugrid-arc-datadelivery-service.arc-datadelivery-service.service
rm -f debian/nordugrid-arc-gridftpd.arc-gridftpd.service
rm -f debian/nordugrid-arc-infosys-ldap.arc-infosys-ldap.service
rm -f debian/nordugrid-arc-infosys-ldap.arc-infosys-ldap-slapd.service
rm -f debian/nordugrid-arc-acix-scanner.arc-acix-scanner.service
rm -f debian/nordugrid-arc-acix-index.arc-acix-index.service
if [ -f po/POTFILES.in.save ] ; then \
mv po/POTFILES.in.save po/POTFILES.in ; \
fi
find python src -name *.pyc -exec rm {} ';'
find python src -depth -name __pycache__ -exec rm -rf {} ';'
rm -rf src/services/acix/*/test/_trial_temp
rm -rf ./src/services/a-rex/infoproviders/_Inline
rm -rf ./src/services/a-rex/infoproviders/test/_Inline
dh_autoreconf_clean
dh_clean configure-stamp build-stamp
install: build-stamp
dh_testdir
dh_testroot
dh_prep
rm -rf src/services/a-rex/infoproviders/_Inline
rm -rf src/services/a-rex/infoproviders/test/_Inline
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
override_dh_auto_install:
dh_auto_install
find $(CURDIR)/debian/tmp -name \*.la -exec rm -fv '{}' ';'
find debian/tmp -name \*.la -exec rm -fv '{}' ';'
rm -f $(CURDIR)/debian/tmp/usr/lib/arc/lib*.a
rm -f debian/tmp/usr/lib/arc/*.a
rm -f $(CURDIR)/debian/tmp/usr/lib/libarcglobusutils.so
rm -f debian/tmp/usr/lib/libarcglobusutils.so
find debian/tmp -depth -name __pycache__ -exec rm -rf '{}' ';'
......@@ -125,78 +114,76 @@ install: build-stamp
mv debian/tmp/etc/init.d/arc-acix-index \
debian/nordugrid-arc-acix-index.arc-acix-index.init
mv debian/tmp/lib/systemd/system/arc-arex.service \
debian/nordugrid-arc-arex.arc-arex.service
mv debian/tmp/lib/systemd/system/arched.service \
debian/nordugrid-arc-hed.arched.service
mv debian/tmp/lib/systemd/system/arc-datadelivery-service.service \
debian/nordugrid-arc-datadelivery-service.arc-datadelivery-service.service
mv debian/tmp/lib/systemd/system/arc-gridftpd.service \
debian/nordugrid-arc-gridftpd.arc-gridftpd.service
mv debian/tmp/lib/systemd/system/arc-infosys-ldap.service \
debian/nordugrid-arc-infosys-ldap.arc-infosys-ldap.service
mv debian/tmp/lib/systemd/system/arc-infosys-ldap-slapd.service \
debian/nordugrid-arc-infosys-ldap.arc-infosys-ldap-slapd.service
mv debian/tmp/lib/systemd/system/arc-acix-scanner.service \
debian/nordugrid-arc-acix-scanner.arc-acix-scanner.service
mv debian/tmp/lib/systemd/system/arc-acix-index.service \
debian/nordugrid-arc-acix-index.arc-acix-index.service
chmod 4755 debian/tmp/usr/bin/arc-job-cgroup
binary: binary-arch binary-indep
binary-arch: install
dh_testdir
dh_testroot
dh_installdirs -a $(N)
dh_installdocs -a $(N)
dh_installexamples -a $(N)
dh_installman -a $(N)
dh_installlogrotate -a $(N)
dh_install -a $(N) --fail-missing
dh_installchangelogs -a $(N)
override_dh_install:
dh_install --fail-missing
override_dh_installinit:
dh_installinit -p nordugrid-arc-hed --name arched
dh_installinit -p nordugrid-arc-arex --name arc-arex
dh_installinit -p nordugrid-arc-datadelivery-service --name arc-datadelivery-service
dh_installinit -p nordugrid-arc-gridftpd --name arc-gridftpd