summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/samba/samba.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-moblin/packages/samba/samba.inc')
-rw-r--r--meta-moblin/packages/samba/samba.inc81
1 files changed, 0 insertions, 81 deletions
diff --git a/meta-moblin/packages/samba/samba.inc b/meta-moblin/packages/samba/samba.inc
deleted file mode 100644
index e6923e38a2..0000000000
--- a/meta-moblin/packages/samba/samba.inc
+++ /dev/null
@@ -1,81 +0,0 @@
1SECTION = "console/network"
2LICENSE = "GPL"
3DEPENDS = "readline virtual/libiconv"
4
5SRC_URI = "http://samba.org/samba/ftp/stable/samba-${PV}.tar.gz \
6 file://volatiles.03_samba \
7 file://smb.conf \
8 file://init \
9 file://tdb.pc \
10 "
11
12S = "${WORKDIR}/samba-${PV}/source"
13
14inherit autotools update-rc.d
15
16FILES_${PN} += "${libdir}/vfs/*.so ${libdir}/charset/*.so ${libdir}/*.dat \
17 ${libdir}/auth/*.so ${libdir}/security/*.so"
18FILES_${PN}-dbg += "${libdir}/vfs/.debug/*.so ${libdir}/charset/.debug/*.so \
19 ${libdir}/auth/.debug/*.so ${libdir}/security/.debug/*.so"
20
21# The file system settings --foodir=dirfoo and overridden unconditionally
22# in the samba config by --with-foodir=dirfoo - even if the --with is not
23# specified! Fix that here. Set the privatedir to /etc/samba/private.
24EXTRA_OECONF='--disable-cups \
25 --with-readline=${STAGING_LIBDIR}/.. \
26 --with-libiconv=${STAGING_LIBDIR}/.. \
27 --without-automount \
28 --with-configdir=${sysconfdir}/samba \
29 --with-privatedir=${sysconfdir}/samba/private \
30 --with-lockdir=${localstatedir}/lock \
31 --with-piddir=${localstatedir}/run \
32 --with-logfilebase=${localstatedir}/log \
33 --with-libdir=${libdir} \
34 --with-mandir=${mandir} \
35 --with-swatdir=${datadir}/swat \
36 samba_cv_struct_timespec=yes'
37
38INITSCRIPT_NAME = "samba"
39# No dependencies, goes in at level 20 (NOTE: take care with the
40# level, later levels put the shutdown later too - see the links
41# in rc6.d, the shutdown must precede network shutdown).
42INITSCRIPT_PARAMS = "defaults"
43CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf"
44
45do_configure_prepend () {
46 ./script/mkversion.sh
47 if [ ! -e acinclude.m4 ]; then
48 touch aclocal.m4
49 cat aclocal.m4 > acinclude.m4
50 fi
51}
52
53do_compile () {
54 oe_runmake proto_exists
55 base_do_compile
56}
57
58do_install_append() {
59 install -d ${D}${libdir}/pkgconfig/
60 cp ${WORKDIR}/tdb.pc ${D}${libdir}/pkgconfig/
61 mv ${D}${libdir}/libsmbclient.so ${D}${libdir}/libsmbclient.so.0 || true
62 ln -sf libsmbclient.so.0 ${D}${libdir}/libsmbclient.so
63 mkdir -p ${D}${base_sbindir}
64 rm -f ${D}${bindir}/*.old
65 rm -f ${D}${sbindir}/*.old
66 [ -f ${D}${sbindir}/mount.cifs ] && mv ${D}${sbindir}/mount.cifs ${D}${base_sbindir}/
67 [ -f ${D}${sbindir}/umount.cifs ] && mv ${D}${sbindir}/umount.cifs ${D}${base_sbindir}/
68
69 # This is needed for < 3.2.4
70 rm -f ${D}${sbindir}/mount.smbfs ${D}${base_sbindir}/mount.smbfs
71 if [ -f ${D}${bindir}/smbmount ]; then
72 ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smb
73 ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smbfs
74 fi
75
76 install -D -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/samba
77 install -D -m 644 ${WORKDIR}/smb.conf ${D}${sysconfdir}/samba/smb.conf
78 install -D -m 644 ${WORKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/volatiles.03_samba
79 install -d ${D}/var/log/samba
80 install -d ${D}/var/spool/samba
81}