Skip to content

Commit

Permalink
packaging: Adding debian packaging (debian/*)
Browse files Browse the repository at this point in the history
Signed-off-by: John Arnold <[email protected]>
  • Loading branch information
johnarnold authored and Shuotian Cheng committed Mar 8, 2016
1 parent 3181872 commit 02ad919
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sonic (1.0.0) stable; urgency=medium

* Initial release.

-- Shuotian Cheng <[email protected]> Wed, 09 Mar 2016 12:00:00 -0800

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
23 changes: 23 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Source: sonic
Maintainer: Shuotian Cheng <[email protected]>
Section: net
Priority: optional
Build-Depends: dh-exec (>=0.3), debhelper (>= 9), autotools-dev
Standards-Version: 1.0.0

Package: swss
Architecture: any
Depends: ${shlibs:Depends}
Description: This package contains Switch State Service for SONiC project.

Package: libswsscommon
Architecture: any
Section: libs
Description: Tihs package contains Switch State Service common library.

Package: libswsscommon-dev
Architecture: any
Depends: libswsscommon (= ${binary:Version})
Section: libdevel
Description: This package contains development files for Switch State Service.

2 changes: 2 additions & 0 deletions debian/libswsscommon-dev.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib
usr/include
1 change: 1 addition & 0 deletions debian/libswsscommon-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
common/*.h usr/include/swss
2 changes: 2 additions & 0 deletions debian/libswsscommon-dev.links
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
/usr/lib/${DEB_HOST_MULTIARCH}/libswsscommon.so.0 /usr/lib/${DEB_HOST_MULTIARCH}/libswsscommon.so
1 change: 1 addition & 0 deletions debian/libswsscommon.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib
1 change: 1 addition & 0 deletions debian/libswsscommon.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/*/lib*.so.*
34 changes: 34 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


# main packaging script based on dh7 syntax
%:
dh $@ --with autotools-dev

# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

override_dh_auto_configure:
dh_auto_configure -- --with-fpm=fpm/

override_dh_auto_install:
dh_auto_install
1 change: 1 addition & 0 deletions debian/swss.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin
1 change: 1 addition & 0 deletions debian/swss.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin/*
16 changes: 16 additions & 0 deletions package.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"description": "This package contains Switch State Service for SONiC project.",
"version": "1.0.0",
"maintainer": "Shuotian Cheng <[email protected]>",
"build_depends": [ ],
"packages": [
{
"name": "sonic-swss",
"dependencies": [
],
"files": [
]
}
]
}

0 comments on commit 02ad919

Please sign in to comment.