daemon: Use autoconf to build the vnoded, vcmd, and netns programs.

This commit is contained in:
tgoff0 2015-02-20 03:10:56 +00:00
parent b41523216f
commit cb93153007
2 changed files with 1 additions and 7 deletions

View file

@ -34,18 +34,13 @@ libnetns_a_SOURCES = netnsmodule.c vcmdmodule.c
libnetns.a: libnetns.a:
SBINDIR=@SBINDIR@ LDFLAGS="$(LDFLAGS) @libev_LIBS@" CFLAGS="$(CFLAGS) @libev_CFLAGS@" $(PYTHON) setup.py build SBINDIR=@SBINDIR@ LDFLAGS="$(LDFLAGS) @libev_LIBS@" CFLAGS="$(CFLAGS) @libev_CFLAGS@" $(PYTHON) setup.py build
install: install-exec-hook
# Python libraries install # Python libraries install
install-exec-hook: install-exec-local:
SBINDIR=${DESTDIR}/@SBINDIR@ $(PYTHON) setup.py install --prefix=${DESTDIR}/${pyprefix} --install-purelib=${DESTDIR}/${pythondir} --install-platlib=${DESTDIR}/${pyexecdir} --no-compile SBINDIR=${DESTDIR}/@SBINDIR@ $(PYTHON) setup.py install --prefix=${DESTDIR}/${pyprefix} --install-purelib=${DESTDIR}/${pythondir} --install-platlib=${DESTDIR}/${pyexecdir} --no-compile
#python setup.py install --prefix=${DESTDIR}${PYTHON_PREFIX} #python setup.py install --prefix=${DESTDIR}${PYTHON_PREFIX}
# Python libraries uninstall # Python libraries uninstall
uninstall-hook: uninstall-hook:
rm -f ${sbindir}/vnoded
rm -f ${sbindir}/vcmd
rm -f ${sbindir}/netns
rm -f ${pyexecdir}/core_python_netns-1.0-py${PYTHON_VERSION}.egg-info rm -f ${pyexecdir}/core_python_netns-1.0-py${PYTHON_VERSION}.egg-info
rm -f ${pyexecdir}/netns.so rm -f ${pyexecdir}/netns.so
rm -f ${pyexecdir}/vcmd.so rm -f ${pyexecdir}/vcmd.so

View file

@ -20,7 +20,6 @@ setup(name = "core-python-netns",
version = "1.0", version = "1.0",
description = "Extension modules to support virtual nodes using " \ description = "Extension modules to support virtual nodes using " \
"Linux network namespaces", "Linux network namespaces",
data_files = [("sbin", ('vcmd', 'vnoded', 'netns')), ],
ext_modules = [netns, vcmd], ext_modules = [netns, vcmd],
url = "http://www.nrl.navy.mil/itd/ncs/products/core", url = "http://www.nrl.navy.mil/itd/ncs/products/core",
author = "Boeing Research & Technology", author = "Boeing Research & Technology",