1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
- deb:
- mkdir -p debian/libwolfssl/DEBIAN debian/libwolfssl-dev/DEBIAN
- make install exec_prefix=$(CURDIR)/debian/libwolfssl/usr \
- prefix=$(CURDIR)/debian/libwolfssl-dev/usr
- fakeroot dh_makeshlibs
- dh_shlibdeps
- dh_installdeb
- fakeroot dh_gencontrol
- @rm -rf debian/libwolfssl-dev/usr/share/doc/libwolfssl-dev
- @mv debian/libwolfssl-dev/usr/share/doc/wolfssl \
- debian/libwolfssl-dev/usr/share/doc/libwolfssl-dev
- @rm -rf debian/libwolfssl-dev/usr/lib
- @mkdir -p debian/libwolfssl-dev/usr/lib
- @mv debian/libwolfssl/usr/lib/libwolfssl.so debian/libwolfssl-dev/usr/lib
- @rm -rf debian/libwolfssl/usr/share/doc/libwolfssl
- @mkdir -p debian/libwolfssl/usr/share/doc/libwolfssl
- @gzip -n -9 -c debian/changelog | \
- tee debian/libwolfssl/usr/share/doc/libwolfssl/changelog.gz > \
- debian/libwolfssl-dev/usr/share/doc/libwolfssl-dev/changelog.gz
- @cp debian/copyright debian/libwolfssl/usr/share/doc/libwolfssl
- @cp debian/copyright debian/libwolfssl-dev/usr/share/doc/libwolfssl-dev
- @rm debian/libwolfssl/usr/lib/libwolfssl.la
- @strip --strip-unneeded debian/libwolfssl/usr/lib/libwolfssl.so.*.*.*
- @rm -rf debian/libwolfssl/usr/lib/$(DEB_HOST_MULTIARCH)
- @mkdir -p debian/libwolfssl/usr/lib/$(DEB_HOST_MULTIARCH)
- @mv debian/libwolfssl/usr/lib/pkgconfig \
- debian/libwolfssl/usr/lib/$(DEB_HOST_MULTIARCH)
- @chmod 644 debian/libwolfssl/usr/lib/libwolfssl.so.*.*.*
- @chmod 644 debian/libwolfssl/usr/share/doc/libwolfssl/changelog.gz \
- debian/libwolfssl/usr/share/doc/libwolfssl/copyright \
- debian/libwolfssl-dev/usr/share/doc/libwolfssl-dev/changelog.gz \
- debian/libwolfssl-dev/usr/share/doc/libwolfssl-dev/copyright
- @find debian/libwolfssl*/usr -type d | xargs chmod 755
- # Generate debs
- dpkg-deb --root-owner-group -b debian/libwolfssl .
- dpkg-deb --root-owner-group -b debian/libwolfssl-dev .
- lintian *.deb --fail-on error,warning --tag-display-limit 0 \
- --suppress-tags no-manual-page,package-name-doesnt-match-sonames
- make deb-clean
- deb-docker:
- docker build -t "debian-builder:Dockerfile" Docker/packaging/debian
- docker run --rm -v $(CURDIR):/opt/wolfssl debian-builder:Dockerfile \
- bash -c 'cd /opt/wolfssl && ./config.status --recheck && make deb && \
- make clean deb-clean &> /dev/null'
- @./config.status --recheck &> /dev/null
- deb-clean:
- rm -rf debian/libwolfssl debian/libwolfssl-dev debian/files \
- debian/*.substvars debian/.debhelper
|