aboutsummaryrefslogtreecommitdiffstats
path: root/russian/fortuneru/Makefile
blob: 4b06e6bf7f409f74bab2f9637042c7c87f1fcf07 (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
# New ports collection makefile for:   fortuneru
# Date created:        26-09-2001
# Whom:                bestia@iptcom.net
#
# $FreeBSD$
#

PORTNAME=   fortuneru
PORTVERSION=    0.2
CATEGORIES= russian
MASTER_SITES=   ftp://de22.kiev.ua/pub/files/
DISTNAME=   fortune.ru-${PORTVERSION}

MAINTAINER= bestia@iptcom.net

NO_BUILD=   yes

PKGMESSAGE= ${WRKDIR}/pkg-message

STRCMD=     /usr/games/strfile
FORTUNES=   4hf aphorizms beer-murphy enciklopedy fomenko fortune_rus \
        guberman marazm maxim_and_fedor murphy police speed-info \
        strug usenet verse windows_errors

do-install:
    @${SETENV} STRCMD=${STRCMD} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
    ${SED} -e "s,%%PREFIX%%,${PREFIX}," < ${FILESDIR}/pkg-message.in > \
        ${PKGMESSAGE}
    @${MKDIR} ${PREFIX}/share/games/fortune/rus
.for fortune in ${FORTUNES}
    ${INSTALL_DATA} ${WRKSRC}/${fortune} ${PREFIX}/share/games/fortune/rus
.endfor
.for fortune in ${FORTUNES}
    ${STRCMD} ${PREFIX}/share/games/fortune/rus/${fortune} \
        >/dev/null 2>/dev/null
.endfor
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>