1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
%:
dh $@ --with python3 --with sphinxdoc
override_dh_auto_configure:
dh_auto_configure -- \
-DUSE_LIBC_SEMAPHORE:BOOL=1 \
-DPYTHON_EXECUTABLE:PATH=/usr/bin/python3
override_dh_auto_build:
dh_auto_build
doxygen Doxyfile
LD_LIBRARY_PATH=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/src/XrdCl:$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/src \
PYTHONPATH=$$(cd obj-$(DEB_HOST_GNU_TYPE)/bindings/python/build/lib.* ; pwd) \
make -C bindings/python/docs html
override_dh_auto_clean:
dh_auto_clean
rm -rf doxydoc
rm -rf bindings/python/docs/build
override_dh_auto_install:
dh_auto_install
mkdir -p debian/tmp/lib/systemd/system
install -m 644 packaging/common/xrootd@.service debian/tmp/lib/systemd/system
install -m 644 packaging/common/xrootd@.socket debian/tmp/lib/systemd/system
install -m 644 packaging/common/xrdhttp@.socket debian/tmp/lib/systemd/system
install -m 644 packaging/common/cmsd@.service debian/tmp/lib/systemd/system
install -m 644 packaging/common/frm_xfrd@.service debian/tmp/lib/systemd/system
install -m 644 packaging/common/frm_purged@.service debian/tmp/lib/systemd/system
mkdir -p debian/tmp/usr/lib/tmpfiles.d
install -m 644 packaging/rhel/xrootd.tmpfiles debian/tmp/usr/lib/tmpfiles.d/xrootd.conf
mkdir -p debian/tmp/etc/xrootd
install -m 644 -p packaging/common/xrootd-clustered.cfg \
debian/tmp/etc/xrootd/xrootd-clustered.cfg
install -m 644 -p packaging/common/xrootd-standalone.cfg \
debian/tmp/etc/xrootd/xrootd-standalone.cfg
install -m 644 -p packaging/common/xrootd-filecache-clustered.cfg \
debian/tmp/etc/xrootd/xrootd-filecache-clustered.cfg
install -m 644 -p packaging/common/xrootd-filecache-standalone.cfg \
debian/tmp/etc/xrootd/xrootd-filecache-standalone.cfg
sed 's!/usr/lib64/!!' packaging/common/xrootd-http.cfg > \
debian/tmp/etc/xrootd/xrootd-http.cfg
mkdir -p debian/tmp/etc/xrootd/client.plugins.d
install -m 644 -p packaging/common/client.conf \
debian/tmp/etc/xrootd/client.conf
sed 's!/usr/lib/!!' packaging/common/client-plugin.conf.example > \
debian/tmp/etc/xrootd/client.plugins.d/client-plugin.conf.example
chmod 644 debian/tmp/usr/share/xrootd/utils/XrdCmsNotify.pm
sed 's!/usr/bin/env perl!/usr/bin/perl!' -i \
debian/tmp/usr/share/xrootd/utils/netchk \
debian/tmp/usr/share/xrootd/utils/XrdCmsNotify.pm \
debian/tmp/usr/share/xrootd/utils/XrdOlbMonPerf
sed 's!/usr/bin/env bash!/bin/bash!' -i \
debian/tmp/usr/bin/xrootd-config
mkdir -p debian/tmp/etc/xrootd/config.d
mkdir -p debian/tmp/var/log/xrootd
mkdir -p debian/tmp/var/spool/xrootd
mkdir -p debian/tmp/etc/logrotate.d
install -m 644 -p packaging/common/xrootd.logrotate \
debian/tmp/etc/logrotate.d/xrootd
mkdir -p debian/tmp/usr/share/doc/xrootd
cp -pr doxydoc/html debian/tmp/usr/share/doc/xrootd
cp -pr bindings/python/docs/build/html debian/tmp/usr/share/doc/xrootd/python
|