postinst is in libpetsc3.4.2-dev 3.4.2.dfsg1-6.
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 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/sh -e
# Make alternatives links
if [ "$1" = "configure" ]; then
install -d /usr/share/aclocal
update-alternatives --install /usr/lib/petsc petsc /usr/lib/petscdir/3.4.2 3420 \
--slave /usr/bin/petscarch petscarch /usr/lib/petscdir/3.4.2/bin/petscarch \
--slave /usr/bin/mpirun_lam mpirun_lam /usr/lib/petscdir/3.4.2/bin/mpirun_lam \
--slave /usr/share/man/man1/petscarch.1.gz petscarch.1.gz /usr/lib/petscdir/3.4.2/bin/petscarch.1.gz \
--slave /usr/share/man/man1/mpirun_lam.1.gz mpirun_lam.1.gz /usr/lib/petscdir/3.4.2/bin/mpirun_lam.1.gz \
--slave /usr/include/petsc petscinclude /usr/lib/petscdir/3.4.2/include \
--slave /usr/share/aclocal/petsc.m4 petsc.m4 /usr/lib/petscdir/3.4.2/aclocal/petsc.m4 \
--slave /usr/lib/libpetsc.a libpetsc.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetsc.so libpetsc.so /usr/lib/libpetsc.so.3.4.2 \
--slave /usr/lib/libpetscdm.a libpetscdm.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetscdm.so libpetscdm.so /usr/lib/libpetsc.so.3.4.2 \
--slave /usr/lib/libpetscfortran.a libpetscfortran.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetscmat.a libpetscmat.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetscmat.so libpetscmat.so /usr/lib/libpetsc.so.3.4.2 \
--slave /usr/lib/libpetscksp.a libpetscksp.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetscksp.so libpetscksp.so /usr/lib/libpetsc.so.3.4.2 \
--slave /usr/lib/libpetscsnes.a libpetscsnes.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetscsnes.so libpetscsnes.so /usr/lib/libpetsc.so.3.4.2 \
--slave /usr/lib/libpetscts.a libpetscts.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetscts.so libpetscts.so /usr/lib/libpetsc.so.3.4.2 \
--slave /usr/lib/libpetscvec.a libpetscvec.a /usr/lib/petscdir/3.4.2/lib/libO/libpetsc.a \
--slave /usr/lib/libpetscvec.so libpetscvec.so /usr/lib/libpetsc.so.3.4.2
update-alternatives --install /usr/share/aclocal/math-blaslapack.m4 math-blaslapack.m4 /usr/lib/petscdir/3.4.2/aclocal/math-blaslapack.m4 1
fi
|