* New upstream release, whivh includes hack, back fron bsdgames-nonfree.

* Conflict and replace with old versions of bsdgames-nonfree that include
     hack.
   * Add hack to package description and menu file.
   * Add in hack's two READ_ME files to binay package.
   * Patched hack config.h as it is patched in bsdgames-nonfree.
   * Unlike bsdgames-nonfree, put the help, hh, rumors, and data files in
     /usr/share/games/bsdgames/hack, as the patched config.h makes it look
     there.
   * postinst moves over hack state files to new directory
   * Patched phantasia to use strerror and not segfault if it cannot open the
     var files. Closes: #187251 (patch sent upstream)


git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5206 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2003-04-03 02:10:44 +00:00
parent 0e204a0ae1
commit e5b45776e7
42 changed files with 504 additions and 2553 deletions

41
configure vendored
View File

@@ -1,7 +1,7 @@
#!/bin/sh
# configure - home-grown configuration script for bsd-games.
#
# Copyright (c) 1997, 1998, 1999, 2000 Joseph Samuel Myers.
# Copyright (c) 1997, 1998, 1999, 2000, 2003 Joseph Samuel Myers.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -338,6 +338,28 @@ echo "this blank. Leave it blank if /usr/include/ncurses is a symbolic link"
echo "to /usr/include."
ask "Ncurses includes" ncurses_includes ''
openssl_lib=
openssl_includes=
if building_in factor; then
echo
echo "factor can use libcrypto from OpenSSL to handle large numbers."
ask_yn "Use libcrypto" use_libcrypto y
if [ $use_libcrypto = y ]; then
echo "If the OpenSSL includes (with files such as bn.h) are not in"
echo "/usr/include/openssl, then you will need to specify a -I option"
echo "here, naming a directory containing an \"openssl\" subdirectory"
echo "with the OpenSSL headers."
ask "OpenSSL includes" openssl_includes ''
echo "If the OpenSSL libcrypto library is not in a location searched"
echo "by the compiler by default, or has a strange name, you will"
echo "need to specify the appropriate options to find it here"
echo "(for example, -L/usr/ssl/lib -lcrypto); otherwise, leave the"
echo "default, which is probably correct."
ask "OpenSSL libcrypto library" openssl_lib -lcrypto
fi
fi
subst_vars="$subst_vars openssl_lib openssl_includes"
ask "Other CFLAGS" other_cflags ''
ask "Other LDFLAGS" other_ldflags ''
@@ -345,6 +367,10 @@ ask "Other LDFLAGS" other_ldflags ''
echo "#ifndef LINUX_BSD_GAMES_H" >include/bsd-games.h
echo "#define LINUX_BSD_GAMES_H 1" >>include/bsd-games.h
if [ "$use_libcrypto" = "y" ]; then
echo "#define HAVE_OPENSSL 1" >>include/bsd-games.h
fi
check_func getloadavg <<EOF
#include <stdlib.h>
@@ -370,6 +396,19 @@ main(void)
}
EOF
check_func strlcpy <<EOF
#include <string.h>
int
main(void)
{
char s[1] = "";
char d[1];
strlcpy(d, s, 1);
return 0;
}
EOF
echo "#endif /* !defined(LINUX_BSD_GAMES_H) */" >>include/bsd-games.h