diff options
author | wg <wg@FreeBSD.org> | 2013-07-03 19:34:41 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-07-03 19:34:41 +0800 |
commit | 37ab7d62814f5d251f50ea3bfe662c25e557067d (patch) | |
tree | 7982edf9a5443fc85569e4ea7b93960bf09c1baf | |
parent | 5d0bcfee3fe4d60f401704c89a288725b94c4b8d (diff) | |
download | freebsd-ports-gnome-37ab7d62814f5d251f50ea3bfe662c25e557067d.tar.gz freebsd-ports-gnome-37ab7d62814f5d251f50ea3bfe662c25e557067d.tar.zst freebsd-ports-gnome-37ab7d62814f5d251f50ea3bfe662c25e557067d.zip |
net/proxychains-ng: preserve conf file
- Fix preservation of .conf file
PR: ports/180109
Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
-rw-r--r-- | net/proxychains-ng/Makefile | 8 |
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} |