Web lists-archives.com

Re: [Samba] Offical RHEL AD DC on RHEL




Il giorno dom, 19/02/2017 alle 21.17 -0700, Jeff Sadowski via samba ha
scritto:
> I was never able to build it in a way

I have rebuild samba from rpm source on Centos 7 (samba 4.4.4) and
Fedora (samba  4.5.5) with this procedure:

> > [lesca@dodo rpmbuild]$ cat rebuild.txt
> #
> 
> # Install Development ...
> sudo yum -y groupinstall 'Development Tools'
> # sudo dnf -y groupinstall 'Development Tools' # Fedora
> 
> # Install yum/dnf utilitiy
> sudo yum -y install rpm-build yum-utils createrepo
> # sudo dnf -y install rpm-build yum-utils createrepo # Fedora
> 
> # Download last samba source
> # or download froma a centos mirror if vault don't work: http://bay.uchicago.edu/centos-vault/7.3.1611/
> yumdownloader --source samba
> # dnf download --source samba # Fedora
> 
> # Install samba source
> rpm -ivh samba-4.*.src.rpm
> 
> # Modify .spec file
> sed -i \
> 	-e 's/%define main_release .*/&.1/' \
> 	-e 's/%global with_mitkrb5 1/%global with_mitkrb5 0/' \
> 	-e 's/%global with_dc 0/%global with_dc 1/' \
> 	/home/lesca/rpmbuild/SPECS/samba.spec
> 
> # samba 4.5.x (Fedora) do also this....
> sed -i \
> 	-e 's|^%.*libntvfs-samba4.so|# &\n%{_libdir}/samba/bind9/dlz_bind9_11.so\n%{_libdir}/samba/ldb/dsdb_notification.so\n%{_libdir}/samba/ldb/vlv.so|' \
> 	/home/lesca/rpmbuild/SPECS/samba.spec
> 
> # Install Build dependence
> sudo yum install -y gnutls-devel
> sudo yum-builddep -y ./rpmbuild/SPECS/samba.spec
> # sudo dnf builddep -y ./rpmbuild/SPECS/samba.spec # Fedora
> 
> # Rebuild samba ...
> rpmbuild --without clustering -ba ./rpmbuild/SPECS/samba.spec
> 
> # Create repository ...
> createrepo ./rpmbuild/RPMS
> 
> # Copy all in some public place ...
> rsync -avzR --delete ./rpmbuild/./{RPMS,SRPMS} 10.11.12.1:/var/www/html/samba4/rpmbuild/
> 
> # Follow HowTo for deploy... 
> 

hope this help

-- 
Dario Lesca
(inviato dal mio Linux Fedora 25 Workstation)

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba