3 SRC_URI = "http://us2.samba.org/samba/ftp/stable/samba-${PV}.tar.gz \
4 file://configure.patch;patch=1 \
5 file://cifs.patch;patch=1 \
6 file://config-lfs.patch;patch=1 \
8 file://quota.patch;patch=1;pnum=0 \
10 S := ${WORKDIR}/${P}/source
15 INITSCRIPT_NAME = "samba"
16 # No dependencies, goes in at level 20 (NOTE: take care with the
17 # level, later levels put the shutdown later too - see the links
18 # in rc6.d, the shutdown must precede network shutdown).
19 INITSCRIPT_PARAMS = "defaults"
20 CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf"
22 # The file system settings --foodir=dirfoo and overridden unconditionally
23 # in the samba config by --with-foodir=dirfoo - even if the --with is not
24 # specified! Fix that here. Set the privatedir to /etc/samba/private.
26 --with-configdir=${sysconfdir}/samba \
27 --with-privatedir=${sysconfdir}/samba/private \
28 --with-lockdir=${localstatedir}/lock \
29 --with-piddir=${localstatedir}/run \
30 --with-logfilebase=${localstatedir}/log \
31 --with-libdir=${libdir} \
32 --with-mandir=${mandir} \
33 --with-swatdir=${datadir}/swat \
37 install -d "${D}${localstatedir}/log"
38 rm -f ${D}/sbin/mount.smbfs
40 ln -sf smbmount ${D}${bindir}/mount.smbfs
41 install -d "${D}${sysconfdir}/init.d"
42 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/samba
43 install -d "${D}${sysconfdir}/samba"
44 install -c -m 644 ../examples/smb.conf.default ${D}${sysconfdir}/samba/smb.conf
49 FILES_swat = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg"
50 FILES_${PN} += "${libdir}/vfs/*.so ${libdir}/charset/*.so ${libdir}/*.dat"
52 # bug fix for samba.inc:
53 FILES_cifs-doc = "${mandir}/man8/mount.cifs.8"