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
|
#!/usr/bin/make -f
DEB_BUILD_OPTIONS=nostrip
include /usr/share/cdbs/1/rules/debhelper.mk
#include /usr/share/cdbs/1/rules/dpatch.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/class/makefile.mk
# Enable extra configure flags
DEB_CONFIGURE_EXTRA_FLAGS += --enable-compat14 --enable-nfprofile
# Build nfdump with nfprofile for nfsen
# --enable-nfprofile
# Build nfdump to read pre 1.5 data files. Use
# this option if you have data files
# nfdump <= 1.4.1
#--enable-compat14
# Build ft2nfdump converter. The flow-tools
# sources are required to build ft2nfdump.
# --enable-ftconv
# --with-ftpath[=flow-tools sources]
# When using SUNWspro CC on Solaris, you may
# compile 64 bit code.
# --enable-64
#
# Build sflow collector daemon.
# --enable-sflow
# define clean taget
DEB_MAKE_CLEAN_TARGET = distclean
# That will avoid passing CFLAGS
DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR)
DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/nfdump/
# this is temporarily needed because of a cdbs issue
#unpatch: deapply-dpatches
# I store every patch in a seperate branch and use refresh-patches to generate
# patches used by debian package. THIS IS JUST A TEMPLATE STOLEN from
# tokyocabinet package.
refresh-patches:
@dh_testdir
@echo 'refreshing debian/patches:'
@rm -rf '$(CURDIR)'/debian/patches
@mkdir -p '$(CURDIR)'/debian/patches
cd '$(CURDIR)'/debian/patches && \
for each in `cat ../git-active-patches | egrep -v '^#|^ *$$' | sort` ; do \
git diff upstream..upstream-patches/`echo $$each | cut -d_ -f2-` > $$each.patch; \
done
@echo .
#
#patch: patch-stamp
#patch-stamp:
# dh_testdir
# set -e; test -e patch-stamp || \
# for i in `ls -1 debian/patches/*.patch || :`; do patch -p1 <$$i > /dev/null; done
# touch $@
#
#unpatch:
# dh_testdir
# set -e; ! test -e patch-stamp || \
# for i in `ls -1r debian/patches/*.patch || :`; do patch -p1 -R <$$i > /dev/null; done
# rm -f patch-stamp
|