File: UNINSTALL

package info (click to toggle)
collectl 3.7.4-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,624 kB
  • ctags: 119
  • sloc: perl: 14,928; sh: 429; makefile: 11
file content (41 lines) | stat: -rwxr-xr-x 982 bytes parent folder | download | duplicates (2)
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
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

DESTDIR=${DESTDIR:="/"}

#    R e m o v e    O L D    S t r u c t u r e    I f   T h e r e

# These structures were created in a pre-$DESTDIR world
BINDIR=/opt/hp/collectl

# This is code
rm -fr $BINDIR

# These are all symlinks
rm -f /usr/bin/collectl
rm -f /usr/sbin/collectl
rm -f /etc/collectl.conf
rm -f /etc/init.d/collectl
rm -f /usr/share/man/man1/collectl.1.gz

rm -f /etc/init.d/rc?.d/*collectl
rm -f /etc/rc.d/rc?.d/*collectl
rm -f /etc/rc?.d/*collectl               # debian different
rm -f /etc/init.d/collectl               # gentoo and generic
rm -f /etc/runlevels/default/collectl    # gentoo

#    N e w    D i r e c t o r y    S t r u c t u r e

BINDIR=$DESTDIR/usr/bin
DOCDIR=$DESTDIR/usr/share/doc/collectl
SHRDIR=$DESTDIR/usr/share/collectl
MANDIR=$DESTDIR/usr/share/man/man1
ETCDIR=$DESTDIR/etc
INITDIR=$ETCDIR/init.d

rm -f $BINDIR/collectl
rm -f $ETCDIR/collectl.conf
rm -f $INITDIR/collectl
rm -f $MANDIR/collectl*

rm -fr $DOCDIR
rm -fr $SHRDIR