dopewars: fix path to /tmp
This commit is contained in:
parent
c15093fa3b
commit
2fd7c4f214
|
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://dopewars.sourceforge.io
|
|||
TERMUX_PKG_DESCRIPTION="Drug-dealing game set in streets of New York City"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_VERSION=1.5.12
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SRCURL=https://prdownloads.sourceforge.net/dopewars/dopewars-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=23059dcdea96c6072b148ee21d76237ef3535e5be90b3b2d8239d150feee0c19
|
||||
TERMUX_PKG_DEPENDS="ncurses, glib, pcre"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
--- ../serverside.c.orig 2019-10-24 20:32:11.932674648 +0200
|
||||
+++ ./src/serverside.c 2019-10-24 20:32:50.810268396 +0200
|
||||
diff -uNr dopewars-1.5.12/src/serverside.c dopewars-1.5.12.mod/src/serverside.c
|
||||
--- dopewars-1.5.12/src/serverside.c 2005-12-30 23:26:13.000000000 +0200
|
||||
+++ dopewars-1.5.12.mod/src/serverside.c 2020-04-28 03:01:36.285480545 +0300
|
||||
@@ -800,7 +800,7 @@
|
||||
dopelog(1, LF_SERVER, _("Maintaining pid file %s"), PidFile);
|
||||
fprintf(fp, "%ld\n", (long)getpid());
|
||||
|
@ -9,3 +10,21 @@
|
|||
} else {
|
||||
gchar *OpenError = ErrStrFromErrno(errno);
|
||||
g_warning(_("Cannot create pid file %s: %s"), PidFile, OpenError);
|
||||
@@ -1089,7 +1089,7 @@
|
||||
}
|
||||
|
||||
#ifndef CYGWIN
|
||||
-static gchar sockpref[] = "/tmp/.dopewars";
|
||||
+static gchar sockpref[] = "@TERMUX_PREFIX@/tmp/.dopewars";
|
||||
|
||||
static gchar *GetLocalSockDir(void)
|
||||
{
|
||||
@@ -1192,7 +1192,7 @@
|
||||
if (localsock == -1) {
|
||||
dopelog(0, LF_SERVER,
|
||||
_("Could not set up Unix domain socket for admin "
|
||||
- "connections - check permissions on /tmp!"));
|
||||
+ "connections - check permissions on @TERMUX_PREFIX@/tmp!"));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue