1999-04-21 21:44:35 -04:00
|
|
|
# Ports collection makefile for: setiathome
|
1999-06-07 07:15:05 -04:00
|
|
|
# Version required: 1.2
|
1999-04-21 21:44:35 -04:00
|
|
|
# Date created: 22 Apr 1999
|
|
|
|
# Whom: stb@freebsd.org
|
|
|
|
#
|
1999-08-25 00:22:48 -04:00
|
|
|
# $FreeBSD$
|
1999-04-21 21:44:35 -04:00
|
|
|
#
|
|
|
|
|
1999-06-07 07:15:05 -04:00
|
|
|
PKGNAME= setiathome-1.2
|
1999-04-21 21:44:35 -04:00
|
|
|
CATEGORIES= astro
|
|
|
|
MASTER_SITES= http://setiathome.ssl.berkeley.edu/software/ \
|
1999-05-17 06:58:12 -04:00
|
|
|
ftp://ftp.cdrom.com/pub/setiathome/ \
|
2000-02-08 04:29:51 -05:00
|
|
|
http://people.FreeBSD.org/~stb/mirror/setiathome.ssl.berkeley.edu/software/
|
1999-04-21 21:44:35 -04:00
|
|
|
|
|
|
|
MAINTAINER= stb@freebsd.org
|
|
|
|
|
1999-04-22 06:35:25 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-04-21 21:44:35 -04:00
|
|
|
|
1999-04-22 08:24:25 -04:00
|
|
|
EXTRACT_CMD= tar
|
|
|
|
EXTRACT_BEFORE_ARGS= -xf
|
1999-12-26 19:33:35 -05:00
|
|
|
EXTRACT_AFTER_ARGS=
|
1999-04-22 08:24:25 -04:00
|
|
|
|
1999-05-18 18:40:35 -04:00
|
|
|
MAN1= setiathome.1
|
|
|
|
|
1999-04-22 06:35:25 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-05-06 18:50:25 -04:00
|
|
|
.if ${OSVERSION} >= 400000
|
1999-05-17 04:18:04 -04:00
|
|
|
DISTFILES= setiathome-1.1.i386-unknown-freebsd4.0.tar
|
|
|
|
WRKSRC= setiathome-1.1.i386-unknown-freebsd4.0
|
1999-06-07 07:15:05 -04:00
|
|
|
PKGNAME= setiathome-1.1
|
|
|
|
.elif ${OSVERSION} >= 320000
|
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd3.2.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd3.2
|
1999-05-06 18:50:25 -04:00
|
|
|
.elif ${OSVERSION} >= 310000
|
1999-06-07 07:15:05 -04:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd3.1.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd3.1
|
1999-04-22 06:35:25 -04:00
|
|
|
.elif ${OSVERSION} >= 228000
|
1999-06-07 07:15:05 -04:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd2.2.8.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd2.2.8
|
1999-04-22 06:35:25 -04:00
|
|
|
.elif ${OSVERSION} >= 227000
|
1999-06-07 07:15:05 -04:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd2.2.7.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd2.2.7
|
1999-04-22 06:35:25 -04:00
|
|
|
.elif ${OSVERSION} >= 226000
|
1999-06-07 07:15:05 -04:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd2.2.6.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd2.2.6
|
1999-04-21 21:44:35 -04:00
|
|
|
.else
|
|
|
|
DISTFILES=
|
|
|
|
.endif
|
|
|
|
|
2000-01-02 20:58:10 -05:00
|
|
|
.if make(makesum) || defined(FETCH_ALL)
|
1999-06-07 07:15:05 -04:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd2.2.6.tar \
|
|
|
|
setiathome-1.2.i386-unknown-freebsd2.2.7.tar \
|
|
|
|
setiathome-1.2.i386-unknown-freebsd2.2.8.tar \
|
|
|
|
setiathome-1.2.i386-unknown-freebsd3.1.tar \
|
|
|
|
setiathome-1.2.i386-unknown-freebsd3.2.tar \
|
1999-05-17 04:18:04 -04:00
|
|
|
setiathome-1.1.i386-unknown-freebsd4.0.tar
|
1999-04-21 21:44:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_BUILD= "binary distribution"
|
|
|
|
|
|
|
|
MAN1= setiathome.1
|
|
|
|
|
1999-12-26 19:33:35 -05:00
|
|
|
NO_CDROM= "interactive install"
|
|
|
|
|
1999-04-22 08:24:25 -04:00
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
|
|
|
|
1999-04-21 21:44:35 -04:00
|
|
|
pre-fetch:
|
|
|
|
@if [ -z "${DISTFILES}" ]; then \
|
|
|
|
${ECHO} "It seems you are running FreeBSD `uname -r`, which is not currently"; \
|
1999-04-22 06:35:25 -04:00
|
|
|
${ECHO} "supported. SETI@home currently supports only FreeBSD 2.2.6 and above,"; \
|
1999-05-06 18:50:25 -04:00
|
|
|
${ECHO} "FreeBSD 3.1. and above, and FreeBSD 4.0."; \
|
1999-04-21 22:00:16 -04:00
|
|
|
${ECHO} \
|
1999-04-21 21:44:35 -04:00
|
|
|
exit 72; \
|
|
|
|
fi;
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/${WRKSRC}/setiathome ${PREFIX}/bin
|
1999-05-18 18:40:35 -04:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/setiathome.sh ${PREFIX}/etc/rc.d
|
1999-04-21 21:44:35 -04:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/setiathome.1 ${MAN1PREFIX}/man/man1
|
|
|
|
|
|
|
|
post-install:
|
1999-04-22 08:24:25 -04:00
|
|
|
@PKG_PREFIX=${PREFIX} PACKAGE_BUILDING=${PACKAGE_BUILDING} \
|
|
|
|
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1999-04-21 21:44:35 -04:00
|
|
|
|
1999-04-22 06:35:25 -04:00
|
|
|
.include <bsd.port.post.mk>
|