meta-nmrouter: remove recipes not part of bsp

Remove all recipes that are not part of the bsp, move them in a separate
layer.
This commit is contained in:
Stefan Eichenberger 2017-07-14 10:38:54 +02:00
parent 02487d1652
commit 12cd09220e
16 changed files with 0 additions and 292 deletions

View File

@ -1,9 +0,0 @@
require nmrouter-image.bb
SUMMARY = "nmrouter image that includes cockpit"
IMAGE_INSTALL_append = " \
cockpit \
nodejs \
"

View File

@ -1,16 +0,0 @@
require nmrouter-image.bb
SUMMARY = "nmrouter image that includes node-red"
IMAGE_INSTALL_append = " \
nodejs \
node-mqtt \
node-dbus \
python3 \
python3-pip \
python3-misc \
"
IMAGE_INSTALL_remove = " \
python-pip \
"

View File

@ -1,17 +0,0 @@
require nmrouter-image.bb
SUMMARY = "nmrouter image that includes node-red"
IMAGE_INSTALL_append = " \
nodejs \
nodejs-npm \
node-red \
python3 \
python3-pip \
python3-misc \
node-can \
"
IMAGE_INSTALL_remove = " \
python-pip \
"

View File

@ -1,9 +0,0 @@
#%PAM-1.0
auth required pam_unix.so
auth optional pam_reauthorize.so prepare
auth optional pam_ssh_add.so
account required pam_unix.so
session required pam_unix.so
session optional pam_reauthorize.so prepare
session optional pam_ssh_add.so
password required pam_unix.so nullok obscure min=4 max=12

View File

@ -1,51 +0,0 @@
SUMMARY = "Display or change ethernet card settings"
DESCRIPTION = "A small utility for examining and tuning the settings of your ethernet-based network interfaces."
HOMEPAGE = "http://www.kernel.org/pub/software/network/ethtool/"
SECTION = "console/network"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
inherit systemd
SRCREV = "39be0a69e4b03907a947d957afe20d394179677e"
SRC_URI = "git://github.com/cockpit-project/cockpit.git;protocol=https \
file://cockpit.pam \
"
S = "${WORKDIR}/git"
DEPENDS = "node-native json-glib libssh libpam keyutils krb5 systemd polkit glib-networking"
# opnessh-misc gets ssh-agent which is needed to execute ssh commands on the target
RDEPENDS_${PN} = "json-glib libssh libpam keyutils krb5 libsystemd polkit bash glib-networking openssh-misc libpwquality"
EXTRA_AUTORECONF_append = " -I ${STAGING_DATADIR}/aclocal"
SYSTEMD_SERVICE_${PN} = "cockpit.socket"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"
FILES_${PN}_append = " \
/lib/* \
/usr/* \
/etc/* \
"
do_configure() {
bbnote "$(pwd)"
npm install
find node_modules -name test | xargs rm -rf
sed -i "s#autreconf.*#autoreconf -f -i -I tools -I /opt/nmrouter/0.0.1/sysroots/cortexa8hf-vfp-neon-netmodule-linux-gnueabi/usr/share/aclocal/ -Wcross#" ./autogen.sh
./autogen.sh --host=cortexa8hf-vfp-neon-netmodule-linux-gnueabi --disable-pcp --disable-doc
}
do_install() {
sed -i "s#install-data-local:: doc/guide/html/index.html#bla-install-data-local:: doc/guide/html/index.html#" ./Makefile
oe_runmake DESTDIR=${D} install
mkdir -p ${D}/lib
mv ${D}/usr/local/lib/security ${D}/lib/
mkdir -p ${D}/etc/pam.d/
cp ${WORKDIR}/cockpit.pam ${D}/etc/pam.d/cockpit
}

View File

@ -1,29 +0,0 @@
SUMMARY = "Hydra util"
DESCRIPTION = "Hydra util to verify atsha204"
SECTION = "utils"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
RDEPENDS_${PN}-util += "${PN}"
SRC_URI = "file://hydra.tar.gz \
"
inherit module
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
S = "${WORKDIR}/hydra/src"
PACKAGES += "${PN}-util"
FILES_${PN}-util = "/usr/bin"
do_compile_append() {
cd ../tools_src
oe_runmake
}
do_install_append() {
install -d ${D}/usr/bin
install -m 0775 ${S}/../tools_src/hydra-util ${D}/usr/bin
}

View File

@ -1,22 +0,0 @@
DESCRIPTION = "Node-CAN extension"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://README.md;md5=e96bd3fe839e97ad96d6b3ea4ea48098"
SRC_URI = " \
git://github.com/sebi2k1/node-can.git;protocol=https \
"
SRCREV = "2f5cc70229e255f802521481919ff5ebc7942394"
S = "${WORKDIR}/git"
inherit npm-install-global
do_configure() {
:
}
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
RDEPENDS_${PN} += " nodejs bash"

View File

@ -1,12 +0,0 @@
[Unit]
Description=Start NodeRed server
[Service]
Environment="HOME=/home/root/"
Type=simple
ExecStart=/usr/bin/node-red
WorkingDirectory=/home/root/
[Install]
WantedBy=multi-user.target

View File

@ -1,15 +0,0 @@
inherit systemd
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " \
file://node-red.service \
"
SYSTEMD_SERVICE_${PN} = "node-red.service"
do_install_append () {
install -d ${D}/lib/systemd/system
install -m 644 ${WORKDIR}/node-red.service ${D}/lib/systemd/system
}

View File

@ -1 +0,0 @@
PACKAGECONFIG_append = "python"

View File

@ -1 +0,0 @@
PACKAGECONFIG_append = " dbus"

View File

@ -1,28 +0,0 @@
DESCRIPTION = "FTDI Libmpsse Library"
HOMEPAGE = "http://googlecode.com/"
PRIORITY = "optional"
SECTION = "console/utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
PR = "r1"
DEPENDS = "libftdi"
SRCREV = "cae99f00927f795b0e8f242d9881b1b88b461b2e"
SRC_URI = "git://github.com/devttys0/libmpsse.git;protocol=https \
"
S = "${WORKDIR}/git/src"
inherit autotools
B = "${S}"
EXTRA_OECONF += "--disable-python"
CFLAGS += "-DLIBFTDI1=1"
do_install_append() {
mv ${D}${libdir}/libmpsse.so ${D}${libdir}/libmpsse.so.1
( cd ${D}${libdir}; ln -s libmpsse.so.1 libmpsse.so )
}

View File

@ -1,59 +0,0 @@
SUMMARY = "Library for password quality checking and generating random passwords"
HOMEPAGE = "https://launchpad.net/libpwquality"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bd2f1386df813a459a0c34fde676fc2"
SRC_URI = "https://launchpad.net/${BPN}/trunk/${PV}/+download/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "2a3d4ba1d11b52b4f6a7f39622ebf736"
SRC_URI[sha256sum] = "74d2ea90e103323c1f2d6a6cc9617cdae6877573eddb31aaf31a40f354cc2d2a"
inherit autotools-brokensep pkgconfig gettext pythonnative
DEPENDS = "zlib cracklib libpam"
EXTRA_OECONF = " \
--with-securedir=${base_libdir}/security \
--with-python-binary=${PYTHON} \
"
do_compile() {
# make distustils part for python bindings happy
export STAGING_INCDIR=${STAGING_INCDIR}
export STAGING_LIBDIR=${STAGING_LIBDIR}
export BUILD_SYS=${BUILD_SYS}
export HOST_SYS=${HOST_SYS}
base_do_compile
}
do_install() {
# make distustils part for python bindings happy
export STAGING_INCDIR=${STAGING_INCDIR}
export STAGING_LIBDIR=${STAGING_LIBDIR}
export BUILD_SYS=${BUILD_SYS}
export HOST_SYS=${HOST_SYS}
autotools_do_install
}
FILES_${PN} += " \
${base_libdir}/security/*.so \
"
PACKAGE_BEFORE_PN += "${PN}-python"
FILES_${PN}-python = " \
${PYTHON_SITEPACKAGES_DIR} \
"
FILES_${PN}-staticdev += " \
${PYTHON_SITEPACKAGES_DIR}/*.a \
${base_libdir}/security/*.a \
"
FILES_${PN}-dev += " \
${PYTHON_SITEPACKAGES_DIR}/*.la \
${base_libdir}/security/*.la \
"
FILES_${PN}-dbg += "\
${PYTHON_SITEPACKAGES_DIR}/.debug \
${base_libdir}/security/.debug \
"

View File

@ -1,11 +0,0 @@
[Unit]
Description=Random number generator
[Service]
Type=forking
ExecStart=/usr/sbin/rngd
PIDFile=/var/run/rngd.pid
KillSignal=SIGQUIT
[Install]
WantedBy=multi-user.target

View File

@ -1,12 +0,0 @@
inherit systemd
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " file://rngd.service"
SYSTEMD_SERVICE_${PN} = "rngd.service"
do_install_append() {
install -d ${D}/lib/systemd/system
install -m 644 ${WORKDIR}/rngd.service ${D}/lib/systemd/system/
}