From 287fc13c23c0364aed3073b08ab6f05844f1c348 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Thu, 26 Jun 2014 14:20:22 +0000 Subject: [PATCH] - Stage - Add LICENSE and LICENSE_FILE - Use @sample plist macro - Take maintainer-ship - Use libtool USE macro - Polish pkg-descr --- net/proxychains/Makefile | 13 ++++++++----- net/proxychains/pkg-descr | 2 -- net/proxychains/pkg-plist | 6 ++---- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/net/proxychains/Makefile b/net/proxychains/Makefile index e9184cb4a428..7beaa3ed4397 100644 --- a/net/proxychains/Makefile +++ b/net/proxychains/Makefile @@ -7,14 +7,16 @@ PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ehaupt@FreeBSD.org COMMENT= Redirect connection through proxy servers +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + GNU_CONFIGURE= yes -USES= gmake +USES= gmake libtool USE_LDCONFIG= yes -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's!$$(srcdir)/proxychains.conf!$$(srcdir)/proxychains.conf.sample!' \ -e 's!libproxychains_la_LIBADD = -ldl!libproxychains_la_LIBADD =!' \ @@ -26,7 +28,8 @@ post-configure: @${ECHO_CMD} '#define PREFIX "${PREFIX}"' >> ${WRKSRC}/config.h post-install: - @[ -f ${PREFIX}/etc/proxychains.conf ] || ${CP} ${PREFIX}/etc/proxychains.conf.sample \ - ${PREFIX}/etc/proxychains.conf + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libproxychains.so.3.0.0 + ${INSTALL_DATA} ${WRKSRC}/proxychains/proxychains.conf.sample \ + ${STAGEDIR}${PREFIX}/etc/proxychains.conf .include diff --git a/net/proxychains/pkg-descr b/net/proxychains/pkg-descr index bcb07c515e42..a8b949c6adc5 100644 --- a/net/proxychains/pkg-descr +++ b/net/proxychains/pkg-descr @@ -1,5 +1,3 @@ -ProxyChains - This program forces any tcp connection made by any given tcp client to follow through proxy (or proxy chain). It is a kind of proxifier. It acts like sockscap / permeo / eborder driver (intercepts TCP calls). diff --git a/net/proxychains/pkg-plist b/net/proxychains/pkg-plist index b588e00f7931..71b601b9e93e 100644 --- a/net/proxychains/pkg-plist +++ b/net/proxychains/pkg-plist @@ -1,9 +1,7 @@ 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 ] || cp %D/etc/proxychains.conf.sample %D/etc/proxychains.conf +@sample etc/proxychains.conf.sample lib/libproxychains.so.3 +lib/libproxychains.so.3.0.0 lib/libproxychains.so -lib/libproxychains.la lib/libproxychains.a