X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=debian%2Frules;h=931925b2451278f3f55bac8632c5fd6376f8635f;hb=6dc06d9d5547e15bad92107516e8ee9fcdace318;hp=78452df796481d4cd4824f9098e0a96c22d64212;hpb=8f94ab178da95f87bd131b8faaec313a5d9d672f;p=gzip diff --git a/debian/rules b/debian/rules index 78452df..931925b 100755 --- a/debian/rules +++ b/debian/rules @@ -5,8 +5,11 @@ # Comment this to turn off debhelper verbose mode. export DH_VERBOSE=1 -# This is the debhelper compatibility version to use. -export DH_COMPAT=3 +DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +CONFARGS = --host=$(DEB_HOST_GNU_TYPE) +endif CFLAGS="-g -O2 -Wall" @@ -14,9 +17,9 @@ configure: configure-stamp configure-stamp: dh_testdir CFLAGS=$(CFLAGS) ./configure \ - --prefix=/usr \ + --prefix=/usr --bindir=/bin \ --infodir=`pwd`/debian/gzip/usr/share/info \ - --mandir=`pwd`/debian/gzip/usr/share/man + --mandir=`pwd`/debian/gzip/usr/share/man $(CONFARGS) touch configure-stamp build: configure-stamp build-stamp @@ -38,9 +41,9 @@ install: build dh_clean -k dh_installdirs - make install prefix=debian/gzip/usr bindir=debian/gzip/bin \ - scriptdir=debian/gzip/usr/bin - ln debian/gzip/bin/gzip debian/gzip/bin/uncompress + make install prefix=debian/gzip/usr bindir=debian/gzip/bin + install -o root -g root -m 0644 debian/gzip.lintian \ + debian/gzip/usr/share/lintian/overrides/gzip binary-indep: build install @@ -49,8 +52,8 @@ binary-arch: build install dh_testroot dh_installdocs README* TODO dh_installmanpages - dh_installinfo gzip.info - dh_installchangelogs + dh_installinfo doc/gzip.info + dh_installchangelogs ChangeLog dh_link dh_strip dh_compress