Am Donnerstag 30 Juni 2005 00:08 schrieb Adam Niedzwiedzki:
> Hi Eric,
>
> Thanks for that, but (now don't laugh at me) that's the problem I have is
> not even knowing where to begin with "compiling" it. I know my way around a
> leaf machine with my eyes shut, installing modules,setting up just about
> anything, I've rolled out around 8 leaf box's on various networks, but for
> the life of me learning to setup a box to compile/build packages has me
> lost
>
> :(
>
> I know there is documentation on it, but because I'm not a fluent *nix user
> I'm lost with it...

Adam;

You need a Linux workstation; then you have to checkout buildtool from cvs, 
running "buildtool build buildenv" and patience . That way you get a complete 
setup to compile and build packages for Bering-uClibc or just to modify the 
current setups (like ulogd).

I agree the buildtool* files, something you can think about as meta-files to 
control the process of compiling and packaging, aren't easy to read and 
understand for non-programmers - but I've made the experience, once you got 
it, it is more or less just cut'n'paste to create new setups for lrp.

For your purpose getting a working buildtool environment and following Eric's 
hint's below should allow you to build an ulogd fitting your needs...

(short recipe:
buildtool.pl build ulogd
change buildtool.mk for ulogd as noted by Eric
buildtool.pl buildclean ulogd
buildtool.pl build ulogd
fakeroot
buildpackage.pl --package=ulogd
scp to your route the new ulogd.lrp)

Don't hesitate to ask, if you're running into pb's - it will only help to 
improve common knowledge (and if necessary) the documentation.  

kp

>
> Cheers
> Ad
> ----- Original Message -----
> From: "Eric Spakman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 29, 2005 4:47 PM
> Subject: Re: [leaf-user] lets talk about something--anything!
>
> > Ad,
> >
> > If you use Bering-uClibc and buildtool, you will see that ulogd's
> > buildtool.mk file already has the lines to compile the mysql plugin:
> >
> > (cd $(ULOGD_DIR) ; CC=$(TARGET_CC) LD=$(TARGET_LD)
> > CFLAGS="$(BT_COPT_FLAGS)" ./configure --prefix=/usr --sysconfdir=/etc )
> > # (cd $(ULOGD_DIR) ; CC=$(TARGET_CC) LD=$(TARGET_LD)
> > CFLAGS="$(BT_COPT_FLAGS)" \
> > #
> > ./configure --prefix=/usr --sysconfdir=/etc
> > --with-mysql=$(BT_STAGING_DIR)/usr
> >
> > If you comment the first line and uncomment the next two lines, the
> > plugin will be compiled. The only thing you have to do is add the plugin
> > to the ulogd package and configure it.
> >
> > Eric Spakman
> >
> >> Hmm let me rephrase that..
> >>
> >> Not knowing what to do with ulogd *grin*, I know my way round php/mysql
> >> just
> >> fine.
> >> So I'm just after ulogd compiled with the mysql plugin working.
> >> (something
> >> about static linking but I have no idea what that means).
> >>
> >> Then I can build my own php/mysql interface LOL..
> >>
> >> *ugh* it's been a long day...
> >>
> >> Ad
> >> ----- Original Message -----
> >> From: "Adam Niedzwiedzki" <[EMAIL PROTECTED]>
> >> To: <leaf-user@lists.sourceforge.net>
> >> Sent: Wednesday, June 29, 2005 2:52 PM
> >> Subject: Re: [leaf-user] lets talk about something--anything!
> >>
> >> > Hmm how about someone compiling a ulogd module for bering-uclibc that
> >>
> >> has
> >>
> >> > mysql support so I can have shorewall log packets to mysql :)
> >> > Could make some very nice php web graphing to go with it..
> >> >
> >> > *grin*
> >> >
> >> > I have tried but not being a programmer, really have no idea what I'm
> >> > doing
> >> >
> >> > Cheers
> >> > Ad
> >> >
> >> >
> >> > -------------------------------------------------------
> >> > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> >> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> >> > informative Webcasts and more! Get everything you need to get up to
> >> > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> >>
> >> ------------------------------------------------------------------------
> >>
> >> > leaf-user mailing list: leaf-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/leaf-user
> >> > Support Request -- http://leaf-project.org/
> >>
> >> -------------------------------------------------------
> >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> >> from IBM. Find simple to follow Roadmaps, straightforward articles,
> >> informative Webcasts and more! Get everything you need to get up to
> >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> >> ------------------------------------------------------------------------
> >> leaf-user mailing list: leaf-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/leaf-user
> >> Support Request -- http://leaf-project.org/
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> ------------------------------------------------------------------------
> leaf-user mailing list: leaf-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to