1999-04-22 01:44:35 +00:00
|
|
|
# Ports collection makefile for: setiathome
|
1999-06-07 11:15:05 +00:00
|
|
|
# Version required: 1.2
|
1999-04-22 01:44:35 +00:00
|
|
|
# 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
|
|
|
#
|
|
|
|
|
1999-06-07 11:15:05 +00:00
|
|
|
PKGNAME= setiathome-1.2
|
1999-04-22 01:44:35 +00:00
|
|
|
CATEGORIES= astro
|
|
|
|
MASTER_SITES= http://setiathome.ssl.berkeley.edu/software/ \
|
1999-05-17 10:58:12 +00:00
|
|
|
ftp://ftp.cdrom.com/pub/setiathome/ \
|
1999-04-22 01:44:35 +00:00
|
|
|
http://www.freebsd.org/~stb/mirror/setiathome.ssl.berkeley.edu/software/
|
|
|
|
|
|
|
|
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
|
|
|
|
EXTRACT_AFTER_ARGS=
|
|
|
|
|
1999-05-18 22:40:35 +00:00
|
|
|
MAN1= setiathome.1
|
|
|
|
|
1999-04-22 10:35:25 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-05-06 22:50:25 +00:00
|
|
|
.if ${OSVERSION} >= 400000
|
1999-05-17 08:18:04 +00:00
|
|
|
DISTFILES= setiathome-1.1.i386-unknown-freebsd4.0.tar
|
|
|
|
WRKSRC= setiathome-1.1.i386-unknown-freebsd4.0
|
1999-06-07 11:15:05 +00: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 22:50:25 +00:00
|
|
|
.elif ${OSVERSION} >= 310000
|
1999-06-07 11:15:05 +00:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd3.1.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd3.1
|
1999-04-22 10:35:25 +00:00
|
|
|
.elif ${OSVERSION} >= 228000
|
1999-06-07 11:15:05 +00:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd2.2.8.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd2.2.8
|
1999-04-22 10:35:25 +00:00
|
|
|
.elif ${OSVERSION} >= 227000
|
1999-06-07 11:15:05 +00:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd2.2.7.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd2.2.7
|
1999-04-22 10:35:25 +00:00
|
|
|
.elif ${OSVERSION} >= 226000
|
1999-06-07 11:15:05 +00:00
|
|
|
DISTFILES= setiathome-1.2.i386-unknown-freebsd2.2.6.tar
|
|
|
|
WRKSRC= setiathome-1.2.i386-unknown-freebsd2.2.6
|
1999-04-22 01:44:35 +00:00
|
|
|
.else
|
|
|
|
DISTFILES=
|
|
|
|
.endif
|
|
|
|
|
1999-05-17 08:18:04 +00:00
|
|
|
.if make(makesum) | defined(FETCH_ALL)
|
1999-06-07 11:15:05 +00: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 08:18:04 +00:00
|
|
|
setiathome-1.1.i386-unknown-freebsd4.0.tar
|
1999-04-22 01:44:35 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_BUILD= "binary distribution"
|
|
|
|
|
|
|
|
MAN1= setiathome.1
|
|
|
|
|
1999-04-22 12:24:25 +00:00
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
|
|
|
|
1999-05-06 22:50:25 +00:00
|
|
|
|
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:
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/${WRKSRC}/setiathome ${PREFIX}/bin
|
1999-05-18 22:40:35 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/setiathome.sh ${PREFIX}/etc/rc.d
|
1999-04-22 01:44:35 +00:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/setiathome.1 ${MAN1PREFIX}/man/man1
|
|
|
|
|
|
|
|
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>
|