|
| 1 | +wolfPKCS11 for Debian |
| 2 | +====================== |
| 3 | + |
| 4 | +This package provides the wolfPKCS11 cryptographic library with PKCS#11 interface. |
| 5 | + |
| 6 | +Building the Package |
| 7 | +-------------------- |
| 8 | + |
| 9 | +To build debian packages from source, you can use the standard debian tools: |
| 10 | + |
| 11 | +1. Install build dependencies: |
| 12 | + ``` |
| 13 | + sudo apt-get install build-essential debhelper-compat libwolfssl-dev |
| 14 | + ``` |
| 15 | + |
| 16 | +2. Build the package using dpkg-buildpackage: |
| 17 | + ``` |
| 18 | + dpkg-buildpackage -us -uc |
| 19 | + ``` |
| 20 | + |
| 21 | + Or using debuild: |
| 22 | + ``` |
| 23 | + debuild -us -uc |
| 24 | + ``` |
| 25 | + |
| 26 | +3. The resulting .deb files will be created in the parent directory. |
| 27 | + |
| 28 | +Alternative Build Method |
| 29 | +------------------------ |
| 30 | + |
| 31 | +This package also supports the legacy build method using the existing Makefile |
| 32 | +targets: |
| 33 | + |
| 34 | +``` |
| 35 | +make deb |
| 36 | +``` |
| 37 | + |
| 38 | +This method uses custom debian packaging logic built into the Makefile and may |
| 39 | +be useful for specialized builds or development purposes. |
| 40 | + |
| 41 | +Package Contents |
| 42 | +---------------- |
| 43 | + |
| 44 | +- libwolfpkcs11: The main shared library package |
| 45 | +- libwolfpkcs11-dev: Development headers and static libraries |
| 46 | + |
| 47 | +Configuration |
| 48 | +------------- |
| 49 | + |
| 50 | +The library supports various configuration options. For debian packaging, |
| 51 | +the following configure options are used by default: |
| 52 | + |
| 53 | +- --enable-debug: Enable debug support |
| 54 | +- --enable-aesecb: Enable AES ECB support |
| 55 | +- --enable-nss: Enable NSS compatibility |
| 56 | + |
| 57 | +These can be customized by modifying the debian/rules file if needed. |
| 58 | + |
| 59 | +Dependencies |
| 60 | +------------ |
| 61 | + |
| 62 | +The package depends on libwolfssl which should be available in your debian |
| 63 | +repository. If building from source, ensure libwolfssl-dev is installed. |
| 64 | + |
| 65 | +For more information about wolfPKCS11, visit: |
| 66 | +https://www.wolfssl.com/ |
| 67 | +https://github.com/wolfSSL/wolfPKCS11 |
| 68 | + |
| 69 | + -- wolfSSL <support@wolfssl.com> |
0 commit comments