2015-02-03 11:26:32 +01:00
|
|
|
# Template file for 'otpw'
|
|
|
|
pkgname=otpw
|
|
|
|
version=1.5
|
2015-02-03 11:58:19 +01:00
|
|
|
revision=3
|
2015-02-03 11:26:32 +01:00
|
|
|
conf_files="/etc/pam.d/ssh-otpw"
|
|
|
|
makedepends="pam-devel"
|
|
|
|
short_desc="A one-time password login package"
|
|
|
|
maintainer="Duncan Overbruck <mail@duncano.de>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://www.cl.cam.ac.uk/~mgk25/otpw.html"
|
|
|
|
distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
|
|
|
|
checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
|
|
|
|
|
2015-02-03 11:44:39 +01:00
|
|
|
do_build() {
|
2015-02-03 11:58:19 +01:00
|
|
|
sed -i "s|ld --shared|$CC -shared|" Makefile
|
|
|
|
make CC=$CC LD=$LD CFLAGS="$CFLAGS -fPIC" ${makejobs}
|
2015-02-03 11:44:39 +01:00
|
|
|
}
|
2015-02-03 11:26:32 +01:00
|
|
|
do_install() {
|
|
|
|
vinstall pam_otpw.so 755 /usr/lib/security
|
|
|
|
vman pam_otpw.8
|
|
|
|
vinstall $FILESDIR/ssh-otpw 644 /etc/pam.d
|
|
|
|
vbin otpw-gen
|
|
|
|
vman otpw-gen.1
|
|
|
|
}
|