RDEPEND="virtual/cron"
src_unpack() {
unpack ${A}
sed -i -e '/^\t$(CC) $(CFLAGS)/d' \
-e 's/^OBJS = .*$/& vnstat.o\nLDLIBS = -lm/' \
-e 's/^\(vnstat: $(OBJS)\).*/\1\n\nvnstat.o: vnstat.c vnstat.h/' \
"${S}"/src/Makefile || die "sed src/Makefile failed"
}
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "Compilation failed"