LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2009, 10:51 AM   #1
mack1e
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Editing Makefile.in and addresses.h.in for Arpwatch


Hello,
I apologize upfront for any greeness
I am trying to install arpwatch and have read the Install and ReadMe files for it and some of the directions are a bit vague:

"edit the BINDEST and MANDEST paths in Makefile.in and
the address defines in addresses.h.in. Then run ./configure (a shell
script). "configure" will determine your system attributes and
generate an appropriate Makefile and addresses.h from Makefile.in and
addresses.h.in."

I edited the Makefile.in by providing "usr/sbin" as the path but am not sure how to edit the addreses.h.in which have these prestored values:

"#define WATCHER "root"
#define WATCHEE "arpwatch (Arpwatch)"
~"

Can anyone shine some light on this?

Thank you.
 
Old 04-28-2009, 08:53 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Saying those directions are vague is putting it mildly.

Try this: in your directory containing the arpwatch source code type:
Code:
grep -R WATCHER *
Then substitute WATCHEE in the above for WATCHER.

I got
Code:
grep -R WATCHER *
addresses.h.in:#define WATCHER "root"
util.c:char *mailto=WATCHER;

grep -R WATCHEE *
addresses.h.in:#define WATCHEE "arpwatch (Arpwatch)"
util.c:char *mailfrom=WATCHEE;
You can look in "util.c" to investigate further but what the grep output tells me is that WATCHER is the address where you want mail sent. Unless you make a change it will be local mail to the root user. The WATCHEE will be the sender.
 
Old 04-30-2009, 11:00 AM   #3
mack1e
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the response (plus the snideness)but by the time I checked by I managed to figure all that out and get it installed. Now I'm trying to wrestle with the syntax and getting the contents of arp.dat to be sent as an email report.
 
Old 04-30-2009, 11:16 AM   #4
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You're welcome.
Quote:
Originally Posted by mack1e View Post
Now I'm trying to wrestle with the syntax and getting the contents of arp.dat to be sent as an email report.
And good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
editing a c program and a makefile to work with newer kernel scorpion_gr Linux - Software 9 12-16-2006 04:19 AM
editing a makefile scotoma Linux - Newbie 2 10-03-2004 01:50 PM
don't know how to use arpwatch garychan Linux - Software 0 04-27-2004 12:21 AM
editing makefile ahjamm Linux - Software 2 10-25-2003 11:59 AM
editing lm_sensors Makefile for Mandrake rose_bud4201 Linux - Software 13 02-04-2003 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration