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
cd /home/tc/samba4
5. set necessary flags
for x86:
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"
or for x86_64
export CFLAGS="-mtune=generic -Os -pipe"
export CXXFLAGS="-mtune=generic -Os -pipe"
export LDFLAGS="-Wl,-O1"
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:
sudo make
install DESTDIR=/home/tc/package
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)