1999-04-21 21:44:35 -04:00
|
|
|
# Ports collection makefile for: setiathome
|
|
|
|
# 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
|
|
|
|
2000-04-13 02:22:01 -04:00
|
|
|
PORTNAME= setiathome
|
2001-01-26 23:40:33 -05:00
|
|
|
PORTVERSION= 3.03
|
2001-01-28 03:54:41 -05:00
|
|
|
PORTREVISION= 1
|
1999-04-21 21:44:35 -04:00
|
|
|
CATEGORIES= astro
|
2001-01-26 23:40:33 -05:00
|
|
|
MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \
|
2000-04-16 21:08:36 -04:00
|
|
|
ftp://alien.ssl.berkeley.edu/pub/ \
|
|
|
|
ftp://setidata.ssl.berkeley.edu/pub/ \
|
|
|
|
ftp://serendip.ssl.berkeley.edu/pub/
|
2001-01-26 23:40:33 -05:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.${PORT_HOST}
|
|
|
|
EXTRACT_SUFX= .tar
|
1999-04-21 21:44:35 -04:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
MAINTAINER= clefevre@citeweb.net
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Global variables
|
|
|
|
#
|
|
|
|
|
|
|
|
.if !defined(PACKAGE_BUILDING) || empty(PACKAGE_BUILDING)
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
1999-04-21 21:44:35 -04:00
|
|
|
|
1999-04-22 06:35:25 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-04-21 21:44:35 -04:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
NO_BUILD= "binary distribution"
|
|
|
|
NO_CDROM= "interactive install"
|
1999-04-22 08:24:25 -04:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
.if ${OSVERSION} <= 226000
|
|
|
|
BROKEN= "currently supports only FreeBSD 2.2.6 and above"
|
|
|
|
.endif
|
1999-05-18 18:40:35 -04:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
EXTRACT_CMD= cat
|
|
|
|
EXTRACT_BEFORE_ARGS=
|
|
|
|
STRIP= # aout is already stripped
|
|
|
|
SCRIPTS_ENV+= PKG_PREFIX=${PREFIX}
|
|
|
|
SCRIPTS_ENV+= PACKAGE_BUILDING=${PACKAGE_BUILDING}
|
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Local variables
|
|
|
|
#
|
1999-04-22 06:35:25 -04:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
PORT_CPU= ${ARCH}
|
|
|
|
PORT_VENDOR= unknown
|
|
|
|
PORT_OSNAME= freebsd
|
|
|
|
PORT_OSREL= 2.2.8
|
|
|
|
PORT_OS= ${PORT_OSNAME}${PORT_OSREL}
|
|
|
|
PORT_HOST= ${PORT_CPU}-${PORT_VENDOR}-${PORT_OS}
|
|
|
|
|
|
|
|
SBINSUBDIR?= sbin
|
|
|
|
RCDSUBDIR= etc/rc.d
|
|
|
|
MANSUBDIR= man
|
|
|
|
PROG= ${PORTNAME}
|
|
|
|
SCRIPT= ${PORTNAME}.sh
|
|
|
|
|
|
|
|
# xsetiathome is currently broken at 4.2. should work at 2.x,
|
|
|
|
# don't know between 3.0 and 4.2 ? so, be conservative...
|
|
|
|
# diagnostic messages are :
|
|
|
|
# Warning: Cannot convert string "doneB" to type Widget
|
|
|
|
# Floating point exception (core dumped)
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 300000
|
|
|
|
XBINSUBDIR= bin
|
|
|
|
XPROG+= x${PORTNAME}
|
|
|
|
MAN1+= x${PORTNAME}.1
|
1999-04-21 21:44:35 -04:00
|
|
|
.endif
|
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
#
|
|
|
|
# Post-extract
|
|
|
|
#
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/${SCRIPT} ${WRKSRC}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Post-configure
|
|
|
|
#
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${PERL} -pi.fbsd -e 's.!!BINDIR!!.${SBINSUBDIR}.g' ${WRKSRC}/${SCRIPT}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Install
|
|
|
|
#
|
|
|
|
|
|
|
|
do-install: install-daemon install-program install-script install-man
|
|
|
|
|
|
|
|
install-daemon:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${PROG} ${PREFIX}/${SBINSUBDIR}
|
|
|
|
|
|
|
|
install-program:
|
|
|
|
.if defined(XPROG)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${PREFIX}/${XBINSUBDIR}
|
1999-04-21 21:44:35 -04:00
|
|
|
.endif
|
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
install-script:
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${SCRIPT} ${PREFIX}/${RCDSUBDIR}
|
1999-12-26 19:33:35 -05:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
install-man:
|
|
|
|
.for mansect in 1
|
|
|
|
.for man in ${MAN${mansect}}
|
|
|
|
@${INSTALL_MAN} ${FILESDIR}/${man} \
|
|
|
|
${MAN${mansect}PREFIX}/${MANSUBDIR}/man${mansect}
|
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
|
|
|
post-install: update-plist configure-package
|
|
|
|
|
|
|
|
update-plist:
|
|
|
|
@${GREP} -q ${SBINSUBDIR}/${PROG} ${TMPPLIST} || \
|
|
|
|
${ECHO} ${SBINSUBDIR}/${PROG} >> ${TMPPLIST}
|
|
|
|
.if defined(XPROG)
|
|
|
|
@${GREP} -q ${XBINSUBDIR}/${XPROG} ${TMPPLIST} || \
|
|
|
|
${ECHO} ${XBINSUBDIR}/${XPROG} >> ${TMPPLIST}
|
1999-04-22 08:24:25 -04:00
|
|
|
.endif
|
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
configure-package:
|
|
|
|
.if defined(IS_INTERACTIVE)
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.endif
|
1999-04-21 21:44:35 -04:00
|
|
|
|
1999-04-22 06:35:25 -04:00
|
|
|
.include <bsd.port.post.mk>
|