From d013d86de3b24eeffc34c498acc7796698bcbafd Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Fri, 4 Jun 2010 12:20:43 +0200 Subject: [PATCH] fortune: initial import (verified compilation) --- fortune/.footprint | 14 ++++++++++++++ fortune/.md5sum | 7 +++++++ fortune/Pkgfile | 36 ++++++++++++++++++++++++++++++++++++ fortune/fortune-0.2.patch | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 fortune/.footprint create mode 100644 fortune/.md5sum create mode 100644 fortune/Pkgfile create mode 100644 fortune/fortune-0.2.patch diff --git a/fortune/.footprint b/fortune/.footprint new file mode 100644 index 0000000..446c088 --- /dev/null +++ b/fortune/.footprint @@ -0,0 +1,14 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/fortune +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man6/ +-rw-r--r-- root/root usr/man/man6/fortune.6.gz +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/games/ +drwxr-xr-x root/root usr/share/games/fortunes/ +-rw-r--r-- root/root usr/share/games/fortunes/chalkboard +-rw-r--r-- root/root usr/share/games/fortunes/discworld +-rw-r--r-- root/root usr/share/games/fortunes/fortune +-rw-r--r-- root/root usr/share/games/fortunes/kernelcookies +-rw-r--r-- root/root usr/share/games/fortunes/prog-style diff --git a/fortune/.md5sum b/fortune/.md5sum new file mode 100644 index 0000000..ea12473 --- /dev/null +++ b/fortune/.md5sum @@ -0,0 +1,7 @@ +27ef6c6f82ebe123bb0abbd0e27577f6 fortune-0.2.patch +559c64870f4d975859db80e25da89d2b fortune-0.2.tar.gz +4e00763163ae6ca76f7f23e435edbe08 fortune-discworld.tgz +e6dbf9618b39c200af2b0d36cf49ce11 fortune-mod-prog-style.tar.gz +1602ec6df3336a7e01f857b8419c8df1 fortune-simpsons-chalkboard.tgz +a187d3663fc9517e08785dd0f4bd2a0c fortune_big.zip +4de18706b570d9460ed41c538627bd7a kernelcookies-8.tar.gz diff --git a/fortune/Pkgfile b/fortune/Pkgfile new file mode 100644 index 0000000..2da5157 --- /dev/null +++ b/fortune/Pkgfile @@ -0,0 +1,36 @@ +# Description: Display a random fortune +# URL: http://www.ibiblio.org/pub/Linux/games/amusements/fortune/ +# Packager: Daniel Mueller, daniel at danm dot de +# Maintainer: Thomas Penteker, tek at serverop dot de +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: + +name=fortune +version=0.2 +release=5 +source=(http://www.ibiblio.org/pub/Linux/games/amusements/$name/$name-$version.tar.gz \ + $name-$version.patch \ + http://crux.nu/~tek/fortune_big.zip \ + http://www.schwarzvogel.de/pkgs/kernelcookies-8.tar.gz \ + http://www.splitbrain.org/_media/projects/fortunes/fortune-simpsons-chalkboard.tgz \ + http://www.splitbrain.org/_media/projects/fortunes/fortune-discworld.tgz \ + http://crux.nu/files/distfiles/fortune-mod-prog-style.tar.gz) + +build(){ + local cookie + cd $name-$version + + patch -p1 < ../$name-$version.patch + make + + mkdir -p $PKG/usr/{bin,man/man6,share/games/fortunes} + + install -m 755 $name $PKG/usr/bin/$name + install -m 644 debian/$name.6 $PKG/usr/man/man6/ + + cd $SRC + for cookie in */prog-style */discworld */chalkboard */kernelcookies fortune + do + install -m 644 $cookie $PKG/usr/share/games/fortunes/ + done +} diff --git a/fortune/fortune-0.2.patch b/fortune/fortune-0.2.patch new file mode 100644 index 0000000..19f343f --- /dev/null +++ b/fortune/fortune-0.2.patch @@ -0,0 +1,39 @@ +diff -Nru fortune-0.2/fortune.c fortune-0.2-new/fortune.c +--- fortune-0.2/fortune.c 1998-10-25 01:05:19.000000000 +0200 ++++ fortune-0.2-new/fortune.c 2002-09-15 18:46:36.000000000 +0200 +@@ -30,7 +30,7 @@ + #warn Your system headers say that mmap is not supported! + #endif + +-#define VERSION "0.1" ++#define VERSION "0.2" + #define FORTUNEDIR "/usr/share/games/fortunes" + + struct option const long_options[] = +@@ -38,6 +38,8 @@ + {"help", no_argument, 0, 'h'}, + {"help", no_argument, 0, '?'}, + {"match", required_argument, 0, 'm'}, ++ {"set", no_argument, 0, 's'}, ++ {"out", no_argument, 0, 'o'}, + {"version", no_argument, 0, 'V'}, + {(char *)0, 0, 0, (char)0} + }; +@@ -140,7 +142,7 @@ + char *re; + + progname=argv[0]; re=NULL; +- while ((c = getopt_long(argc, argv, "h?m:V", ++ while ((c = getopt_long(argc, argv, "h?som:V", + long_options, (int *) 0)) != EOF) { + switch (c) { + case 0 : break; +@@ -150,6 +152,8 @@ + return 0; + case 'V': fprintf(stderr,"%s version %s\n", progname, VERSION); + return 0; ++ case 'o': break; ++ case 's': break; + case 'm': re=optarg; + default : break; + } -- 2.26.2