Tiny Core Extensions > TCE Talk
Upgrade samba to latest version for TCL x86
akelio:
--- Quote from: bonbob on January 06, 2019, 07:32:33 AM ---Finally I made it!
samba 4.9.4 for x86 compiled successfully. Strange thing, but new samba4 extension is only 10,7Mbytes instead old samba3, which need 32Mbytes disk free space. There is Tiny Core Philosophy in action. :)
--- End quote ---
Hey, it would be great if you share new extension or, at least, instructions for compiling!
bonbob:
Ok. Here is a few steps to make your own samba for TCL:
1. get latest version of samba from samba.org
2. unpack archive samba-latest.tar.gz somewhere, for example /home/tc
3. get all necessary extensions:
compiletc
perl5
jansson-dev
gnutls-dev or newer version gnutls3.6-dev on your choice
python-dev
glibc_apps
4. go to the samba DIR, for example
--- Code: ---cd /home/tc/samba4
--- End code ---
5. set necessary flags
for x86:
--- Code: ---export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"
--- End code ---
or for x86_64
--- Code: ---export CFLAGS="-mtune=generic -Os -pipe"
export CXXFLAGS="-mtune=generic -Os -pipe"
export LDFLAGS="-Wl,-O1"
--- End code ---
6. if you need samba only as file-server for WIN configure samba with this options:
sudo ./configure
-- disable-python
-- without-ad-dc
-- without-gpgme
-- without-libarchive
-- without-acl-support
-- without-ldap
-- without-ads
-- without-pam
it's configure an minimalistic samba, lightweight as it possible
7. make-install:
--- Code: --- sudo make
install DESTDIR=/home/tc/package
--- End code ---
Compilation takes some time. On my xeon processor with 4 cores 3.2 GHz and 4Gb ram it takes near 15-17 minutes
After all you can get your samba in /home/tc/package
How to pack samba onto squashfs you can read on wiki.tinycorelinux.net/wiki:creating_extensions
Don't forget to create .dep file with such dependencies:
expat2.tcz
jansson.tcz
gnutls.tcz (or gnutls3.6.tcz if you choose this one)
akelio:
Great work, thanks a lot!
Navigation
[0] Message Index
[*] Previous page
Go to full version