~ubuntu-branches/ubuntu/maverick/policycoreutils/maverick

« back to all changes in this revision

Viewing changes to debian/common/install_cmds.mk

  • Committer: Bazaar Package Importer
  • Author(s): Russell Coker
  • Date: 2008-07-13 20:16:00 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080713201600-rbwser3yf8erf6u0
Tags: 2.0.49-2.1
* Non-maintainer upload.
* Made it recommend the new policy packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
######################### -*- Mode: Makefile-Gmake -*- ########################
 
2
## install_cmds.mk ---
 
3
## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com )
 
4
## Created On       : Fri Jun 16 14:40:20 2006
 
5
## Created On Node  : glaurung.internal.golden-gryphon.com
 
6
## Last Modified By : Manoj Srivastava
 
7
## Last Modified On : Wed Sep  6 11:43:05 2006
 
8
## Last Machine Used: glaurung.internal.golden-gryphon.com
 
9
## Update Count     : 9
 
10
## Status           : Unknown, Use with caution!
 
11
## HISTORY          :
 
12
## Description      :
 
13
##
 
14
## arch-tag: a38b6a93-2539-4034-9060-ae94d5c8a071
 
15
##
 
16
## This program is free software; you can redistribute it and/or modify
 
17
## it under the terms of the GNU General Public License as published by
 
18
## the Free Software Foundation; either version 2 of the License, or
 
19
## (at your option) any later version.
 
20
##
 
21
## This program is distributed in the hope that it will be useful,
 
22
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 
23
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
24
## GNU General Public License for more details.
 
25
##
 
26
## You should have received a copy of the GNU General Public License
 
27
## along with this program; if not, write to the Free Software
 
28
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
29
##
 
30
###############################################################################
 
31
 
 
32
# install commands
 
33
INSTALL = install
 
34
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
 
35
    INSTALL_PROGRAM += -s
 
36
endif
 
37
install_file    = $(INSTALL) -p    -o root -g root  -m  644
 
38
install_program = $(INSTALL) -p    -o root -g root  -m  755
 
39
install_script  = $(INSTALL) -p    -o root -g root  -m  755
 
40
make_directory  = $(INSTALL) -p -d -o root -g root  -m  755
 
41
 
 
42
define create_md5sum
 
43
    create_md5sums_fn () {                                         \
 
44
        cd $$1 ;                                                   \
 
45
       find . -type f                                              \
 
46
              ! -regex './DEBIAN/.*'                               \
 
47
              ! -regex './etc/.*'     $(EXTRA_MD5SUM_EXCLUDE)      \
 
48
              -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; \
 
49
       if [ -z "DEBIAN/md5sums" ] ; then                           \
 
50
           rm -f "DEBIAN/md5sums" ;                                \
 
51
       fi ;                                                        \
 
52
    } ;                                                            \
 
53
    create_md5sums_fn 
 
54
endef
 
55
 
 
56
#Local variables:
 
57
#mode: makefile
 
58
#End: