File: substfiles

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 (89 lines) | stat: -rw-r--r-- 2,451 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# -*- mode: shell-script -*-
#
# source:
#   /var/cvs/projects/debian/linbot/debian/dpkg.scripts/substfiles,v
#
# revision:
#   @(#) substfiles,v 1.7 1998/09/12 23:06:53 jplejacq Exp
#
# copyright:
#   Copyright (C) 1998 Jean Pierre LeJacq <jplejacq@quoininc.com>
#
#   Distributed under the GNU GENERAL PUBLIC LICENSE.
#
# description:
#   Define file system structure for package.
#
#   The idea behind this file is to support a variety of directory
#   layouts.  Two layouts are supported here: standard and opt.  Each
#   layout defines the directories that the files are installed in and
#   links that may be reguired to these files from standard locations
#   in the debian file system.
#
#   This file is dependent on debian/dpkg.common/substfiles which
#   defines the standard host directories and files as well as the
#   source package name and version.
#
#   This is not a complete shell script.  Must be included in another
#   file.


# main:
  # source:
    f_pkg_src="${pkg}-${ver}.tar.gz"
    f_pkg_src_unpacked="${pkg}-${ver}"

    url_pkg_dir="http://starship.skyport.net/crew/marduk/linbot"
    url_pkg_src="${url_pkg_dir}/${f_pkg_src}"


  if [ -f "debian/scheme-opt" ]
  then
    d_pkg_root="/opt/${pkg}"

    # directories:
      d_pkg_bin="${d_pkg_root}/bin"
      d_pkg_doc="${d_pkg_root}/doc"
      d_pkg_docbase="${d_pkg_doc}"
      d_pkg_lib="${d_pkg_root}/lib"
      d_pkg_lib_images="${d_pkg_lib}/images"
      d_pkg_lib_python="${d_pkg_lib}/python"
      d_pkg_lib_python_sitepackages="${d_pkg_lib_python}"
      d_pkg_man="${d_pkg_root}/man"

      d_pkg_etc="/etc/opt/${pkg}"


    # files:
      f_pkg_docbase="${d_pkg_docbase}/${pkg}.doc-base"

      f_pkg_etc_conf="${d_pkg_etc}/config.py"


    # links:
      l_pkg_doc="${d_host_doc}/${pkg}"
      l_pkg_docbase="${d_host_docbase}/${pkg}"
  else
    # directories:
      d_pkg_bin="${d_host_bin_usr}"
      d_pkg_doc="${d_host_doc}/${pkg}"
      d_pkg_docbase="${d_host_docbase}"
      d_pkg_lib="${d_host_lib_usr}/${pkg}"
      d_pkg_lib_images="${d_pkg_lib}/images"
      d_pkg_lib_python="${d_pkg_lib}/python"
      d_pkg_lib_python_sitepackages="${d_host_lib_python_sitepackages}/${pkg}"
      d_pkg_man="${d_host_man}"

      d_pkg_etc="${d_host_etc}/${pkg}"


    # files:
      f_pkg_docbase="${d_pkg_docbase}/${pkg}"

      f_pkg_etc_conf="${d_pkg_etc}/config.py"


    # links:
      l_pkg_doc="${d_pkg_doc}"
      l_pkg_docbase="${f_pkg_docbase}"
  fi