summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-09-21 10:40:48 +0000
committerUlrich Müller <ulm@gentoo.org>2008-09-21 10:40:48 +0000
commitd5be6e129593d17f7a985d448b5b11ca2ff26718 (patch)
treed841bc72abd0d7fe39375484cbfe8371b7606df5 /sys-auth/skey
parentAdd some ppc64 love. (diff)
downloadhistorical-d5be6e129593d17f7a985d448b5b11ca2ff26718.tar.gz
historical-d5be6e129593d17f7a985d448b5b11ca2ff26718.tar.bz2
historical-d5be6e129593d17f7a985d448b5b11ca2ff26718.zip
Install skey(3) man page. Fix binary search.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686
Diffstat (limited to 'sys-auth/skey')
-rw-r--r--sys-auth/skey/ChangeLog8
-rw-r--r--sys-auth/skey/Manifest10
-rw-r--r--sys-auth/skey/files/skey-1.1.5-binary-search.patch34
-rw-r--r--sys-auth/skey/skey-1.1.5-r7.ebuild119
4 files changed, 166 insertions, 5 deletions
diff --git a/sys-auth/skey/ChangeLog b/sys-auth/skey/ChangeLog
index d3ed18eb71a3..6455a5644013 100644
--- a/sys-auth/skey/ChangeLog
+++ b/sys-auth/skey/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-auth/skey
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/skey/ChangeLog,v 1.1 2008/05/11 12:36:09 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/skey/ChangeLog,v 1.2 2008/09/21 10:40:47 ulm Exp $
+
+*skey-1.1.5-r7 (21 Sep 2008)
+
+ 21 Sep 2008; Ulrich Mueller <ulm@gentoo.org>
+ +files/skey-1.1.5-binary-search.patch, +skey-1.1.5-r7.ebuild:
+ Install skey(3) man page. Fix binary search.
11 May 2008; Ulrich Mueller <ulm@gentoo.org>
+files/skey-1.1.5-bind-now.patch, +files/skey-1.1.5-fPIC.patch,
diff --git a/sys-auth/skey/Manifest b/sys-auth/skey/Manifest
index aa4305226997..fb80170e503e 100644
--- a/sys-auth/skey/Manifest
+++ b/sys-auth/skey/Manifest
@@ -1,6 +1,7 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX skey-1.1.5-binary-search.patch 802 RMD160 aa708c92eb005469232e8ad5f77b1717638854b2 SHA1 f8043cc8b81b29ea10e83cf6a2c89e96825223e8 SHA256 1c0b10479017434f5705baa55664f221ff80e8ed295b71b868f382a0a58938c4
AUX skey-1.1.5-bind-now.patch 566 RMD160 201059b7ae654f8f12ddd3ffb33c9e2f2311a49d SHA1 ba3be6a9e8da72addc38258e07421d7b18209419 SHA256 febd27580f39bfaf8feb9b172fc144a0becd088afa02dbe96e2cb7474c9a4ef5
AUX skey-1.1.5-fPIC.patch 271 RMD160 11ba3e2eb2e8407c5e995f0ab102b08765f6b4ba SHA1 3c8efacdc4c1beb98361cc673506ad64c159dba3 SHA256 e3e7e7d0607a1e55f3b51fa322c0f4e2a8c18f691d3743f46c62f13378a131f9
AUX skey-1.1.5-otp.diff 1437 RMD160 1b8b362e7c31161e3c88730f74b941b83bbba165 SHA1 be2a685faa723662c2df6232eca36547f9463765 SHA256 b8391d0310e5d22ca303ddd13ecdb306b036bc4622e496c516c0c7b54f4540a4
@@ -8,12 +9,13 @@ AUX skey-login_name_max.diff 386 RMD160 44bc80938601c1140658d5ed343bad982e1c6ca4
DIST skey-1.1.5-gentoo.diff.gz 37614 RMD160 997002ac7e2481ec5158db3b2c7280bc80d5c95b SHA1 ea2611abefdd4a13621478a09f5771fc83ab58b6 SHA256 1f4cb9d403c2cd054a451f4d790cbeac68d31f11d0df1588c2bfb769137444a2
DIST skey-1.1.5.tar.bz2 61911 RMD160 33d97cbcd6dbc91bdca5b27056d51d1f5d06b68d SHA1 d55fb286098900cdf3eb6b174a720a06c722312a SHA256 e21bcb7c618c0bc87a72d8f0f097d7517fffa4e881a0f295ee1ce2a7dccf4aef
EBUILD skey-1.1.5-r6.ebuild 3127 RMD160 8f9c64aee424f5aa4e370c3c5599970120ccd5af SHA1 b5783de092c7dee6f045d7181c791e0fe1ab4027 SHA256 415d08ba941b2789dce299962df3dfe6ba7b6dee98beb906a240ac40f75d54b8
-MISC ChangeLog 7356 RMD160 d08a0a03bfaf413b99cf05b410e911e5ae3b13a6 SHA1 be11e69d6a15a3d233c4f34f0f597fe74e6512c4 SHA256 8d7c6414b9f32051abb5a374f1a0afde696f079ee57cdb3655466d77dfd9a8b1
+EBUILD skey-1.1.5-r7.ebuild 3368 RMD160 0c78a7c0a83cb327ecc2b8350a84a109fc4d8107 SHA1 fe640b142f858247a85311461ceb186bf167198a SHA256 4f230941abcd6d4283204ada86ea68888e41e72df79d8caa9b8185b9a59b9c03
+MISC ChangeLog 7545 RMD160 ad0a9bdb61a67f0aaef5c2f54be00490a4003b39 SHA1 b3fa8d79fd36988d73ed303571f21faeab60049b SHA256 7603724eb04845a52bc7acee69c12ddb4dc0f3d8bf102e2e03608742b47a617b
MISC metadata.xml 1439 RMD160 e282bf91434f4176ac97ae5b1fb760523ddd5528 SHA1 77c84e46e5703c5617b7f6aef0e4af96fa649a78 SHA256 1bbb0dc3131dc4681e9c1ea71502b289ac236431d5f339171948fa9c4ad29a58
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-iEYEARECAAYFAkgm6GEACgkQOeoy/oIi7uyYBQCePpu8jvw2NYQfQcM4U0eyewle
-zAIAoNXdof64idxqW9j0GYTtykbDjJci
-=7GDW
+iEYEARECAAYFAkjWJLoACgkQOeoy/oIi7uwtPQCcD+zTcuokC/bbizAbfGa7EC0n
+lhsAn3NOzLY+d20GHLBZkDI7Xu8n5C66
+=kdI0
-----END PGP SIGNATURE-----
diff --git a/sys-auth/skey/files/skey-1.1.5-binary-search.patch b/sys-auth/skey/files/skey-1.1.5-binary-search.patch
new file mode 100644
index 000000000000..47b18ba71400
--- /dev/null
+++ b/sys-auth/skey/files/skey-1.1.5-binary-search.patch
@@ -0,0 +1,34 @@
+--- skey-1.1.5-orig/put.c 2008-09-21 10:12:06.000000000 +0200
++++ skey-1.1.5/put.c 2008-09-21 10:19:54.000000000 +0200
+@@ -2206,27 +2206,17 @@
+ {
+ int i, j;
+
+- for (;;) {
++ while (low <= high) {
+ i = (low + high) / 2;
+
+ if ((j = strncmp(w, Wp[i], 4)) == 0)
+ return i; /* Found it */
+- if (high == low + 1)
+- {
+- /* Avoid effects of integer truncation in /2 */
+- if (strncmp(w, Wp[high], 4) == 0)
+- return high;
+- else
+- return -1;
+- }
+-
+- if (low >= high)
+- return -1; /* I don't *think* this can happen... */
+ if (j < 0)
+- high = i; /* Search lower half */
++ high = i - 1; /* Search lower half */
+ else
+- low = i; /* Search upper half */
++ low = i + 1; /* Search upper half */
+ }
++ return -1;
+ }
+
+ static void insert(char *s, int x, int start, int length)
diff --git a/sys-auth/skey/skey-1.1.5-r7.ebuild b/sys-auth/skey/skey-1.1.5-r7.ebuild
new file mode 100644
index 000000000000..b6af4e10ff09
--- /dev/null
+++ b/sys-auth/skey/skey-1.1.5-r7.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/skey/skey-1.1.5-r7.ebuild,v 1.1 2008/09/21 10:40:47 ulm Exp $
+
+inherit flag-o-matic ccc eutils toolchain-funcs
+
+DESCRIPTION="Linux Port of OpenBSD Single-key Password System"
+HOMEPAGE="http://www.sparc.spb.su/solaris/skey/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ mirror://gentoo/skey-1.1.5-gentoo.diff.gz"
+
+LICENSE="BSD MIT RSA-MD4 RSA-MD5 BEER-WARE"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ sys-libs/cracklib"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # porting some updates to this skey implementation from the
+ # NetBSD project, some other updates and fixes, and the addition
+ # of some new features like shadow password and cracklib support.
+ # (05 Nov 2003) -taviso@gentoo.org
+ epatch "${WORKDIR}"/skey-1.1.5-gentoo.diff
+
+ # glibc 2.2.x does not define LOGIN_NAME_MAX #33315
+ # (12 Nov 2003) -taviso@gentoo.org
+ epatch "${FILESDIR}"/skey-login_name_max.diff
+
+ epatch "${FILESDIR}"/${P}-fPIC.patch
+ epatch "${FILESDIR}"/${P}-bind-now.patch
+
+ # allow invokation as otp-foo. #71015
+ # (03 Mar 2005) -taviso.
+ epatch "${FILESDIR}"/${P}-otp.diff
+
+ # fix binary search
+ epatch "${FILESDIR}"/${P}-binary-search.patch
+
+ # set the default hash function to md5, #63995
+ # (14 Sep 2004) -taviso
+ append-flags -DSKEY_HASH_DEFAULT=1
+
+ # skeyprune wont honour @sysconfdir@
+ sed -i \
+ -e 's:/etc/skeykeys:/etc/skey/skeykeys:g' \
+ skeyprune.pl skeyprune.8 || die
+
+ # skeyprune uses a case sensitive regex to check for zeroed entries
+ sed -i \
+ -e 's:\(if ( ! /.*/\):\1i:g' \
+ skeyprune.pl || die
+
+ # skeyinit(1) describes md4 as the default hash algorithm, which
+ # is no longer the case. #64971
+ sed -i \
+ 's#\(md4\) \((the default)\), \(md5\) or \(sha1.\)#\1, \3 \2 or \4#g' \
+ skeyinit.1
+
+ # skey(3): shared library is in /lib; we don't install a profiling library
+ sed -i 's:/usr\(/lib/libskey.so\):\1:;/It.*libskey_p/{N;d;}' skey.3 || die
+}
+
+src_compile() {
+ econf --sysconfdir=/etc/skey || die
+ emake || die
+}
+
+src_install() {
+ doman skey.1 skeyaudit.1 skeyinfo.1 skeyinit.1 skey.3 skeyprune.8
+ dobin skey skeyinit skeyinfo || die
+
+ dosym skey /usr/bin/otp-md4
+ dosym skey /usr/bin/otp-sha1
+ dosym skey /usr/bin/otp-md5
+
+ newsbin skeyprune.pl skeyprune
+ newbin skeyaudit.sh skeyaudit
+
+ dolib.a libskey.a
+
+ into /
+ dolib.so libskey.so.1.1.5 libskey.so.1.1 libskey.so.1 libskey.so || die
+ gen_usr_ldscript libskey.so
+
+ insinto /usr/include
+ doins skey.h
+
+ dodir /etc/skey
+
+ # only root needs to have access to these files.
+ fperms g-rx,o-rx /etc/skey
+
+ # skeyinit and skeyinfo must be suid root so users
+ # can generate their passwords.
+ fperms u+s,og-r /usr/bin/skeyinit /usr/bin/skeyinfo
+
+ dodoc README CHANGES
+}
+
+pkg_postinst() {
+ # do not include /etc/skey/skeykeys in the package, as quickpkg
+ # may package sensitive information.
+ # This also fixes the etc-update issue with #64974.
+
+ # skeyinit will not function if this file is not present.
+ touch /etc/skey/skeykeys
+
+ # these permissions are applied by the skey system if missing.
+ chmod 0600 /etc/skey/skeykeys
+
+ elog "For an introduction into using s/key authentication, take"
+ elog "a look at the EXAMPLES section from the skey(1) manpage."
+}