Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
README.rpm.md | H A D | 26-May-2020 | 1.3 KiB | 50 | 38 | |
build-rpm.sh | H A D | 26-May-2020 | 803 | 38 | 24 | |
rpm.spec.in | H A D | 26-May-2020 | 1.5 KiB | 58 | 46 |
README.rpm.md
1## Building a Google-Authenticator RPM 2 3Please note the RPM does not require QR-Encode as a dependency, 4As technically the module builds fine without it. But in all likely- 5hood you will need it in an actual deployment. Building a QR-Encode 6RPM is outside the scope of this documentation, see the in-repo 7documentation for instructions. https://github.com/fukuchi/libqrencode 8 9If you are using RPMs in your testing a new build number option has 10been added to the spec file IE: --define '_release #' to where # is 11a build number. This will generate a RPM in the namespace: 12google-authenticator-1.01-#.el6.x86_64.rpm where # is your specified 13build number. If no _release is set the build is defaulted to 1. 14Example: 15 16``` 17rpmbuild -ba contrib/rpm.spec --define '_release 8' 18``` 19 20This will generate an rpm of: 21 22``` 23google-authenticator-1.01-8.el6.x86_64.rpm 24``` 25 26### Requirements 27 28 * gcc 29 * libtool 30 * autoconf 31 * automake 32 * libpam-devel 33 * rpm-builder 34 * qr-encode (optional) 35 36 37### Process 38 39```shell 40git clone https://github.com/google/google-authenticator.git 41cd google-authenticator/libpam 42./bootstrap.sh 43./configure 44make dist 45cp google-autheticator-#.##.tar.gz ~/rpmbuild/SOURCES/ 46rpmbuild -ba contrib/rpm.spec 47``` 48 49The script build-rpm.sh has been created to make these steps a bit easier to perform. 50