Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2010 18:23:56 -0400
From:      Sahil Tandon <sahil@FreeBSD.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/security/snoopy Makefile distinfo ports/security/snoopy/files patch-README
Message-ID:  <20100811222355.GA5481@magic.hamla.org>
In-Reply-To: <201008111515.o7BFF32D065719@repoman.freebsd.org>
References:  <201008111515.o7BFF32D065719@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--mYCpIKhGyMATD0i+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, 2010-08-11 at 15:15:03 +0000, Baptiste Daroussin wrote:

[ .. ]

>   Revision  Changes    Path
>   1.7       +2 -2      ports/security/snoopy/Makefile
>   1.3       +3 -3      ports/security/snoopy/distinfo
>   1.3       +7 -5      ports/security/snoopy/files/patch-README

Would you consider removing files/patch-README since the '/usr/local' ->
${PREFIX} replacement can be done in a single step from the Makefile?

Patch attached.

-- 
Sahil Tandon <sahil@FreeBSD.org>

--mYCpIKhGyMATD0i+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="snoopy.diff"

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/snoopy/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	11 Aug 2010 15:15:02 -0000	1.7
+++ Makefile	11 Aug 2010 21:53:40 -0000
@@ -20,7 +20,7 @@
 GNU_CONFIGURE=	yes
 
 post-patch:
-	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/README
+	@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' ${WRKSRC}/README
 	@${REINPLACE_CMD} '/^LIBS.*/d' ${WRKSRC}/Makefile.in
 
 do-install:
Index: files/patch-README
===================================================================
RCS file: files/patch-README
diff -N files/patch-README
--- files/patch-README	11 Aug 2010 15:15:03 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- ./README.orig	2010-08-05 01:02:04.000000000 +0200
-+++ ./README	2010-08-11 12:10:05.170201000 +0200
-@@ -51,14 +51,14 @@
-   Snoopy is placed in /etc/ld.so.preload to trap all occurances of exec,
-   if you wish to monitor only certain applications you can do so through
-   the $LD_PRELOAD environment variable - simply set it to 
--  /usr/local/lib/snoopy.so before loading the application. For example:
-+  %%PREFIX%%/lib/snoopy.so before loading the application. For example:
- 
--    export LD_PRELOAD=/usr/local/lib/snoopy.so
-+    export LD_PRELOAD=%%PREFIX%%/lib/snoopy.so
-     lynx http://linux.com/
-     unset LD_PRELOAD
- 
-   To remove snoopy later, simply edit /etc/ld.so.preload and remove the
--  reference to snoopy.so and delete /usr/local/lib/snoopy.so.
-+  reference to snoopy.so and delete %%PREFIX%%/lib/snoopy.so.
- 
- 
- 

--mYCpIKhGyMATD0i+--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100811222355.GA5481>