summaryrefslogtreecommitdiff
path: root/package/libpcap/patches/101-makefile_create_bindir.patch
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2010-03-08 14:21:32 +0000
committerTravis Kemen <thepeople@openwrt.org>2010-03-08 14:21:32 +0000
commitc859a20e69fbc692026e5a18c166e42d000d7d70 (patch)
treee2f3d074d3a9edc60e7bbea0c8e6d6c1bb9d2bea /package/libpcap/patches/101-makefile_create_bindir.patch
parentd48992b62b968d3913a80e9fd63c5035827ff514 (diff)
downloadmtk-20170518-c859a20e69fbc692026e5a18c166e42d000d7d70.zip
mtk-20170518-c859a20e69fbc692026e5a18c166e42d000d7d70.tar.gz
mtk-20170518-c859a20e69fbc692026e5a18c166e42d000d7d70.tar.bz2
fix missing parts of r19997.
SVN-Revision: 20057
Diffstat (limited to 'package/libpcap/patches/101-makefile_create_bindir.patch')
-rw-r--r--package/libpcap/patches/101-makefile_create_bindir.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/libpcap/patches/101-makefile_create_bindir.patch b/package/libpcap/patches/101-makefile_create_bindir.patch
new file mode 100644
index 0000000..5264fb2
--- /dev/null
+++ b/package/libpcap/patches/101-makefile_create_bindir.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -484,6 +484,8 @@ install: libpcap.a pcap-config
+ $(DESTDIR)$(includedir)/pcap-bpf.h
+ $(INSTALL_DATA) $(srcdir)/pcap-namedb.h \
+ $(DESTDIR)$(includedir)/pcap-namedb.h
++ [ -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 \