racount fix for FreeBSD
Robin Gruyters
r.gruyters at yirdis.nl
Tue Jun 20 08:33:35 EDT 2006
Hey Carter,
Like i said, it is in argus-3.0.0.rc.10 (the server, not the client) ;)
--- Makefile.in.orig Fri Jun 16 16:00:57 2006
+++ Makefile.in Tue Jun 20 14:32:17 2006
@@ -93,7 +93,7 @@
$(INSTALL) -m 0644 $(srcdir)/COPYING $(DESTDIR)$(prefix)/argus
$(INSTALL) -m 0644 $(srcdir)/COPYING $(DESTDIR)$(docdir)
- $(INSTALL) -m 0755 -D $(srcdir)/bin/argusbug
$(DESTDIR)@bindir@/argusbug
+ $(INSTALL) -m 0755 $(srcdir)/bin/argusbug $(DESTDIR)@bindir@/argusbug
[ -d $(DESTDIR)@mandir@ ] || \
(mkdir -p $(DESTDIR)@mandir@; chmod 755 $(DESTDIR)@mandir@)
Regards,
Robin
Quoting Carter Bullard <carter at qosient.com>:
> Hey Robin,
> Fixed in racount.c, but I can't find a -D anywhere in argus or the
> clients.
> Do you have a line number, diff file?
>
> The -D option for install() is suppose to create directories, when needed
> and it was offered as a solution from a Fedora shop. On MacOS X 10.4.x,
> it should be a -d.
>
> Carter
>
>
> On Jun 20, 2006, at 3:01 AM, Robin Gruyters wrote:
>
>> Hi ya,
>>
>> still one patch to go for racount.c
>>
>> --- clients/racount.c.orig Thu Jun 8 20:20:12 2006
>> +++ clients/racount.c Tue Jun 20 08:58:06 2006
>> @@ -174,7 +174,7 @@
>> } else {
>>
>> printf ("racount records total_pkts src_pkts
>> dst_pkts total_bytes src_bytes
>> dst_bytes\n");
>> -#if defined(__APPLE_CC__) || defined(__APPLE__)
>> +#if defined(__APPLE_CC__) || defined(__APPLE__) || defined(__FreeBSD__)
>> printf (" sum %-11lld %-14lld %-14lld %-14lld
>> %-18lld %-18lld %-18lld\n",
>> #else
>> printf (" sum %-11Ld %-14Ld %-14Ld %-14Ld %-18Ld
>> %-18Ld %-18Ld\n",
>>
>> Also the ${INSTALL} -D still exists in Makefile.in for
>> argus-3.0.0.rc.10. Please remove it, or tell me what is the idea
>> behind the -D option. Because FreeBSD doesn't have it.
>>
>> Regards,
>>
>> Robin Gruyters
>> Network and Security Engineer
>> Yirdis B.V.
>> I: http://yirdis.com
>> P: +31 (0)36 5300394
>> F: +31 (0)36 5489119
>>
More information about the argus
mailing list