diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2006-09-02 17:55:23 +0000 |
---|---|---|
committer | Oyvind Repvik <nail@nslu2-linux.org> | 2006-09-02 17:55:23 +0000 |
commit | 358f48301ec25e4f35daf798eb41cfd767f2cab8 (patch) | |
tree | b64da2515af15b6bacfe25a7ef4f15ad808b2fd9 /packages/samba/samba_3.0.23c.bb | |
parent | 13f062b8488b5e53ae1c74f140ed421550ee8923 (diff) |
samba: upstream upgrade to 3.0.23c. Add MAINTAINER and LICENCE fields
Diffstat (limited to 'packages/samba/samba_3.0.23c.bb')
-rw-r--r-- | packages/samba/samba_3.0.23c.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/packages/samba/samba_3.0.23c.bb b/packages/samba/samba_3.0.23c.bb new file mode 100644 index 0000000000..e129b241b3 --- /dev/null +++ b/packages/samba/samba_3.0.23c.bb @@ -0,0 +1,55 @@ +LICENCE="GPL-2" +MAINTAINER="Oyvind Repvik <nail@nslu2-linux.org>" +PR = "r0" + +SRC_URI = "http://us2.samba.org/samba/ftp/stable/samba-${PV}.tar.gz \ + file://configure.patch;patch=1 \ + file://cifs.patch;patch=1 \ + file://config-lfs.patch;patch=1 \ + file://init \ + file://quota.patch;patch=1;pnum=0 \ + " +S = ${WORKDIR}/${P}/source + +include samba.inc +inherit update-rc.d + +INITSCRIPT_NAME = "samba" +# No dependencies, goes in at level 20 (NOTE: take care with the +# level, later levels put the shutdown later too - see the links +# in rc6.d, the shutdown must precede network shutdown). +INITSCRIPT_PARAMS = "defaults" +CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf" + +# The file system settings --foodir=dirfoo and overridden unconditionally +# in the samba config by --with-foodir=dirfoo - even if the --with is not +# specified! Fix that here. Set the privatedir to /etc/samba/private. +EXTRA_OECONF += "\ + samba_cv_struct_timespec=yes \ + --with-configdir=${sysconfdir}/samba \ + --with-privatedir=${sysconfdir}/samba/private \ + --with-lockdir=${localstatedir}/lock \ + --with-piddir=${localstatedir}/run \ + --with-logfilebase=${localstatedir}/log \ + --with-libdir=${libdir} \ + --with-mandir=${mandir} \ + --with-swatdir=${datadir}/swat \ + " + +do_install_append() { + install -d "${D}${localstatedir}/log" + rm -f ${D}/sbin/mount.smbfs + ln -sf smbmount ${D}${sbindir}/mount.smbfs + install -d "${D}${sysconfdir}/init.d" + install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/samba + install -d "${D}${sysconfdir}/samba" + install -c -m 644 ../examples/smb.conf.default ${D}${sysconfdir}/samba/smb.conf +} + +PACKAGES =+ "swat" + +FILES_swat = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg" +FILES_${PN} += "${libdir}/vfs/*.so ${libdir}/charset/*.so ${libdir}/*.dat ${libdir}/auth/*.so" +# +# bug fix for samba.inc: +FILES_cifs-doc = "${mandir}/man8/mount.cifs.8" |