Initial Commit
- initial default booting image
This commit is contained in:
30
package/neard/Config.in
Normal file
30
package/neard/Config.in
Normal file
@@ -0,0 +1,30 @@
|
||||
config BR2_PACKAGE_NEARD
|
||||
bool "neard"
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl, dbus, libglib2
|
||||
depends on BR2_USE_MMU # dbus, libglib2
|
||||
depends on !BR2_STATIC_LIBS # dlopen
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
select BR2_PACKAGE_DBUS
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_LIBNL
|
||||
help
|
||||
Near Field Communication (NFC) manager. This userspace
|
||||
daemon is a part of the NFC stack provided by the Linux NFC
|
||||
project.
|
||||
|
||||
https://git.kernel.org/pub/scm/network/nfc/neard.git
|
||||
|
||||
if BR2_PACKAGE_NEARD
|
||||
|
||||
config BR2_PACKAGE_NEARD_TOOLS
|
||||
bool "neard tools"
|
||||
help
|
||||
Build and install neard tools.
|
||||
|
||||
endif
|
||||
|
||||
comment "neard needs a toolchain w/ wchar, threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
29
package/neard/S53neard
Normal file
29
package/neard/S53neard
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Starts neard
|
||||
#
|
||||
|
||||
NAME=neard
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting $NAME: "
|
||||
start-stop-daemon -S -q -p /var/run/${NAME}.pid -x /usr/libexec/nfc/neard -- -d '*'
|
||||
echo "OK"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping $NAME: "
|
||||
start-stop-daemon -K -q -p /var/run/${NAME}.pid
|
||||
echo "OK"
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
3
package/neard/neard.hash
Normal file
3
package/neard/neard.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 129bbf69488fdb599d480356765941f111d7799495d0d64095b25e893c4d2be7 neard-0.19.tar.gz
|
||||
sha256 b499eddebda05a8859e32b820a64577d91f1de2b52efa2a1575a2cb4000bc259 COPYING
|
||||
42
package/neard/neard.mk
Normal file
42
package/neard/neard.mk
Normal file
@@ -0,0 +1,42 @@
|
||||
################################################################################
|
||||
#
|
||||
# neard
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NEARD_VERSION = 0.19
|
||||
NEARD_SITE = https://git.kernel.org/pub/scm/network/nfc/neard.git/snapshot
|
||||
NEARD_LICENSE = GPL-2.0
|
||||
NEARD_LICENSE_FILES = COPYING
|
||||
|
||||
NEARD_DEPENDENCIES = host-autoconf-archive host-pkgconf dbus libglib2 libnl
|
||||
# From git
|
||||
NEARD_AUTORECONF = YES
|
||||
NEARD_AUTORECONF_OPTS = --include=$(HOST_DIR)/share/autoconf-archive
|
||||
NEARD_CONF_OPTS = --disable-traces
|
||||
|
||||
# Autoreconf is missing the m4/ directory, which might actually be missing
|
||||
# if it was the first argument, but unfortunately we are overriding the
|
||||
# first include directory above. Thus we need that hook here.
|
||||
define NEARD_CREATE_M4
|
||||
mkdir -p $(@D)/m4
|
||||
endef
|
||||
NEARD_POST_PATCH_HOOKS += NEARD_CREATE_M4
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NEARD_TOOLS),y)
|
||||
NEARD_CONF_OPTS += --enable-tools
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
NEARD_CONF_OPTS += --enable-systemd
|
||||
NEARD_DEPENDENCIES += systemd
|
||||
else
|
||||
NEARD_CONF_OPTS += --disable-systemd
|
||||
endif
|
||||
|
||||
define NEARD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/neard/S53neard \
|
||||
$(TARGET_DIR)/etc/init.d/S53neard
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user