diff --git a/Makefile.in b/Makefile.in index fc102099c..f9d8bbc7d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -369,6 +369,7 @@ EXTRA_DIST = \ send-ack.awk \ smbutil.c \ stime.awk \ + tcpdump-sysusers.conf \ tcpdump.1.in TEST_DIST= `git -C "$$DIR" ls-files tests` @@ -405,11 +406,15 @@ install: all [ -d $(DESTDIR)$(mandir)/man1 ] || \ (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1) $(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1 + [ -d $(DESTDIR)$(prefix)/lib/sysusers.d ] || \ + (mkdir -p $(DESTDIR)$(prefix)/lib/sysusers.d; chmod 755 $(DESTDIR)$(prefix)/lib/sysusers.d) + $(INSTALL_DATA) tcpdump-sysusers.conf $(DESTDIR)$(prefix)/lib/sysusers.d/tcpdump.conf uninstall: rm -f $(DESTDIR)$(bindir)/$(PROG) rm -f $(DESTDIR)$(bindir)/$(PROG).`cat ${srcdir}/VERSION` rm -f $(DESTDIR)$(mandir)/man1/$(PROG).1 + rm -f $(DESTDIR)$(prefix)/lib/sysusers.d/tcpdump.conf lint: lint -hbxn $(SRC) $(LIBNETDISSECT_SRC) | \ diff --git a/tcpdump-sysusers.conf b/tcpdump-sysusers.conf new file mode 100644 index 000000000..c85914c2f --- /dev/null +++ b/tcpdump-sysusers.conf @@ -0,0 +1 @@ +u! tcpdump - "tcpdump" /nonexistent