diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-01-27 04:40:33 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-01-27 04:40:33 +0000 |
commit | 4a208e0f030c7cdeed8b5be9c2558347f21b5d15 (patch) | |
tree | 911e9ced0a5363652c5229d18b901e177c14b963 /astro/setiathome/Makefile | |
parent | Add xw 0.0.8, an X app to list current users logged into the system. (diff) |
Update to setiathome 3.03 and replace inactive maintainer.
Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
PR: 24520
Diffstat (limited to 'astro/setiathome/Makefile')
-rw-r--r-- | astro/setiathome/Makefile | 147 |
1 files changed, 106 insertions, 41 deletions
diff --git a/astro/setiathome/Makefile b/astro/setiathome/Makefile index 0ef4ff6cf14f..9bec58d3fe2c 100644 --- a/astro/setiathome/Makefile +++ b/astro/setiathome/Makefile @@ -5,64 +5,129 @@ # $FreeBSD$ PORTNAME= setiathome -PORTVERSION= 2.4 +PORTVERSION= 3.03 CATEGORIES= astro -MASTER_SITES= ftp://ftp.cdrom.com/pub/setiathome/ \ +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/ +DISTNAME= ${PORTNAME}-${PORTVERSION}.${PORT_HOST} +EXTRACT_SUFX= .tar -MAINTAINER= stb@freebsd.org +MAINTAINER= clefevre@citeweb.net + +.include <bsd.port.pre.mk> + +# +# Global variables +# + +.if !defined(PACKAGE_BUILDING) || empty(PACKAGE_BUILDING) +IS_INTERACTIVE= yes +.endif ONLY_FOR_ARCHS= i386 -EXTRACT_CMD= tar -EXTRACT_BEFORE_ARGS= -xf -EXTRACT_AFTER_ARGS= +NO_BUILD= "binary distribution" +NO_CDROM= "interactive install" -MAN1= setiathome.1 xsetiathome.1 +.if ${OSVERSION} <= 226000 +BROKEN= "currently supports only FreeBSD 2.2.6 and above" +.endif -.include <bsd.port.pre.mk> +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 +# -.if ${OSVERSION} >= 310000 -DISTFILES= setiathome-2.4.i386-unknown-freebsd3.3.tar -WRKSRC= setiathome-2.4.i386-unknown-freebsd3.3 -.elif ${OSVERSION} >= 226000 -DISTFILES= setiathome-2.4.i386-unknown-freebsd2.2.8.tar -WRKSRC= setiathome-2.4.i386-unknown-freebsd2.2.8 -.else -DISTFILES= +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 .endif -.if make(makesum) || defined(FETCH_ALL) -DISTFILES= setiathome-2.4.i386-unknown-freebsd2.2.8.tar \ - setiathome-2.4.i386-unknown-freebsd3.3.tar +# +# 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} .endif -NO_BUILD= "binary distribution" -NO_CDROM= "interactive install" +install-script: + @${INSTALL_SCRIPT} ${WRKSRC}/${SCRIPT} ${PREFIX}/${RCDSUBDIR} -.if !defined(PACKAGE_BUILDING) -IS_INTERACTIVE= yes +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} .endif -pre-fetch: - @if [ -z "${DISTFILES}" ]; then \ - ${ECHO} "It seems you are running FreeBSD `uname -r`, which is not currently"; \ - ${ECHO} "supported. SETI@home currently supports only FreeBSD 2.2.6 and above,"; \ - ${ECHO} "FreeBSD 3.1. and above, and FreeBSD 4.0."; \ - ${ECHO} \ - exit 72; \ - fi; - -do-install: - ${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 - -post-install: - @PKG_PREFIX=${PREFIX} PACKAGE_BUILDING=${PACKAGE_BUILDING} \ - ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +configure-package: +.if defined(IS_INTERACTIVE) + @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif .include <bsd.port.post.mk> |