OSSP CVS Repository

ossp - Difference in ossp-pkg/snmpdx/Makefile.in versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/snmpdx/Makefile.in 1.1 -> 1.2

--- Makefile.in  2003/09/09 09:24:28     1.1
+++ Makefile.in  2003/09/09 12:50:04     1.2
@@ -28,29 +28,50 @@
 
 @SET_MAKE@
 
-SHELL       = /bin/sh
-SHTOOL      = ./shtool
-RM          = rm -f
-SED         = sed
-POD2MAN     = pod2man
-PERL        = @PATH_PERL@
-
-prefix      = @prefix@
-exec_prefix = @exec_prefix@
-bindir      = @bindir@
-libdir      = @libdir@
-includedir  = @includedir@
-mandir      = @mandir@
+SHELL         = /bin/sh
+SHTOOL        = ./shtool
+RM            = rm -f
+SED           = sed
+POD2MAN       = pod2man
+PERL          = @PATH_PERL@
+              
+prefix        = @prefix@
+exec_prefix   = @exec_prefix@
+bindir        = @bindir@
+libdir        = @libdir@
+sysconfdir    = @sysconfdir@
+libexecdir    = @libexecdir@
+includedir    = @includedir@
+mandir        = @mandir@
+datadir       = @datadir@
+localstatedir = @localstatedir@
 
-DESTDIR     =
+DESTDIR       =
 
-all: snmpdx snmpdx.1
+all: snmpdx snmpdx.cfg snmpdx.1
 
 snmpdx: snmpdx.pl
         @$(SHTOOL) echo -e "%Bgenerating snmpdx%b"
-        $(SED) -e "s;#!\@PERL\@;#!$(PERL);" \
-        <snmpdx.pl >snmpdx && \
-        chmod a+x snmpdx
+        V=`$(SHTOOL) version -l txt -d short VERSION`; \
+        D=`$(SHTOOL) version -l txt -d long VERSION | $(SED) -e 's;.*(;;' -e 's;).*;;'`; \
+        $(SED) \
+                -e "s;#!\@PERL\@;#!$(PERL);" \
+                -e "s;\@V\@;$$V;" \
+                -e "s;\@D\@;$$D;" \
+                -e "s;\@sysconfdir\@;$(sysconfdir);" \
+                -e "s;\@libexecdir\@;$(libexecdir);" \
+                -e "s;\@datadir\@;$(datadir);" \
+                -e "s;\@localstatedir\@;$(localstatedir);" \
+                <snmpdx.pl >snmpdx && \
+                chmod a+x snmpdx
+
+snmpdx.cfg: snmpdx.cfg.in
+        @$(SHTOOL) echo -e "%Bgenerating snmpdx.cfg%b"
+        $(SED) \
+                -e 's;\@libexecdir\@;$(libexecdir);g' \
+                -e 's;\@datadir\@;$(datadir);g' \
+                -e 's;\@localstatedir\@;$(localstatedir);g' \
+                <snmpdx.cfg.in >snmpdx.cfg
 
 snmpdx.1: snmpdx.pod
         @$(SHTOOL) echo -e "%Bgenerating snmpdx.1%b"
@@ -61,15 +82,21 @@
 
 install: all
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
-        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(sysconfdir)
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(datadir)/snmpdx/mibs
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libexecdir)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(localstatedir)
         $(SHTOOL) install -c -m 755 snmpdx $(DESTDIR)$(bindir)/snmpdx
+        $(SHTOOL) install -c -m 644 snmpdx.cfg $(DESTDIR)$(sysconfdir)/snmpdx.cfg
+        $(SHTOOL) install -c -m 644 snmpdx.mib/*.mib $(DESTDIR)$(datadir)/snmpdx/mibs/
+        $(SHTOOL) install -c -m 644 snmpdx.d/*.pm $(DESTDIR)$(libexecdir)/
         $(SHTOOL) install -c -m 644 snmpdx.1 $(DESTDIR)$(mandir)/man1/snmpdx.1
 
 clean:
-        $(RM) snmpdx snmpdx.1
+        $(RM) snmpdx snmpdx.cfg snmpdx.1
 
 distclean: clean
         $(RM) config.cache config.status config.log
-        $(RM) Makefile config.h
+        $(RM) Makefile
 

CVSTrac 2.0.1