updates to target building separate packages with fpm
This commit is contained in:
parent
d3210815ab
commit
58c6d03bc4
4 changed files with 89 additions and 37 deletions
52
Makefile.am
52
Makefile.am
|
@ -72,6 +72,58 @@ deb:
|
||||||
@echo "First create source archive with: dpkg-source -b core-@CORE_VERSION@"
|
@echo "First create source archive with: dpkg-source -b core-@CORE_VERSION@"
|
||||||
@echo "Then build with: pbuilder-dist precise i386 build core*.dsc"
|
@echo "Then build with: pbuilder-dist precise i386 build core*.dsc"
|
||||||
|
|
||||||
|
.PHONE: fpm
|
||||||
|
fpm:
|
||||||
|
fpm -s python -t rpm \
|
||||||
|
-m "CORE Developers <core-dev@nrl.navy.mil>" \
|
||||||
|
--vendor "CORE Developers" \
|
||||||
|
daemon/setup.py
|
||||||
|
fpm -s python -t rpm \
|
||||||
|
-m "CORE Developers <core-dev@nrl.navy.mil>" \
|
||||||
|
--vendor "CORE Developers" \
|
||||||
|
daemon/src/setup.py
|
||||||
|
fpm -s python -t rpm \
|
||||||
|
-m "CORE Developers <core-dev@nrl.navy.mil>" \
|
||||||
|
--vendor "CORE Developers" \
|
||||||
|
daemon/ns3/setup.py
|
||||||
|
|
||||||
|
.PHONY: fpm-deb
|
||||||
|
fpm-deb:
|
||||||
|
fpm -s dir -t deb -n core -v $(CORE_VERSION) -C "$DESTDIR" \
|
||||||
|
-p core_VERSION_ARCH.deb \
|
||||||
|
--license "BSD 2-clause" \
|
||||||
|
--vendor "CORE Developers" \
|
||||||
|
--description "Emulate virtual networks in a box." \
|
||||||
|
--url http://www.nrl.navy.mil/itd/ncs/products/core \
|
||||||
|
-m "CORE Developers <core-dev@nrl.navy.mil>" \
|
||||||
|
-d "procps" \
|
||||||
|
-d "libc6 >= 2.14" \
|
||||||
|
-d "bash >= 3.0" \
|
||||||
|
-d "bridge-utils" \
|
||||||
|
-d "ebtables" \
|
||||||
|
-d "iproute2" \
|
||||||
|
-d "libev4" \
|
||||||
|
-d "python >= 2.7" \
|
||||||
|
--deb-recommends quagga
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: fpm-rpm
|
||||||
|
fpm-rpm:
|
||||||
|
fpm -s dir -t rpm -n core -v $(CORE_VERSION) -C "$DESTDIR" \
|
||||||
|
-p core_VERSION_ARCH.rpm \
|
||||||
|
--license "BSD 2-clause" \
|
||||||
|
--vendor "CORE Developers" \
|
||||||
|
--description "Emulate virtual networks in a box." \
|
||||||
|
--url http://www.nrl.navy.mil/itd/ncs/products/core \
|
||||||
|
-m "CORE Developers <core-dev@nrl.navy.mil>" \
|
||||||
|
-d "procps" \
|
||||||
|
-d "bash >= 3.0" \
|
||||||
|
-d "bridge-utils" \
|
||||||
|
-d "ebtables" \
|
||||||
|
-d "iproute" \
|
||||||
|
-d "libev" \
|
||||||
|
-d "python >= 2.7"
|
||||||
|
|
||||||
.PHONY: core-restart
|
.PHONY: core-restart
|
||||||
core-restart:
|
core-restart:
|
||||||
/etc/init.d/core-daemon stop
|
/etc/init.d/core-daemon stop
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="corens3-python",
|
name="core-ns3",
|
||||||
version="5.0",
|
version="5.0",
|
||||||
packages=[
|
packages=[
|
||||||
"corens3",
|
"corens3",
|
||||||
|
|
|
@ -4,34 +4,36 @@ Defines how CORE will be built for installation.
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(name="core-python",
|
setup(
|
||||||
version="5.0",
|
name="core",
|
||||||
packages=[
|
version="5.0",
|
||||||
"core",
|
packages=[
|
||||||
"core.addons",
|
"core",
|
||||||
"core.api",
|
"core.addons",
|
||||||
"core.bsd",
|
"core.api",
|
||||||
"core.emane",
|
"core.bsd",
|
||||||
"core.misc",
|
"core.emane",
|
||||||
"core.netns",
|
"core.misc",
|
||||||
"core.phys",
|
"core.netns",
|
||||||
"core.services",
|
"core.phys",
|
||||||
"core.xen",
|
"core.services",
|
||||||
"core.xml",
|
"core.xen",
|
||||||
],
|
"core.xml",
|
||||||
install_requires=[
|
],
|
||||||
"enum34",
|
install_requires=[
|
||||||
"logzero"
|
"enum34",
|
||||||
],
|
"logzero"
|
||||||
tests_require=[
|
],
|
||||||
"pytest",
|
tests_require=[
|
||||||
"pytest-runner"
|
"pytest",
|
||||||
"pytest-cov",
|
"pytest-runner"
|
||||||
"mock"
|
"pytest-cov",
|
||||||
],
|
"mock"
|
||||||
description="Python components of CORE",
|
],
|
||||||
url="http://www.nrl.navy.mil/itd/ncs/products/core",
|
description="Python components of CORE",
|
||||||
author="Boeing Research & Technology",
|
url="http://www.nrl.navy.mil/itd/ncs/products/core",
|
||||||
author_email="core-dev@nrl.navy.mil",
|
author="Boeing Research & Technology",
|
||||||
license="BSD",
|
author_email="core-dev@nrl.navy.mil",
|
||||||
long_description="Python scripts and modules for building virtual emulated networks.")
|
license="BSD",
|
||||||
|
long_description="Python scripts and modules for building virtual emulated networks."
|
||||||
|
)
|
||||||
|
|
|
@ -26,10 +26,9 @@ vcmd = Extension(
|
||||||
)
|
)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="core-python-netns",
|
name="core-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",
|
|
||||||
ext_modules=[
|
ext_modules=[
|
||||||
netns,
|
netns,
|
||||||
vcmd
|
vcmd
|
||||||
|
@ -38,6 +37,5 @@ setup(
|
||||||
author="Boeing Research & Technology",
|
author="Boeing Research & Technology",
|
||||||
author_email="core-dev@nrl.navy.mil",
|
author_email="core-dev@nrl.navy.mil",
|
||||||
license="BSD",
|
license="BSD",
|
||||||
long_description="Extension modules and utilities to support virtual "
|
long_description="Extension modules and utilities to support virtual nodes using Linux network namespaces"
|
||||||
"nodes using Linux network namespaces"
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue