aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules11
1 files changed, 8 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index 42e58bad..23e7b075 100755
--- a/debian/rules
+++ b/debian/rules
@@ -155,9 +155,14 @@ binary-arch:
BN=$$(basename $${lib}); \
VER=$$(echo $${BN} | sed -e 's/^.*\.so\.//'); \
LN=$$(echo $${BN} | sed -e 's/\.so\.[0-9]*$$//' | tr '_' '-'); \
- echo "moving $${lib} for library $${LN}$${VER}"; \
- mkdir -p debian/$${LN}$${VER}/$(LIBDIR); \
- mv $${lib} debian/$${LN}$${VER}/$(LIBDIR); \
+ if echo $${LN} | grep -q ".*[0-9]$$"; then \
+ PKG=$${LN}-$${VER}; \
+ else \
+ PKG=$${LN}$${VER}; \
+ fi; \
+ echo "moving $${lib} for library $${PKG}"; \
+ mkdir -p debian/$${PKG}/$(LIBDIR); \
+ mv $${lib} debian/$${PKG}/$(LIBDIR); \
done
# Package: dpdk-igb-uio-dkms
mkdir -p debian/dpdk-igb-uio-dkms/usr/src/dpdk-igb-uio-$(VERSION)