b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | diff --git a/sestatus/Makefile b/sestatus/Makefile |
| 2 | index 3dbb792..d5d80cb 100644 |
| 3 | --- a/sestatus/Makefile |
| 4 | +++ b/sestatus/Makefile |
| 5 | @@ -22,6 +22,7 @@ install: all |
| 6 | # Some tools hard code /usr/sbin/sestatus ; add a compatibility symlink |
| 7 | # install will overwrite a symlink, so create the symlink before calling |
| 8 | # install to allow distributions with BINDIR == SBINDIR |
| 9 | + rm -f $(DESTDIR)$(SBINDIR)/sestatus |
| 10 | ln -sf --relative $(DESTDIR)$(BINDIR)/sestatus $(DESTDIR)$(SBINDIR) |
| 11 | install -m 755 sestatus $(DESTDIR)$(BINDIR) |
| 12 | install -m 644 sestatus.8 $(DESTDIR)$(MANDIR)/man8 |