summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-11-04 23:55:30 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-11-04 23:55:30 +0000
commit3da6f55ba8e4b1fcadbf4468204c71a9f8805b26 (patch)
treee66f51af48490a7c32fb1cfeef8a557a0ca7f220 /net-p2p
parentUpdate to 2.0.7. (diff)
Fix regexp and patches to work with recently added USE_REINPLACE
Notes
Notes: svn path=/head/; revision=69480
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/edonkey-tool-slist/Makefile4
-rw-r--r--net-p2p/edonkey-tool-slist/files/patch-linux_net.c10
2 files changed, 11 insertions, 3 deletions
diff --git a/net-p2p/edonkey-tool-slist/Makefile b/net-p2p/edonkey-tool-slist/Makefile
index 6b80b296f552..c02e03712821 100644
--- a/net-p2p/edonkey-tool-slist/Makefile
+++ b/net-p2p/edonkey-tool-slist/Makefile
@@ -18,9 +18,7 @@ WRKSRC= ${WRKDIR}/ed2k_slist
USE_REINPLACE= yes
post-patch:
- @${REINPLACE_CMD} -e 's|\r\n|\n|' ${WRKSRC}/*.[ch]
- @${REINPLACE_CMD} -e 's|(#include <unistd.h>)|\1\n#include\
- <sys/time.h>|' ${WRKSRC}/linux_net.c
+ @${REINPLACE_CMD} -e 's| ||' ${WRKSRC}/*.[ch]
# I could have written a Makefile but I would rather
# not waste inodes
diff --git a/net-p2p/edonkey-tool-slist/files/patch-linux_net.c b/net-p2p/edonkey-tool-slist/files/patch-linux_net.c
new file mode 100644
index 000000000000..f1280c9c1e97
--- /dev/null
+++ b/net-p2p/edonkey-tool-slist/files/patch-linux_net.c
@@ -0,0 +1,10 @@
+--- linux_net.c.orig Mon Nov 4 21:50:07 2002
++++ linux_net.c Mon Nov 4 21:50:15 2002
+@@ -27,6 +27,7 @@
+ #include <arpa/inet.h>
+ #include <netdb.h>
+ #include <unistd.h>
++#include <sys/time.h>
+
+ /* connect with timeout
+ *