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 80 81 82
|
#!/usr/bin/make -f
# -*- makefile -*-
#
# Expected debian/rules file that is used by the dpkg build procedure
#
# $ git clone <nfs-ganesha>
# $ cd nfs-ganesha/src
# $ dpkg-buildpackage -uc -us
#
export PREFIX=/usr
export DESTDIR=$(CURDIR)/debian/tmp
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --with python2,systemd
override_dh_auto_configure:
cd src && ln -s ../debian .
cd src && dh_auto_configure -- \
-DBUILD_CONFIG=debian \
-DFSAL_DESTINATION=/usr/lib/${DEB_HOST_MULTIARCH}/ganesha \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_FSAL_NULL=YES \
-DUSE_FSAL_ZFS=NO \
-DUSE_FSAL_XFS=YES \
-DUSE_FSAL_LUSTRE=NO \
-DUSE_FSAL_CEPH=YES \
-DUSE_FSAL_RGW=NO \
-DUSE_FSAL_GPFS=YES \
-DUSE_FSAL_PANFS=NO \
-DUSE_FSAL_GLUSTER=YES \
-DUSE_SYSTEM_NTIRPC=YES \
-DUSE_9P_RDMA=NO \
-DUSE_LTTNG=YES \
-DUSE_ADMIN_TOOLS=YES \
-DUSE_GUI_ADMIN_TOOLS=YES \
-DUSE_RADOS_RECOV=NO \
-DUSE_RADOS_URLS=NO \
-DUSE_FSAL_VFS=ON \
-DUSE_FSAL_PROXY=ON \
-DUSE_DBUS=ON \
-DUSE_9P=ON \
-DDISTNAME_HAS_GIT_DATA=OFF \
-DUSE_MAN_PAGE=YES
override_dh_auto_build:
cd src && dh_auto_build
override_dh_auto_test:
override_dh_install:
mkdir -p debian/tmp/etc/ganesha/
mkdir -p debian/tmp/lib/systemd/system
mkdir -p debian/tmp/etc/default
mkdir -p debian/tmp/etc/logrotate.d/
mkdir -p debian/tmp/etc/dbus-1/system.d/
mkdir -p debian/tmp/usr/lib/ganesha/
mkdir -p debian/tmp/usr/sbin/
cp src/config_samples/vfs.conf debian/tmp/etc/ganesha/ganesha.conf
cp src/config_samples/vfs.conf debian/tmp/etc/ganesha/vfs.conf
cp src/config_samples/xfs.conf debian/tmp/etc/ganesha/xfs.conf
cp src/config_samples/rgw.conf debian/tmp/etc/ganesha/rgw.conf
cp src/config_samples/mem.conf debian/tmp/etc/ganesha/mem.conf
cp src/config_samples/gluster.conf debian/tmp/etc/ganesha/gluster.conf
cp src/config_samples/ceph.conf debian/tmp/etc/ganesha/ceph.conf
cp src/config_samples/gpfs.conf debian/tmp/etc/ganesha/gpfs.conf
cp src/config_samples/gpfs.ganesha.exports.conf debian/tmp/etc/ganesha/gpfs.ganesha.exports.conf
cp src/config_samples/gpfs.ganesha.log.conf debian/tmp/etc/ganesha/gpfs.ganesha.log.conf
cp src/config_samples/gpfs.ganesha.main.conf debian/tmp/etc/ganesha/gpfs.ganesha.main.conf
cp src/config_samples/gpfs.ganesha.nfsd.conf debian/tmp/etc/ganesha/gpfs.ganesha.nfsd.conf
cp src/config_samples/logrotate_ganesha debian/tmp/etc/logrotate.d/nfs-ganesha
cp src/config_samples/logrotate_fsal_gluster debian/tmp/etc/logrotate.d/nfs-ganesha-gfapi
cp src/scripts/systemd/nfs-ganesha.service.debian8 debian/tmp/lib/systemd/system/nfs-ganesha.service
cp src/scripts/systemd/nfs-ganesha-config.service debian/tmp/lib/systemd/system/
cp src/scripts/systemd/nfs-ganesha-lock.service.debian8 debian/tmp/lib/systemd/system/nfs-ganesha-lock.service
cp src/scripts/systemd/sysconfig/nfs-ganesha debian/tmp/etc/default/
cp src/scripts/ganeshactl/org.ganesha.nfsd.conf debian/tmp/etc/dbus-1/system.d/nfs-ganesha-dbus.conf
install -m 755 src/scripts/nfs-ganesha-config.sh debian/tmp/usr/lib/ganesha/
install -m 755 src/tools/mount.9P debian/tmp/usr/sbin/
make -C src/obj-*-linux-gnu* install && dh_install --sourcedir=./src
|