File tree 10 files changed +80
-0
lines changed
10 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 25
25
test :
26
26
make -C test
27
27
28
+ saithrift-build :
29
+ make -C test/saithrift
30
+
31
+ saithrift-install : saithrift-build
32
+ make -C test/saithrift install
33
+
28
34
clean :
29
35
make -C test clean
Original file line number Diff line number Diff line change
1
+ saithrift (0.9.4) stable; urgency=medium
2
+
3
+ * Initial release.
4
+
5
+ -- Pavel Shirshov <
[email protected] > Fri, 24 Mar 2017 14:23:00 -0800
Original file line number Diff line number Diff line change
1
+ 9
Original file line number Diff line number Diff line change
1
+ Source: saithrift
2
+ Maintainer: Pavel Shirshov <
[email protected] >
3
+ Section: net
4
+ Priority: optional
5
+ Build-Depends: dh-exec (>=0.3), debhelper (>= 9)
6
+ Standards-Version: 0.9.4
7
+
8
+ Package: libsaithrift-dev
9
+ Architecture: any
10
+ Depends: ${shlibs:Depends}
11
+ Description: This package contains SAI rpc library development headers
12
+
13
+ Package: python-saithrift
14
+ Architecture: any
15
+ Depends: ${shlibs:Depends}
16
+ Description: This package contains python SAI rpc library.
Original file line number Diff line number Diff line change
1
+ /usr/include
2
+ /usr/lib
Original file line number Diff line number Diff line change
1
+ debian/usr/include/switch_sai_rpc_server.h usr/include
2
+ debian/usr/lib/librpcserver.a usr/lib
Original file line number Diff line number Diff line change
1
+ /usr/local/lib
Original file line number Diff line number Diff line change
1
+ debian/usr/local/lib/python2.7/site-packages/* usr/include/local/lib/python2.7/site-packages
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/make -f
2
+
3
+ # See debhelper(7) (uncomment to enable)
4
+ # output every command that modifies files on the build system.
5
+ export DH_VERBOSE = 1
6
+
7
+ # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
8
+ DPKG_EXPORT_BUILDFLAGS = 1
9
+ include /usr/share/dpkg/default.mk
10
+
11
+ # see FEATURE AREAS in dpkg-buildflags(1)
12
+ # export DEB_BUILD_MAINT_OPTIONS = hardening=+all
13
+
14
+ # see ENVIRONMENT in dpkg-buildflags(1)
15
+ # package maintainers to append CFLAGS
16
+ # export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
17
+ # package maintainers to append LDFLAGS
18
+ # export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
19
+
20
+
21
+ # main packaging script based on dh7 syntax
22
+ % :
23
+ dh $@
24
+
25
+ override_dh_auto_build :
26
+ $(MAKE ) DESTDIR=$(CURDIR ) /debian saithrift-build
27
+
28
+ override_dh_auto_install :
29
+ $(MAKE ) DESTDIR=$(CURDIR ) /debian saithrift-install
30
+
31
+ override_dh_auto_test :
32
+
33
+ override_dh_auto_clean :
34
+ dh_auto_clean
35
+ rm -rf * .egg-info
36
+
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ SAI_PY_HEADERS = \
51
51
src/gen-py/switch_sai/sai_headers.py
52
52
53
53
MKDIR_P = mkdir -p
54
+ INSTALL := /usr/bin/install
54
55
55
56
all : directories $(ODIR ) /librpcserver.a saiserver clientlib
56
57
@@ -85,5 +86,14 @@ saiserver: $(ODIR)/saiserver.o $(ODIR)/librpcserver.a
85
86
$(CXX ) $(LDFLAGS ) $(ODIR ) /switch_sai_rpc_server.o $(ODIR ) /saiserver.o -o $@ \
86
87
$(ODIR ) /librpcserver.a $(LIBS )
87
88
89
+ install-lib : $(ODIR ) /librpcserver.a
90
+ $(INSTALL ) -D $(ODIR ) /librpcserver.a $(DESTDIR ) /usr/lib/librpcserver.a
91
+ $(INSTALL ) -D $(SRC ) /switch_sai_rpc_server.h $(DESTDIR ) /usr/include/switch_sai_rpc_server.h
92
+
93
+ install-pylib : $(PY_SOURCES ) $(SAI_PY_HEADERS )
94
+ python setup.py install --prefix $(DESTDIR ) /usr/local$(prefix )
95
+
96
+ install : install-lib install-pylib
97
+
88
98
clean :
89
99
rm -rf $(ODIR ) $(SRC ) /gen-cpp $(SRC ) /gen-py saiserver dist
You can’t perform that action at this time.
0 commit comments