samba.mk:
authorWade Berrier <wberrier@gmail.com>
Mon, 6 Oct 2008 19:53:29 +0000 (19:53 -0000)
committerWade Berrier <wberrier@gmail.com>
Mon, 6 Oct 2008 19:53:29 +0000 (19:53 -0000)
-force some performance enhancing autoconf options
-run 'installscripts' so findsmb and smbtar are installed
-samba binaires were segfaulting with uclibc 0.9.29
 when not using: samba_cv_fpie=no.  Force it.

Config.in:
-create configure options for findsmb and smbtar

S91smb:
-create dir (/var/lock/subsys) that is referenced
 later in script

package/samba/Config.in
package/samba/S91smb
package/samba/samba.mk

index 56333dc3e9162bd34d615481d331de3d03bc8f8e..cc6999b26846edbee6f10ef78dcb846a2ad8e21a 100644 (file)
@@ -27,6 +27,18 @@ config BR2_PACKAGE_SAMBA_EVENTLOGADM
        help
          Write Eventlog records to a tdb or perform other eventlog functions
 
+config BR2_PACKAGE_SAMBA_FINDSMB
+       bool "findsmb"
+       default y
+       depends on BR2_PACKAGE_SAMBA_SMBCLIENT
+       depends on BR2_PACKAGE_SAMBA_NMBLOOKUP
+       depends on BR2_PACKAGE_MICROPERL
+       help
+         Script to browse network
+
+comment "findsmb       - disabled (requires nmblookup, smbclient and perl)"
+       depends on !BR2_PACKAGE_SAMBA_SMBCLIENT || !BR2_PACKAGE_SAMBA_NMBLOOKUP || !BR2_PACKAGE_MICROPERL
+
 config BR2_PACKAGE_SAMBA_NET
        bool "net"
        default y
@@ -149,6 +161,16 @@ config BR2_PACKAGE_SAMBA_SWAT
        help
          Samba Web Administration Tool
 
+config BR2_PACKAGE_SAMBA_SMBTAR
+       bool "smbtar"
+       default y
+       depends on BR2_PACKAGE_SAMBA_SMBCLIENT
+       help
+         tar-like script that wraps smbclient
+
+comment "smbtar        - disabled (requires smbclient)"
+       depends on !BR2_PACKAGE_SAMBA_SMBCLIENT
+
 config BR2_PACKAGE_SAMBA_TDB
        bool "tdb"
        default y
index 859b540084f34b542f30cfa1253ac71ba1b96ecd..c190771b7de280cdf5c8b26c61d9d6f5b33ffd9e 100755 (executable)
@@ -9,6 +9,7 @@
 # Make directories.
 mkdir -p /var/cache/samba
 mkdir -p /var/log/samba
+mkdir -p /var/lock/subsys
 
 RETVAL=0
 
index bf1380a528aab09a74935a1dcb36ea5a6e276eb5..9ac6e1153bb607206381e8686f38f46a673e7da6 100644 (file)
@@ -29,6 +29,10 @@ $(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.unpacked
                samba_cv_USE_SETREUID=yes \
                samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes \
                samba_cv_HAVE_IFACE_IFCONF=yes \
+               samba_cv_HAVE_MMAP=yes \
+               samba_cv_HAVE_FCNTL_LOCK=yes \
+               samba_cv_HAVE_SECURE_MKSTEMP=yes \
+               samba_cv_fpie=no \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
@@ -58,6 +62,7 @@ SAMBA_TARGETS_y :=
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_CIFS) += usr/sbin/mount.cifs \
                                                   usr/sbin/umount.cifs
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_EVENTLOGADM) += usr/bin/eventlogadm
+SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_FINDSMB) += usr/bin/findsmb
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_NET) += usr/bin/net
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_NMBD) += usr/sbin/nmbd
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_NMBLOOKUP) += usr/bin/nmblookup
@@ -73,6 +78,7 @@ SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_SMBGET) += usr/bin/smbget
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_SMBPASSWD) += usr/bin/smbpasswd
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_SMBSPOOL) += usr/bin/smbspool
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_SMBSTATUS) += usr/bin/smbstatus
+SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_SMBTAR) += usr/bin/smbtar
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_SMBTREE) += usr/bin/smbtree
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_SWAT) += usr/sbin/swat
 SAMBA_TARGETS_$(BR2_PACKAGE_SAMBA_TDB) += usr/bin/tdbbackup \
@@ -91,7 +97,7 @@ $(TARGET_DIR)/$(SAMBA_TARGET_BINARY): $(SAMBA_DIR)/$(SAMBA_BINARY)
                PRIVATEDIR="${TARGET_DIR}/etc/samba" \
                CONFIGDIR="${TARGET_DIR}/etc/samba" \
                VARDIR="${TARGET_DIR}/var/log/samba" \
-               -C $(SAMBA_DIR) installservers installbin installcifsmount
+               -C $(SAMBA_DIR) installservers installbin installcifsmount installscripts
        for file in $(SAMBA_TARGETS_); do \
                rm -f $(TARGET_DIR)/$$file; \
        done