~ubuntu-branches/ubuntu/trusty/libpam-mount/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Kleineidam
  • Date: 2010-08-25 21:26:53 UTC
  • Revision ID: james.westby@ubuntu.com-20100825212653-pnk9421gg7i1yrwr
Tags: 2.5-2
* Improved arch detection in debian/rules.
* Fix configure flag to disable libcryptsetup on non-linux systems.
  (Closes: #592492)
* Urgency medium due to RC bugfix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# helper var
5
5
BASE:=$(CURDIR)/debian/libpam-mount
6
6
# Only use libcrypt on Linux systems
7
 
LINUX_ANY:=$(shell if dpkg-architecture -ilinux-any; then echo yes; fi)
8
 
ifeq ($(LINUX_ANY),)
9
 
EXTRACONF:=--without-libcryptsetup
 
7
DEB_HOST_ARCH_OS:=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
8
ifeq ($(DEB_HOST_ARCH_OS),linux)
 
9
EXTRACONF:=--with-cryptsetup
 
10
else
 
11
EXTRACONF:=--without-cryptsetup
10
12
endif
 
13
 
11
14
# install pam_mount.so in /lib/security; enable selinux install;
12
15
# install DTD for XML configuration
13
16
DEB_CONFIGURE_USER_FLAGS:=--libdir=/lib --with-selinux --with-dtd $(EXTRACONF)