Bug 48236 - upgrade port fortuneru
Summary: upgrade port fortuneru
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 10:00 UTC by Oleksandr Bezpalko
Modified: 2003-02-15 00:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr Bezpalko 2003-02-13 10:00:26 UTC

Fix: 

--- Makefile	13 Feb 2003 07:48:50 -0000	1.1
+++ Makefile	13 Feb 2003 09:33:38 -0000
@@ -6,34 +6,45 @@
 #
 
 PORTNAME=	fortuneru
-PORTVERSION=	0.2
+PORTVERSION=  0.3
 CATEGORIES=	russian
-MASTER_SITES=	ftp://de22.kiev.ua/pub/files/
+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@iptcom.net
+MAINTAINER=   bestia@de22.kiev.ua
+COMMENT=      Fortunes on russian
 
 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
+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
-	${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
+
+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
+	${STRCMD} ${PREFIX}/share/games/fortune/rus/${fortune} >/dev/null 2>/dev/null
 .endfor
-	@${CAT} ${PKGMESSAGE}
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "Usage:"
+	@${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/rus"
+	@${ECHO_MSG} ""
 
 .include <bsd.port.mk>

--- distinfo	13 Feb 2003 07:48:50 -0000	1.1
+++ distinfo	13 Feb 2003 08:50:32 -0000
@@ -1 +1 @@
-MD5 (fortune.ru-0.2.tar.gz) = f374f6368545d1d4d6505be24bf96fb4
+MD5 (fortune.ru-0.3.tar.gz) = 11cd4b517e15254979934b2099a62c22


--- pkg-descr	13 Feb 2003 07:48:50 -0000	1.1
+++ pkg-descr	13 Feb 2003 08:50:56 -0000
@@ -1,3 +1,3 @@
 This package contains fortune files in Russian.
 
-- ported to FreeBSD by bestia (bestia@iptcom.net)
+- ported to FreeBSD by bestia (bestia@de22.kiev.ua)


--- pkg-plist	13 Feb 2003 07:48:50 -0000	1.1
+++ pkg-plist	13 Feb 2003 09:11:44 -0000
@@ -1,7 +1,5 @@
 share/games/fortune/rus/4hf
 share/games/fortune/rus/4hf.dat
-share/games/fortune/rus/aphorizms
-share/games/fortune/rus/aphorizms.dat
 share/games/fortune/rus/beer-murphy
 share/games/fortune/rus/beer-murphy.dat
 share/games/fortune/rus/enciklopedy
@@ -30,6 +28,8 @@
 share/games/fortune/rus/verse.dat
 share/games/fortune/rus/windows_errors
 share/games/fortune/rus/windows_errors.dat
+share/games/fortune/rus/pavlenka
+share/games/fortune/rus/pavlenka.dat
 @dirrm share/games/fortune/rus
 @unexec rmdir %D/share/games/fortune 2>/dev/null || true
 @unexec rmdir %D/share/games 2>/dev/null || true
Comment 1 Christian Weisgerber freebsd_committer freebsd_triage 2003-02-15 00:27:05 UTC
State Changed
From-To: open->closed

Committed, thanks.