diff --git a/Makefile.am b/Makefile.am index ca3b2b23..cd861141 100644 --- a/Makefile.am +++ b/Makefile.am @@ -97,8 +97,7 @@ fpm -s dir -t $1 -n core-gui \ endef .PHONY: fpm -fpm: - rm -f *.deb && rm -f *.rpm +fpm: clean-local-fpm $(call fpm-gui,rpm,-d "tkimg") $(call fpm-gui,deb,-d "libtk-img") $(call fpm-python,rpm,daemon/ns3/setup.py) @@ -129,6 +128,11 @@ fpm: --deb-recommends quagga \ daemon/src/setup.py daemon/setup.py +.PHONY: clean-local-fpm +clean-local-fpm: + -rm -rf *.deb + -rm -rf *.rpm + .PHONY: core-restart core-restart: /etc/init.d/core-daemon stop @@ -136,6 +140,8 @@ core-restart: rm -f /var/log/core-daemon.log /etc/init.d/core-daemon start +clean-local: clean-local-fpm + .version: Makefile echo $(CORE_VERSION) > $@ diff --git a/daemon/core/constants.py.in b/daemon/core/constants.py.in index f5d05780..1e5db2b6 100644 --- a/daemon/core/constants.py.in +++ b/daemon/core/constants.py.in @@ -4,7 +4,8 @@ CORE_STATE_DIR = "@CORE_STATE_DIR@" CORE_CONF_DIR = "@CORE_CONF_DIR@" CORE_DATA_DIR = "@CORE_DATA_DIR@" CORE_LIB_DIR = "@CORE_LIB_DIR@" -CORE_SBIN_DIR = "@BINDIR@" +CORE_SBIN_DIR = "@SBINDIR@" +CORE_BIN_DIR = "@BINDIR@" BRCTL_BIN = "@brctl_path@/brctl" SYSCTL_BIN = "@sysctl_path@/sysctl" diff --git a/daemon/core/netns/vnode.py b/daemon/core/netns/vnode.py index 3f50d028..3879c5e1 100644 --- a/daemon/core/netns/vnode.py +++ b/daemon/core/netns/vnode.py @@ -73,7 +73,7 @@ class SimpleLxcNode(PyCoreNode): """ if self.up: raise Exception("already up") - vnoded = ["%s/vnoded" % constants.CORE_SBIN_DIR, "-v", "-c", self.ctrlchnlname, + vnoded = ["%s/vnoded" % constants.CORE_BIN_DIR, "-v", "-c", self.ctrlchnlname, "-l", self.ctrlchnlname + ".log", "-p", self.ctrlchnlname + ".pid"] if self.nodedir: diff --git a/daemon/core/netns/vnodeclient.py b/daemon/core/netns/vnodeclient.py index f20fd739..1d5fb05f 100644 --- a/daemon/core/netns/vnodeclient.py +++ b/daemon/core/netns/vnodeclient.py @@ -17,7 +17,7 @@ USE_VCMD_MODULE = True if USE_VCMD_MODULE: import vcmd -VCMD = os.path.join(constants.CORE_SBIN_DIR, "vcmd") +VCMD = os.path.join(constants.CORE_BIN_DIR, "vcmd") class VnodeClient(object):