2010-03-08 14:21:32 +00:00
|
|
|
--- a/Makefile.in
|
|
|
|
+++ b/Makefile.in
|
2013-04-01 21:07:34 +00:00
|
|
|
@@ -571,71 +571,12 @@ install: install-shared install-archive
|
2010-03-08 14:21:32 +00:00
|
|
|
(mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir))
|
|
|
|
[ -d $(DESTDIR)$(includedir)/pcap ] || \
|
|
|
|
(mkdir -p $(DESTDIR)$(includedir)/pcap; chmod 755 $(DESTDIR)$(includedir)/pcap)
|
|
|
|
- [ -d $(DESTDIR)$(mandir)/man1 ] || \
|
|
|
|
- (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1)
|
|
|
|
- [ -d $(DESTDIR)$(mandir)/man3 ] || \
|
|
|
|
- (mkdir -p $(DESTDIR)$(mandir)/man3; chmod 755 $(DESTDIR)$(mandir)/man3)
|
|
|
|
- [ -d $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@ ] || \
|
|
|
|
- (mkdir -p $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@; chmod 755 $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@)
|
|
|
|
- [ -d $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@ ] || \
|
|
|
|
- (mkdir -p $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@; chmod 755 $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@)
|
2011-05-24 09:51:08 +00:00
|
|
|
for i in $(PUBHDR); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$$i \
|
|
|
|
$(DESTDIR)$(includedir)/$$i; done
|
2010-03-08 14:21:32 +00:00
|
|
|
[ -d $(DESTDIR)$(bindir) ] || \
|
|
|
|
(mkdir -p $(DESTDIR)$(bindir); chmod 755 $(DESTDIR)$(bindir))
|
|
|
|
$(INSTALL_PROGRAM) pcap-config $(DESTDIR)$(bindir)/pcap-config
|
|
|
|
- for i in $(MAN1); do \
|
|
|
|
- $(INSTALL_DATA) $(srcdir)/$$i \
|
|
|
|
- $(DESTDIR)$(mandir)/man1/$$i; done
|
2011-05-24 09:51:08 +00:00
|
|
|
- for i in $(MAN3PCAP_NOEXPAND); do \
|
2010-03-08 14:21:32 +00:00
|
|
|
- $(INSTALL_DATA) $(srcdir)/$$i \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/$$i; done
|
2011-05-24 09:51:08 +00:00
|
|
|
- for i in $(MAN3PCAP_EXPAND:.in=); do \
|
|
|
|
- $(INSTALL_DATA) $$i \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/$$i; done
|
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_name.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_dump_open.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3pcap
|
2013-04-01 21:07:34 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3pcap
|
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_findalldevs.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_perror.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_geterr.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_perror.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_inject.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3pcap
|
2013-04-01 21:07:34 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3pcap
|
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_list_datalinks.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3pcap
|
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3pcap
|
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_list_tstamp_types.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_dispatch.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_loop.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_dispatch.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_minor_version.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_major_version.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_minor_version.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_next.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_next_ex.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_next.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3pcap
|
2011-05-24 09:51:08 +00:00
|
|
|
- rm -f $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3pcap
|
2010-03-08 14:21:32 +00:00
|
|
|
- ln $(DESTDIR)$(mandir)/man3/pcap_setnonblock.3pcap \
|
|
|
|
- $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3pcap
|
|
|
|
- for i in $(MANFILE); do \
|
2011-05-24 09:51:08 +00:00
|
|
|
- $(INSTALL_DATA) `echo $$i | sed 's/.manfile.in/.manfile/'` \
|
2010-03-08 14:21:32 +00:00
|
|
|
- $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@/`echo $$i | sed 's/.manfile.in/.@MAN_FILE_FORMATS@/'`; done
|
|
|
|
- for i in $(MANMISC); do \
|
2011-05-24 09:51:08 +00:00
|
|
|
- $(INSTALL_DATA) `echo $$i | sed 's/.manmisc.in/.manmisc/'` \
|
2010-03-08 14:21:32 +00:00
|
|
|
- $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@/`echo $$i | sed 's/.manmisc.in/.@MAN_MISC_INFO@/'`; done
|
|
|
|
|
|
|
|
install-shared: install-shared-$(DYEXT)
|
2013-04-01 21:07:34 +00:00
|
|
|
install-shared-so: libpcap.so
|