#!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2005-2008 Jonas Smedegaard # NB! Local cdbs tweaks are used: See debian/README.cdbs-tweaks ifneq (,$(DEB_MAINTAINER_MODE)) # Enable stuff not policy compliant (eg. unsuitable for build daemons) DEB_COPYRIGHT_CHECK_STRICT = yes DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes DEB_BACKPORT_WORKAROUNDS = yes endif include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk include debian/cdbs/1/rules/buildinfo.mk include debian/cdbs/1/rules/copyright-check.mk include debian/cdbs/1/rules/upstream-tarball.mk # URL requires update for each new release, due to Alioth storage scheme # Locate new URL here: http://alioth.debian.org/frs/?group_id=30832 DEB_UPSTREAM_URL = http://alioth.debian.org/frs/download.php/1314 DEB_UPSTREAM_TARBALL_MD5 = 01bb3cfc96b93ba838618acc6da5ee80 # Yaird is right in respecting $PATH, but for # packaging we need to force using packaged perl DEB_CONFIGURE_EXTRA_FLAGS = PERL="/usr/bin/perl" DEB_PERL_INCLUDE = /usr/lib/yaird/perl DEB_INSTALL_EXAMPLES_yaird := debian/examples/* # dh_install cannot handle rename, # so need an explicit rule here. common-install-arch:: mv debian/yaird/etc/yaird/Debian.cfg debian/yaird/etc/yaird/Templates.cfg rm -f debian/yaird/etc/yaird/Fedora.cfg # If allowed, enable LVM workaround in Templates.cfg on Etch common-binary-post-install-arch:: if [ "yes" = "$(DEB_BACKPORT_WORKAROUNDS)" ] && grep -q '^4\.0$$' /etc/debian_version; then \ sed -i -e 's/#\(FILE "\/lib\/lvm-200\/vgchange"\)$$/\1/' debian/yaird/etc/yaird/Templates.cfg; \ dch -m -a "Enable LVM workaround by default (needed on Etch)."; \ fi # Needed for by upstream build process CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), xmlto # Resolve, cleanup and apply CDBS-declared dependencies include debian/cdbs/1/rules/package-relations.mk