ports/148516: [PATCH] security/snort: fetch the source tarball

Sunpoet Po-Chuan Hsieh sunpoet at sunpoet.net
Mon Jul 12 09:00:21 UTC 2010


>Number:         148516
>Category:       ports
>Synopsis:       [PATCH] security/snort: fetch the source tarball
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 12 09:00:20 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 8.1-PRERELEASE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0: Sun Jun 20 12:49:47 CST 2010
>Description:
As source tarball has been moved to Amazon S3, 'make fetch' fails.
Thus, we download the source in pre-fetch: section.

This PR also includes the patch in PR/148484.

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

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

--- snort-2.8.6.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/security/snort/Makefile /usr/ports/sunpoet/snort/Makefile
--- /usr/ports/security/snort/Makefile	2010-07-10 00:28:37.000000000 +0800
+++ /usr/ports/sunpoet/snort/Makefile	2010-07-12 12:57:15.000000000 +0800
@@ -8,8 +8,7 @@
 PORTNAME=	snort
 PORTVERSION=	2.8.6
 CATEGORIES=	security
-MASTER_SITES=	http://www.snort.org/dl/ \
-		http://dl.snort.org/snort-current/
+MASTER_SITES=	# empty
 
 MAINTAINER=	clsung at FreeBSD.org
 COMMENT=	Lightweight network intrusion detection system
@@ -126,14 +125,15 @@
 .endif
 
 .if defined(WITH_SNORTSAM)
+BUILD_DEPENDS+=		automake>=1.10.1:${PORTSDIR}/devel/automake110
 PATCH_SITES+=http://www.snortsam.net/files/snort-plugin/:snortsam
 PATCHFILES+=snortsam-2.8.6.diff.gz:snortsam
 .endif
 
+pre-fetch:
+	@${FETCH_ENV} ${FETCH_BINARY} -Rr -o ${DISTDIR}/${DISTFILES} http://www.snort.org/downloads/14
+
 post-patch:
-.if defined(WITH_SNORTSAM)
-BUILD_DEPENDS+=		automake>=1.10.1:${PORTSDIR}/devel/automake110
-.endif
 .if defined(NOPORTDOCS)
 	@${REINPLACE_CMD} '/SUBDIRS = /s/doc//' ${WRKSRC}/Makefile.in
 .endif
--- snort-2.8.6.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list