use new squashfs compressed package stuff for sambaserver package
[opendreambox.git] / meta-opendreambox / recipes-connectivity / samba / samba_3.0.37.bbappend
1 PR .= "-dream3"
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 }
32
33 EXTRA_OECONF += " \
34         samba_cv_LINUX_LFS_SUPPORT=yes \
35         samba_cv_HAVE_OFF64_T=yes \
36         samba_cv_have_longlong=yes \
37         samba_cv_HAVE_UNSIGNED_CHAR=yes \
38         samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \
39         samba_cv_HAVE_C99_VSNPRINTF=yes \
40         samba_cv_HAVE_BROKEN_READDIR=no \
41         samba_cv_HAVE_IFACE_IFCONF=yes \
42 "
43
44 pkg_prerm_sambaserver() {
45         killall -9 smbd nmbd || /bin/true
46 }
47
48 SQUASHFS_IMG_PACKAGES = "sambaserver-sqsh-img"
49 SQUASHFS_IMG_REPLACES = "sambaserver"
50
51 inherit squashfs-img