Samba: set "oplocks = no" in smb.conf (required for compat. with Vista/7)
[opendreambox.git] / meta-opendreambox / recipes-connectivity / samba / samba_3.0.37.bbappend
1 PR .= "-dream2"
2
3 SRC_URI += " \
4         file://01samba-kill \
5         file://01samba-start \
6 "
7
8 PACKAGES =+ "smbfs smbfs-doc sambaserver libpopt libtalloc"
9
10 FILES_smbfs = "${bindir}/smbmount ${bindir}/smbumount ${bindir}/smbmnt ${base_sbindir}/mount.smbfs ${base_sbindir}/mount.smb"
11 FILES_smbfs-doc = "${mandir}/man8/smbmount.8 ${mandir}/man8/smbumount.8 ${mandir}/man8/smbmnt.8"
12 FILES_sambaserver = "${sbindir}/smbd ${sbindir}/nmbd ${libdir}/charset/*.so ${libdir}/*.dat \
13         ${sysconfdir}/samba/smb.conf ${sysconfdir}/samba/private \
14         ${sysconfdir}/network/if-up.d/01samba-start ${sysconfdir}/network/if-down.d/01samba-kill"
15 FILES_libpopt = "${libdir}/libpopt.so.*"
16 FILES_libtalloc = "${libdir}/libtalloc.so.*"
17
18 CONFFILES_${PN} = ""
19 CONFFILES_sambaserver = "${sysconfdir}/samba/smb.conf"
20
21 do_install_prepend() {
22         install -c -m 644 ${WORKDIR}/smb.conf ../examples/smb.conf.default
23 }
24
25 do_install_append() {
26         install -d ${D}${sysconfdir}/samba/private
27         install -d ${D}${sysconfdir}/network/if-down.d
28         install -m 0755 ${WORKDIR}/01samba-kill ${D}${sysconfdir}/network/if-down.d
29         install -d ${D}${sysconfdir}/network/if-up.d
30         install -m 0755 ${WORKDIR}/01samba-start ${D}${sysconfdir}/network/if-up.d
31 }