otpw: fix cross build and build with out {C,LD}FLAGS.
This commit is contained in:
parent
ae3055cb92
commit
0848daf3d1
1 changed files with 5 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
||||||
# Template file for 'otpw'
|
# Template file for 'otpw'
|
||||||
pkgname=otpw
|
pkgname=otpw
|
||||||
version=1.5
|
version=1.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
|
||||||
make_install_args="PAMLIB=/usr/lib/security/"
|
|
||||||
conf_files="/etc/pam.d/ssh-otpw"
|
conf_files="/etc/pam.d/ssh-otpw"
|
||||||
makedepends="pam-devel"
|
makedepends="pam-devel"
|
||||||
short_desc="A one-time password login package"
|
short_desc="A one-time password login package"
|
||||||
|
@ -13,6 +11,10 @@ homepage="http://www.cl.cam.ac.uk/~mgk25/otpw.html"
|
||||||
distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
|
distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
|
||||||
checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
|
checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
sed -i "/ld --shared/s,ld,$LD," Makefile
|
||||||
|
make CC=$CC LD=$LD CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
|
||||||
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
vinstall pam_otpw.so 755 /usr/lib/security
|
vinstall pam_otpw.so 755 /usr/lib/security
|
||||||
vman pam_otpw.8
|
vman pam_otpw.8
|
||||||
|
|
Loading…
Reference in a new issue