Fix regexp and patches to work with recently added USE_REINPLACE

This commit is contained in:
Mario Sergio Fujikawa Ferreira 2002-11-04 23:55:30 +00:00
parent b74ce2d810
commit 3da6f55ba8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69480
4 changed files with 22 additions and 6 deletions

View file

@ -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

View file

@ -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
*

View file

@ -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

View file

@ -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
*