summaryrefslogtreecommitdiff
path: root/net-p2p/dctc-gui/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-11-19 02:12:55 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-11-19 02:12:55 +0000
commitbdaf558d2d6efd6767641eea81fa4a1a688d41a2 (patch)
treefc5ea325083a2771ae60ceac4aa3148e31cb8faa /net-p2p/dctc-gui/Makefile
parentWhile we're at it, just upgrade to version 1.1 too. (diff)
Add SIGCHLD signal(3) handling to prevent zombie processes
Notes
Notes: svn path=/head/; revision=70449
Diffstat (limited to 'net-p2p/dctc-gui/Makefile')
-rw-r--r--net-p2p/dctc-gui/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-p2p/dctc-gui/Makefile b/net-p2p/dctc-gui/Makefile
index fbb5de01571c..3a1e37304858 100644
--- a/net-p2p/dctc-gui/Makefile
+++ b/net-p2p/dctc-gui/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dctc
PORTVERSION= 0.65
+PORTREVISION= 1
CATEGORIES= net gnome
MASTER_SITES= http://unixpages.org/distfiles/ \
http://ac2i.tzo.com/dctc/
@@ -31,8 +32,15 @@ CONFIGURE_ARGS= --with-gnome=${X11BASE} \
--enable-manual-db-detect \
--with-libiconv-prefix=${LOCALBASE}
+ADDITIONAL_SRCS= sig_chld.c
+#
DOC_FILES= COPYING ChangeLog README TODO
+post-extract:
+.for file in ${ADDITIONAL_SRCS}
+ @${CP} ${FILESDIR}/${file} ${WRKSRC}/src
+.endfor
+
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} -E -e \
's|ldb-4.0|ldb4|; \
@@ -52,6 +60,13 @@ post-patch:
@${FIND} ${WRKSRC} -type f \
-name "*.bak" \
| ${XARGS} -n 10 -x ${RM}
+# add sigchld handler
+.for file in ${ADDITIONAL_SRCS}
+ @${REINPLACE_CMD} -E -e \
+ 's|^(dc_gui_SOURCES.+)$$|\1 ${file}|; \
+ s|^(dc_gui_OBJECTS[^\\]+)(\\*)$$|\1 ${file:S/.c$/.o/} \2|' \
+ ${WRKSRC}/src/Makefile.in
+.endfor
post-configure:
@${ECHO_CMD} '#ifndef MSG_NOSIGNAL' >> ${CONFIGURE_WRKSRC}/config.h