-
Notifications
You must be signed in to change notification settings - Fork 4
/
UNINSTALL
executable file
·43 lines (33 loc) · 1.05 KB
/
UNINSTALL
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
42
43
#!/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
SYSDDIR=$DESTDIR/usr/lib/systemd/system
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 -f $SYSDDIR/collectl.service # may not be there...
rm -fr $DOCDIR
rm -fr $SHRDIR