mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
net/proxychains-ng: preserve conf file
- Fix preservation of .conf file PR: ports/180109 Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
This commit is contained in:
parent
c6fdc4da3f
commit
928f61a15d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322219
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user