aboutsummaryrefslogtreecommitdiff
path: root/net/proxychains-ng/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxychains-ng/Makefile')
-rw-r--r--net/proxychains-ng/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/proxychains-ng/Makefile b/net/proxychains-ng/Makefile
index ba843642f0bc..afb28b7c4e47 100644
--- a/net/proxychains-ng/Makefile
+++ b/net/proxychains-ng/Makefile
@@ -34,7 +34,7 @@ post-configure:
post-patch:
@${REINPLACE_CMD} \
- -e 's|$$(DESTDIR)/$$(sysconfdir)/|$$(DESTDIR)/$$(sysconfdir)/proxychains.conf.sample|' \
+ -e 's|$$(DESTDIR)$$(sysconfdir)/|$$(DESTDIR)$$(sysconfdir)/proxychains.conf.sample|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} \
-e 's|libproxychains4.so|libproxychains-4.so|' \
@@ -42,10 +42,8 @@ post-patch:
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/proxyresolv ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf ${PREFIX}/etc/proxychains.conf.sample
-.if ! exists(${PREFIX}/etc/proxychains.conf)
- ${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf ${PREFIX}/etc/proxychains.conf
-.endif
+ @[ -f ${PREFIX}/etc/proxychains.conf ] || \
+ ${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf ${PREFIX}/etc/proxychains.conf
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}