- Trim REINPLACE_CMD - Fix preserve original *.conf files Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports) How-To-Repeat: Port with patch self install proxychains.conf.sample
Responsible Changed From-To: freebsd-ports-bugs->wg I'll take it.
State Changed From-To: open->closed Committed. Thanks!
Author: wg Date: Wed Jul 3 11:34:41 2013 New Revision: 322219 URL: http://svnweb.freebsd.org/changeset/ports/322219 Log: net/proxychains-ng: preserve conf file - Fix preservation of .conf file PR: ports/180109 Submitted by: nemysis <nemysis@gmx.ch> (maintainer) Modified: head/net/proxychains-ng/Makefile Modified: head/net/proxychains-ng/Makefile ============================================================================== --- head/net/proxychains-ng/Makefile Wed Jul 3 10:58:57 2013 (r322218) +++ head/net/proxychains-ng/Makefile Wed Jul 3 11:34:41 2013 (r322219) @@ -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} _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"