pkgsrc/net/mrtg/patches/patch-ac
adam 3ecb6422a8 Changes 2.16.4:
* fix "P_DETACH" and Pod::Usage issues with perl 5.12
* relax cfgmaker option parsing when figuring whether to test for highspeed
  counters or not.
* fix sorting of numbered interface names index maker
* belarusian translation for mrtg 2.16

Changes 2.16.3:
* three new config options to compliment the existing
  RRDRowCount option to explicitly set the size of all RRAs
* allow to rename target in the clonedirectory option
* add import to the require File::Copy
* support multiple options in ifdesc and ifref setting for cfgmaker
* teach cfgmaker about nortel switches
* make sure rates over 4G work too
* allow group and user option to be set to roo
2010-07-09 08:45:33 +00:00

30 lines
1.6 KiB
Text

$NetBSD: patch-ac,v 1.9 2010/07/09 08:45:34 adam Exp $
--- Makefile.in.orig 2010-05-17 12:07:01.000000000 +0000
+++ Makefile.in
@@ -36,7 +36,7 @@ bin/rateup.o: $(top_srcdir)/src/rateup.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $(top_srcdir)/src/rateup.c -o bin/rateup.o
subst:
- $(PERL) -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! $(PERL)'" $(top_srcdir)/bin/cfgmaker $(top_srcdir)/bin/indexmaker $(top_srcdir)/bin/mrtg
+ $(PERL) -0777 -p -i~ -e "s@__PREFIX__@${prefix}@g" $(top_srcdir)/bin/cfgmaker $(top_srcdir)/bin/indexmaker $(top_srcdir)/bin/mrtg
$(PERL) -0777 -p -i~ -e 's@GRAPHFMT="...";@GRAPHFMT="$(GDFORM_EXT)";@' $(top_srcdir)/bin/mrtg $(top_srcdir)/bin/indexmaker
clean:
@@ -49,12 +49,12 @@ install: all
for x in $(top_srcdir)/bin/mrtg $(top_srcdir)/bin/cfgmaker $(top_srcdir)/bin/indexmaker $(top_srcdir)/bin/mrtg-traffic-sum; do \
$(INSTALL) -m 755 $$x $(DESTDIR)$(bindir); done
for x in bin/rateup; do \
- $(INSTALL) -m 755 $$x $(DESTDIR)$(bindir); done
- $(MKINSTALLDIRS) $(DESTDIR)$(libdir)/mrtg2/Pod
+ $(INSTALL) -m 755 -s $$x $(DESTDIR)$(bindir); done
+ $(MKINSTALLDIRS) $(DESTDIR)${PERL5_INSTALLVENDORLIB}/Pod
for x in $(top_srcdir)/lib/mrtg2/*.pm; do \
- $(INSTALL) -m 644 $$x $(DESTDIR)$(libdir)/mrtg2; done
+ $(INSTALL) -m 644 $$x $(DESTDIR)${PERL5_INSTALLVENDORLIB}; done
for x in $(top_srcdir)/lib/mrtg2/Pod/*.pm; do \
- $(INSTALL) -m 644 $$x $(DESTDIR)$(libdir)/mrtg2/Pod; done
+ $(INSTALL) -m 644 $$x $(DESTDIR)${PERL5_INSTALLVENDORLIB}/Pod; done
$(MKINSTALLDIRS) $(DESTDIR)$(datadir)/mrtg2/icons
for x in $(top_srcdir)/images/*.gif $(top_srcdir)/images/*.png; do \
$(INSTALL) -m 644 $$x $(DESTDIR)$(datadir)/mrtg2/icons; done