added my Recipes
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
From dfeadd4eb43e829aafb0d10f611fa22ae81bfca4 Mon Sep 17 00:00:00 2001
|
||||
From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||
Date: Sun, 20 Oct 2019 17:00:45 +0900
|
||||
Subject: [PATCH] Add build rule for README.
|
||||
|
||||
fix do_configure error:
|
||||
Makefile.am: required file `./README' not found
|
||||
|
||||
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||
---
|
||||
Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index e0c4ad6..0449321 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -35,3 +35,4 @@ rpmcvs: preparerpm
|
||||
@LN_S@ -f `pwd`/@PACKAGE@-@VERSION@.tar.gz ${RPMDIR}/SOURCES/@PACKAGE@-@VERSION@_cvs_`date +"%Y%m%d"`.tar.gz
|
||||
cd ${RPMDIR}/SPECS && @RPMBUILD@ -ba @PACKAGE@.spec --define 'cvs 1'
|
||||
|
||||
+README: README.md
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
From a812202d22a2861318b8e39f1cd74cd222f8e76f Mon Sep 17 00:00:00 2001
|
||||
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
|
||||
Date: Tue, 9 Jun 2020 11:30:38 +0300
|
||||
Subject: [PATCH] Fix compilation with GCC10
|
||||
|
||||
Fixed compilation with -fno-common, which enabled in GCC 10 by default.
|
||||
See https://bugs.gentoo.org/707438.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/owfs/owfs/pull/62]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
module/owserver/src/c/owserver.c | 2 ++
|
||||
module/owserver/src/include/owserver.h | 2 +-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/module/owserver/src/c/owserver.c b/module/owserver/src/c/owserver.c
|
||||
index db29988e..2ed29161 100644
|
||||
--- a/module/owserver/src/c/owserver.c
|
||||
+++ b/module/owserver/src/c/owserver.c
|
||||
@@ -36,6 +36,8 @@
|
||||
|
||||
#include "owserver.h"
|
||||
|
||||
+pthread_mutex_t persistence_mutex ;
|
||||
+
|
||||
/* --- Prototypes ------------ */
|
||||
static void SetupAntiloop(int argc, char **argv);
|
||||
|
||||
diff --git a/module/owserver/src/include/owserver.h b/module/owserver/src/include/owserver.h
|
||||
index 8be582f0..a257ed02 100644
|
||||
--- a/module/owserver/src/include/owserver.h
|
||||
+++ b/module/owserver/src/include/owserver.h
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "ow.h"
|
||||
#include "ow_connection.h"
|
||||
|
||||
-pthread_mutex_t persistence_mutex ;
|
||||
+extern pthread_mutex_t persistence_mutex ;
|
||||
#define PERSISTENCELOCK _MUTEX_LOCK( persistence_mutex ) ;
|
||||
#define PERSISTENCEUNLOCK _MUTEX_UNLOCK( persistence_mutex ) ;
|
||||
|
||||
--
|
||||
2.28.0
|
||||
|
||||
60
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owhttpd
Executable file
60
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owhttpd
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
|
||||
DAEMON="owhttpd"
|
||||
|
||||
test -f /usr/bin/${DAEMON} || exit 0
|
||||
|
||||
if test -f /etc/default/${DAEMON} ; then
|
||||
. /etc/default/${DAEMON}
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
if [ "$START_OWHTTPD" != "yes" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
startdaemon(){
|
||||
echo -n "Starting ${DAEMON}: "
|
||||
start-stop-daemon --start -x /usr/bin/${DAEMON} -- ${CMDLINE} --pid_file /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
stopdaemon(){
|
||||
echo -n "Stopping ${DAEMON}: "
|
||||
start-stop-daemon --stop -p /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
startdaemon
|
||||
;;
|
||||
stop)
|
||||
stopdaemon
|
||||
;;
|
||||
force-reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
restart)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${DAEMON} { start | stop | restart | reload }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
59
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owserver
Executable file
59
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owserver
Executable file
@@ -0,0 +1,59 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
|
||||
DAEMON="owserver"
|
||||
|
||||
test -f /usr/bin/${DAEMON} || exit 0
|
||||
|
||||
if test -f /etc/default/${DAEMON} ; then
|
||||
. /etc/default/${DAEMON}
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
if [ "$START_OWSERVER" != "yes" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
startdaemon(){
|
||||
echo -n "Starting ${DAEMON}: "
|
||||
start-stop-daemon --start -x /usr/bin/${DAEMON} -- ${CMDLINE} --pid_file /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
stopdaemon(){
|
||||
echo -n "Stopping ${DAEMON}: "
|
||||
start-stop-daemon --stop -p /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
startdaemon
|
||||
;;
|
||||
stop)
|
||||
stopdaemon
|
||||
;;
|
||||
force-reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
restart)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${DAEMON} { start | stop | restart | reload }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,81 @@
|
||||
SUMMARY = "1-Wire file system"
|
||||
DESCRIPTION = "OWFS is an easy way to use the powerful 1-wire system of Dallas/Maxim"
|
||||
HOMEPAGE = "http://www.owfs.org/"
|
||||
SECTION = "console/network"
|
||||
|
||||
LICENSE = "GPL-2.0-only & LGPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=628b867016631792781a8735a04760e5 \
|
||||
file://COPYING.LIB;md5=9021b7435efdd9fb22beef8291134099"
|
||||
|
||||
DEPENDS = "fuse virtual/libusb0"
|
||||
# v3.2p3
|
||||
SRCREV = "3744375dfaa350e31c9b360eb1e1a517bbeb5c47"
|
||||
SRC_URI = "git://github.com/owfs/owfs;branch=master;protocol=https \
|
||||
file://0001-Add-build-rule-for-README.patch \
|
||||
file://0001-Fix-compilation-with-GCC10.patch \
|
||||
file://owhttpd \
|
||||
file://owserver \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools-brokensep update-rc.d pkgconfig systemd
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--with-fuseinclude=${STAGING_INCDIR} \
|
||||
--with-fuselib=${STAGING_LIBDIR} \
|
||||
--enable-owfs \
|
||||
--enable-owhttpd \
|
||||
--enable-w1 \
|
||||
--disable-swig \
|
||||
--disable-owtcl \
|
||||
--disable-owphp \
|
||||
--disable-owpython \
|
||||
--disable-owperl \
|
||||
"
|
||||
|
||||
do_install:prepend() {
|
||||
install -d ${D}${sysconfdir}/default/
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
install -m 0755 ${WORKDIR}/owhttpd ${D}${sysconfdir}/init.d/owhttpd
|
||||
install -m 0755 ${WORKDIR}/owserver ${D}${sysconfdir}/init.d/owserver
|
||||
}
|
||||
|
||||
PACKAGES =+ "owftpd owhttpd owserver owshell libowcapi libow libownet owmon owtap"
|
||||
|
||||
DESCRIPTION:owftpd = "Anoymous FTP server for 1-wire access"
|
||||
DESCRIPTION:owhttpd = "Tiny webserver for 1-wire control"
|
||||
DESCRIPTION:owserver = "Backend server (daemon) for 1-wire control"
|
||||
DESCRIPTION:owshell = "owdir owread owwrite owpresent owget - lightweight owserver access"
|
||||
DESCRIPTION:libowcapi = "easy C-language 1-wire interface "
|
||||
DESCRIPTION:libow = "easy C-language 1-wire interface to the owserver protocol"
|
||||
DESCRIPTION:libownet = "easy C-language 1-wire interface to the owserver protocol"
|
||||
DESCRIPTION:owmon = "Monitor for owserver settings and statistics"
|
||||
DESCRIPTION:owtap = "Packet sniffer for the owserver protocol"
|
||||
|
||||
FILES:owftpd = "${bindir}/owftpd ${systemd_system_unitdir}/owftpd.service"
|
||||
FILES:owhttpd = "${bindir}/owhttpd ${sysconfdir}/init.d/owhttpd \
|
||||
${systemd_system_unitdir}/owhttpd.service"
|
||||
FILES:owserver = "${bindir}/owserver ${sysconfdir}/init.d/owserver \
|
||||
${systemd_system_unitdir}/owserver.service \
|
||||
${systemd_system_unitdir}/owserver.socket"
|
||||
FILES:owshell = "${bindir}/owread ${bindir}/owwrite \
|
||||
${bindir}/owdir ${bindir}/owpresent \
|
||||
${bindir}/owget ${bindir}/owside"
|
||||
FILES:owmon = "${bindir}/owmon"
|
||||
FILES:owtap = "${bindir}/owtap"
|
||||
FILES:libowcapi = "${libdir}/libowcapi-*"
|
||||
FILES:libow = "${libdir}/libow-*"
|
||||
FILES:libownet = "${libdir}/libownet-*"
|
||||
FILES:${PN} += "${systemd_system_unitdir}/owfs.service"
|
||||
|
||||
INITSCRIPT_PACKAGES = "owhttpd owserver"
|
||||
INITSCRIPT_NAME:owserver = "owserver"
|
||||
INITSCRIPT_NAME:owhttpd = "owhttpd"
|
||||
INITSCRIPT_PARAMS:owserver = "defaults 20"
|
||||
INITSCRIPT_PARAMS:owhttpd = "defaults 21"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "owfs.service"
|
||||
SYSTEMD_SERVICE:${PN}-owftpd = "owftpd.service"
|
||||
SYSTEMD_SERVICE:${PN}-owhttpd = "owhttpd.service"
|
||||
SYSTEMD_SERVICE:${PN}-owserver = "owserver.service owserver.socket"
|
||||
Reference in New Issue
Block a user