-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Daemonize is a command line utility to run a program as a Unix daemon. Signed-off-by: Christian Stewart <christian@aperture.us> --- TODO: Changes requested for v2: https://patchwork.ozlabs.org/project/buildroot/patch/20210124102241.1207866-1-christian@paral.in/
- Loading branch information
Showing
5 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
package/daemonize/0001-configure-override-setpgrp-to-enable-cross-compiling.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
From db172f4d7028c648f66f3c1db6202e6a5d62636d Mon Sep 17 00:00:00 2001 | ||
From: Christian Stewart <christian@paral.in> | ||
Date: Sun, 24 Jan 2021 02:16:36 -0800 | ||
Subject: [PATCH] configure: override setpgrp to enable cross-compiling | ||
|
||
Signed-off-by: Christian Stewart <christian@paral.in> | ||
--- | ||
configure | 30 +----------------------------- | ||
1 file changed, 1 insertion(+), 29 deletions(-) | ||
|
||
diff --git a/configure b/configure | ||
index ab7c0d4..209e165 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -4147,36 +4147,8 @@ fi | ||
|
||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 | ||
$as_echo_n "checking whether setpgrp takes no argument... " >&6; } | ||
-if ${ac_cv_func_setpgrp_void+:} false; then : | ||
- $as_echo_n "(cached) " >&6 | ||
-else | ||
- if test "$cross_compiling" = yes; then : | ||
- as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 | ||
-else | ||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
-/* end confdefs.h. */ | ||
-$ac_includes_default | ||
-int | ||
-main () | ||
-{ | ||
-/* If this system has a BSD-style setpgrp which takes arguments, | ||
- setpgrp(1, 1) will fail with ESRCH and return -1, in that case | ||
- exit successfully. */ | ||
- return setpgrp (1,1) != -1; | ||
- ; | ||
- return 0; | ||
-} | ||
-_ACEOF | ||
-if ac_fn_c_try_run "$LINENO"; then : | ||
- ac_cv_func_setpgrp_void=no | ||
-else | ||
- ac_cv_func_setpgrp_void=yes | ||
-fi | ||
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
- conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
-fi | ||
+ac_cv_func_setpgrp_void=yes | ||
|
||
-fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 | ||
$as_echo "$ac_cv_func_setpgrp_void" >&6; } | ||
if test $ac_cv_func_setpgrp_void = yes; then | ||
-- | ||
2.30.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
menuconfig BR2_PACKAGE_DAEMONIZE | ||
bool "daemonize" | ||
help | ||
Command line utility to run a daemon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sha256 20c4fc9925371d1ddf1b57947f8fb93e2036eb9ccc3b43a1e3678ea8471c4c60 daemonize-1.7.8.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
################################################################################ | ||
# | ||
# daemonize | ||
# | ||
################################################################################ | ||
|
||
DAEMONIZE_VERSION = 1.7.8 | ||
DAEMONIZE_SITE = $(call github,bmc,daemonize,release-$(DAEMONIZE_VERSION)) | ||
DAEMONIZE_LICENSE = BSD-3-Clause | ||
DAEMONIZE_LICENSE_FILES = LICENSE.md | ||
|
||
$(eval $(autotools-package)) |