svn commit: r306081 - in head/net/proxychains: . files

Alex Kozlov ak at FreeBSD.org
Thu Oct 18 19:13:08 UTC 2012


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 at comsys.ntu-kpi.kiev.ua> [1]
  Approved by:	Patrick MARIE <mycroft at 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 at virgaria.org>
+# Created by:	Patrick MARIE <mycroft at virgaria.org>
 # $FreeBSD$
 
 PORTNAME=	proxychains
 PORTVERSION=	3.1
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION}
 
-MAINTAINER=	mycroft at virgaria.org
+MAINTAINER=	ports at 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
+ at 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
+ at 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


More information about the svn-ports-all mailing list