From b5431674c4f0947e710da087b083e32d84888111 Mon Sep 17 00:00:00 2001 From: dota? =op Date: Mon, 5 Jan 2015 16:33:01 -0200 Subject: [PATCH 1/7] New package: noip2-2.1.9_1 No-ip Dynamic DNS Update Client --- srcpkgs/noip2/files/noip2/run | 2 ++ srcpkgs/noip2/patches/prefix.patch | 16 ++++++++++++++++ srcpkgs/noip2/template | 25 +++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100755 srcpkgs/noip2/files/noip2/run create mode 100644 srcpkgs/noip2/patches/prefix.patch create mode 100644 srcpkgs/noip2/template diff --git a/srcpkgs/noip2/files/noip2/run b/srcpkgs/noip2/files/noip2/run new file mode 100755 index 00000000000..df48919cdc6 --- /dev/null +++ b/srcpkgs/noip2/files/noip2/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec noip2 diff --git a/srcpkgs/noip2/patches/prefix.patch b/srcpkgs/noip2/patches/prefix.patch new file mode 100644 index 00000000000..c80605bf152 --- /dev/null +++ b/srcpkgs/noip2/patches/prefix.patch @@ -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 diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template new file mode 100644 index 00000000000..363ee774adf --- /dev/null +++ b/srcpkgs/noip2/template @@ -0,0 +1,25 @@ +# 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" +makedepends="" +conf_files="/etc/no-ip2.conf" +short_desc="No-ip Dynamic DNS Update Client" +maintainer="rogi " +license="GPL-2" +checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593 + +do_build() { + make CC=$CC +} + +do_install() { + vinstall noip2 755 usr/bin +} + +post_install() { + vsv noip2 +} From 9d032a3732d451fac3a4de8a1b9f3b90707a3e4e Mon Sep 17 00:00:00 2001 From: dota? =op Date: Mon, 5 Jan 2015 17:22:16 -0200 Subject: [PATCH 2/7] noip2-2.1.9_1: fix template file * remove empty makedepends * pass CFLAGS to make * merge post_install into do_install --- srcpkgs/noip2/template | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template index 363ee774adf..ec9897ee027 100644 --- a/srcpkgs/noip2/template +++ b/srcpkgs/noip2/template @@ -1,11 +1,10 @@ # Template file for 'noip2' pkgname=noip2 version=2.1.9_1 -revision=1 +revision=2 homepage="http://www.noip.com" distfiles="https://www.noip.com/client/linux/noip-duc-linux.tar.gz" wrksrc="noip-2.1.9-1" -makedepends="" conf_files="/etc/no-ip2.conf" short_desc="No-ip Dynamic DNS Update Client" maintainer="rogi " @@ -13,13 +12,10 @@ license="GPL-2" checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593 do_build() { - make CC=$CC + make CC=$CC CFLAGS=$CFLAGS } do_install() { vinstall noip2 755 usr/bin -} - -post_install() { vsv noip2 } From 4cfb14f918e6719dd2767c6f7f00852bdf9ed3d6 Mon Sep 17 00:00:00 2001 From: dota? =op Date: Mon, 5 Jan 2015 17:34:17 -0200 Subject: [PATCH 3/7] noip2-2.1.9_1: fix template file again! missing quotes around $CFLAGS on do_install() --- srcpkgs/noip2/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template index ec9897ee027..9f1dba8c031 100644 --- a/srcpkgs/noip2/template +++ b/srcpkgs/noip2/template @@ -12,7 +12,7 @@ license="GPL-2" checksum=82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593 do_build() { - make CC=$CC CFLAGS=$CFLAGS + make CC=$CC CFLAGS="$CFLAGS" } do_install() { From acdaf79e2914cf2ba3fd306595cd2a1c7d4f0d5e Mon Sep 17 00:00:00 2001 From: dota? =op Date: Mon, 5 Jan 2015 17:34:17 -0200 Subject: [PATCH 4/7] noip2-2.1.9_1: patch to run on foreground add new '-f' flag to run on foreground and work nice with runit. --- srcpkgs/noip2/files/noip2/run | 2 +- srcpkgs/noip2/patches/foreground.patch | 43 ++++++++++++++++++++++++++ srcpkgs/noip2/template | 2 +- 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/noip2/patches/foreground.patch diff --git a/srcpkgs/noip2/files/noip2/run b/srcpkgs/noip2/files/noip2/run index df48919cdc6..1ae24f2a568 100755 --- a/srcpkgs/noip2/files/noip2/run +++ b/srcpkgs/noip2/files/noip2/run @@ -1,2 +1,2 @@ #!/bin/sh -exec noip2 +exec noip2 -f diff --git a/srcpkgs/noip2/patches/foreground.patch b/srcpkgs/noip2/patches/foreground.patch new file mode 100644 index 00000000000..b82da34ed23 --- /dev/null +++ b/srcpkgs/noip2/patches/foreground.patch @@ -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); diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template index 9f1dba8c031..46cddd26661 100644 --- a/srcpkgs/noip2/template +++ b/srcpkgs/noip2/template @@ -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" From 5e666b884548780e02a36dbeca4f9748af3f7a37 Mon Sep 17 00:00:00 2001 From: dota? =op Date: Mon, 5 Jan 2015 18:38:47 -0200 Subject: [PATCH 5/7] noip2-2.1.9_1: revert revision to 1 Revert revision to 1, since it wasn't accepted yet --- srcpkgs/noip2/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template index 46cddd26661..5d59476324b 100644 --- a/srcpkgs/noip2/template +++ b/srcpkgs/noip2/template @@ -1,7 +1,7 @@ # Template file for 'noip2' pkgname=noip2 version=2.1.9_1 -revision=3 +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" From 879d7ed9067d94fb28d6ebc705f2bf60ba6cd171 Mon Sep 17 00:00:00 2001 From: dota? =op Date: Tue, 6 Jan 2015 03:09:47 -0200 Subject: [PATCH 6/7] noip2-2.1.9_1: use vbin instead of vinstall --- srcpkgs/noip2/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template index 5d59476324b..b3f05dc564d 100644 --- a/srcpkgs/noip2/template +++ b/srcpkgs/noip2/template @@ -16,6 +16,6 @@ do_build() { } do_install() { - vinstall noip2 755 usr/bin + vbin noip2 755 usr/bin vsv noip2 } From 06a5255e6b17e3267c07f33db00509d3a6db75e9 Mon Sep 17 00:00:00 2001 From: dota? =op Date: Tue, 6 Jan 2015 05:01:30 -0200 Subject: [PATCH 7/7] noip2-2.1.9_1: fix use of vbin --- srcpkgs/noip2/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/noip2/template b/srcpkgs/noip2/template index b3f05dc564d..45f6f9ea698 100644 --- a/srcpkgs/noip2/template +++ b/srcpkgs/noip2/template @@ -16,6 +16,6 @@ do_build() { } do_install() { - vbin noip2 755 usr/bin + vbin noip2 vsv noip2 }