summaryrefslogtreecommitdiff
path: root/packages/samba/samba-essential_3.0.20.bb
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-05-27 13:58:38 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-27 13:58:38 +0000
commitcefa8d5cfbdaeeb2f228b14651a9fba6419fad8d (patch)
tree2f09a348689aa597b3934bfb48b4db5d2764c98d /packages/samba/samba-essential_3.0.20.bb
parent0ac0f2907d567cb7513958de0285c4fc0818e855 (diff)
samba: samba-essential: Set workgroup to DISTRO
Diffstat (limited to 'packages/samba/samba-essential_3.0.20.bb')
-rw-r--r--packages/samba/samba-essential_3.0.20.bb18
1 files changed, 14 insertions, 4 deletions
diff --git a/packages/samba/samba-essential_3.0.20.bb b/packages/samba/samba-essential_3.0.20.bb
index 60e4f241d5..50d4e432e5 100644
--- a/packages/samba/samba-essential_3.0.20.bb
+++ b/packages/samba/samba-essential_3.0.20.bb
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
SRC_URI = "http://us2.samba.org/samba/ftp/stable/samba-${PV}.tar.gz \
file://configure.patch;patch=1 \
@@ -47,13 +47,23 @@ do_install_append() {
install -d "${D}${sysconfdir}/samba"
install -d "${D}/usr/share/samba/help"
- install ${WORKDIR}/smb-essential-inactive.conf "${D}${sysconfdir}/samba/"
- install ${WORKDIR}/smb-essential.conf "${D}${sysconfdir}/samba/smb.conf"
+ install -m 0644 ${WORKDIR}/smb-essential-inactive.conf "${D}${sysconfdir}/samba/"
+ install -m 0644 ${WORKDIR}/smb-essential.conf "${D}${sysconfdir}/samba/smb.conf"
- install ${WORKDIR}/Managing-Samba.txt ${D}/usr/share/samba/help
+ install -m 0644 ${WORKDIR}/Managing-Samba.txt ${D}/usr/share/samba/help
}
+do_configure_append() {
+ distro_up="`echo "${DISTRO}" | awk '{printf("%s\n",toupper($0))}'`"
+
+ cat ${WORKDIR}/smb-essential-inactive.conf | sed "s/MYWORKGROUP/${distro_up}/" > ${WORKDIR}/smb-essential-inactive.conf_
+ mv ${WORKDIR}/smb-essential-inactive.conf_ ${WORKDIR}/smb-essential-inactive.conf
+
+ cat ${WORKDIR}/smb-essential.conf | sed "s/MYWORKGROUP/${distro_up}/" > ${WORKDIR}/smb-essential.conf_
+ mv ${WORKDIR}/smb-essential.conf_ ${WORKDIR}/smb-essential.conf
+}
+
FILES_${PN} = "${bindir}/smbpasswd \
${sbindir}/nmbd \
${sbindir}/smbd \