File: installowners.in

package info (click to toggle)
linbot 0.8-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 140 kB
  • ctags: 5
  • sloc: sh: 602; makefile: 126; perl: 7
file content (41 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#
# source:
#   /var/cvs/projects/debian/linbot/debian/dpkg.scripts/installowners.in,v
#
# revision:
#   @(#) installowners.in,v 1.2 1998/04/17 18:21:33 jplejacq Exp
#
# copyright:
#   Copyright (C) 1998 Jean Pierre LeJacq <jplejacq@quoininc.com>
#
#   Distributed under the GNU GENERAL PUBLIC LICENSE.
#
# synopsis:
#   installowners -p <DH_DOPACKAGES> -P <DH_TMPDIR>
#
# description:
#   Adjust owners of directories and files in DESTDIR
#
#   This needs to be done as the last thing before the binary package
#   is built with dpkg-deb.  This minimizes the need to be root to
#   build the package.  Instead, regular users can be granted access
#   (with super or sudo) to only chown.  This is useful when using
#   dpkg-buildpackage which signs the resulting package with the
#   builder's pgp key.


# main:
  set -e

  echo "${0}: parsing arguments..."
    PATH=debian:${PATH}:/usr/lib/debhelper

    . /usr/lib/debhelper/dh_lib


  echo "${0}: setting ownership of package files..."
    chown -R root.root ${DH_TMPDIR}


  exit 0