Skip to content

Commit a8f1906

Browse files
committed
add sswsyncd deb rules.
1 parent 9c189ff commit a8f1906

File tree

4 files changed

+116
-0
lines changed

4 files changed

+116
-0
lines changed

src/sonic-sswsyncd/debian/changelog

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
sswsyncd (0.2-8) UNRELEASED; urgency=medium
2+
3+
* Add support for Mellanox switches
4+
5+
-- Pavel Shirshov <pavelsh@microsoft.com> Wed, 13 Apr 2016 14:07:03 -0700
6+
7+
sswsyncd (0.2-7) UNRELEASED; urgency=medium
8+
9+
* build two packages: one for production, one for development with saithrift server included
10+
11+
-- Pavel Shirshov <pavelsh@microsoft.com> Wed, 06 Apr 2016 01:39:03 -0700
12+
13+
sswsyncd (0.2-6) UNRELEASED; urgency=medium
14+
15+
* add init script
16+
* consume libsai virtual package
17+
* add interface syncer
18+
* add dependency for socat in the init.d
19+
* add sswsyncd.service for systemd
20+
21+
-- Guohan Lu <gulv@microsoft.com> Fri, 17 Jul 2015 01:39:03 -0700
22+
23+
sswsyncd (0.2-2) unstable; urgency=low
24+
25+
* Initial version based on SAI
26+
27+
-- Guohan Lu <gulv@microsoft.com> Thu, 19 Feb 2015 06:37:50 -0800
28+
29+
sswsyncd (0.2-1) unstable; urgency=low
30+
31+
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
32+
33+
-- Guohan Lu <gulv@microsoft.com> Thu, 13 Nov 2014 01:08:15 -0800

src/sonic-sswsyncd/debian/compat

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

src/sonic-sswsyncd/debian/control

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Source: sswsyncd
2+
Section: main
3+
Priority: extra
4+
Maintainer: Guohan Lu <gulv@microsoft.com>
5+
Build-Depends: debhelper (>= 8.0.0)
6+
Standards-Version: 3.9.3
7+
#Vcs-Git: git://git.debian.org/collab-maint/ssw.git
8+
#Vcs-Browser: http://git.debian.org/?p=collab-maint/ssw.git;a=summary
9+
10+
Package: sswsyncd
11+
Architecture: amd64
12+
Depends: libsai, python-tabulate, ifupdown, ${shlibs:Depends}, ${misc:Depends}
13+
Conflicts: sswsyncd-saithrift
14+
Description: AzureCloudSwitch route sync daemon
15+
16+
Package: sswsyncd-saithrift
17+
Architecture: amd64
18+
Depends: libsai, python-tabulate, ifupdown, ${shlibs:Depends}, ${misc:Depends}
19+
Conflicts: sswsyncd
20+
Description: AzureCloudSwitch route sync daemon

src/sonic-sswsyncd/debian/rules

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
8+
9+
# Uncomment this to turn on verbose mode.
10+
#export DH_VERBOSE=1
11+
12+
PACKAGES += sswsyncd
13+
14+
BUILDFLAGS_sswsyncd =
15+
16+
.PHONY: clean
17+
18+
binary: binary-arch
19+
20+
binary-arch: binary-arch-sswsyncd
21+
22+
binary-arch-sswsyncd: install-stamp-sswsyncd
23+
dh_testdir
24+
dh_testroot
25+
dh_systemd_enable -p $*
26+
dh_installinit -p $* --name=sswsyncd
27+
dh_installdocs -p $*
28+
dh_installchangelogs -p $*
29+
dh_perl -p $*
30+
dh_link -p $*
31+
dh_compress -p $*
32+
dh_fixperms -p $*
33+
dh_strip -p $*
34+
dh_makeshlibs -p $*
35+
dh_shlibdeps -p $* -- -xlibsaibcm
36+
dh_installdeb -p $*
37+
dh_gencontrol -p $*
38+
dh_md5sums -p $*
39+
dh_builddeb -p $*
40+
41+
install-stamp-sswsyncd: DESTDIR=$(CURDIR)/debian/sswsyncd
42+
install-stamp-sswsyncd: build-stamp-sswsyncd
43+
dh_testdir
44+
dh_testroot
45+
@echo "!!! INSTALLING PACKAGE $*"
46+
cp $(CURDIR)/debian/dirs.tmpl $(CURDIR)/debian/$*.dirs
47+
dh_installdirs -p $*
48+
$(MAKE) install DESTDIR=$(DESTDIR)
49+
touch $@
50+
51+
build-stamp-sswsyncd: BUILDFLAGS=$(BUILDFLAGS_sswsyncd)
52+
build-stamp-sswsyncd:
53+
dh_testdir
54+
dh_prep -p $*
55+
@echo "!!! BUILDING PACKAGE $*"
56+
$(MAKE) clean
57+
$(MAKE) $(BUILDFLAGS)
58+
touch $@
59+
60+
clean:
61+
rm -f *-stamp*
62+
dh_clean

0 commit comments

Comments
 (0)