File dcbd-0.7.31rt-rpmlint-fixes of Package dcbd
Index: dcbd-0.7.31rt/Makefile
===================================================================
--- dcbd-0.7.31rt.orig/Makefile
+++ dcbd-0.7.31rt/Makefile
@@ -101,34 +101,34 @@ lex.parse_cli.c: parse_cli.c
install: $(PROG) $(UTIL)
ifeq (,$(INSTALL_MOD_PATH))
- (test -f /etc/init.d/dcbx && service dcbx stop > /dev/null) || true
- (test -f /etc/init.d/dcbx && chkconfig --del dcbx > /dev/null) || true
+ (test -f /etc/init.d/dcbd && service dcbd stop > /dev/null) || true
+ (test -f /etc/init.d/dcbd && chkconfig --del dcbd > /dev/null) || true
endif
- find $(INSTALL_MOD_PATH)/usr/sbin/$(PROG) -exec rm -f {} \; || true
- find $(INSTALL_MOD_PATH)/usr/sbin/$(UTIL) -exec rm -f {} \; || true
- find $(INSTALL_MOD_PATH)/etc/init.d/dcbx -exec rm -f {} \; || true
+ find $(INSTALL_MOD_PATH)/usr/sbin/$(PROG) -exec rm -f {} ; &>/dev/null \; || true
+ find $(INSTALL_MOD_PATH)/usr/sbin/$(UTIL) -exec rm -f {} &>/dev/null \; || true
+ find $(INSTALL_MOD_PATH)/etc/init.d/dcbd -exec rm -f {} &>/dev/null \; || true
install -d $(INSTALL_MOD_PATH)$(DEFAULT_CFG_PATH)
install -T -D -m 755 $(PROG) $(INSTALL_MOD_PATH)/usr/sbin/$(PROG)
install -T -D -m 755 $(UTIL) $(INSTALL_MOD_PATH)/usr/sbin/$(UTIL)
- install -T -D -m 755 dcbd.init $(INSTALL_MOD_PATH)/etc/init.d/dcbx
+ install -T -D -m 755 dcbd.init $(INSTALL_MOD_PATH)/etc/init.d/dcbd
install -T -D -m 644 dcbd7 $(INSTALL_MOD_PATH)$(DEFAULT_MAN_PATH)/man7/dcbd.7
install -T -D -m 644 dcbtool7 $(INSTALL_MOD_PATH)$(DEFAULT_MAN_PATH)/man7/dcbtool.7
ifeq (,$(INSTALL_MOD_PATH))
- chkconfig --add dcbx
- service dcbx start
+ chkconfig --add dcbd
+ service dcbd start
endif
uninstall:
ifeq (,$(INSTALL_MOD_PATH))
- (test -f /etc/init.d/dcbx && service dcbx stop > /dev/null) || true
+ (test -f /etc/init.d/dcbd && service dcbd stop > /dev/null) || true
endif
- find $(INSTALL_MOD_PATH)$(DEFAULT_CFG_PATH) -exec rm -fr {} \; || true
- find $(INSTALL_MOD_PATH)/usr/sbin/$(PROG) -exec rm -f {} \; || true
- find $(INSTALL_MOD_PATH)/usr/sbin/$(UTIL) -exec rm -f {} \; || true
+ find $(INSTALL_MOD_PATH)$(DEFAULT_CFG_PATH) -exec rm -fr {} \; &>/dev/null || true
+ find $(INSTALL_MOD_PATH)/usr/sbin/$(PROG) -exec rm -f {} \; &>/dev/null || true
+ find $(INSTALL_MOD_PATH)/usr/sbin/$(UTIL) -exec rm -f {} \; &>/dev/null || true
ifeq (,$(INSTALL_MOD_PATH))
- chkconfig --del dcbx
+ chkconfig --del dcbd
endif
- find $(INSTALL_MOD_PATH)/etc/init.d/dcbx -exec rm -f {} \; || true
+ find $(INSTALL_MOD_PATH)/etc/init.d/dcbd -exec rm -f {} \; &>/dev/null || true
# clean everything
clean:
Index: dcbd-0.7.31rt/dcbd.init
===================================================================
--- dcbd-0.7.31rt.orig/dcbd.init
+++ dcbd-0.7.31rt/dcbd.init
@@ -30,15 +30,16 @@
#
################################################################################
#
-# dcbx This shell script takes care of starting and stopping
+# dcbd This shell script takes care of starting and stopping
# dcbd (DCB capabilities exchange protocol)
#
# chkconfig: 345 20 80
# description: Data Center Bridging Exchange protocol daemon
#
### BEGIN INIT INFO
-# Provides: dcbx
-# Required-Start: network
+# Provides: dcbd
+# Required-Start: $network $remote_fs
+# Required-Stop: $network $remote_fs
# Default-Start: 3 4 5
# Default-Stop:
# Description: Data Center Bridging Exchange protocol daemon