Web lists-archives.com

Re: [Samba] Offical RHEL AD DC on RHEL




On Mon, Feb 20, 2017 at 1:50 AM, Dario Lesca via samba <
samba@xxxxxxxxxxxxxxx> wrote:

> 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
> >
>

Thank you. I think this was the part I was having the most issues with.
It will also be helpful having everything I need installed like the rest of
what you sent me has.
Would rawhide be the best place to try this or should I back off to 25 or
26 (I think rawhide is beyond the breakpoint for 26)?


> > # 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
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba