This file is indexed.

postinst is in cpl-plugin-amber-calib 4.2.2+dfsg-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

PIPELINE=amber
VERSION=4.2.2

KIT=${PIPELINE}-kit-${VERSION}
CALIB=${PIPELINE}-calib-${VERSION}
URL=ftp://ftp.eso.org/pub/dfs/pipelines/${PIPELINE}/${KIT}.tar.gz
TAR=${KIT}/${CALIB}.tar.gz
COMPONENTS="${CALIB}/cal"
TARGETDIR="/usr/share/cpl-plugins/${PIPELINE}-${VERSION}"

if [ "$1" = "configure" ] ; then
    mkdir -p ${TARGETDIR}
    wget -O- ${URL} | \
    tar xzO ${TAR} | \
    tar xzC ${TARGETDIR} ${COMPONENTS}  --strip-components=1
fi