mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
41 lines
964 B
Makefile
41 lines
964 B
Makefile
# Created by: bestia@iptcom.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fortuneru
|
|
PORTVERSION= 20090524
|
|
CATEGORIES= russian
|
|
MASTER_SITES= ftp://bestia.kiev.ua/pub/files/ ftp://hosting.cvu.kiev.ua/pub/files/
|
|
DISTNAME= fortune.ru-${PORTVERSION}
|
|
|
|
MAINTAINER= obezpalko@gmail.com
|
|
COMMENT= Fortunes in Russian
|
|
|
|
NO_BUILD= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
STRCMD= /usr/games/strfile
|
|
|
|
NO_STAGE= yes
|
|
do-install:
|
|
@${SETENV} STRCMD=${STRCMD} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
@${MKDIR} ${PREFIX}/share/games/fortune/rus
|
|
${INSTALL_DATA} ${WRKSRC}/* ${PREFIX}/share/games/fortune/rus
|
|
|
|
pre-install:
|
|
.if !exists(${STRCMD})
|
|
@${ECHO_MSG} "Please install the games distribution"
|
|
@exit 1
|
|
.endif
|
|
|
|
post-install:
|
|
@for fortune in ${PREFIX}/share/games/fortune/rus/* ; do \
|
|
${STRCMD} $$fortune >/dev/null 2>/dev/null ; \
|
|
done
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "Usage:"
|
|
@${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/rus"
|
|
@${ECHO_MSG} ""
|
|
|
|
.include <bsd.port.mk>
|