Date: Thu, 18 Oct 2012 19:13:07 +0000 (UTC) From: Alex Kozlov <ak@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306081 - in head/net/proxychains: . files Message-ID: <201210181913.q9IJD7xZ004357@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ak Date: Thu Oct 18 19:13:07 2012 New Revision: 306081 URL: http://svn.freebsd.org/changeset/ports/306081 Log: - Convert Makefile headers to new style - Stop overwriting configuration file during installation [1] - Remove support for 7-CURRENT - Use REINPLACE_CMD instead of patch file. - Reset to ports@ by request of maintainer - Bump PORTREVISION PR: ports/171638 (based on) [1] Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> [1] Approved by: Patrick MARIE <mycroft@virgaria.org> (maintainer) Feature safe: yes Deleted: head/net/proxychains/files/gethostbyaddr-proto-int head/net/proxychains/files/patch-proxychains-Makefile.in Modified: head/net/proxychains/Makefile (contents, props changed) head/net/proxychains/pkg-plist (contents, props changed) Modified: head/net/proxychains/Makefile ============================================================================== --- head/net/proxychains/Makefile Thu Oct 18 18:29:57 2012 (r306080) +++ head/net/proxychains/Makefile Thu Oct 18 19:13:07 2012 (r306081) @@ -1,27 +1,31 @@ -# New ports collection makefile for: proxychains -# Date created: 14 jui 2003 -# Whom: Patrick MARIE <mycroft@virgaria.org> +# Created by: Patrick MARIE <mycroft@virgaria.org> # $FreeBSD$ PORTNAME= proxychains PORTVERSION= 3.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION} -MAINTAINER= mycroft@virgaria.org +MAINTAINER= ports@FreeBSD.org COMMENT= Redirect connection through proxy servers GNU_CONFIGURE= yes USE_GMAKE= yes USE_LDCONFIG= yes -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 700017 -EXTRA_PATCHES= ${PATCHDIR}/gethostbyaddr-proto-int -.endif +post-patch: + @${REINPLACE_CMD} -e 's!$$(srcdir)/proxychains.conf!$$(srcdir)/proxychains.conf.sample!' \ + -e 's!libproxychains_la_LIBADD = -ldl!libproxychains_la_LIBADD =!' \ + ${WRKSRC}/proxychains/Makefile.in + @${MV} ${WRKSRC}/proxychains/proxychains.conf \ + ${WRKSRC}/proxychains/proxychains.conf.sample post-configure: @${ECHO_CMD} '#define PREFIX "${PREFIX}"' >> ${WRKSRC}/config.h -.include <bsd.port.post.mk> +post-install: + @[ -f ${PREFIX}/etc/proxychains.conf ] || ${CP} ${PREFIX}/etc/proxychains.conf.sample \ + ${PREFIX}/etc/proxychains.conf + +.include <bsd.port.mk> Modified: head/net/proxychains/pkg-plist ============================================================================== --- head/net/proxychains/pkg-plist Thu Oct 18 18:29:57 2012 (r306080) +++ head/net/proxychains/pkg-plist Thu Oct 18 19:13:07 2012 (r306081) @@ -1,6 +1,8 @@ bin/proxychains bin/proxyresolv -etc/proxychains.conf +@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 lib/libproxychains.so.3 lib/libproxychains.so lib/libproxychains.la
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210181913.q9IJD7xZ004357>