diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 17 |
1 files changed, 14 insertions, 3 deletions
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 6794cc144e..eb00bf0810 100644 --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb | |||
@@ -56,7 +56,14 @@ PAM_SRC_URI = "file://pam.d/chfn \ | |||
56 | file://pam.d/passwd \ | 56 | file://pam.d/passwd \ |
57 | file://pam.d/su" | 57 | file://pam.d/su" |
58 | 58 | ||
59 | do_install_append() { | 59 | do_install() { |
60 | oe_runmake DESTDIR="${D}" sbindir="${base_sbindir}" usbindir="${sbindir}" install | ||
61 | |||
62 | # Info dir listing isn't interesting at this point so remove it if it exists. | ||
63 | if [ -e "${D}${infodir}/dir" ]; then | ||
64 | rm -f ${D}${infodir}/dir | ||
65 | fi | ||
66 | |||
60 | # Ensure that the image has as a /var/spool/mail dir so shadow can | 67 | # Ensure that the image has as a /var/spool/mail dir so shadow can |
61 | # put mailboxes there if the user reconfigures shadow to its | 68 | # put mailboxes there if the user reconfigures shadow to its |
62 | # defaults (see sed below). | 69 | # defaults (see sed below). |
@@ -93,8 +100,12 @@ do_install_append() { | |||
93 | # Move binaries to the locations we want | 100 | # Move binaries to the locations we want |
94 | rm ${D}${sbindir}/vigr | 101 | rm ${D}${sbindir}/vigr |
95 | ln -sf vipw.${BPN} ${D}${base_sbindir}/vigr | 102 | ln -sf vipw.${BPN} ${D}${base_sbindir}/vigr |
96 | mv ${D}${sbindir}/vipw ${D}${base_sbindir}/vipw | 103 | if [ "${sbindir}" != "${base_sbindir}" ]; then |
97 | mv ${D}${bindir}/login ${D}${base_bindir}/login | 104 | mv ${D}${sbindir}/vipw ${D}${base_sbindir}/vipw |
105 | fi | ||
106 | if [ "${bindir}" != "${base_bindir}" ]; then | ||
107 | mv ${D}${bindir}/login ${D}${base_bindir}/login | ||
108 | fi | ||
98 | 109 | ||
99 | # Handle link properly after rename, otherwise missing files would | 110 | # Handle link properly after rename, otherwise missing files would |
100 | # lead rpm failed dependencies. | 111 | # lead rpm failed dependencies. |