Author: alexander
Date: 2006-01-08 03:12:50 -0700 (Sun, 08 Jan 2006)
New Revision: 1343

Modified:
   trunk/packages/samba/Makefile
Log:
Upgraded SAMBA to 3.0.21a. Stripped down the installation.


Modified: trunk/packages/samba/Makefile
===================================================================
--- trunk/packages/samba/Makefile       2006-01-08 06:55:32 UTC (rev 1342)
+++ trunk/packages/samba/Makefile       2006-01-08 10:12:50 UTC (rev 1343)
@@ -1,12 +1,12 @@
 # Samba Makefile
 
 NM= samba
-VRS= 3.0.20b
+VRS= 3.0.21a
 DIR= $(NM)-$(VRS)
 
-FILE= $(DIR).tar.bz2
-URL-$(FILE)= $(HTTPBLFS)/$(NM)/$(FILE)
-SHA-$(FILE)= 640ab64182be17c05a97a08e43cb3b936c90e92b
+FILE= $(DIR).tar.gz
+URL-$(FILE)= http://us2.samba.org/$(NM)/ftp/$(FILE)
+SHA-$(FILE)= c8d339801f2f1c60a4bb652aee85da6a0eb5d224
 
 # Targets
 
@@ -24,12 +24,22 @@
         --localstatedir=/var --with-piddir=/var/run --with-fhs \
         --with-smbmount --without-sys-quotas --without-quotas
        cd source ; make
-       mkdir /etc/samba
+       mkdir -p /etc/samba
        install -m644 $(ROOT)/etc/samba/smb.conf /etc/samba
-       cd source/client ; \
-        gcc $(CFLAGS) -static mount.cifs.c -o mount.cifs ; \
-        cp mount.cifs /usr/bin
-       cd source ; make install
+       cd source ; make client/mount.cifs
+       # Don't do a full "make install" in order to save space.
+       # We install:
+       # 1) Programs that XFCE wants to execute: nmblookup,smbclient
+       # 2) Programs for mounting: smbmnt, smbmount, smbumount
+       # 3) Manual pages
+       install -v -m755 source/bin/{nmblookup,smbclient,smbmount} /usr/bin
+       install -v -m4755 source/bin/{smbmnt,smbumount} /usr/bin
+       ln -svf /usr/bin/smbmount /sbin/mount.smbfs
+       install -v -m4755 source/client/mount.cifs /sbin
+       install -v -m644 docs/manpages/{nmblookup.1,smbclient.1} 
/usr/share/man/man1
+       install -v -m644 docs/manpages/{lmhosts.5,smb.conf.5} 
/usr/share/man/man5
+       install -v -m644 docs/manpages/samba.7 /usr/share/man/man7
+       install -v -m644 
docs/manpages/{mount.cifs.8,smbmnt.8,smbmount.8,smbumount.8} /usr/share/man/man8
 
 clean:
        -rm -rf $(DIR)

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to