updates to target building separate packages with fpm

This commit is contained in:
Blake J. Harnden 2017-12-19 09:43:19 -08:00
parent d3210815ab
commit 58c6d03bc4
4 changed files with 89 additions and 37 deletions

View file

@ -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

View file

@ -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",

View file

@ -4,7 +4,8 @@ Defines how CORE will be built for installation.
from setuptools import setup from setuptools import setup
setup(name="core-python", setup(
name="core",
version="5.0", version="5.0",
packages=[ packages=[
"core", "core",
@ -34,4 +35,5 @@ setup(name="core-python",
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="Python scripts and modules for building virtual emulated networks.") long_description="Python scripts and modules for building virtual emulated networks."
)

View file

@ -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"
) )