sgwdynspeed: install example speed config file in DOCDIR_OLSRD
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 08:00:37 +0000 (10:00 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 13:06:59 +0000 (15:06 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/sgwdynspeed/Makefile
lib/sgwdynspeed/doc/olsrd.conf.default.sgwdynspeed [moved from lib/sgwdynspeed/resources/olsrd.conf.default.pud with 99% similarity]

index d012702..811d872 100644 (file)
@@ -34,14 +34,14 @@ $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
 
 install: all
        $(INSTALL_LIB)
-       mkdir -p "$(ETCDIR)"
-       cp "$(RESOURCESDIR)/olsrd.sgw.speed.conf" "$(ETCDIR)"
+       mkdir -p "$(DOCDIR_OLSRD)"
+       cp "$(RESOURCESDIR)/olsrd.sgw.speed.conf" "$(DOCDIR_OLSRD)"
        $(STRIP) "$(LIBDIR)/$(PLUGIN_FULLNAME)"
 
 uninstall:
-       rm -f "$(LIBDIR)/lib$(PLUGIN_NAME).so" "$(LIBDIR)/$(PLUGIN_NAME)" "$(ETCDIR)/olsrd.sgw.speed.conf"
+       rm -f "$(LIBDIR)/lib$(PLUGIN_NAME).so" "$(LIBDIR)/$(PLUGIN_NAME)" "$(DOCDIR_OLSRD)/olsrd.sgw.speed.conf"
        $(UNINSTALL_LIB)
-       rmdir -v -p --ignore-fail-on-non-empty "$(LIBDIR)" "$(ETCDIR)"
+       rmdir -v -p --ignore-fail-on-non-empty "$(LIBDIR)" "$(DOCDIR_OLSRD)"
 
 clean:
        @echo "[$@]"
@@ -486,7 +486,8 @@ LoadPlugin "./lib/sgwdynspeed/olsrd_sgwdynspeed.so.1.0.0"
 {
   # Specifies the file to watch for (dynamic) values for SmartGatewaySpeed.
   # If not specified then no watching is performed.
-  # (default is unspecified)
+  # It has no default, but an example file is available:
+  #   /usr/share/doc/olsrd/olsrd.sgw.speed.conf
 
   # PlParam "speedFile" ""