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
|
2002-07-28 18:13:45 -04:00
|
|
|
PORTVERSION?= 3.03
|
|
|
|
PORTREVISION?= 4
|
|
|
|
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
|
|
|
|
2002-01-17 18:13:38 -05:00
|
|
|
MAINTAINER?= cyrille.lefevre@laposte.net
|
2001-01-26 23:40:33 -05:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# Global variables
|
|
|
|
#
|
|
|
|
|
2001-08-24 09:39:27 -04:00
|
|
|
.if !defined(BATCH)
|
2001-01-26 23:40:33 -05:00
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
1999-04-21 21:44:35 -04:00
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
ONLY_FOR_ARCHS?= alpha i386
|
1999-04-21 21:44:35 -04:00
|
|
|
|
2002-07-28 18:13:45 -04: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-28 14:48:30 -05:00
|
|
|
EXTRACT_CMD= ${CAT}
|
2001-01-26 23:40:33 -05:00
|
|
|
EXTRACT_BEFORE_ARGS=
|
2001-08-24 09:39:27 -04:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
STRIP= # aout is already stripped
|
|
|
|
SCRIPTS_ENV+= PKG_PREFIX=${PREFIX}
|
2002-07-28 18:13:45 -04:00
|
|
|
PLIST_SUB= X11PORTS=${X11PORTS} \
|
|
|
|
PREFX="${PKGNAMEPREFIX}" SUFX="${PKGNAMESUFFIX}"
|
2001-01-26 23:40:33 -05:00
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
|
2001-08-24 09:39:27 -04:00
|
|
|
MSG_FILE= ${PKGDIR}/pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
# Port specific variables
|
2001-01-26 23:40:33 -05:00
|
|
|
#
|
1999-04-22 06:35:25 -04:00
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
PORT_CPU?= ${ARCH}
|
|
|
|
.if ${ARCH} == alpha
|
|
|
|
PORT_VENDOR= compaq
|
|
|
|
PORT_OSNAME= T64U
|
|
|
|
PORT_OSREL= v4.0d
|
|
|
|
.else
|
|
|
|
PORT_VENDOR?= unknown
|
|
|
|
PORT_OSNAME?= freebsd
|
|
|
|
PORT_OSREL?= 2.2.8
|
|
|
|
.endif
|
2001-01-26 23:40:33 -05:00
|
|
|
PORT_OS= ${PORT_OSNAME}${PORT_OSREL}
|
|
|
|
PORT_HOST= ${PORT_CPU}-${PORT_VENDOR}-${PORT_OS}
|
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
# Arch/OS specific variables
|
|
|
|
#
|
|
|
|
|
|
|
|
.if ${ARCH} != i386
|
|
|
|
MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
|
|
|
|
.elif ${PORT_OSNAME} != freebsd
|
|
|
|
PKGNAMEPREFIX= ${PORT_OSNAME}-
|
|
|
|
PKGNAMESUFFIX= -${PORT_CPU}
|
|
|
|
MD5_FILE= ${.CURDIR}/distinfo
|
|
|
|
COMMENT= ${.CURDIR}/pkg-comment
|
|
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
|
|
.if ${PORT_OSNAME} == linux
|
|
|
|
.if !exists(${LINUXBASE}/usr/X11R6/lib/libXaw.so.7)
|
|
|
|
NO_XBIN= libXaw.so.7 is missing from linux_base-6
|
|
|
|
.endif
|
|
|
|
NO_XBIN?= xsetiathome is broken
|
|
|
|
.endif
|
|
|
|
.elif ${OSVERSION} >= 300000
|
|
|
|
NO_XBIN= xsetiathome is broken
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
|
2001-08-24 09:39:27 -04: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-26 23:40:33 -05:00
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
# i386 NOTES:
|
2001-01-26 23:40:33 -05: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)
|
2002-07-28 18:13:45 -04:00
|
|
|
# Linux NOTES:
|
|
|
|
# xsetiathome requires libXawk.so.7 which is missing from linux_base-6.
|
|
|
|
# using linux_base-7, diagnostic messages are :
|
|
|
|
# Warning: Cannot convert string "doneB" to type Widget
|
|
|
|
# Shared memory segment doesn't exist. errno=2
|
|
|
|
# Couldn't attach to the science process!
|
2001-01-26 23:40:33 -05:00
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
.if !defined(NO_XBIN)
|
2001-01-26 23:40:33 -05:00
|
|
|
MAN1+= x${PORTNAME}.1
|
2001-08-24 09:39:27 -04:00
|
|
|
XBIN_DIR= ${PREFIX}/bin
|
2002-07-28 18:13:45 -04:00
|
|
|
XBIN_FILE= xsetiathome
|
2001-08-24 09:39:27 -04:00
|
|
|
X11PORTS=
|
|
|
|
.else
|
|
|
|
X11PORTS= "@comment "
|
1999-04-21 21:44:35 -04:00
|
|
|
.endif
|
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
# Post-patch
|
2001-01-26 23:40:33 -05:00
|
|
|
#
|
|
|
|
|
2001-08-24 09:39:27 -04:00
|
|
|
post-patch: patch-message
|
|
|
|
|
|
|
|
patch-message:
|
2002-07-28 18:13:45 -04:00
|
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g; \
|
|
|
|
s|%%PREFX%%|${PKGNAMEPREFIX}|g; \
|
|
|
|
s|%%SUFX%%|${PKGNAMESUFFIX}|g' \
|
|
|
|
${MSG_FILE} > ${PKGMESSAGE}
|
2001-01-26 23:40:33 -05:00
|
|
|
|
|
|
|
# Install
|
|
|
|
#
|
|
|
|
|
2001-08-24 09:39:27 -04:00
|
|
|
do-install: install-daemon install-program install-man
|
2001-01-26 23:40:33 -05:00
|
|
|
|
|
|
|
install-daemon:
|
2002-07-28 18:13:45 -04:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${BIN_FILE} \
|
|
|
|
${SBIN_DIR}/${PKGNAMEPREFIX}${BIN_FILE}${PKGNAMESUFFIX}
|
2001-01-26 23:40:33 -05:00
|
|
|
|
|
|
|
install-program:
|
2002-07-28 18:13:45 -04:00
|
|
|
.if defined(XBIN_FILE)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${XBIN_FILE} \
|
|
|
|
${XBIN_DIR}/${PKGNAMEPREFIX}${XBIN_FILE}${PKGNAMESUFFIX}
|
1999-04-21 21:44:35 -04:00
|
|
|
.endif
|
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
install-man:
|
|
|
|
.for mansect in 1
|
|
|
|
.for man in ${MAN${mansect}}
|
|
|
|
@${INSTALL_MAN} ${FILESDIR}/${man} \
|
2002-07-28 18:13:45 -04:00
|
|
|
${MAN${mansect}PREFIX}/man/man${mansect}
|
2001-01-26 23:40:33 -05:00
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
2001-08-24 09:39:27 -04:00
|
|
|
post-install: install-startup-files configure-package display-message
|
2001-01-26 23:40:33 -05:00
|
|
|
|
2001-08-24 09:39:27 -04:00
|
|
|
install-startup-files:
|
|
|
|
.for file in ${RC_FILES}
|
|
|
|
.if exists(${FILESDIR}/rc.${file}.conf)
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/rc.${file}.conf \
|
2002-07-28 18:13:45 -04:00
|
|
|
${CONF_DIR}/rc.${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.conf${SAMP_SUFX}
|
|
|
|
.if !exists(${CONF_DIR}/rc.${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.conf)
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/rc.${file}.conf \
|
|
|
|
${CONF_DIR}/rc.${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.conf
|
2001-08-24 09:39:27 -04:00
|
|
|
.endif
|
1999-04-22 08:24:25 -04:00
|
|
|
.endif
|
2002-07-28 18:13:45 -04:00
|
|
|
.if defined(PKGNAMEPREFIX) && !empty(PKGNAMEPREFIX)
|
|
|
|
-@${CHMOD} -x ${RC_DIR}/*${file}*.sh 2> /dev/null
|
|
|
|
.endif
|
2001-08-24 09:39:27 -04:00
|
|
|
.if exists(${FILESDIR}/${file}.sh)
|
2002-07-28 18:13:45 -04:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/${file}.sh \
|
|
|
|
${RC_DIR}/${PKGNAMEPREFIX}${file}${PKGNAMESUFFIX}.sh
|
2001-08-24 09:39:27 -04:00
|
|
|
.endif
|
|
|
|
.endfor
|
1999-04-22 08:24:25 -04:00
|
|
|
|
2001-01-26 23:40:33 -05:00
|
|
|
configure-package:
|
2001-08-24 09:39:27 -04:00
|
|
|
.if !defined(BATCH)
|
2001-01-26 23:40:33 -05:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.endif
|
1999-04-21 21:44:35 -04:00
|
|
|
|
2001-08-24 09:39:27 -04:00
|
|
|
display-message:
|
|
|
|
.if !defined(BATCH)
|
2002-07-28 18:13:45 -04:00
|
|
|
@${ECHO_MSG}
|
2001-08-24 09:39:27 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-07-28 18:13:45 -04:00
|
|
|
@${ECHO_MSG}
|
2001-08-24 09:39:27 -04:00
|
|
|
.endif
|
|
|
|
|
2002-07-28 18:13:45 -04:00
|
|
|
# Maintainer use only
|
|
|
|
#
|
|
|
|
|
|
|
|
maintainer-makesum:
|
|
|
|
.for arch in ${ONLY_FOR_ARCHS}
|
|
|
|
${MAKE} ARCH=${arch} makesum
|
|
|
|
.endfor
|
|
|
|
|
1999-04-22 06:35:25 -04:00
|
|
|
.include <bsd.port.post.mk>
|