File: postinst

package info (click to toggle)
snoopy 1.3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 104 kB
  • ctags: 16
  • sloc: ansic: 92; sh: 59; makefile: 57
file content (26 lines) | stat: -rw-r--r-- 481 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

. /usr/share/debconf/confmodule

PRELOAD="/etc/ld.so.preload"
LIBNAME="/lib/snoopy.so"

if [ "$1" = "configure" ]; then

	# is snoopy already in $PRELOADFILE?

	test -f	$PRELOAD && grep "^$LIBNAME" $PRELOAD && exit 0

	db_get snoopy/install-ld-preload
	if [ x"$RET" = x"true" ]; then
		ld.so.preload-manager -y $LIBNAME > /dev/null
	fi

	if [ -d /usr/doc -a ! -e /usr/doc/pkg -a -d /usr/share/doc/pkg ]; then
		ln -sf ../share/doc/pkg /usr/doc/pkg
	fi
fi



#DEBHELPER#