~ubuntu-branches/ubuntu/trusty/checkpolicy/trusty

« back to all changes in this revision

Viewing changes to debian/common/pkgvars.mk

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2004-11-24 14:01:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041124140141-2w64gbhqynveunlv
Tags: 1.18-2
Update download location and copyright file, since the locations we
were pointing to are now forbidden (return a code 403).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
############################ -*- Mode: Makefile -*- ###########################
 
2
## pkgvars.mk --- 
 
3
## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
 
4
## Created On       : Sat Nov 15 02:56:30 2003
 
5
## Created On Node  : glaurung.green-gryphon.com
 
6
## Last Modified By : Manoj Srivastava
 
7
## Last Modified On : Tue Nov 18 01:06:00 2003
 
8
## Last Machine Used: glaurung.green-gryphon.com
 
9
## Update Count     : 5
 
10
## Status           : Unknown, Use with caution!
 
11
## HISTORY          : 
 
12
## Description      : 
 
13
## 
 
14
## arch-tag: 75fcc720-7389-4eaa-a7ac-c556d3eac331
 
15
## 
 
16
###############################################################################
 
17
 
 
18
# The maintainer information.
 
19
maintainer := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Maintainer: | \
 
20
                sed 's/^Maintainer: *//')
 
21
email := srivasta@debian.org
 
22
 
 
23
# Priority of this version (or urgency, as dchanges would call it)
 
24
urgency := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Urgency: | \
 
25
             sed 's/^Urgency: *//')
 
26
 
 
27
# Common useful variables
 
28
DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control      |       \
 
29
                                      cut -f 2 -d ':'))
 
30
DEB_VERSION        := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |       \
 
31
                                      egrep '^Version:' | cut -f 2 -d ' '))
 
32
DEB_ISNATIVE       := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |       \
 
33
                       perl -ne 'print if (m/^Version:/g && ! m/^Version:.*\-/);'))
 
34
 
 
35
DEB_PACKAGES := $(shell perl -e '                                                    \
 
36
                  $$/="";                                                            \
 
37
                  while(<>){                                                         \
 
38
                     $$p=$$1 if m/^Package:\s*(\S+)/;                                \
 
39
                     die "duplicate package $$p" if $$seen{$$p};                     \
 
40
                     $$seen{$$p}++; print "$$p " if $$p;                             \
 
41
                  }' debian/control )
 
42
 
 
43
DEB_INDEP_PACKAGES := $(shell perl -e '                                              \
 
44
                         $$/="";                                                     \
 
45
                         while(<>){                                                  \
 
46
                            $$p=$$1 if m/^Package:\s*(\S+)/;                         \
 
47
                            die "duplicate package $$p" if $$seen{$$p};              \
 
48
                            $$seen{$$p}++;                                           \
 
49
                            $$a=$$1 if m/^Architecture:\s*(\S+)/m;                   \
 
50
                            next unless ($$a eq "all");                              \
 
51
                            print "$$p " if $$p;                                     \
 
52
                         }' debian/control )
 
53
 
 
54
DEB_ARCH_PACKAGES := $(shell perl -e '                                               \
 
55
                         $$/="";                                                     \
 
56
                         while(<>){                                                  \
 
57
                            $$p=$$1 if m/^Package:\s*(\S+)/;                         \
 
58
                            die "duplicate package $$p" if $$seen{$$p};              \
 
59
                            $$seen{$$p}++;                                           \
 
60
                            $$a=$$1 if m/^Architecture:\s*(\S+)/m;                   \
 
61
                            next unless ($$a eq "$(DEB_HOST_ARCH)" || $$a eq "any"); \
 
62
                            print "$$p " if $$p;                                     \
 
63
                         }' debian/control )
 
64
 
 
65
# This package is what we get after removing the psuedo dirs we use in rules
 
66
package = $(notdir $@)
 
67
 
 
68