Skip to content

Commit 02ad919

Browse files
johnarnoldShuotian Cheng
authored and
Shuotian Cheng
committed
packaging: Adding debian packaging (debian/*)
Signed-off-by: John Arnold <johnar@microsoft.com>
1 parent 3181872 commit 02ad919

12 files changed

+89
-0
lines changed

debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sonic (1.0.0) stable; urgency=medium
2+
3+
* Initial release.
4+
5+
-- Shuotian Cheng <shuche@microsoft.com> Wed, 09 Mar 2016 12:00:00 -0800
6+

debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Source: sonic
2+
Maintainer: Shuotian Cheng <shuche@microsoft.com>
3+
Section: net
4+
Priority: optional
5+
Build-Depends: dh-exec (>=0.3), debhelper (>= 9), autotools-dev
6+
Standards-Version: 1.0.0
7+
8+
Package: swss
9+
Architecture: any
10+
Depends: ${shlibs:Depends}
11+
Description: This package contains Switch State Service for SONiC project.
12+
13+
Package: libswsscommon
14+
Architecture: any
15+
Section: libs
16+
Description: Tihs package contains Switch State Service common library.
17+
18+
Package: libswsscommon-dev
19+
Architecture: any
20+
Depends: libswsscommon (= ${binary:Version})
21+
Section: libdevel
22+
Description: This package contains development files for Switch State Service.
23+

debian/libswsscommon-dev.dirs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
usr/lib
2+
usr/include

debian/libswsscommon-dev.install

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
common/*.h usr/include/swss

debian/libswsscommon-dev.links

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /usr/bin/dh-exec
2+
/usr/lib/${DEB_HOST_MULTIARCH}/libswsscommon.so.0 /usr/lib/${DEB_HOST_MULTIARCH}/libswsscommon.so

debian/libswsscommon.dirs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/lib

debian/libswsscommon.install

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/lib/*/lib*.so.*

debian/rules

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/make -f
2+
# See debhelper(7) (uncomment to enable)
3+
# output every command that modifies files on the build system.
4+
#export DH_VERBOSE = 1
5+
6+
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7+
DPKG_EXPORT_BUILDFLAGS = 1
8+
include /usr/share/dpkg/default.mk
9+
10+
# see FEATURE AREAS in dpkg-buildflags(1)
11+
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12+
13+
# see ENVIRONMENT in dpkg-buildflags(1)
14+
# package maintainers to append CFLAGS
15+
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
16+
# package maintainers to append LDFLAGS
17+
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
18+
19+
20+
# main packaging script based on dh7 syntax
21+
%:
22+
dh $@ --with autotools-dev
23+
24+
# dh_make generated override targets
25+
# This is example for Cmake (See https://bugs.debian.org/641051 )
26+
#override_dh_auto_configure:
27+
# dh_auto_configure -- \
28+
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
29+
30+
override_dh_auto_configure:
31+
dh_auto_configure -- --with-fpm=fpm/
32+
33+
override_dh_auto_install:
34+
dh_auto_install

debian/swss.dirs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/bin

debian/swss.install

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/bin/*

package.cfg

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"description": "This package contains Switch State Service for SONiC project.",
3+
"version": "1.0.0",
4+
"maintainer": "Shuotian Cheng <shuche@microsoft.com>",
5+
"build_depends": [ ],
6+
"packages": [
7+
{
8+
"name": "sonic-swss",
9+
"dependencies": [
10+
],
11+
"files": [
12+
]
13+
}
14+
]
15+
}
16+

0 commit comments

Comments
 (0)