aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-11-08 05:16:15 +0800
committernemysis <nemysis@FreeBSD.org>2013-11-08 05:16:15 +0800
commitf6bd87f83b1164b434a1b101a08e8fccbeb54a03 (patch)
tree2e8d55b00fded740112c43fa041d2d5bcbf6519f /net
parentf88bed6f8fcc3c843af9d88a2b26f7a25b573075 (diff)
downloadfreebsd-ports-gnome-f6bd87f83b1164b434a1b101a08e8fccbeb54a03.tar.gz
freebsd-ports-gnome-f6bd87f83b1164b434a1b101a08e8fccbeb54a03.tar.zst
freebsd-ports-gnome-f6bd87f83b1164b434a1b101a08e8fccbeb54a03.zip
- Change maintainer email to @FreeBSD.org
- USES gmake instead of USE_GMAKE - Remove install-config and obsolete REINPLACE_CMD - Support STAGEDIR Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'net')
-rw-r--r--net/proxychains-ng/Makefile26
-rw-r--r--net/proxychains-ng/pkg-plist2
2 files changed, 10 insertions, 18 deletions
diff --git a/net/proxychains-ng/Makefile b/net/proxychains-ng/Makefile
index 29c6d641b7f6..7eb1bddbf36e 100644
--- a/net/proxychains-ng/Makefile
+++ b/net/proxychains-ng/Makefile
@@ -7,17 +7,17 @@ CATEGORIES= net security
MASTER_SITES= SF/${PORTNAME}
DISTNAME= ${PORTNAME:S/-ng//}-${PORTVERSION}
-MAINTAINER= nemysis@gmx.ch
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= Redirect connection through proxy servers
LICENSE= GPLv2
USE_BZIP2= yes
+USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
-USE_GMAKE= yes
ALL_TARGET= all
-INSTALL_TARGET= install install-config
+INSTALL_TARGET= install
USE_LDCONFIG= yes
CONFLICTS= proxychains-[0-9]*
@@ -26,29 +26,21 @@ PORTDOCS= AUTHORS ChangeLog README TODO
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
post-configure:
@${ECHO_CMD} "PXCHAINS=proxychains" >> ${WRKSRC}/config.mak
@${ECHO_CMD} "LDSO_PATHNAME=libproxychains-4.so" >> ${WRKSRC}/config.mak
post-patch:
@${REINPLACE_CMD} \
- -e 's|$$(DESTDIR)$$(sysconfdir)/|$$(DESTDIR)$$(sysconfdir)/proxychains.conf.sample|' \
- ${WRKSRC}/Makefile
- @${REINPLACE_CMD} \
-e 's|libproxychains4.so|libproxychains-4.so|' \
${WRKSRC}/src/proxyresolv
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/src/proxyresolv ${PREFIX}/bin
- @[ -f ${PREFIX}/etc/proxychains.conf ] || \
- ${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf ${PREFIX}/etc/proxychains.conf
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/proxyresolv ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/src/proxychains.conf \
+ ${STAGEDIR}${PREFIX}/etc/proxychains.conf.sample
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/net/proxychains-ng/pkg-plist b/net/proxychains-ng/pkg-plist
index d24f6edcc48d..2c5af67478c8 100644
--- a/net/proxychains-ng/pkg-plist
+++ b/net/proxychains-ng/pkg-plist
@@ -2,5 +2,5 @@ bin/proxychains
bin/proxyresolv
@unexec if cmp -s %D/etc/proxychains.conf %D/etc/proxychains.conf.sample; then rm -f %D/etc/proxychains.conf; fi
etc/proxychains.conf.sample
-@exec [ -f %D/etc/proxychains.conf ] ; then cp -p %D/%F %B/proxychains.conf; fi
+@exec if [ -f %D/etc/proxychains.conf ] ; then cp -p %D/%F %B/proxychains.conf; fi
lib/libproxychains-4.so