lbreakouthd: clean up footprint

This commit is contained in:
John McQuah 2023-01-25 08:30:32 -05:00
parent 07795a8390
commit c397fc2570
4 changed files with 20 additions and 14 deletions

View File

@ -202,3 +202,6 @@ drwxr-xr-x root/root usr/share/lbreakouthd/themes/Standard/
-rw-r--r-- root/root usr/share/lbreakouthd/themes/Standard/warp.png
-rw-r--r-- root/root usr/share/lbreakouthd/themes/Standard/weakball.wav
-rw-r--r-- root/root usr/share/lbreakouthd/themes/Standard/weapon.png
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwxrwxrwt root/root var/lib/games/

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/jmq.pub
RWTTPlFarK9CxI2aLprOlRqMGPtEmTfmgVIlZN0k2si964Bd1tMssVdN+f8gnELkcsncXYGlAZ/YhJwngGbXmHap5NKN9UvBGQE=
SHA256 (Pkgfile) = 3bb281b962659738a148fec89fae7038659a3099bf696f01be7ac514fff0be01
SHA256 (.footprint) = e75758ad323b34e3a7ca19b0eba9c4a9e4e2b2c701a03a87317c02b94b2c6492
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF30qmcJflhFIyqWPMxUHW9EtURSIgva0ZBWyKtjmqMMlXgilrQ32iH6Z2RYiJuYILoLwQWGHrRFfzYmKmVG+RZAo=
SHA256 (Pkgfile) = 995a74c23a34c37391897ebfa56dcd9852e6960b0d9b5504e975dfdb6bbbc854
SHA256 (.footprint) = 22352efa52b62b369fc6d1fd8ca844c27c30d1d8ecabef300c0ac25936416673
SHA256 (lbreakouthd-1.1.tar.gz) = e618d2d1a2797fc39ed1a4ae560715d748793a65ac68c1c5e41f7061516b9436

View File

@ -5,15 +5,18 @@
name=lbreakouthd
version=1.1
release=1
release=2
source=(https://downloads.sourceforge.net/project/lgames/$name/$name-$version.tar.gz)
build() {
cd "$name-$version"
sed -i "/^icondir =/s/icons/lbreakouthd/" Makefile.in
./configure --prefix=/usr --localstatedir=/var/tmp --disable-nls
./configure --disable-nls \
--prefix=/usr \
--localstatedir=/var/lib/games
make DESTDIR=$PKG install
sed -i "/^Icon=/s/icons/lbreakouthd/" $PKG/usr/share/applications/lbreakouthd.desktop
rm -rf $PKG/var
rm -f $PKG/var/lib/games/lbreakouthd.hscr
chmod 1777 $PKG/var/lib/games
}

View File

@ -1,16 +1,16 @@
LBreakoutHD expects to have write permission on the flat-text database of high scores:
-rw-rw-rw- 1 root root 1 Jan 1 00:00 /var/tmp/lbreakouthd.hscr
LBreakoutHD normally installs a flat-text database of high scores:
-rw-rw-rw- 1 root root 1 Jan 1 00:00 /var/lib/games/lbreakouthd.hscr
For security reasons, this world-writable file will not appear in the built
package. On a single-user system, the first instance of running the game (as a
nonprivileged user) will create the missing file with safe permissions, and no
further intervention is required.
This world-writable file has been omitted from the built package. On a
single-user system, the first instance of running the game (as a
nonprivileged user) will create the missing file with safe permissions,
and no further intervention is required.
On a multi-user system, only the first player to launch the game will have
permission to modify the high score list. To allow a shared modifiable list of
high scores, you must first recreate the expected file as follows, and add
each user to the "games" group.
cd /var/tmp
cd /var/lib/games
touch lbreakouthd.hscr
chmod 664 lbreakouthd.hscr
chown root:games lbreakouthd.hscr