blob: 8f774ef74301ceee5deb71c388dc49737a923999 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
# Ports collection makefile for: setiathome
# Date created: 22 Apr 1999
# Whom: stb@freebsd.org
#
# $FreeBSD$
PORTNAME= setiathome
PORTVERSION= 3.03
PORTREVISION= 1
CATEGORIES= astro
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= 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
NO_BUILD= "binary distribution"
NO_CDROM= "interactive install"
.if ${OSVERSION} <= 226000
BROKEN= "currently supports only FreeBSD 2.2.6 and above"
.endif
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
#
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
#
# 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
install-script:
@${INSTALL_SCRIPT} ${WRKSRC}/${SCRIPT} ${PREFIX}/${RCDSUBDIR}
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
configure-package:
.if defined(IS_INTERACTIVE)
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
.include <bsd.port.post.mk>
|