diff options
Diffstat (limited to 'meta/recipes-extended/shadow/shadow.inc')
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc new file mode 100644 index 0000000000..4df5e5edb9 --- /dev/null +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -0,0 +1,53 @@ | |||
1 | SUMMARY = "Tools to change and administer password and group data" | ||
2 | DESCRIPTION = "Tools to change and administer password and group data" | ||
3 | HOMEPAGE = "http://pkg-shadow.alioth.debian.org" | ||
4 | BUGTRACKER = "https://alioth.debian.org/tracker/?group_id=30580" | ||
5 | SECTION = "base utils" | ||
6 | LICENSE = "BSD | Artistic-1.0" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ | ||
8 | file://src/passwd.c;beginline=8;endline=30;md5=d83888ea14ae61951982d77125947661" | ||
9 | |||
10 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ | ||
11 | file://shadow.automake-1.11.patch \ | ||
12 | file://shadow_fix_for_automake-1.12.patch \ | ||
13 | file://shadow-4.1.3-dots-in-usernames.patch \ | ||
14 | file://shadow-4.1.4.2-env-reset-keep-locale.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" | ||
18 | SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778" | ||
19 | |||
20 | inherit autotools gettext | ||
21 | |||
22 | EXTRA_OECONF += "--without-audit \ | ||
23 | --without-libcrack \ | ||
24 | --without-selinux" | ||
25 | |||
26 | do_install() { | ||
27 | oe_runmake DESTDIR="${D}" sbindir="${base_sbindir}" usbindir="${sbindir}" install | ||
28 | |||
29 | # Info dir listing isn't interesting at this point so remove it if it exists. | ||
30 | if [ -e "${D}${infodir}/dir" ]; then | ||
31 | rm -f ${D}${infodir}/dir | ||
32 | fi | ||
33 | |||
34 | # Enable CREATE_HOME by default. | ||
35 | sed -i 's/#CREATE_HOME/CREATE_HOME/g' ${D}${sysconfdir}/login.defs | ||
36 | |||
37 | # As we are on an embedded system, ensure the users mailbox is in | ||
38 | # ~/ not /var/spool/mail by default, as who knows where or how big | ||
39 | # /var is. The system MDA will set this later anyway. | ||
40 | sed -i 's/MAIL_DIR/#MAIL_DIR/g' ${D}${sysconfdir}/login.defs | ||
41 | sed -i 's/#MAIL_FILE/MAIL_FILE/g' ${D}${sysconfdir}/login.defs | ||
42 | |||
43 | # Disable checking emails. | ||
44 | sed -i 's/MAIL_CHECK_ENAB/#MAIL_CHECK_ENAB/g' ${D}${sysconfdir}/login.defs | ||
45 | |||
46 | # Now we don't have a mail system. Disable mail creation for now. | ||
47 | sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd | ||
48 | sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd | ||
49 | |||
50 | # Use users group by default | ||
51 | sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd | ||
52 | } | ||
53 | |||