irda-utils: new package for IrDA devices
PATCH 1/1 irda-utils: new package for IrDA devices
Signed-off-by Mike Frysinger <[email protected]>
--- package/Config.in | 1 + package/irda-utils/Config.in | 19 ++++++++ package/irda-utils/irda-utils-0.9.18-daemon.patch | 26 +++++++++++ package/irda-utils/irda-utils-0.9.18-nommu.patch | 14 ++++++ package/irda-utils/irda-utils-0.9.18-subdir.patch | 16 +++++++ package/irda-utils/irda-utils.mk | 47 +++++++++++++++++++++ 6 files changed, 123 insertions(+), 0 deletions(-) create mode 100644 package/irda-utils/Config.in create mode 100644 package/irda-utils/irda-utils-0.9.18-daemon.patch create mode 100644 package/irda-utils/irda-utils-0.9.18-nommu.patch create mode 100644 package/irda-utils/irda-utils-0.9.18-subdir.patch create mode 100644 package/irda-utils/irda-utils.mk
package/Config.in +1 -0
@@ -175,6 +175,7 @@ source "package/hwdata/Config.in" source "package/i2c-tools/Config.in" source "package/input-tools/Config.in" source "package/iostat/Config.in" +source "package/irda-utils/Config.in" source "package/kbd/Config.in" source "package/lm-sensors/Config.in" source "package/lsuio/Config.in"
package/irda-utils/Config.in new file +19 -0
@@ -0,0 +1,19 @@ +config BR2_PACKAGE_IRDA_UTILS + bool "irda-utils" + help + user space utilities which control the IrDA stack + + http://irda.sourceforge.net/ + +if BR2_PACKAGE_IRDA_UTILS + +config BR2_PACKAGE_IRDA_UTILS_IRATTACH + bool "irattach" + +config BR2_PACKAGE_IRDA_UTILS_IRDAPING + bool "irdaping" + +config BR2_PACKAGE_IRDA_UTILS_IRNETD + bool "irnetd" + +endif
package/irda-utils/irda-utils-0.9.18-daemon.patch new file +26 -0
@@ -0,0 +1,26 @@ +--- a/irattach/util.c ++++ b/irattach/util.c +@@ -156,21 +156,10 @@ + + void fork_now(int ttyfd) + { +- int ret; + int i; + +- if ((ret = fork()) > 0) +- exit(0); +- +- if (ret == -1) +- syslog(LOG_INFO, "forking: %m"); +- if (setsid() < 0) +- syslog(LOG_INFO, "detaching from tty: %m"); +- +- if ((ret = fork()) > 0) { +- /* cleanup_files = 0; */ +- exit(0); +- } ++ if (daemon(1, 1)) ++ syslog(LOG_INFO, "daemon: %m"); + + /* Close all open inherited files! Except for ttyfd! */ + for (i = 0; i < 64; i++)
package/irda-utils/irda-utils-0.9.18-nommu.patch new file +14 -0
@@ -0,0 +1,14 @@ +--- a/irattach/irattach.c ++++ b/irattach/irattach.c +@@ -397,7 +397,11 @@ + after_names[i]); + /* Create a new instance for this other + * interface */ ++#ifdef NO_FORK ++ pid = -1; ++#else + pid = fork(); ++#endif + /* If in the child */ + if(!pid) { + /* Get the interface name */
package/irda-utils/irda-utils-0.9.18-subdir.patch new file +16 -0
@@ -0,0 +1,16 @@ +--- a/Makefile ++++ b/Makefile +@@ -31,11 +31,11 @@ + CFLAGS= -O2 -W -Wall + + all: +- @-(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) ++ @(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) + + + install: +- @-(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) ++ @(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) + + + clean:
package/irda-utils/irda-utils.mk new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH v2 1/1 irda-utils: new package for IrDA devices
Acked-by Thomas Petazzoni <[email protected]>
Signed-off-by Mike Frysinger <[email protected]>
---
v2
- add author info to patches
package/Config.in | 1 + package/irda-utils/Config.in | 19 ++++++++ package/irda-utils/irda-utils-0.9.18-daemon.patch | 30 +++++++++++++ package/irda-utils/irda-utils-0.9.18-nommu.patch | 18 ++++++++ package/irda-utils/irda-utils-0.9.18-subdir.patch | 20 +++++++++ package/irda-utils/irda-utils.mk | 47 +++++++++++++++++++++ 6 files changed, 135 insertions(+), 0 deletions(-) create mode 100644 package/irda-utils/Config.in create mode 100644 package/irda-utils/irda-utils-0.9.18-daemon.patch create mode 100644 package/irda-utils/irda-utils-0.9.18-nommu.patch create mode 100644 package/irda-utils/irda-utils-0.9.18-subdir.patch create mode 100644 package/irda-utils/irda-utils.mk
package/Config.in +1 -0
@@ -176,6 +176,7 @@ source "package/hwdata/Config.in" source "package/i2c-tools/Config.in" source "package/input-tools/Config.in" source "package/iostat/Config.in" +source "package/irda-utils/Config.in" source "package/kbd/Config.in" source "package/lm-sensors/Config.in" source "package/lsuio/Config.in"
package/irda-utils/Config.in new file +19 -0
@@ -0,0 +1,19 @@ +config BR2_PACKAGE_IRDA_UTILS + bool "irda-utils" + help + user space utilities which control the IrDA stack + + http://irda.sourceforge.net/ + +if BR2_PACKAGE_IRDA_UTILS + +config BR2_PACKAGE_IRDA_UTILS_IRATTACH + bool "irattach" + +config BR2_PACKAGE_IRDA_UTILS_IRDAPING + bool "irdaping" + +config BR2_PACKAGE_IRDA_UTILS_IRNETD + bool "irnetd" + +endif
package/irda-utils/irda-utils-0.9.18-daemon.patch new file +30 -0
@@ -0,0 +1,30 @@ +written by Mike Frysinger + +https://sourceforge.net/tracker/?func=detail&aid=3132053&group_id=5616&atid=305616 + +--- a/irattach/util.c ++++ b/irattach/util.c +@@ -156,21 +156,10 @@ + + void fork_now(int ttyfd) + { +- int ret; + int i; + +- if ((ret = fork()) > 0) +- exit(0); +- +- if (ret == -1) +- syslog(LOG_INFO, "forking: %m"); +- if (setsid() < 0) +- syslog(LOG_INFO, "detaching from tty: %m"); +- +- if ((ret = fork()) > 0) { +- /* cleanup_files = 0; */ +- exit(0); +- } ++ if (daemon(1, 1)) ++ syslog(LOG_INFO, "daemon: %m"); + + /* Close all open inherited files! Except for ttyfd! */ + for (i = 0; i < 64; i++)
package/irda-utils/irda-utils-0.9.18-nommu.patch new file +18 -0
@@ -0,0 +1,18 @@ +written by Mike Frysinger + +https://sourceforge.net/tracker/?func=detail&aid=3132056&group_id=5616&atid=305616 + +--- a/irattach/irattach.c ++++ b/irattach/irattach.c +@@ -397,7 +397,11 @@ + after_names[i]); + /* Create a new instance for this other + * interface */ ++#ifdef NO_FORK ++ pid = -1; ++#else + pid = fork(); ++#endif + /* If in the child */ + if(!pid) { + /* Get the interface name */
package/irda-utils/irda-utils-0.9.18-subdir.patch new file +20 -0
@@ -0,0 +1,20 @@ +written by Mike Frysinger + +https://sourceforge.net/tracker/?func=detail&aid=3132051&group_id=5616&atid=305616 + +--- a/Makefile ++++ b/Makefile +@@ -31,11 +31,11 @@ + CFLAGS= -O2 -W -Wall + + all: +- @-(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) ++ @(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) + + + install: +- @-(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) ++ @(set -e ; for d in $(DIRS) ; do $(MAKE) $(MAKE_OUTPUT) -C $$d $@ ; done) + + + clean:
package/irda-utils/irda-utils.mk new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
1.7.3.3
PATCH v2 1/1 irda-utils: new package for IrDA devices
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Mike" == Mike Frysinger <[email protected]> writes:
Mike> Acked-by: Thomas Petazzoni <[email protected]> Mike> Signed-off-by: Mike Frysinger <[email protected]> Mike> ---
Mike> v2
Mike> - add author info to patches
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard