noip2-2.1.9_1: patch to run on foreground
add new '-f' flag to run on foreground and work nice with runit.
This commit is contained in:
parent
4cfb14f918
commit
acdaf79e29
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec noip2
|
||||
exec noip2 -f
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
--- noip2.c.old 2015-01-05 18:06:18.704641169 -0200
|
||||
+++ noip2.c 2015-01-05 18:07:45.157639072 -0200
|
||||
@@ -130,6 +130,10 @@
|
||||
+ hardened autoconf() the same way
|
||||
+ patch suggested by xenomuta@phreaker.net
|
||||
|
||||
+ + January 2015 (dota? =op) version 2.1.9-1
|
||||
+ + added -f flag to run in foreground
|
||||
+ + patch suggested by rogi@skylittlesystem.org
|
||||
+
|
||||
*/
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -217,9 +221,9 @@
|
||||
#define UPDATE_SCRIPT "ducupdate.php"
|
||||
|
||||
#ifdef DEBUG
|
||||
- #define OPTCHARS "CYU:Fc:dD:hp:u:x:SMi:K:I:z"
|
||||
+ #define OPTCHARS "CYU:Fc:dD:hp:u:x:SMi:K:I:zf"
|
||||
#else
|
||||
- #define OPTCHARS "CYU:Fc:hp:u:x:SMi:K:I:z"
|
||||
+ #define OPTCHARS "CYU:Fc:hp:u:x:SMi:K:I:zf"
|
||||
#endif
|
||||
#define ARGC 1
|
||||
#define ARGF (1<<1)
|
||||
@@ -551,6 +555,7 @@
|
||||
fprintf(stderr, " -M permit multiple instances\n");
|
||||
fprintf(stderr, " -K processID terminate instance PID\n");
|
||||
fprintf(stderr, " -z activate shm dump code\n");
|
||||
+ fprintf(stderr, " -f run on foreground\n");
|
||||
fprintf(stderr, " -h help (this text)\n");
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
@@ -738,6 +743,9 @@
|
||||
case 'z':
|
||||
shm_dump_active++;
|
||||
break;
|
||||
+ case 'f':
|
||||
+ background=0;
|
||||
+ break;
|
||||
default:
|
||||
Usage();
|
||||
exit(0);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'noip2'
|
||||
pkgname=noip2
|
||||
version=2.1.9_1
|
||||
revision=2
|
||||
revision=3
|
||||
homepage="http://www.noip.com"
|
||||
distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
|
||||
wrksrc="noip-2.1.9-1"
|
||||
|
|
Loading…
Reference in New Issue