3 DEB_VERSION
:= $(shell dpkg-parsechangelog | egrep
'^Version:' | cut
-f
2 -d
' ')
5 DEB_BUILD_GNU_TYPE
:= $(shell dpkg-architecture
-qDEB_BUILD_GNU_TYPE
)
6 DEB_HOST_GNU_TYPE
:= $(shell dpkg-architecture
-qDEB_HOST_GNU_TYPE
)
8 ifeq ($(DEB_BUILD_GNU_TYPE
),$(DEB_HOST_GNU_TYPE
))
11 CROSS
:= CC
=$(DEB_HOST_GNU_TYPE
)-gcc
22 override_dh_installexamples
:
23 dh_installexamples
-p iproute2-doc examples
/*
25 override_dh_shlibdeps
:
26 dh_shlibdeps
-a
-Xq_atm.so
-Xm_xt.so
-Xm_ipt.so
27 dh_shlibdeps
-a
-- -pipmods
-dRecommends
-e debian
/iproute2
/usr
/lib
/tc
/m_xt.so
-e debian
/iproute2
/usr
/lib
/tc
/q_atm.so
-xlibc6
29 override_dh_auto_configure
:
30 $(CROSS
) dh_auto_configure
32 override_dh_auto_build
:
33 # $(MAKE) -C doc all txt
35 $(MAKE
) KERNEL_INCLUDE
=.
/include $(CROSS
)
37 # bump version of the transitional packages...
38 override_dh_gencontrol
:
39 dh_gencontrol
-piproute
-- -v1
:$(DEB_VERSION
)
40 dh_gencontrol
-piproute-doc
-- -v1
:$(DEB_VERSION
)
41 dh_gencontrol
--remaining-packages