diff options
| author | Benjamin Linskey | 2026-06-08 20:10:29 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-06-08 20:28:21 -0400 |
| commit | 69159c90af7a403467282e557458494cc9993e96 (patch) | |
| tree | 3c0cf9c0ddf99371cda5b12f965428cbded26281 | |
| parent | 75f21eed3344d4c754ec17e44f7655425b3dc118 (diff) | |
| download | rogue-69159c90af7a403467282e557458494cc9993e96.tar.gz | |
Add readme and license
| -rw-r--r-- | LICENSE | 67 | ||||
| -rw-r--r-- | README.md | 37 | ||||
| -rw-r--r-- | pathnames.c | 16 |
3 files changed, 120 insertions, 0 deletions
@@ -0,0 +1,67 @@ +This document summarizes the license terms under which the original source code +was distributed by the NetBSD project, as well as the license terms that apply +to new work created in this project. See the individual source files for the +details of the licenses applicable to each file. + +------------------------------------------------------------------------------- + +The original source files contain a license in the following form: + + Copyright (c) 1988, 1993 + The Regents of the University of California. All rights reserved. + + This code is derived from software contributed to Berkeley by + Timothy C. Stoehr. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +See the source files for the particular copyright years specific to each file. + +The original source files also contain restrictions in the following form: + + This source herein may be modified and/or distributed by anybody who + so desires, with the following restrictions: + 1.) No portion of this notice shall be removed. + 2.) Credit shall not be taken for the creation of this source. + 3.) This code is not to be traded, sold, or used for personal + gain or profit. + +------------------------------------------------------------------------------- + +New work created in this project is distributed under the following terms: + + Copyright (c) 2026 Benjamin Linskey <contact@linskey.org> + + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf87593 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# Rogue + +This is a portable version of the classic Unix game *Rogue*, forked from the +version distributed with NetBSD. It's intended to be portable across Unix-like +systems and maintains a user-specific high score table, in contrast to the +systemwide, multiuser score list used by the traditional BSD *Rogue*. + +## Requirements and Installation + +The program requires some version of the curses library, such as ncurses. Run +`make` to compile the program and `make install` to install it. The program is +installed under `/usr/local` by default and thus must be installed as the +`root` user, but the location can be customized by editing the makefile. + +This repository also includes a copy of "A Guide to the Dungeons of Doom," part +of the classic *UNIX User's Supplementary Documents*, in `USD.doc`. This +requires `groff` or another `troff`-compatible program, specified in the +makefile. Run `make` from the `USD.doc` directory to generate `rogue.txt` and +`less -R rogue.txt` to read the document. + +## History and Source + +The original *Rogue* was created around the year 1980 by Glenn Wichman, Michael +Toy, and Ken Arnold. The version distributed in this repository is derived from +a clone created by Timothy Stoehr. The source code was copied from the trunk +branch of [the official NetBSD src Git mirror][1] in 2026. The file `HISTORY` +contains a copy of the Git log for the project directory. + +## License + +The original source files contain both a three-clause BSD license and an +informal license statement that forbids commercial use. (The USD document +describes the program as "public domain," but this is obviously inaccurate.) +New code added in this repository is licensed under an ISC-style license. +See the `LICENSE` file for details. + +[1]: https://github.com/NetBSD/src/tree/trunk diff --git a/pathnames.c b/pathnames.c index e6d9117..ca78653 100644 --- a/pathnames.c +++ b/pathnames.c @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2026 Benjamin Linskey <contact@linskey.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + #include <stdlib.h> #include <pwd.h> #include <stdbool.h> |