Nils Østbjerg escribió:
Anyone out there who got the skill and knowhow to integrate postgresql
and DBD::pg into the Makefile in Unattended/linuxboot?
I am guessing here, but look on DBD:mysql and mysql. See the Attachment,
there for DBD:pg but it does need more code.
I figured out the easy part, getting 'make download' to work, but I
really dont have a clue how got get it to compile as part of the 'make'
Cheers,
Nils
Index: Makefile
===================================================================
RCS file: /cvsroot/unattended/unattended/linuxboot/Makefile,v
retrieving revision 1.167
diff -r1.167 Makefile
5a6
> dbd-pg=DBD-Pg-1.49
43,44c44
< packages=$(bash) $(busybox) $(convert-asn1) $(dbd-mysql) $(dbi)
\
< $(dmidecode) $(dosemu) $(e2fsprogs) $(expat) $(glibc) $(kbd) \
---
> packages=$(bash) $(busybox) $(convert-asn1) $(dbd-mysql) $(dbd-pg) $(dbi)\
615c615,636
< stage1 += stage1/.stamp-dbd-mysql
---
> ## DBD-pg Perl module
> $(dbd-pg)/Makefile: stage1/opt/perl/bin/perl
> cd $(dir $@) \
> && eval `$(perlrun) -V:archlib` \
> && { [ -n "$$archlib" ] || exit 37 ; } \
> && $(perlrun) Makefile.PL PERL_ARCHLIB=$(cwd)/stage1/$$archlib \
> DESTDIR=$(cwd)/stage1/ PERL_LIB=$(perllib) \
> --cflags="$(fakelib_cflags)"
> [ -e $@ ]
>
>
>
> stage1/.stamp-dbd-pg: $(dbd-pg)/Makefile
> rm -f $@
> cd $(dbd-pg) \
> && make PERL="$(perlrun)" \
> LDLOADLIBS="$(fakelib_cflags) -lpgclient" \
> CC="$(CC) $(fakelib_cflags) -I$(cwd)/fakeinclude/pg" \
> && make PERL="$(perlrun)" install
> touch $@
>
> stage1 += stage1/.stamp-dbd-pg
926a948,949
> $(call download_rule, $(dbd-pg), tar.gz, \
> http://www.cpan.org/authors/id/D/DB/DBDPG/)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel