#!/usr/bin/make -f
-############################ -*- Mode: Makefile -*- ###########################
-## rules ---
-## Author : Manoj Srivastava ( srivasta@tiamat.datasync.com )
-## Created On : Thu Oct 29 15:35:55 1998
-## Created On Node : tiamat.datasync.com
-## Last Modified By : Manoj Srivastava
-## Last Modified On : Tue Oct 26 15:20:25 2004
-## Last Machine Used: glaurung.internal.golden-gryphon.com
-## Update Count : 62
-## Status : Unknown, Use with caution!
-## HISTORY :
-## Description :
-## $Id$
-###############################################################################
ifdef ARCH
ha:=-a$(ARCH)
export DEB_HOST_GNU_SYSTEM ?= $(shell dpkg-architecture $(ha) -qDEB_HOST_GNU_SYSTEM)
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture $(ha) -qDEB_HOST_GNU_TYPE)
-arch := $(shell dpkg --print-installation-architecture)
+arch := $(shell dpkg --print-architecture)
# Basic information
package := $(shell grep Source debian/control | sed 's/^Source: //')
$(install_file) $(FHS_HTML) $(DOCDIR)/fhs
@set -ex; \
cd debian/tmp; \
- find . -type f -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
- sed -e 's/#PACKAGE#/$(package)/g' debian/postinst.in > debian/postinst
- sed -e 's/#PACKAGE#/$(package)/g' debian/prerm.in > debian/prerm
- $(install_program) debian/postinst debian/tmp/DEBIAN/
- $(install_program) debian/prerm debian/tmp/DEBIAN/
+ find . -path "./DEBIAN" -prune -o -type f -printf '%P\0' \
+ | xargs -r0 md5sum > DEBIAN/md5sums
dpkg-gencontrol -p$(package) -Pdebian/tmp -isp
chown -R root:root debian/tmp
chmod -R go=rX debian/tmp