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