Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
netcount 8c installation ( Counts the ip Traffic of ppp0 )
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fred24
n00b
n00b


Joined: 09 Feb 2004
Posts: 5

PostPosted: Sun Mar 14, 2004 1:09 pm    Post subject: netcount 8c installation ( Counts the ip Traffic of ppp0 ) Reply with quote

Does somebody has installed successfully the netcount software (Version 8c or earlier) for which still no emerge package available.

I modified the config.make
and added the following lines

IP_UP_GENTOO = /etc/ppp/ip-up
IP_DOWN_GENTOO = /etc/ppp/ip-down
INIT_GENTOO = /etc/runlevels/default


Further I added into the Makefile

ifneq ($(shell grep -i gentoo /etc/issue),)
DIST = GENTOO
endif


####### GENTOO
else
ifeq ($(DIST), GENTOO)
$(IP_UP_GENTOO): netcount-ip-up-local
./add-script.sh $< $@ netcount
chmod +x $@

$(IP_DOWN_GENTOO): netcount-ip-down-local
./add-script.sh $< $@ netcount
chmod +x $@

$(INIT_GENTOO): netcount-init
./add-script.sh $< $@ netcount
chmod +x $@

dist-objects = $(RCRONDIR)/netcount $(IP_UP_GENTOO) $(IP_DOWN_GENTOO) \
$(INIT_GENTOO)

uninstall:
rm -f $(RCRONDIR)/netcount $(common-objects)
@echo
@echo
@echo '*****'
@echo Please check $(IP_UP_GENTOO), $(IP_DOWN_GENTOO),
@echo and $(INIT_GENTOO) manually for specially marked
@echo netcount-specific content and remove it.


-e s:@IP_DOWN_GENTOO@:$(IP_DOWN_GENTOO):g \
-e s:@IP_UP_GENTOO@:$(IP_UP_GENTOO):g \
-e s:@INIT_GENTOO@:$(INIT_GENTOO):g \

----------------------------------------------------------------------------

By starting the installation I get the error.

# make install GENTOO

Makefile:171: *** Illegal or no value for DIST. Please read the file INSTALL, and run make according to the instructions found there. Stop.

In the area of the line 171 is:

######## No valid distribution given
else
$(error Illegal or no value for DIST. \
Please read the file INSTALL, and run make \
according to the instructions found there)
endif
endif
endif
endif


Homepage:
http://www.hczim.de/software/index.html
Tar/GZ:
http://www.hczim.de/software/netcount-0.8c.tar.gz

Pleas help ich somebody uses the netcount toll.
Back to top
View user's profile Send private message
fred24
n00b
n00b


Joined: 09 Feb 2004
Posts: 5

PostPosted: Sat Mar 20, 2004 9:55 pm    Post subject: installation works ! Reply with quote

I found the error.
I forgot to add an endif.

To Install the netcount8.c type:
# make install DIST="GENTOO"


The diff shows the original netcount8.c Makefile an the modifed one.

# diff Makefile ../netcount-0.8c/Makefile
36,38d35
< ifneq ($(shell grep -i gentoo /etc/issue),)
< DIST = GENTOO
< endif
40c37
< DIST = slackware
---
> DIST = MANDRAKE
54a52
>
140,168d137
<
< ####### GENTOO
< else
< ifeq ($(DIST), GENTOO)
< $(IP_UP_GENTOO): netcount-ip-up-local
< ./add-script.sh $< $@ netcount
< chmod +x $@
<
< $(IP_DOWN_GENTOO): netcount-ip-down-local
< ./add-script.sh $< $@ netcount
< chmod +x $@
<
< $(INIT_GENTOO): netcount-init
< ./add-script.sh $< $@ netcount
< chmod +x $@
<
< dist-objects = $(RCRONDIR)/netcount $(IP_UP_GENTOO) $(IP_DOWN_GENTOO) \
< $(INIT_GENTOO)
<
< uninstall:
< rm -f $(RCRONDIR)/netcount $(common-objects)
< @echo
< @echo
< @echo '*****'
< @echo Please check $(IP_UP_GENTOO), $(IP_DOWN_GENTOO),
< @echo and $(INIT_GENTOO) manually for specially marked
< @echo netcount-specific content and remove it.
<
<
174d142
< endif
263,265d230
< -e s:@IP_DOWN_GENTOO@:$(IP_DOWN_GENTOO):g \
< -e s:@IP_UP_GENTOO@:$(IP_UP_GENTOO):g \
< -e s:@INIT_GENTOO@:$(INIT_GENTOO):g \


###############

have fun and be nice
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum