-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dash] Add libsai-debs target to create libsai debian packages (#444)
Will create libsai and libsai-dev packages for usage in other projects
- Loading branch information
Showing
7 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.deb | ||
**/usr | ||
**/DEBIAN/md5sums |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# TODO lib directory could be changed to /usr/local/lib | ||
|
||
VERSION=1.0.0 | ||
|
||
all: debs | ||
|
||
debs: libsai-dev_$(VERSION)_amd64.deb libsai_$(VERSION)_amd64.deb | ||
|
||
libsai-dev_$(VERSION)_amd64.deb: ../SAI/inc/*.h ../SAI/experimental/*.h | ||
mkdir -p -m 755 libsai-dev_$(VERSION)_amd64/usr/include/sai | ||
find -type d |xargs chmod go-w | ||
install -vCD -m 644 ../SAI/inc/*.h libsai-dev_$(VERSION)_amd64/usr/include/sai/ | ||
install -vCD -m 644 ../SAI/experimental/*.h libsai-dev_$(VERSION)_amd64/usr/include/sai/ | ||
cd libsai-dev_$(VERSION)_amd64 && find usr -type f | xargs md5sum > DEBIAN/md5sums | ||
dpkg-deb --build --root-owner-group libsai-dev_$(VERSION)_amd64 | ||
|
||
libsai_$(VERSION)_amd64.deb: ../lib/libsai.so | ||
mkdir -p -m 755 libsai_$(VERSION)_amd64/usr/lib/x86_64-linux-gnu/ | ||
find -type d |xargs chmod go-w | ||
install -vCD ../lib/libsai.so libsai_$(VERSION)_amd64/usr/lib/x86_64-linux-gnu/libsai.so | ||
cd libsai_$(VERSION)_amd64 && find usr -type f | xargs md5sum > DEBIAN/md5sums | ||
dpkg-deb --build --root-owner-group libsai_$(VERSION)_amd64 | ||
|
||
.PHONY: clean | ||
|
||
clean: | ||
rm -f *.deb */DEBIAN/md5sums | ||
rm -rf libsai_$(VERSION)_amd64/usr libsai-dev_$(VERSION)_amd64/usr |
8 changes: 8 additions & 0 deletions
8
dash-pipeline/SAI/debian/libsai-dev_1.0.0_amd64/DEBIAN/control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Package: libsai-dev | ||
Source: dash | ||
Version: 1.0.0 | ||
Architecture: amd64 | ||
Maintainer: Kamil Cudnik <[email protected]> | ||
Section: libdevel | ||
Priority: optional | ||
Description: This package contains development files for DASH libsai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Package: libsai | ||
Source: dash | ||
Version: 1.0.0 | ||
Architecture: amd64 | ||
Maintainer: Kamil Cudnik <[email protected]> | ||
Section: libs | ||
Priority: optional | ||
Description: This package contains DASH libsai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libsai 0 libsai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
activate-noawait ldconfig |