]> granicus.if.org Git - sudo/commitdiff
Remove init.d file and link in uninstall target.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 16 Feb 2014 22:07:22 +0000 (15:07 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 16 Feb 2014 22:07:22 +0000 (15:07 -0700)
src/Makefile.in

index c33b1662d5d2c724396b8901057bd97a4e3af514..4e0019399e3e79ca9317e7b2d027a3b87d588954 100644 (file)
@@ -176,6 +176,9 @@ uninstall:
        -rm -f  $(DESTDIR)$(bindir)/sudo $(DESTDIR)$(bindir)/sudoedit \
                $(DESTDIR)$(libexecdir)/sudo/sesh \
                $(DESTDIR)$(noexecdir)/$(noexecfile)
+       @if [ -n "$(INIT_SCRIPT)" ]; then \
+           rm -f $(DESTDIR)$(RC_LINK) $(DESTDIR)$(INIT_DIR)/sudo; \
+       fi
 
 cppcheck:
        cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I. -I$(srcdir) -I$(top_srcdir) $(srcdir)/*.c