File: postinst

package info (click to toggle)
gnuplot 3.7.2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,212 kB
  • ctags: 4,635
  • sloc: ansic: 43,538; cpp: 970; makefile: 883; lisp: 661; sh: 578; asm: 539; objc: 379; csh: 297; pascal: 192; perl: 138
file content (26 lines) | stat: -rw-r--r-- 548 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
#!/bin/sh 

# Author: Thimo Neubauer <thimo@debian.org>
# $Id: postinst,v 1.12 2001/06/12 13:36:45 thimo Exp $

# Source debconf library.
. /usr/share/debconf/confmodule

# what has to be changed?
BINARY=/usr/bin/gnuplot

# get variable-value
db_get gnuplot/setuid
if [ "$RET" = "true" ]; then
  # set the statoverride
  dpkg-statoverride --update --add root root 4755 $BINARY
else 
  # delete the statoverride (if set)
  set +e
  dpkg-statoverride --remove $BINARY > /dev/null 2>&1
  set -e
  # change the mode
  chmod 755 $BINARY
fi

#DEBHELPER#