Re: [Bacula-users] List compile options used for binary

2012-08-17 Thread lst_hoe02

Zitat von Geert Stappers geert.stapp...@vanadgroup.com:

 Op 20120815 om 12:36 schreef lst_ho...@kwsoft.de:

 Zitat von Geert Stappers geert.stapp...@vanadgroup.com:

  Op 20120814 om 15:10 schreef lst_ho...@kwsoft.de:
  Hello List
 
  is it possible to get the compile time options used for building the
  binary? It would be nice to have so we could build updates as close as
  possible to original packages for example on Ubuntu.
 
  Beware the next information is untested:
 
cd /usr/scr
apt-get source bacula
cd bacula*  # wildcard for version
cd debian
grep configure rules
 
  That should give you the compile time options.
 
 
  Many Thanks
 
  Please verify and provide feedback.
 

 Ouput of the grep command:

 # These are used for cross-compiling and for saving the configure script
 configure-stamp-%: extract-stamp-%
  QMAKE=/usr/bin/qmake-qt4 ./configure --config-cache \
 build-stamp-%: configure-stamp-%

 But the rules file is the place to look.

 Yes,   debian/rules   is the file with compile time options.


With this help and some search around i finally managed to build  
Bacula 5.2.10 the Debian/Ubuntu way like this:

1.) Create new directory and grab build environment with apt-get  
source bacula

2.) Get build dependencies with apt-get build-dep bacula

3.) Extract original source in another dir and copy over the debian  
dir from the Ubuntu build environment

4.) With debchange -i create a new Changelog entry with correct  
version number

5.) Do a debuild -us -uc -i -I and correct any debian patch failures

Voila, new deb packages with version 5.2.10 :-)

Thanks for the help

Andreas



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] List compile options used for binary

2012-08-16 Thread Geert Stappers
Op 20120815 om 12:36 schreef lst_ho...@kwsoft.de:
 
 Zitat von Geert Stappers geert.stapp...@vanadgroup.com:
 
  Op 20120814 om 15:10 schreef lst_ho...@kwsoft.de:
  Hello List
 
  is it possible to get the compile time options used for building the
  binary? It would be nice to have so we could build updates as close as
  possible to original packages for example on Ubuntu.
 
  Beware the next information is untested:
 
cd /usr/scr
apt-get source bacula
cd bacula*  # wildcard for version
cd debian
grep configure rules
 
  That should give you the compile time options.
 
 
  Many Thanks
 
  Please verify and provide feedback.
 
 
 Ouput of the grep command:
 
 # These are used for cross-compiling and for saving the configure script
 configure-stamp-%: extract-stamp-%
   QMAKE=/usr/bin/qmake-qt4 ./configure --config-cache \
 build-stamp-%: configure-stamp-%
 
 But the rules file is the place to look.

Yes,   debian/rules   is the file with compile time options.


Thanks for the feedback.

Cheers
Geert Stappers
-- 
debian/rules
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] List compile options used for binary

2012-08-15 Thread lst_hoe02

Zitat von Geert Stappers geert.stapp...@vanadgroup.com:

 Op 20120814 om 15:10 schreef lst_ho...@kwsoft.de:
 Hello List

 is it possible to get the compile time options used for building the
 binary? It would be nice to have so we could build updates as close as
 possible to original packages for example on Ubuntu.

 Beware the next information is untested:

   cd /usr/scr
   apt-get source bacula
   cd bacula*  # wildcard for version
   cd debian
   grep configure rules

 That should give you the compile time options.


 Many Thanks

 Please verify and provide feedback.


Ouput of the grep command:

# These are used for cross-compiling and for saving the configure script
configure-stamp-%: extract-stamp-%
QMAKE=/usr/bin/qmake-qt4 ./configure --config-cache \
build-stamp-%: configure-stamp-%

But the rules file is the place to look. It has also the following:

-
CONF_ALL= --enable-smartalloc \
--with-python --with-tcp-wrappers \
--with-openssl \
--with-libiconv-prefix=/usr/include 
--with-readline=/usr/include/readline \
--disable-conio \
--with-libintl-prefix=/usr/include --with-x \
--docdir=\$${prefix}/share/doc/bacula-common \
--htmldir=\$${prefix}/share/doc/bacula-common/html \
--libdir=\$${prefix}/lib/bacula \
--enable-batch-insert \
--disable-bwx-console \
--without-qwt \
--enable-ipv6 \
--with-dir-passowrd=XXX_DIRPASSWORD_XXX \
--with-fd-password=XXX_FDPASSWORD_XXX \
--with-sd-password=XXX_SDPASSWORD_XXX \
--with-mon-dir-password=XXX_MONDIRPASSWORD_XXX \
--with-mon-fd-password=XXX_MONFDPASSWORD_XXX \
--with-mon-sd-password=XXX_MONSDPASSWORD_XXX \
--with-db-name=XXX_DBNAME_XXX \
--with-db-user=XXX_DBUSER_XXX \
--with-db-password=XXX_DBPASSWORD_XXX


CONF_common = --disable-gnome --disable-bwx-console --disable-tray-monitor \
--disable-bat

ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
CONF_ALL+= --disable-acl --disable-xattr
endif

CONF_sqlite3= --with-sqlite3 --without-mysql --without-postgresql  
--without-sqlite \
--enable-tray-monitor --enable-bat
CONF_mysql  = --with-mysql --without-sqlite --without-postgresql  
--without-sqlite3 $(CONF_common)
CONF_pgsql  = --with-postgresql --without-sqlite --without-mysql  
--without-sqlite3 $(CONF_common)

###

extract: extract-stamp
extract-stamp: $(foreach s,$(VARIANTS),extract-stamp-$(s))
extract-stamp-%:
@echo  *** DEBIAN *** VARIANT $(*): EXTRACTING to $(BUILDDIR)-$(*)
mkdir $(BUILDDIR)-$(*)
tar -cSf - --exclude=./.git --exclude=./debian . | tar -xSpf - -C  
$(BUILDDIR)-$(*)
touch $@

configure-stamp-%: extract-stamp-%
dh_testdir
@echo  *** DEBIAN *** CONFIGURING VARIANT $*
cp /usr/share/misc/config.guess /usr/share/misc/config.sub \
$(BUILDDIR)-$(*)/autoconf/
cd $(BUILDDIR)-$(*)  \
QMAKE=/usr/bin/qmake-qt4 ./configure --config-cache \
--host=${DEB_HOST_GNU_TYPE} --build=${DEB_BUILD_GNU_TYPE} \
--prefix=/usr \
--with-archivedir=/nonexistant/path/to/file/archive/dir \
--sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula/scripts \
--sharedstatedir=/var/lib/bacula \
--localstatedir=/var/lib/bacula \
--with-pid-dir=/var/run/bacula --with-smtp-host=localhost \
--with-working-dir=/var/lib/bacula \
--with-subsys-dir=/var/lock \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
$(CONF_ALL) $(CONF_$(*))



BTW (OT): Is it possible to simply replace the content of the src  
dir with the later release and maybe even build a deb-package??

Regards

Andreas



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] List compile options used for binary

2012-08-14 Thread lst_hoe02

Hello List

is it possible to get the compile time options used for building the  
binary? It would be nice to have so we could build updates as close as  
possible to original packages for example on Ubuntu.


Many Thanks

Andreas




smime.p7s
Description: S/MIME Cryptographic Signature
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users