Fix regexp and patches to work with recently added USE_REINPLACE
This commit is contained in:
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
|
@ -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
|
||||
|
|
10
misc/edonkey-tool-slist/files/patch-linux_net.c
Normal file
10
misc/edonkey-tool-slist/files/patch-linux_net.c
Normal 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
|
||||
*
|
|
@ -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
|
||||
|
|
10
net-p2p/edonkey-tool-slist/files/patch-linux_net.c
Normal file
10
net-p2p/edonkey-tool-slist/files/patch-linux_net.c
Normal 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
|
||||
*
|
Loading…
Reference in a new issue