summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 18:14:28 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 18:14:28 +0000
commit5185da51cd857a2dfde2d4b4705136834d5354e4 (patch)
tree751722dcc6f2f65f7839b89babf369c6a7de9fb3 /games-misc/fortune-mod
parentstable on x86/alpha (diff)
downloadgentoo-2-5185da51cd857a2dfde2d4b4705136834d5354e4.tar.gz
gentoo-2-5185da51cd857a2dfde2d4b4705136834d5354e4.tar.bz2
gentoo-2-5185da51cd857a2dfde2d4b4705136834d5354e4.zip
games-misc
Diffstat (limited to 'games-misc/fortune-mod')
-rw-r--r--games-misc/fortune-mod/ChangeLog52
-rw-r--r--games-misc/fortune-mod/Manifest5
-rw-r--r--games-misc/fortune-mod/files/9708-Makefile.patch41
-rw-r--r--games-misc/fortune-mod/files/9708-ppc-rot.patch11
-rw-r--r--games-misc/fortune-mod/files/digest-fortune-mod-9708-r11
-rw-r--r--games-misc/fortune-mod/fortune-mod-9708-r1.ebuild53
6 files changed, 163 insertions, 0 deletions
diff --git a/games-misc/fortune-mod/ChangeLog b/games-misc/fortune-mod/ChangeLog
new file mode 100644
index 000000000000..c89d5b38ebc5
--- /dev/null
+++ b/games-misc/fortune-mod/ChangeLog
@@ -0,0 +1,52 @@
+# ChangeLog for app-games/fortune-mod
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/ChangeLog,v 1.1 2003/09/10 18:14:04 vapier Exp $
+
+
+*fortune-mod-9708-r1 (20 Jul 2002)
+
+ 26 Aug 2003; Joshua Kinard <kumba@gentoo.org> fortune-mod-9708-r1.ebuild:
+ Added ~mips to KEYWORDS
+
+ 28 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ Added patches to fix #19842 and clean up.
+
+ 05 Jun 2003; Martin Holzer <mholzer@gentoo.org> fortune-mod-9708-r1.ebuild:
+ Added Manpage fix. Closes #20145.
+
+ 03 Jun 2003; Tavis Ormandy <taviso@gentoo.org> fortune-mod-9708-r1.ebuild:
+ marking alpha.
+
+ 07 Dec 2002; Jack Morgan <jmorgan@gentoo.org> fortune-mod-9708-r1.ebuild :
+ Changed sparc64 to sparc keyword
+
+ 19 Sept 2002; Mike Frysinger <vapier@gentoo.org> :
+ Found the proper 'home' for fortune-mod
+
+ 23 Aug 2002; J. Alberto Suárez López <bass@gentoo.org> fortune-mod-9708-r1.ebuild:
+ Added advisory about how enable offensive fortune.
+
+ 20 Jul 2002; Jose Alberto Suárez López <bass@gentoo.org> fortune-mod-9708-r1.ebuild:
+ Fixed problem with fortune-offensive. If you want it, need edit the
+ ebuild and change $offensive= to $offensive=1
+
+*fortune-mod-9708 (1 Feb 2002)
+
+ 19 Sept 2002; Mike Frysinger <vapier@gentoo.org> :
+ Found the proper 'home' for fortune-mod
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> fortune-mod-9708.ebuild :
+ Added LICENSE.
+
+ 15 Jul 2002; Owen Stampflee <owen@gentoo.org> :
+
+ Added KEYWORDS.
+
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/games-misc/fortune-mod/Manifest b/games-misc/fortune-mod/Manifest
new file mode 100644
index 000000000000..44f542bac632
--- /dev/null
+++ b/games-misc/fortune-mod/Manifest
@@ -0,0 +1,5 @@
+MD5 4a842ae009ee6ce8b008e51c4592941f ChangeLog 1959
+MD5 e754fbb500e3b26b9025f3ffb6787301 fortune-mod-9708-r1.ebuild 1381
+MD5 45891a0eae39a7ec90b6f2433147874f files/digest-fortune-mod-9708-r1 69
+MD5 69ebce3aec1f10dead82c52fd02c1350 files/9708-Makefile.patch 1305
+MD5 53d07a3874dcef229e5e19296a9d8db1 files/9708-ppc-rot.patch 226
diff --git a/games-misc/fortune-mod/files/9708-Makefile.patch b/games-misc/fortune-mod/files/9708-Makefile.patch
new file mode 100644
index 000000000000..a49e9424307c
--- /dev/null
+++ b/games-misc/fortune-mod/files/9708-Makefile.patch
@@ -0,0 +1,41 @@
+--- Makefile.orig 2003-06-28 01:37:38.000000000 -0400
++++ Makefile 2003-06-28 01:39:44.000000000 -0400
+@@ -3,24 +3,24 @@
+ #
+
+ # Where does the fortune program go?
+-FORTDIR=/usr/local/games
++FORTDIR=$(DESTDIR)/usr/bin
+ # Where do the data files (fortunes, or cookies) go?
+-COOKIEDIR=/usr/local/share/games/fortunes
++COOKIEDIR=$(DESTDIR)/usr/share/fortune
+ # Offensive ones?
+ OCOOKIEDIR=$(COOKIEDIR)/off
+ # The ones with html tags?
+ WCOOKIEDIR=$(COOKIEDIR)/html
+ # Where do strfile and unstr go?
+-BINDIR=/usr/local/bin
++BINDIR=$(DESTDIR)/usr/bin
+ # What is the proper mode for strfile and unstr? 755= everyone, 700= root only
+ BINMODE=0755
+ #BINMODE=0700
+ # Where do the man pages for strfile and unstr go?
+-BINMANDIR=/usr/local/man/man1
++BINMANDIR=$(DESTDIR)/usr/share/man/man1
+ # What is their proper extension?
+ BINMANEXT=1
+ # And the same for the fortune man page
+-FORTMANDIR=/usr/local/man/man6
++FORTMANDIR=$(DESTDIR)/usr/share/man/man6
+ FORTMANEXT=6
+ # Do we want to install the offensive files? (0 no, 1 yes)
+ OFFENSIVE=1
+@@ -55,7 +55,7 @@
+ REGEXLIBS=
+
+ DEFINES=-DFORTDIR="\"$(COOKIEDIR)\"" -DOFFDIR="\"$(OCOOKIEDIR)\""
+-CFLAGS=-O2 $(DEFINES) -Wall -fomit-frame-pointer -pipe
++CFLAGS= $(DEFINES) $(OPTCFLAGS)
+ LDFLAGS=-s
+
+ # The above flags are used by default; the debug flags are used when make
diff --git a/games-misc/fortune-mod/files/9708-ppc-rot.patch b/games-misc/fortune-mod/files/9708-ppc-rot.patch
new file mode 100644
index 000000000000..c22863203faa
--- /dev/null
+++ b/games-misc/fortune-mod/files/9708-ppc-rot.patch
@@ -0,0 +1,11 @@
+--- util/rot.c.orig 2003-06-28 01:45:44.000000000 -0400
++++ util/rot.c 2003-06-28 01:45:51.000000000 -0400
+@@ -8,7 +8,7 @@
+
+ int main(void)
+ {
+- char a, b;
++ short int a, b;
+
+ while ((a = getchar()) != EOF)
+ {
diff --git a/games-misc/fortune-mod/files/digest-fortune-mod-9708-r1 b/games-misc/fortune-mod/files/digest-fortune-mod-9708-r1
new file mode 100644
index 000000000000..679b925ad361
--- /dev/null
+++ b/games-misc/fortune-mod/files/digest-fortune-mod-9708-r1
@@ -0,0 +1 @@
+MD5 81a87a44f9d94b0809dfc2b7b140a379 fortune-mod-9708.tar.gz 1408517
diff --git a/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild b/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild
new file mode 100644
index 000000000000..7808ac15bf85
--- /dev/null
+++ b/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild,v 1.1 2003/09/10 18:14:04 vapier Exp $
+
+inherit eutils
+
+#The original (http://www.progsoc.uts.edu.au/~dbugger/hacks/hacks.html) is dead
+# but the guy setup his 'perm' home with LSM (http://lsm.execpc.com/)
+DESCRIPTION="The notorious fortune program"
+HOMEPAGE="ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/"
+SRC_URI="http://www.ibiblio.org/pub/Linux/games/amusements/fortune/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="x86 ppc sparc alpha ~mips"
+IUSE="offensive"
+
+DEPEND="virtual/glibc"
+
+[ `use offensive` ] && off=1 || off=0
+
+pkg_setup() {
+ einfo "By default the fortune ebuild does not include 'offensive' fortunes."
+ einfo "If you wish to enable this functionality, you must manually edit the"
+ einfo "ebuild. The comments inside are self explainatory."
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-Makefile.patch
+ epatch ${FILESDIR}/${PV}-ppc-rot.patch
+}
+
+src_compile() {
+ emake \
+ OFFENSIVE=${off} \
+ OPTCFLAGS="${CFLAGS}" \
+ || die
+}
+
+src_install() {
+ make \
+ OFFENSIVE=${off} \
+ OPTCFLAGS="${CFLAGS}" \
+ DESTDIR=${D} \
+ install \
+ || die
+
+ dosed /usr/share/man/man6/fortune.6
+
+ dodoc ChangeLog INDEX INSTALL Notes README TODO
+}