~samiam/MaraDNS

ref: 3.5.0002 MaraDNS/build/uninstall.sh -rwxr-xr-x 1.3 KiB View raw
db09084f — Sam Trenholme MaraDNS release 3.5.0002 3 months ago
                                                                                
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


# Shell script which uninstalls the MaraDNS files 

# We call install.locations to set BIN, SBIN, MAN1, and MAN8
# It is in a separate file to insure that install.sh and uninstall.sh
# have the same values
if [ -z "$BUILDDIR" ] ; then
        BUILDDIR="build"
fi
. $BUILDDIR/install.locations

echo Removing MaraDNS by erasing programs in $BIN and $SBIN,
echo man pages in $MAN1 and $MAN8, and the directory tree $DOCS
cd $SBIN
rm maradns zoneserver Deadwood
cd $BIN
rm askmara getzone
cd $MAN1
rm askmara.1 getzone.1 Deadwood.1
cd $MAN8
rm maradns.8 zoneserver.8
rm -fr $DOCS
if [ -d /etc/rc.d/init.d ] ; then
	echo Removing MaraDNS startup scripts
	rm /etc/rc.d/rc3.d/S60maradns
	rm /etc/rc.d/rc5.d/S60maradns
	rm /etc/rc.d/init.d/maradns
	rm /etc/rc.d/rc3.d/K60maradns.zoneserver
	rm /etc/rc.d/rc5.d/K60maradns.zoneserver
	rm /etc/rc.d/init.d/maradns.zoneserver
	rm /etc/rc.d/rc3.d/S60maradns.deadwood
	rm /etc/rc.d/rc5.d/S60maradns.deadwood
	rm /etc/rc.d/init.d/maradns.deadwood
fi

echo Note that cahced copies of man pages may still be lurking around
echo
echo Not removing configuration files.  If you wish to completely purge 
echo MaraDNS from your system, rm /etc/mararc, /etc/dwood3rc and the 
echo /etc/maradns/ directory, as well as any cached copies of MaraDNS man pages