initial import
This commit is contained in:
58
eureka/fhs-compliant.patch
Normal file
58
eureka/fhs-compliant.patch
Normal file
@@ -0,0 +1,58 @@
|
||||
--- a/Makefile 2020-02-05 08:40:29.000000000 +0100
|
||||
+++ b/Makefile 2022-07-18 13:58:58.438529428 +0200
|
||||
@@ -148,10 +148,11 @@
|
||||
# note that DESTDIR is usually left undefined, and is mainly
|
||||
# useful when making packages for Debian/RedHat/etc...
|
||||
|
||||
-INSTALL_DIR=$(DESTDIR)$(PREFIX)/share/eureka
|
||||
+INSTALL_DIR=$(DESTDIR)$(PREFIX)/share/games/eureka
|
||||
|
||||
install: all
|
||||
- install -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
|
||||
+ install -d $(PREFIX)/games
|
||||
+ install -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/games/
|
||||
install -d $(INSTALL_DIR)/games
|
||||
install -d $(INSTALL_DIR)/common
|
||||
install -d $(INSTALL_DIR)/ports
|
||||
--- a/src/main.cc 2020-02-01 08:51:21.000000000 +0100
|
||||
+++ b/src/main.cc 2022-07-18 14:05:28.527907253 +0200
|
||||
@@ -325,7 +325,7 @@
|
||||
|
||||
for (int i = 0 ; prefixes[i] ; i++)
|
||||
{
|
||||
- install_dir = StringPrintf("%s/share/eureka", prefixes[i]);
|
||||
+ install_dir = StringPrintf("%s/share/games/eureka", prefixes[i]);
|
||||
|
||||
const char *filename = StringPrintf("%s/games/doom2.ugh", install_dir);
|
||||
|
||||
--- a/src/main.h 2020-04-17 07:58:51.000000000 +0200
|
||||
+++ b/src/main.h 2022-07-18 14:05:55.778562364 +0200
|
||||
@@ -129,7 +129,7 @@
|
||||
extern bool app_has_focus;
|
||||
extern bool in_fatal_error;
|
||||
|
||||
-extern const char *install_dir; // install dir (e.g. /usr/share/eureka)
|
||||
+extern const char *install_dir; // install dir (e.g. /usr/share/games/eureka)
|
||||
extern const char *home_dir; // home dir (e.g. $HOME/.eureka)
|
||||
extern const char *cache_dir; // for caches and backups, can be same as home_dir
|
||||
|
||||
--- a/misc/eureka.6 2019-09-30 08:55:30.000000000 +0200
|
||||
+++ b/misc/eureka.6 2022-07-18 14:07:15.540479856 +0200
|
||||
@@ -77,7 +77,7 @@
|
||||
The installation directory where game definition files, default key
|
||||
bindings, etc are stored.
|
||||
This defaults to
|
||||
-.I $PREFIX/share/eureka
|
||||
+.I $PREFIX/share/games/eureka
|
||||
(see FILES section below...)
|
||||
|
||||
Specifying "." for the current directory is useful when testing a
|
||||
@@ -101,7 +101,7 @@
|
||||
uses the Preferences dialog.
|
||||
.SH FILES
|
||||
.TP
|
||||
-.I "$PREFIX/share/eureka/
|
||||
+.I "$PREFIX/share/games/eureka/
|
||||
The installation directory for Eureka.
|
||||
PREFIX is typically /usr or /usr/local,
|
||||
depending on how Eureka was installed.
|
||||
Reference in New Issue
Block a user