Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 21:00:34 -0700 (PDT)
From:      cpiazza@home.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11272: Changes to astro/setiathome port
Message-ID:  <19990422040034.8CDB116D4@norn.ca.eu.org>

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

>Number:         11272
>Category:       ports
>Synopsis:       Changes to astro/setiathome port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 21 21:10:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Chris Piazza
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
n/a 
>Environment:

FreeBSD 4.0-CURRENT i386

>Description:

I've cleaned up the Makefile a bit.  Changes include:
  * EXTRACT_CMD stuff wasn't needed
  * move ONLY_FOR_ARCHS down..
  * instead of using uname -r to get the release version, which actually
    skipped anyone who was using 3.0/4.0, use ${OSVERSION} and check >=. 
    Also, because of above changes, used <bsd.port.{pre,post}.mk>. 
 
Files removed: stray seti-port.tar.gz

>How-To-Repeat:


>Fix:
	
Index: setiathome/Makefile
===================================================================
RCS file: /cvs/FreeBSD/ports/astro/setiathome/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	1999/04/22 02:00:16	1.3
+++ Makefile	1999/04/22 03:48:06
@@ -10,30 +10,25 @@
 CATEGORIES=	astro
 MASTER_SITES=   http://setiathome.ssl.berkeley.edu/software/ \
 		http://www.freebsd.org/~stb/mirror/setiathome.ssl.berkeley.edu/software/
-ONLY_FOR_ARCHS=	i386
 
 MAINTAINER=	stb@freebsd.org
 
-EXTRACT_CMD=		tar
-EXTRACT_BEFORE_ARGS=	-xf
-EXTRACT_AFTER_ARGS=
+ONLY_FOR_ARCHS=i386
 
-.if !defined(OSRELEASE)
-OSRELEASE!=	uname -r | sed -e 's/^\(^[^-]*\)-.*/\1/'
-.endif
+.include <bsd.port.pre.mk>
 
-.if (${OSRELEASE} == 2.2.6)
-DISTFILES=	setiathome-0.46.i386-unknown-freebsd2.2.6.tar
-WRKSRC=		setiathome-0.46.i386-unknown-freebsd2.2.6
-.elif (${OSRELEASE} == 2.2.7)
-DISTFILES=	setiathome-0.46.i386-unknown-freebsd2.2.7.tar
-WRKSRC=		setiathome-0.46.i386-unknown-freebsd2.2.7
-.elif (${OSRELEASE} == 2.2.8)
-DISTFILES=	setiathome-0.46.i386-unknown-freebsd2.2.8.tar
-WRKSRC=		setiathome-0.46.i386-unknown-freebsd2.2.8
-.elif (${OSRELEASE} == 3.1)
-DISTFILES=	setiathome-0.46.i386-unknown-freebsd3.1.tar
-WRKSRC=		setiathome-0.46.i386-unknown-freebsd3.1
+.if ${OSVERSION} >= 310000
+DISTFILES=      setiathome-0.46.i386-unknown-freebsd3.1.tar
+WRKSRC=         setiathome-0.46.i386-unknown-freebsd3.1
+.elif ${OSVERSION} >= 228000
+DISTFILES=      setiathome-0.46.i386-unknown-freebsd2.2.8.tar
+WRKSRC=         setiathome-0.46.i386-unknown-freebsd2.2.8
+.elif ${OSVERSION} >= 227000
+DISTFILES=      setiathome-0.46.i386-unknown-freebsd2.2.7.tar
+WRKSRC=         setiathome-0.46.i386-unknown-freebsd2.2.7
+.elif ${OSVERSION} >= 226000
+DISTFILES=      setiathome-0.46.i386-unknown-freebsd2.2.6.tar
+WRKSRC=         setiathome-0.46.i386-unknown-freebsd2.2.6
 .else
 DISTFILES=
 .endif
@@ -52,7 +47,7 @@
 pre-fetch:
 	@if [ -z "${DISTFILES}" ]; then \
 		${ECHO} "It seems you are running FreeBSD `uname -r`, which is not currently";	\
-		${ECHO} "supported.  SETI@home currently supports only FreeBSD 2.2.5 and above,";	\
+		${ECHO} "supported.  SETI@home currently supports only FreeBSD 2.2.6 and above,";	\
 		${ECHO} "and FreeBSD 3.1."; \
 		${ECHO} \
 		exit 72; \
@@ -65,4 +60,4 @@
 post-install:
 	@PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

-Chris

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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