ports/148793: [PATCH] security/snoopy: update to 1.6.1

Bapt baptiste.daroussin at gmail.com
Tue Jul 20 16:00:05 UTC 2010


>Number:         148793
>Category:       ports
>Synopsis:       [PATCH] security/snoopy: update to 1.6.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 20 16:00:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Bapt
>Release:        FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD azathoth.lan 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #6 r210216M: Sun Jul 18 15:11:06 CEST
>Description:
- Update to 1.6.1
- Add License
- Remove now useless addition of -fPIC

Removed file(s):
- files/patch-Makefile

Port maintainer (jadawin at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- snoopy-1.6.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/security/snoopy.orig/Makefile /usr/ports/security/snoopy/Makefile
--- /usr/ports/security/snoopy.orig/Makefile	2009-09-02 17:01:50.000000000 +0200
+++ /usr/ports/security/snoopy/Makefile	2010-07-20 17:52:45.607228140 +0200
@@ -4,23 +4,24 @@
 # $FreeBSD: ports/security/snoopy/Makefile,v 1.4 2009/09/02 15:01:50 amdmi3 Exp $
 
 PORTNAME=	snoopy
-PORTVERSION=	1.3
+PORTVERSION=	1.6.1
 CATEGORIES=	security
-MASTER_SITES=	SF/${PORTNAME}logger/${PORTNAME}logger/${PORTVERSION}
+MASTER_SITES=	SF/${PORTNAME}logger/${PORTNAME}logger/
 
 MAINTAINER=	jadawin at FreeBSD.org
 COMMENT=	An execve() wrapper and logger
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 PLIST_FILES=	lib/snoopy.so bin/detect
 PORTDOCS=	README
 
-.include <bsd.port.pre.mk>
+GNU_CONFIGURE=	yes
 
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
-CFLAGS+=	-fPIC
-.endif
 post-patch:
-	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/README
+	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/README
+	@${REINPLACE_CMD} '/^LIBS.*/d' ${WRKSRC}/Makefile.in
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/snoopy.so ${PREFIX}/lib
@@ -30,4 +31,4 @@
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/security/snoopy.orig/distinfo /usr/ports/security/snoopy/distinfo
--- /usr/ports/security/snoopy.orig/distinfo	2007-02-07 00:36:11.000000000 +0100
+++ /usr/ports/security/snoopy/distinfo	2010-07-20 17:41:33.159924950 +0200
@@ -1,3 +1,3 @@
-MD5 (snoopy-1.3.tar.gz) = 7f1bfc5c10f05cd127b414facc43cc5f
-SHA256 (snoopy-1.3.tar.gz) = 99d60a36a42220fc4de99a69d722c736879dedde27121867a1d575fabb0404a7
-SIZE (snoopy-1.3.tar.gz) = 10423
+MD5 (snoopy-1.6.1.tar.gz) = 7a8186e45d959e1b3ed44805bfcd4467
+SHA256 (snoopy-1.6.1.tar.gz) = a10150592292a6b039d5b00bb1bfe847d14cb66ef7e30b5c546bcfbfddf5e805
+SIZE (snoopy-1.6.1.tar.gz) = 98426
diff -ruN --exclude=CVS /usr/ports/security/snoopy.orig/files/patch-Makefile /usr/ports/security/snoopy/files/patch-Makefile
--- /usr/ports/security/snoopy.orig/files/patch-Makefile	2007-02-07 00:36:12.000000000 +0100
+++ /usr/ports/security/snoopy/files/patch-Makefile	1970-01-01 01:00:00.000000000 +0100
@@ -1,20 +0,0 @@
---- Makefile.orig	Thu Dec 21 07:53:15 2000
-+++ Makefile	Tue Feb  6 22:35:12 2007
-@@ -1,15 +1,12 @@
- # Makefile for snoopy
- # $Id: Makefile,v 1.3 2000/12/10 08:50:49 marius Exp $
- 
--CC = gcc
--LIBS  = -ldl
--
- all: snoopy.so detect
- 
- snoopy.so:  snoopy.c snoopy.h
--			$(CC) -shared -O3 -fomit-frame-pointer snoopy.c -osnoopy.so $(LIBS)
-+			$(CC) -shared $(CFLAGS) snoopy.c -osnoopy.so
- detect: detect.c
--			$(CC) detect.c -odetect $(LIBS)
-+			$(CC) $(CFLAGS) detect.c -odetect
- install: all 
- 			install -m 755 snoopy.so /lib/snoopy.so; \
- 			./install.sh
diff -ruN --exclude=CVS /usr/ports/security/snoopy.orig/files/patch-README /usr/ports/security/snoopy/files/patch-README
--- /usr/ports/security/snoopy.orig/files/patch-README	2007-02-07 00:36:12.000000000 +0100
+++ /usr/ports/security/snoopy/files/patch-README	2010-07-20 17:45:41.334270920 +0200
@@ -1,11 +1,18 @@
---- README.orig	Tue Feb  6 22:38:07 2007
-+++ README	Tue Feb  6 22:38:22 2007
-@@ -39,7 +39,7 @@
-   the $LD_PRELOAD environment variable - simply set it to /lib/snoopy.so
-   before loading the application. For example:
+--- ./README.orig	2010-02-11 21:58:07.000000000 +0100
++++ ./README	2010-07-20 17:45:31.306297157 +0200
+@@ -46,11 +46,11 @@
+   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=/lib/snoopy.so
-+     export LD_PRELOAD=%%PREFIX%%/lib/snoopy.so
-      lynx http://linux.com/
-      unset LD_PRELOAD 
+-    export LD_PRELOAD=/usr/local/lib/snoopy.so
+-    lynx http://linux.com/
++    export LD_PRELOAD=%%PREFIX%%/lib/snoopy.so
++    lynx http://freebsd.org
+     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.
--- snoopy-1.6.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list