File: package.sh

package info (click to toggle)
hatop 0.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 632 kB
  • sloc: python: 1,794; sh: 152; makefile: 75
file content (39 lines) | stat: -rwxr-xr-x 905 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

############################
#  Exported variables.     #
############################

export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

if [ $# -lt 1 ]; then
    echo "$0 <pkg_type>"
    exit 1
fi

PKG_TYPE=$1

PKG_SCRIPT="${BASE_DIR}/package_${PKG_TYPE}.sh"

# Check and call script
if [ ! -f $PKG_SCRIPT ]; then
    echo "$PKG_SCRIPT not found"
    exit 1
fi

# Info
export PACKAGE_NAME="hatop"
export PACKAGE_DESCRIPTION="An Interactive ncurses Client for HAProxy"
export PACKAGE_VERSION="0.8.2-rc1"
export PACKAGE_PROGRAM="hatop"

# Directories.
export PACKAGE_PREFIX=/usr
export PACKAGE_BINDIR=${PACKAGE_PREFIX}/bin
export PACKAGE_SHAREDIR=${PACKAGE_PREFIX}/share/${PACKAGE_NAME}
export PACKAGE_MANDIR=${PACKAGE_PREFIX}/share/man
export PACKAGE_OUTPUTDIR="${BASE_DIR}/tmp"
export PACKAGE_TMPDIR="${PACKAGE_OUTPUTDIR}/pkg_${PKG_TYPE}"


. $PKG_SCRIPT