summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb29
-rw-r--r--meta/recipes-extended/shadow/shadow_4.1.4.3.bb22
2 files changed, 31 insertions, 20 deletions
diff --git a/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb
new file mode 100644
index 0000000000..e391d24933
--- /dev/null
+++ b/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb
@@ -0,0 +1,29 @@
1SUMMARY = "Provider of the machine specific securetty file"
2DESCRIPTION = "Provider of the machine specific securetty file"
3SECTION = "base utils"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
6
7INHIBIT_DEFAULT_DEPS = "1"
8
9SRC_URI = "file://securetty"
10
11# Since we deduce our arch from ${SERIAL_CONSOLE}
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14do_install () {
15 # Ensure we add a suitable securetty file to the package that has
16 # most common embedded TTYs defined.
17 if [ ! -z "${SERIAL_CONSOLE}" ]; then
18 # Our SERIAL_CONSOLE contains a baud rate and sometimes a -L
19 # option as well. The following pearl :) takes that and converts
20 # it into newline-separated tty's and appends them into
21 # securetty. So if a machine has a weird looking console device
22 # node (e.g. ttyAMA0) that securetty does not know, it will get
23 # appended to securetty and root logins will be allowed on that
24 # console.
25 echo "${SERIAL_CONSOLE}" | sed -e 's/[0-9][0-9]\|\-L//g'|tr "[ ]" "[\n]" >> ${WORKDIR}/securetty
26 fi
27 install -d ${D}${sysconfdir}
28 install -m 0400 ${WORKDIR}/securetty ${D}${sysconfdir}/securetty
29}
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
index dddac2ca62..a69eb7c2e1 100644
--- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
@@ -8,13 +8,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
8 file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe" 8 file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe"
9 9
10DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 10DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
11RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}" 11RDEPENDS_${PN} = "shadow-securetty ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}"
12PR = "r6" 12PR = "r7"
13 13
14SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ 14SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
15 file://login_defs_pam.sed \ 15 file://login_defs_pam.sed \
16 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ 16 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
17 file://securetty \
18 file://shadow.automake-1.11.patch \ 17 file://shadow.automake-1.11.patch \
19 file://shadow-4.1.3-dots-in-usernames.patch \ 18 file://shadow-4.1.3-dots-in-usernames.patch \
20 file://shadow-4.1.4.2-env-reset-keep-locale.patch \ 19 file://shadow-4.1.4.2-env-reset-keep-locale.patch \
@@ -27,9 +26,6 @@ SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9
27 26
28inherit autotools gettext 27inherit autotools gettext
29 28
30# Since we deduce our arch from ${SERIAL_CONSOLE}
31PACKAGE_ARCH = "${MACHINE_ARCH}"
32
33EXTRA_OECONF += "--without-audit \ 29EXTRA_OECONF += "--without-audit \
34 --without-libcrack \ 30 --without-libcrack \
35 ${@base_contains('DISTRO_FEATURES', 'pam', '--with-libpam', '--without-libpam', d)} \ 31 ${@base_contains('DISTRO_FEATURES', 'pam', '--with-libpam', '--without-libpam', d)} \
@@ -101,20 +97,6 @@ do_install_append() {
101 # lead rpm failed dependencies. 97 # lead rpm failed dependencies.
102 ln -sf vipw.${PN} ${D}${base_sbindir}/vigr.${PN} 98 ln -sf vipw.${PN} ${D}${base_sbindir}/vigr.${PN}
103 ln -sf newgrp.${PN} ${D}${bindir}/sg 99 ln -sf newgrp.${PN} ${D}${bindir}/sg
104
105 # Ensure we add a suitable securetty file to the package that has
106 # most common embedded TTYs defined.
107 if [ ! -z "${SERIAL_CONSOLE}" ]; then
108 # Our SERIAL_CONSOLE contains a baud rate and sometimes a -L
109 # option as well. The following pearl :) takes that and converts
110 # it into newline-separated tty's and appends them into
111 # securetty. So if a machine has a weird looking console device
112 # node (e.g. ttyAMA0) that securetty does not know, it will get
113 # appended to securetty and root logins will be allowed on that
114 # console.
115 echo "${SERIAL_CONSOLE}" | sed -e 's/[0-9][0-9]\|\-L//g'|tr "[ ]" "[\n]" >> ${WORKDIR}/securetty
116 fi
117 install -m 0400 ${WORKDIR}/securetty ${D}${sysconfdir}/securetty
118} 100}
119 101
120pkg_postinst_${PN} () { 102pkg_postinst_${PN} () {