summaryrefslogtreecommitdiff
path: root/packages/samba
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-31 18:44:34 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-31 18:44:34 +0000
commitcea573b7ab71cabae28020c7d3a11ee90b03d901 (patch)
treee0c8053c806236d0ed5d24e845b60e6b9fa42c3a /packages/samba
parentb53bf6999ed1feedd9d79f1c99b63ddc811b39af (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/31 10:44:33-08:00 (none)!ggilbert Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into olddog.(none):/home/ggilbert/oe/openembedded 2004/12/31 10:44:17-08:00 (none)!ggilbert Licensing additions 2004/12/31 18:41:30+01:00 (none)!br1 added stunnel init script and configuration file BKrev: 41d59e12wekLBFs_VrpoqSRgkooaYw
Diffstat (limited to 'packages/samba')
-rw-r--r--packages/samba/samba_3.0.5.bb42
-rw-r--r--packages/samba/samba_3.0.9.bb42
2 files changed, 84 insertions, 0 deletions
diff --git a/packages/samba/samba_3.0.5.bb b/packages/samba/samba_3.0.5.bb
index e69de29bb2..040b5a751e 100644
--- a/packages/samba/samba_3.0.5.bb
+++ b/packages/samba/samba_3.0.5.bb
@@ -0,0 +1,42 @@
+SECTION = "console/network"
+DEPENDS = readline
+LICENSE = "GPL"
+SRC_URI := "http://us2.samba.org/samba/ftp/old-versions/samba-${PV}.tar.gz \
+ file://${FILESDIR}/configure.patch;patch=1 \
+ file://${FILESDIR}/cifs.patch;patch=1"
+S := ${WORKDIR}/${P}/source
+
+PACKAGES =+ "libsmbclient libsmbclient-dev cifs cifs-doc"
+FILES_cifs = "${bindir}/mount.cifs"
+FILES_cifs-doc = "${docdir}/mount.cifs.8"
+FILES_libsmbclient = "${libdir}/libsmbclient.so.*"
+FILES_libsmbclient-dev = "${libdir}/libsmbclient.so ${includedir}"
+
+inherit autotools
+
+EXTRA_OECONF='--disable-cups --with-readline=${STAGING_LIBDIR}/.. \
+ --without-ads --without-automount --with-smbmount'
+do_configure_prepend () {
+ ./script/mkversion.sh
+ if [ ! -e acinclude.m4 ]; then
+ cat aclocal.m4 > acinclude.m4
+ fi
+}
+
+do_compile_append () {
+ ${CC} client/mount.cifs.c -o mount.cifs
+
+}
+
+do_install_append() {
+ mv ${D}${libdir}/libsmbclient.so ${D}${libdir}/libsmbclient.so.0
+ ln -sf libsmbclient.so.0 ${D}${libdir}/libsmbclient.so
+ rm -f ${D}${bindir}/*.old
+ rm -f ${D}${sbindir}/*.old
+ mv mount.cifs ${D}${bindir}/mount.cifs
+}
+
+do_stage() {
+ install -m 0644 include/libsmbclient.h ${STAGING_INCDIR}
+ oe_libinstall -C bin -a -so libsmbclient ${STAGING_LIBDIR}
+}
diff --git a/packages/samba/samba_3.0.9.bb b/packages/samba/samba_3.0.9.bb
index e69de29bb2..4c883f3a2a 100644
--- a/packages/samba/samba_3.0.9.bb
+++ b/packages/samba/samba_3.0.9.bb
@@ -0,0 +1,42 @@
+SECTION = "console/network"
+DEPENDS = readline
+LICENSE = "GPL"
+SRC_URI := "http://us2.samba.org/samba/ftp/samba-${PV}.tar.gz \
+ file://${FILESDIR}/configure.patch;patch=1 \
+ file://${FILESDIR}/cifs.patch;patch=1"
+S := ${WORKDIR}/${P}/source
+
+PACKAGES =+ "libsmbclient libsmbclient-dev cifs cifs-doc"
+FILES_cifs = "${bindir}/mount.cifs"
+FILES_cifs-doc = "${docdir}/mount.cifs.8"
+FILES_libsmbclient = "${libdir}/libsmbclient.so.*"
+FILES_libsmbclient-dev = "${libdir}/libsmbclient.so ${includedir}"
+
+inherit autotools
+
+EXTRA_OECONF='--disable-cups --with-readline=${STAGING_LIBDIR}/.. \
+ --without-ads --without-automount --with-smbmount'
+do_configure_prepend () {
+ ./script/mkversion.sh
+ if [ ! -e acinclude.m4 ]; then
+ cat aclocal.m4 > acinclude.m4
+ fi
+}
+
+do_compile_append () {
+ ${CC} client/mount.cifs.c -o mount.cifs
+
+}
+
+do_install_append() {
+ mv ${D}${libdir}/libsmbclient.so ${D}${libdir}/libsmbclient.so.0
+ ln -sf libsmbclient.so.0 ${D}${libdir}/libsmbclient.so
+ rm -f ${D}${bindir}/*.old
+ rm -f ${D}${sbindir}/*.old
+ mv mount.cifs ${D}${bindir}/mount.cifs
+}
+
+do_stage() {
+ install -m 0644 include/libsmbclient.h ${STAGING_INCDIR}
+ oe_libinstall -C bin -a -so libsmbclient ${STAGING_LIBDIR}
+}