~pali/+junk/mesa-lts-saucy-packaging

« back to all changes in this revision

Viewing changes to debian/libegl1-mesa-lts-saucy.postinst.in

  • Committer: Pali Rohár
  • Date: 2014-04-11 10:59:06 UTC
  • Revision ID: pali.rohar@gmail.com-20140411105906-qk25ix27pd6rdho8
Import debian packaging for mesa-lts-saucy version 9.2.1-1ubuntu3~precise1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
THIS_PACKAGE=libegl1-mesa
 
6
THIS_SCRIPT=postinst
 
7
 
 
8
case "$1" in
 
9
  configure)
 
10
  # Use alternatives to make it easier to switch between Mesa and 3rd party modules
 
11
  update-alternatives --force \
 
12
    --install /etc/ld.so.conf.d/${DEB_HOST_MULTIARCH}_EGL.conf ${DEB_HOST_MULTIARCH}_egl_conf /usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl/ld.so.conf 500 \
 
13
 
 
14
  # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
 
15
  # alternatives.
 
16
  LDCONFIG_NOTRIGGER=y ldconfig
 
17
 
 
18
esac
 
19
 
 
20
#DEBHELPER#
 
21
 
 
22
exit 0