mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
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
3 changed files with 45 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec noip2
|
exec noip2 -f
|
||||||
|
|
43
srcpkgs/noip2/patches/foreground.patch
Normal file
43
srcpkgs/noip2/patches/foreground.patch
Normal file
|
@ -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'
|
# Template file for 'noip2'
|
||||||
pkgname=noip2
|
pkgname=noip2
|
||||||
version=2.1.9_1
|
version=2.1.9_1
|
||||||
revision=2
|
revision=3
|
||||||
homepage="http://www.noip.com"
|
homepage="http://www.noip.com"
|
||||||
distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
|
distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
|
||||||
wrksrc="noip-2.1.9-1"
|
wrksrc="noip-2.1.9-1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue