Rodrigo Cunha
2016-Oct-07 06:01 UTC
[Samba] Migration Samba4 and LDAP packages from CENTOS to DEBIAN
Dears, i have Samba4 and LDAP in CENTOS , but i have install this samba4 in DEBIAN How i to search the equivalent package for compilation samba in Debian repository quickly. I used this below packages for compilation samba4 in CENTOS. findutils readline glibc-devel findutils-locate gcc flex compat-readline4 db-devel gcc-c++ make python libacl-devel libblkid-devel gnutls-devel readline-devel python-devel gdb pkgconfig cups-devel pan-devel nss-pam-ldap openldap2 openldap2-client krb5-client krb5-devel openldap2-devel python-ldap many equivalent packages have other names in debian repository. my debian repository this: deb http://ftp.us.debian.org/debian/ jessie main deb-src http://ftp.us.debian.org/debian/ jessie main deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main # jessie-updates, previously known as 'volatile' deb http://ftp.us.debian.org/debian/ jessie-updates main deb-src http://ftp.us.debian.org/debian/ jessie-updates main -- Atenciosamente, Rodrigo da Silva Cunha
Rowland Penny
2016-Oct-07 08:19 UTC
[Samba] Migration Samba4 and LDAP packages from CENTOS to DEBIAN
On Fri, 7 Oct 2016 03:01:11 -0300 Rodrigo Cunha via samba <samba at lists.samba.org> wrote:> Dears, i have Samba4 and LDAP in CENTOS , but i have install this > samba4 in DEBIAN > How i to search the equivalent package for compilation samba in Debian > repository quickly. > I used this below packages for compilation samba4 in CENTOS. > > findutils readline glibc-devel findutils-locate gcc flex > compat-readline4 db-devel gcc-c++ make python > libacl-devel libblkid-devel gnutls-devel readline-devel python-devel > gdb pkgconfig > cups-devel pan-devel nss-pam-ldap openldap2 openldap2-client > krb5-client krb5-devel openldap2-devel python-ldap > > many equivalent packages have other names in debian repository. > my debian repository this: > > deb http://ftp.us.debian.org/debian/ jessie main > deb-src http://ftp.us.debian.org/debian/ jessie main > > deb http://security.debian.org/ jessie/updates main > deb-src http://security.debian.org/ jessie/updates main > > # jessie-updates, previously known as 'volatile' > deb http://ftp.us.debian.org/debian/ jessie-updates main > deb-src http://ftp.us.debian.org/debian/ jessie-updates main >Doesn't anybody read the Samba wiki ???????? https://wiki.samba.org/index.php/Main_Page In your case, specifically: https://wiki.samba.org/index.php/Samba_Dependencies Rowland
L.P.H. van Belle
2016-Oct-07 08:41 UTC
[Samba] Migration Samba4 and LDAP packages from CENTOS to DEBIAN
Hai, Most quick is to get samba 4.4.5-3 packages for jessie. Found here : http://downloads.van-belle.nl/samba4/ If you want to build yourself, a short howto. Add the debian testing/Stretch sources to apt/sources.list This is the build order for a 4.4.x samba! talloc tevent tdb ldb cmocka nss-wrapper resolv-wrapper uid-wrapper \ socket-wrapper samba nss-wrapper needs a change in debian/control file. nss-wrapper depends libcmocka-dev >= 1.0.1 now most simple building. apt-get build-dep talloc apt-get source talloc -b apt-get build-dep tevent now install the missing talloc packages you just build. apt-get source tevent -b repeat this for all packages. now at nss-wrapper apt-get source nss-wrapper cd nss-wrapper-1.1.2 sed -i 's/libcmocka-dev/libcmocka-dev (>= 1.0.1~)/g' debian/control apt-get build-dep nss-wrapper apt-get source nss-wrapper -b .. etc etc. If you want to try building 4.5.0, get these from debian backports you may need them. debhelper_9.20160403~bpo8+1_all.deb dh-autoreconf_12~bpo8+1_all.deb dh-strip-nondeterminism_0.028-1~bpo8+1_all.deb libfile-stripnondeterminism-perl_0.028-1~bpo8+1_all.deb for you info, i stopped with building 4.5.0, since in notices kerberos problems. ( and i suspect same for 4.4.6 ) havent tried it. I'm staying bit longer on 4.4.5 for now, these work very good for me. If you really want to build from source. You can use this script, it gets the needed sources for you. #-------------- SCRIPT BEGIN #!/bin/bash # get samba sources. ## !! KEEP NOTICE OF THE ORDER HERE ITS VERY IMPORTANT !! ## Samba build depends order ( use the SOURCE NAMES ) # # debian packaged needed: "libtalloc-dev libtevent-dev libtdb-dev \ # libldb-dev libcmocka-dev libnss-wrapper libresolv-wrapper libuid-wrapper\ # socket-wrapper samba" # # are source packages : # talloc tevent tdb ldb cmocka nss-wrapper resolv-wrapper uid-wrapper \ # socket-wrapper samba" BUILDFOLDER=”$HOME/build-samba-org” mkdir -p ${BUILDFOLDER} cd ${BUILDFOLDER} if [ ! -e /etc/apt/sources.list.d/debian-stretch.list ]; then if [ $(sudo apt-get update | egrep "stretch|testing" | wc -l) = "0" ]; then echo "Setup : APT : Warning, no debian stretch/testing detected" echo "Setup : APT : adding debian stretch/testing sources to /etc/apt/sources.list.d/debian-stretch.list" echo "#Debian Stretch/Testing" | sudo tee -a /etc/apt/sources.list.d/debian-stretch.list >/dev/null echo "# " | sudo tee -a /etc/apt/sources.list.d/debian-stretch.list >/dev/null echo "#deb http://httpredir.debian.org/debian/ stretch main non-free contrib" | sudo tee -a /etc/apt/sources.list.d/debian-stretch.list >/dev/null echo "deb-src http://httpredir.debian.org/debian/ stretch main non-free contrib" | sudo tee -a /etc/apt/sources.list.d/debian-stretch.list >/dev/null echo "#Debian SID/Unstable" | sudo tee -a /etc/apt/sources.list.d/debian-sid.list >/dev/null echo "# " | sudo tee -a /etc/apt/sources.list.d/debian-sid.list >/dev/null echo "#deb http://httpredir.debian.org/debian/ sid main non-free contrib" | sudo tee -a /etc/apt/sources.list.d/debian-sid.list >/dev/null echo "#deb-src http://httpredir.debian.org/debian/ sid main non-free contrib" | sudo tee -a /etc/apt/sources.list.d/debian-sid.list >/dev/null echo "#Debian Jessie/stable Backports" | sudo tee -a /etc/apt/sources.list.d/debian-backports.list >/dev/null echo "# " | sudo tee -a /etc/apt/sources.list.d/debian-backports.list >/dev/null echo "#deb http://httpredir.debian.org/debian/ jessie-backports main non-free contrib" | sudo tee -a /etc/apt/sources.list.d/debian-jessie-backports.list >/dev/null echo "#deb-src http://httpredir.debian.org/debian/ jessie-backports main non-free contrib" | sudo tee -a /etc/apt/sources.list.d/debian-jessie-backports.list >/dev/null echo "Added the new repo files in /etc/apt/sources.list.d/ " echo "Setup : APT : Please wait, running apt-get update again." sudo apt-get -qq update else echo "Setup : APT : Ok, detected stretch/testing source repo with apt-get update." fi else echo "Apt setup already done. " echo "Checking if debian stretch/testing sources are enabled" if [ $(sudo apt-get update | egrep "stretch|testing" | wc -l) = "0" ]; then echo "Enable-ing testing sources" sed -i 's/#deb-src http/deb-src http/g' /etc/apt/sources.list.d/debian-stretch.list else echo "Debian Stretch/Testing sources already enabled." fi fi PACKAGES_TODO1="talloc tevent tdb ldb" for x in $PACKAGES_TODO1 ; do echo "Getting sources $x." wget -q --no-check-certificate https://www.samba.org/ftp/${x}/ -O /tmp/${x}.txt LATESTVERSION=$(cat /tmp/${x}.txt| awk -F"href=" {'print $2'} | awk -F"\"" {'print $2'} | grep gz | tail -n1) if [ ! -f ${LATESTVERSION} ]; then wget -q --no-check-certificate https://www.samba.org/ftp/${x}/${LATESTVERSION} -O ${LATESTVERSION} tar -xf ${LATESTVERSION} else echo "Sources package ${x} is already up2date." fi rm /tmp/${x}.txt done # cmocka from debian ( TESTING ) apt-get -q source cmocka/testing ## cwarp/wrapper packages wget -q --no-check-certificate https://www.samba.org/ftp/cwrap/ -O /tmp/cwrap.txt PACKAGES_TODO2="nss-wrapper resolv-wrapper uid-wrapper socket-wrapper" for y in $PACKAGES_TODO2 ; do echo -n "Getting sources $y" FIRSTPART=$(echo $y | awk -F"-" {'print $1'}) LATESTVERSION=$(cat /tmp/cwrap.txt| awk -F"href=" {'print $2'} | awk -F"\"" {'print $2'} | grep ${FIRSTPART}| grep gz | tail -n1) if [ ! -f ${LATESTVERSION} ]; then wget -q --no-check-certificate https://www.samba.org/ftp/cwrap/${LATESTVERSION} -O ${LATESTVERSION} tar -xf ${LATESTVERSION} else echo "Source package ${y} is already up2date." fi done rm /tmp/cwrap.txt PACKAGES_TODO3="samba" for z in $PACKAGES_TODO3 ; do echo "Getting samba source" wget -q --no-check-certificate https://www.samba.org/ftp/${z}/ -O /tmp/${z}.txt LATESTVERSION=$(cat /tmp/${z}.txt| awk -F"href=" {'print $2'} | awk -F"\"" {'print $2'} |grep -v latest| grep "tar.gz" | tail -n1) if [ ! -f ${LATESTVERSION} ]; then wget -q --no-check-certificate https://www.samba.org/ftp/${z}/${LATESTVERSION} -O ${LATESTVERSION} tar -xf ${LATESTVERSION} else echo "Source package ${z} is already up2date" fi rm /tmp/${z}.txt done echo "All sources are in place, good luck" echo "you can find them here : cd ${BUILDFOLDER}" #-------------- SCRIPT END Greetz, Louis> -----Oorspronkelijk bericht-----> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Rodrigo Cunha via> samba> Verzonden: vrijdag 7 oktober 2016 8:01> Aan: samba at lists.samba.org> Onderwerp: [Samba] Migration Samba4 and LDAP packages from CENTOS to> DEBIAN>> Dears, i have Samba4 and LDAP in CENTOS , but i have install this samba4> in> DEBIAN> How i to search the equivalent package for compilation samba in Debian> repository quickly.> I used this below packages for compilation samba4 in CENTOS.>> findutils readline glibc-devel findutils-locate gcc flex compat-readline4> db-devel gcc-c++ make python> libacl-devel libblkid-devel gnutls-devel readline-devel python-devel gdb> pkgconfig> cups-devel pan-devel nss-pam-ldap openldap2 openldap2-client krb5-client> krb5-devel openldap2-devel python-ldap>> many equivalent packages have other names in debian repository.> my debian repository this:>> deb http://ftp.us.debian.org/debian/ jessie main> deb-src http://ftp.us.debian.org/debian/ jessie main>> deb http://security.debian.org/ jessie/updates main> deb-src http://security.debian.org/ jessie/updates main>> # jessie-updates, previously known as 'volatile'> deb http://ftp.us.debian.org/debian/ jessie-updates main> deb-src http://ftp.us.debian.org/debian/ jessie-updates main>> --> Atenciosamente,> Rodrigo da Silva Cunha> --> To unsubscribe from this list go to the following URL and read the> instructions: https://lists.samba.org/mailman/options/samba
L.P.H. van Belle
2016-Oct-07 08:45 UTC
[Samba] Migration Samba4 and LDAP packages from CENTOS to DEBIAN
Hai Rowland, Can you add in the wiki.. If you are building Samba >= 4.5.0, you will also require libgpgme11-dev python-gpgme python-m2crypto And from debian backports you may need : debhelper dh-autoreconf dh-strip-nondeterminism libfile-stripnondeterminism-perl (At least, i did need them.) Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Rowland Penny via > samba > Verzonden: vrijdag 7 oktober 2016 10:19 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Migration Samba4 and LDAP packages from CENTOS to > DEBIAN > > On Fri, 7 Oct 2016 03:01:11 -0300 > Rodrigo Cunha via samba <samba at lists.samba.org> wrote: > > > Dears, i have Samba4 and LDAP in CENTOS , but i have install this > > samba4 in DEBIAN > > How i to search the equivalent package for compilation samba in Debian > > repository quickly. > > I used this below packages for compilation samba4 in CENTOS. > > > > findutils readline glibc-devel findutils-locate gcc flex > > compat-readline4 db-devel gcc-c++ make python > > libacl-devel libblkid-devel gnutls-devel readline-devel python-devel > > gdb pkgconfig > > cups-devel pan-devel nss-pam-ldap openldap2 openldap2-client > > krb5-client krb5-devel openldap2-devel python-ldap > > > > many equivalent packages have other names in debian repository. > > my debian repository this: > > > > deb http://ftp.us.debian.org/debian/ jessie main > > deb-src http://ftp.us.debian.org/debian/ jessie main > > > > deb http://security.debian.org/ jessie/updates main > > deb-src http://security.debian.org/ jessie/updates main > > > > # jessie-updates, previously known as 'volatile' > > deb http://ftp.us.debian.org/debian/ jessie-updates main > > deb-src http://ftp.us.debian.org/debian/ jessie-updates main > > > > Doesn't anybody read the Samba wiki ???????? > > https://wiki.samba.org/index.php/Main_Page > > In your case, specifically: > > https://wiki.samba.org/index.php/Samba_Dependencies > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Rowland Penny
2016-Oct-07 09:33 UTC
[Samba] Migration Samba4 and LDAP packages from CENTOS to DEBIAN
On Fri, 7 Oct 2016 10:45:22 +0200 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> Hai Rowland, > > Can you add in the wiki.. > If you are building Samba >= 4.5.0, you will also require > libgpgme11-dev python-gpgme python-m2crypto > > And from debian backports you may need : debhelper dh-autoreconf > dh-strip-nondeterminism libfile-stripnondeterminism-perl > > (At least, i did need them.) > > Greetz, > > Louis > >Hi Louis, I take it you needed the extra packages, but is this because you build your own debian packages ?? Also 'debhelper' is part of the main block of packages, does it need a later version for your packages ? I recently updated my DCs to 4.5.0 and didn't need any of your suggested extra packages. Installing 'dh-strip-nondeterminism' pulls in 'libfile-stripnondeterminism-perl' Rowland
L.P.H. van Belle
2016-Oct-07 09:55 UTC
[Samba] Migration Samba4 and LDAP packages from CENTOS to DEBIAN
Hai Rowland, Yes, that was for a debian package build. When compiling from source you can follow the wiki, thats ok. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Rowland Penny via > samba > Verzonden: vrijdag 7 oktober 2016 11:34 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Migration Samba4 and LDAP packages from CENTOS to > DEBIAN > > On Fri, 7 Oct 2016 10:45:22 +0200 > "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote: > > > Hai Rowland, > > > > Can you add in the wiki.. > > If you are building Samba >= 4.5.0, you will also require > > libgpgme11-dev python-gpgme python-m2crypto > > > > And from debian backports you may need : debhelper dh-autoreconf > > dh-strip-nondeterminism libfile-stripnondeterminism-perl > > > > (At least, i did need them.) > > > > Greetz, > > > > Louis > > > > > > Hi Louis, I take it you needed the extra packages, but is this because > you build your own debian packages ?? > > Also 'debhelper' is part of the main block of packages, does it need a > later version for your packages ? > > I recently updated my DCs to 4.5.0 and didn't need any of your > suggested extra packages. > > Installing 'dh-strip-nondeterminism' pulls in > 'libfile-stripnondeterminism-perl' > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba