Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6da96cc00 | ||
|
|
b8c9baac4a | ||
|
|
45ae1dd827 | ||
|
|
590bddacc0 |
2 changed files with 35 additions and 8 deletions
11
boggle_fread_chk.patch
Normal file
11
boggle_fread_chk.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- bsd-games-2.17/boggle/boggle/word.c.orig 2024-11-27 23:17:50.170707535 +0000
|
||||
+++ bsd-games-2.17/boggle/boggle/word.c 2024-11-27 23:22:28.601210911 +0000
|
||||
@@ -165,7 +165,7 @@ loaddict(fp)
|
||||
|
||||
p = dictspace;
|
||||
st = -1;
|
||||
- while (n > 0 && (st = fread(p, 1, BUFSIZ, fp)) > 0) {
|
||||
+ while (n > 0 && (st = fread(p, 1, n > st ? BUFSIZ : n, fp)) > 0) {
|
||||
p += st;
|
||||
n -= st;
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
Summary: Collection of text-based games
|
||||
Name: bsd-games
|
||||
Version: 2.17
|
||||
Release: 78%{?dist}
|
||||
Release: 82%{?dist}
|
||||
# Automatically converted from old format: BSD and BSD with advertising - review is highly recommended.
|
||||
License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising
|
||||
URL: ftp://metalab.unc.edu/pub/Linux/games/
|
||||
|
|
@ -44,8 +44,8 @@ Patch23: bsd-games-2.17-printf.patch
|
|||
Patch24: bsd-games-2.17-printw.patch
|
||||
Patch25: bsd-games-c99.patch
|
||||
Patch26: atc.patch
|
||||
Patch27: boggle_fread_chk.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: make
|
||||
BuildRequires: ncurses-devel
|
||||
|
|
@ -57,7 +57,6 @@ BuildRequires: libfl-static
|
|||
BuildRequires: flex-devel
|
||||
%endif
|
||||
BuildRequires: bison
|
||||
Requires(pre): shadow-utils
|
||||
|
||||
%description
|
||||
Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar,
|
||||
|
|
@ -97,6 +96,14 @@ popd
|
|||
%patch -P24 -p1 -b .printw
|
||||
%patch -P25 -p1 -b .c99
|
||||
%patch -P26 -p1 -b .atc
|
||||
%patch -P27 -p1 -b .fread_chk
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >bsd-games.sysusers.conf <<EOF
|
||||
g gamehack -
|
||||
g gamesail -
|
||||
g gamephant -
|
||||
EOF
|
||||
|
||||
%build
|
||||
# We include a templatized configuration settings file to set
|
||||
|
|
@ -152,11 +159,7 @@ install -p -m 0644 acronyms* $RPM_BUILD_ROOT%{_datadir}/misc/
|
|||
mv $RPM_BUILD_ROOT%{_datadir}/misc/acronyms-o.real $RPM_BUILD_ROOT%{_datadir}/misc/acronyms-o
|
||||
popd
|
||||
|
||||
%pre
|
||||
for group in gamehack gamesail gamephant; do
|
||||
getent group $group >/dev/null || groupadd -r $group
|
||||
done
|
||||
exit 0
|
||||
install -m0644 -D bsd-games.sysusers.conf %{buildroot}%{_sysusersdir}/bsd-games.conf
|
||||
|
||||
%files
|
||||
%{_bindir}/adventure
|
||||
|
|
@ -223,8 +226,21 @@ exit 0
|
|||
%config(noreplace) %attr(664,root,games) %{_var}/games/snakerawscores
|
||||
%config(noreplace) %attr(664,root,games) %{_var}/games/bsd-fbg.scores
|
||||
%doc AUTHORS COPYING ChangeLog ChangeLog.0 THANKS YEAR2000 README.hunt trek/USD.doc/trek.me
|
||||
%{_sysusersdir}/bsd-games.conf
|
||||
|
||||
%changelog
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-82
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.17-81
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-80
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Wed Nov 27 2024 Sérgio Basto <sergio@serjux.com> - 2.17-79
|
||||
- Add boggle_fread_chk.patch
|
||||
|
||||
* Tue Sep 24 2024 Sérgio Basto <sergio@serjux.com> - 2.17-78
|
||||
- Only show offensive acronyms with usage: wtf [-o] [-f dbfile] [is] term ...
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue