Merge pull request #817 from ayghor/noip2

New package: noip2-2.1.9_1
This commit is contained in:
Juan RP 2015-01-06 08:07:41 +01:00
commit 2a6fd822a4
4 changed files with 82 additions and 0 deletions

2
srcpkgs/noip2/files/noip2/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec noip2 -f

View 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);

View File

@ -0,0 +1,16 @@
--- noip2.c.old 2015-01-05 15:40:56.269596723 -0200
+++ noip2.c 2015-01-05 15:41:51.549595383 -0200
@@ -240,10 +240,10 @@
#define GROUP 2
#define DOMAIN 3
#ifndef PREFIX
- #define PREFIX "/usr/local"
+ #define PREFIX "/usr"
#endif
-#define CONFIG_FILEPATH PREFIX"/etc"
-#define CONFIG_FILENAME PREFIX"/etc/no-ip2.conf"
+#define CONFIG_FILEPATH "/etc"
+#define CONFIG_FILENAME "/etc/no-ip2.conf"
#define CONFSTRLEN 1024
#define MAX_DEVLEN 16
#define MAX_INSTANCE 4

21
srcpkgs/noip2/template Normal file
View File

@ -0,0 +1,21 @@
# Template file for 'noip2'
pkgname=noip2
version=2.1.9_1
revision=1
homepage="http://www.noip.com"
distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz"
wrksrc="noip-2.1.9-1"
conf_files="/etc/no-ip2.conf"
short_desc="No-ip Dynamic DNS Update Client"
maintainer="rogi <rogi@skylittlesystem.org>"
license="GPL-2"
checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593
do_build() {
make CC=$CC CFLAGS="$CFLAGS"
}
do_install() {
vbin noip2
vsv noip2
}