blob: a4a48bf095db6cfa5f95aa8428ac8b016d945bed (
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
|
# New ports collection makefile for: fortuneru
# Date created: 26-09-2001
# Whom: bestia@iptcom.net
#
# $FreeBSD$
#
PORTNAME= fortuneru
PORTVERSION= 0.3
CATEGORIES= russian
MASTER_SITES= ftp://de22.kiev.ua/pub/files/ \
ftp://hosting.cvu.kiev.ua/pub/files/ \
ftp://viva-solutions.com.ua/pub/files/
DISTNAME= fortune.ru-${PORTVERSION}
MAINTAINER= bestia@de22.kiev.ua
COMMENT= Fortunes in russian
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
STRCMD= /usr/games/strfile
FORTUNES= 4hf beer-murphy enciklopedy fortune_rus \
guberman marazm maxim_and_fedor murphy police \
strug usenet verse windows_errors pavlenka fomenko speed-info
do-install:
@${SETENV} STRCMD=${STRCMD} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@${MKDIR} ${PREFIX}/share/games/fortune/rus
.for fortune in ${FORTUNES}
${INSTALL_DATA} ${WRKSRC}/${fortune} ${PREFIX}/share/games/fortune/rus
.endfor
pre-install:
.if !exists(${STRCMD})
@${ECHO_MSG} "Please install the games distribution"
@exit 1
.endif
post-install:
.for fortune in ${FORTUNES}
${STRCMD} ${PREFIX}/share/games/fortune/rus/${fortune} >/dev/null 2>/dev/null
.endfor
@${ECHO_MSG} ""
@${ECHO_MSG} "Usage:"
@${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/rus"
@${ECHO_MSG} ""
.include <bsd.port.mk>
|