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
|
2001-01-27 04:40:33 +00:00
|
|
|
PORTVERSION= 3.03
|
2001-08-24 13:39:27 +00:00
|
|
|
PORTREVISION= 3
|
1999-04-22 01:44:35 +00:00
|
|
|
CATEGORIES= astro
|
2001-01-27 04:40:33 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \
|
2000-04-17 01:08:36 +00:00
|
|
|
ftp://alien.ssl.berkeley.edu/pub/ \
|
|
|
|
ftp://setidata.ssl.berkeley.edu/pub/ \
|
|
|
|
ftp://serendip.ssl.berkeley.edu/pub/
|
2001-01-27 04:40:33 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.${PORT_HOST}
|
|
|
|
EXTRACT_SUFX= .tar
|
1999-04-22 01:44:35 +00:00
|
|
|
|
2002-01-17 23:13:38 +00:00
|
|
|
MAINTAINER?= cyrille.lefevre@laposte.net
|
2001-01-27 04:40:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# Global variables
|
|
|
|
#
|
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
.if !defined(BATCH)
|
2001-01-27 04:40:33 +00:00
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
1999-04-22 01:44:35 +00:00
|
|
|
|
1999-04-22 10:35:25 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-04-22 01:44:35 +00:00
|
|
|
|
2001-01-27 04:40:33 +00:00
|
|
|
NO_BUILD= "binary distribution"
|
|
|
|
NO_CDROM= "interactive install"
|
1999-04-22 12:24:25 +00:00
|
|
|
|
2001-01-27 04:40:33 +00:00
|
|
|
.if ${OSVERSION} <= 226000
|
|
|
|
BROKEN= "currently supports only FreeBSD 2.2.6 and above"
|
|
|
|
.endif
|
1999-05-18 22:40:35 +00:00
|
|
|
|
2001-01-28 19:48:30 +00:00
|
|
|
EXTRACT_CMD= ${CAT}
|
2001-01-27 04:40:33 +00:00
|
|
|
EXTRACT_BEFORE_ARGS=
|
2001-08-24 13:39:27 +00:00
|
|
|
|
2001-01-27 04:40:33 +00:00
|
|
|
STRIP= # aout is already stripped
|
|
|
|
SCRIPTS_ENV+= PKG_PREFIX=${PREFIX}
|
2001-08-24 13:39:27 +00:00
|
|
|
PLIST_SUB= X11PORTS=${X11PORTS}
|
2001-01-27 04:40:33 +00:00
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
MSG_FILE= ${PKGDIR}/pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
2001-01-27 04:40:33 +00:00
|
|
|
# Local variables
|
|
|
|
#
|
1999-04-22 10:35:25 +00:00
|
|
|
|
2001-01-27 04:40:33 +00: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}
|
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
SBIN_DIR= ${PREFIX}/sbin
|
|
|
|
CONF_DIR= ${PREFIX}/etc
|
|
|
|
RC_DIR= ${PREFIX}/etc/rc.d
|
|
|
|
|
|
|
|
SAMP_SUFX= .sample
|
|
|
|
|
|
|
|
BIN_FILE= setiathome
|
|
|
|
RC_FILES= setiathome
|
2001-01-27 04:40:33 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
MAN1+= x${PORTNAME}.1
|
2001-08-24 13:39:27 +00:00
|
|
|
XBIN_DIR= ${PREFIX}/bin
|
|
|
|
XBIN_FILE+= xsetiathome
|
|
|
|
X11PORTS=
|
|
|
|
.else
|
|
|
|
X11PORTS= "@comment "
|
1999-04-22 01:44:35 +00:00
|
|
|
.endif
|
|
|
|
|
2001-01-27 04:40:33 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
post-patch: patch-message
|
|
|
|
|
|
|
|
patch-message:
|
|
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
|
2001-01-27 04:40:33 +00:00
|
|
|
|
|
|
|
# Install
|
|
|
|
#
|
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
do-install: install-daemon install-program install-man
|
2001-01-27 04:40:33 +00:00
|
|
|
|
|
|
|
install-daemon:
|
2001-08-24 13:39:27 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${BIN_FILE} ${SBIN_DIR}
|
2001-01-27 04:40:33 +00:00
|
|
|
|
|
|
|
install-program:
|
|
|
|
.if defined(XPROG)
|
2001-08-24 13:39:27 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${XBIN_FILE} ${XBIN_DIR}
|
1999-04-22 01:44:35 +00:00
|
|
|
.endif
|
|
|
|
|
2001-01-27 04:40:33 +00:00
|
|
|
install-man:
|
|
|
|
.for mansect in 1
|
|
|
|
.for man in ${MAN${mansect}}
|
|
|
|
@${INSTALL_MAN} ${FILESDIR}/${man} \
|
2001-08-24 13:39:27 +00:00
|
|
|
${MAN${mansect}PREFIX}/man/man${mansect}
|
2001-01-27 04:40:33 +00:00
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
post-install: install-startup-files configure-package display-message
|
2001-01-27 04:40:33 +00:00
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
install-startup-files:
|
|
|
|
.for file in ${RC_FILES}
|
|
|
|
.if exists(${FILESDIR}/rc.${file}.conf)
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/rc.${file}.conf \
|
|
|
|
${CONF_DIR}/rc.${file}.conf${SAMP_SUFX}
|
|
|
|
.if !exists(${CONF_DIR}/rc.${file}.conf)
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/rc.${file}.conf ${CONF_DIR}
|
|
|
|
.endif
|
1999-04-22 12:24:25 +00:00
|
|
|
.endif
|
2001-08-24 13:39:27 +00:00
|
|
|
.if exists(${FILESDIR}/${file}.sh)
|
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/${file}.sh ${RC_DIR}
|
|
|
|
.endif
|
|
|
|
.endfor
|
1999-04-22 12:24:25 +00:00
|
|
|
|
2001-01-27 04:40:33 +00:00
|
|
|
configure-package:
|
2001-08-24 13:39:27 +00:00
|
|
|
.if !defined(BATCH)
|
2001-01-27 04:40:33 +00:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.endif
|
1999-04-22 01:44:35 +00:00
|
|
|
|
2001-08-24 13:39:27 +00:00
|
|
|
display-message:
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
|
|
|
|
1999-04-22 10:35:25 +00:00
|
|
|
.include <bsd.port.post.mk>
|