summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb/lsb
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2019-08-25 20:21:15 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-29 14:05:12 +0100
commitbac4bc9aa6a1f2fcf2ce9644925615185cc8e847 (patch)
tree9ef8ba7038907331db8f6d1f57f2915b3b6cf410 /meta/recipes-extended/lsb/lsb
parent1af3e4bea666e944a610025ca8979098b59b1174 (diff)
downloadpoky-bac4bc9aa6a1f2fcf2ce9644925615185cc8e847.tar.gz
Remove LSB support
LSB as a standard isn't current and isn't well suited to embedded anyway. Its putting artifical constraints on the system and with modern layer technology, would now be better off as its own layer. As such its time to split it out. The only part with some (marginal) usage is lsb_release, which is split from the lsb package into an own lsb-release package. (From OE-Core rev: fb064356af615d67d85b65942103bf943d84d290) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb/lsb')
-rw-r--r--meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch38
-rwxr-xr-xmeta/recipes-extended/lsb/lsb/init-functions44
-rwxr-xr-xmeta/recipes-extended/lsb/lsb/lsb_killproc6
-rwxr-xr-xmeta/recipes-extended/lsb/lsb/lsb_log_message27
-rwxr-xr-xmeta/recipes-extended/lsb/lsb/lsb_pidofproc6
-rwxr-xr-xmeta/recipes-extended/lsb/lsb/lsb_start_daemon45
6 files changed, 0 insertions, 166 deletions
diff --git a/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch b/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch
deleted file mode 100644
index 0175752067..0000000000
--- a/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From cba901945c5a6da9586550498f8e3787c57c3098 Mon Sep 17 00:00:00 2001
2From: Athanasios Oikonomou <athoik@gmail.com>
3Date: Fri, 17 Feb 2017 21:04:04 +0200
4Subject: [PATCH] fix lsb_release to work with busybox head and find
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Athanasios Oikonomou <athoik@gmail.com>
8
9diff --git a/lsb_release b/lsb_release
10index e7d6024..233b8c1 100755
11--- a/lsb_release
12+++ b/lsb_release
13@@ -209,7 +209,7 @@ EASE ($DISTRIB_CODENAME)"
14 || [ -n "$(echo $DISTRIB_DESCRIPTION | \
15 sed -e "s/.*$DESCSTR_DELI.*//")" ]
16 then
17- TMP_DISTRIB_DESC=$(head -1 $FILENAME 2>/dev/null)
18+ TMP_DISTRIB_DESC=$(head -n 1 $FILENAME 2>/dev/null)
19 [ -z "$DISTRIB_DESCRIPTION" ] \
20 && DISTRIB_DESCRIPTION=$TMP_DISTRIB_DESC
21 else
22@@ -249,10 +249,10 @@ GetDistribInfo() {
23 then
24 CHECKFIRST=$(find $INFO_ROOT/ -maxdepth 1 \
25 -name \*$INFO_DISTRIB_SUFFIX \
26- -and ! -name $INFO_LSB_FILE \
27- -and -type f \
28+ -type f \
29 2>/dev/null \
30- | head -1 ) # keep one of the files found (if many)
31+ | grep -v $INFO_LSB_FILE \
32+ | head -n 1 ) # keep one of the files found (if many)
33 fi
34 InitDistribInfo $CHECKFIRST
35 fi
36--
372.1.4
38
diff --git a/meta/recipes-extended/lsb/lsb/init-functions b/meta/recipes-extended/lsb/lsb/init-functions
deleted file mode 100755
index 7c1dce24cf..0000000000
--- a/meta/recipes-extended/lsb/lsb/init-functions
+++ /dev/null
@@ -1,44 +0,0 @@
1#!/bin/sh
2
3# LSB initscript functions, as defined in the LSB Spec 1.1.0
4#
5# Lawrence Lim <llim@core.com> - Tue, 26 June 2007
6# Updated to the latest LSB 3.1 spec
7# http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic_lines.txt
8
9start_daemon () {
10 /etc/core-lsb/lsb_start_daemon "$@"
11}
12
13killproc () {
14 /etc/core-lsb/lsb_killproc "$@"
15}
16
17pidofproc () {
18 /etc/core-lsb/lsb_pidofproc "$@"
19}
20
21log_success_msg () {
22 /etc/core-lsb/lsb_log_message success "$@"
23}
24
25log_failure_msg () {
26 /etc/core-lsb/lsb_log_message failure "$@"
27}
28
29log_warning_msg () {
30 /etc/core-lsb/lsb_log_message warning "$@"
31}
32
33# int log_begin_message (char *message)
34log_begin_msg () {
35 if [ -z "$1" ]; then
36 return 1
37 fi
38 echo " * $@"
39}
40
41
42log_end_msg () {
43 /etc/core-lsb/lsb_log_message end "$@"
44}
diff --git a/meta/recipes-extended/lsb/lsb/lsb_killproc b/meta/recipes-extended/lsb/lsb/lsb_killproc
deleted file mode 100755
index 866c1a9c63..0000000000
--- a/meta/recipes-extended/lsb/lsb/lsb_killproc
+++ /dev/null
@@ -1,6 +0,0 @@
1#!/bin/sh
2
3. /etc/init.d/functions
4
5LSB=LSB-1.1 killproc $*
6exit $?
diff --git a/meta/recipes-extended/lsb/lsb/lsb_log_message b/meta/recipes-extended/lsb/lsb/lsb_log_message
deleted file mode 100755
index 10343b0819..0000000000
--- a/meta/recipes-extended/lsb/lsb/lsb_log_message
+++ /dev/null
@@ -1,27 +0,0 @@
1#!/bin/sh
2
3. /etc/init.d/functions
4
5ACTION=$1
6shift
7
8case "$ACTION" in
9 success)
10 echo -n $*
11 success "$*"
12 echo
13 ;;
14 failure)
15 echo -n $*
16 failure "$*"
17 echo
18 ;;
19 warning)
20 echo -n $*
21 warning "$*"
22 echo
23 ;;
24 *)
25 ;;
26esac
27exit 0
diff --git a/meta/recipes-extended/lsb/lsb/lsb_pidofproc b/meta/recipes-extended/lsb/lsb/lsb_pidofproc
deleted file mode 100755
index 6d1fd0f249..0000000000
--- a/meta/recipes-extended/lsb/lsb/lsb_pidofproc
+++ /dev/null
@@ -1,6 +0,0 @@
1#!/bin/sh
2
3. /etc/init.d/functions
4
5pidofproc $*
6exit $?
diff --git a/meta/recipes-extended/lsb/lsb/lsb_start_daemon b/meta/recipes-extended/lsb/lsb/lsb_start_daemon
deleted file mode 100755
index de62c2344d..0000000000
--- a/meta/recipes-extended/lsb/lsb/lsb_start_daemon
+++ /dev/null
@@ -1,45 +0,0 @@
1#!/bin/sh
2
3. /etc/init.d/functions
4
5nice=
6force=
7pidfile=
8user=
9check=
10RETVAL=
11while [ "$1" != "${1##[-+]}" ]; do
12 case $1 in
13 -f)
14 force="--force"
15 shift
16 ;;
17 -n)
18 nice=$2
19 shift 2
20 ;;
21 -p)
22 pidfile="--pidfile $2"
23 shift 2
24 ;;
25 -u)
26 user="--user $2"
27 shift 2
28 ;;
29 -c)
30 check="--check $2"
31 shift 2
32 ;;
33 *)
34 echo "Unknown Option $1"
35 echo "Options are:"
36 echo "-f"
37 echo "-p {pidfile}"
38 echo "-n [+/-nicelevel]"
39 echo "-u {user}"
40 echo "-c {base}"
41 exit 1;;
42 esac
43done
44LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $*
45exit $?