/[gentoo-x86]/sys-auth/skey/skey-1.1.5-r8.ebuild
Gentoo

Contents of /sys-auth/skey/skey-1.1.5-r8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Jan 19 20:08:26 2014 UTC (11 months, 1 week ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -3 lines
Add arm64 love.

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/skey/skey-1.1.5-r8.ebuild,v 1.11 2012/11/04 20:24:14 ulm Exp $
4
5 EAPI=4
6
7 inherit flag-o-matic eutils toolchain-funcs
8
9 DESCRIPTION="Linux Port of OpenBSD Single-key Password System"
10 HOMEPAGE="http://www.openbsd.org/faq/faq8.html#SKey"
11 SRC_URI="mirror://gentoo/${P}.tar.bz2
12 mirror://gentoo/${P}-patches-2.tar.xz"
13
14 LICENSE="BSD MIT RSA BEER-WARE"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
17 IUSE="static-libs"
18
19 DEPEND="dev-lang/perl
20 app-arch/xz-utils"
21 RDEPEND="dev-lang/perl
22 sys-libs/cracklib"
23
24 src_prepare() {
25 EPATCH_SUFFIX=patch epatch
26 }
27
28 src_configure() {
29 tc-export CC
30 econf --sysconfdir=/etc/skey
31 }
32
33 src_install() {
34 into /
35 dolib.so libskey.so{.${PV},.${PV%.*},.${PV%%.*},}
36
37 into /usr
38 dobin skey skeyinit skeyinfo
39 newbin skeyaudit.sh skeyaudit
40 newsbin skeyprune.pl skeyprune
41
42 dosym skey /usr/bin/otp-md4
43 dosym skey /usr/bin/otp-md5
44 dosym skey /usr/bin/otp-sha1
45
46 if use static-libs; then
47 dolib.a libskey.a
48 gen_usr_ldscript libskey.so
49 fi
50
51 doman skey.1 skeyaudit.1 skeyinfo.1 skeyinit.1 skey.3 skeyprune.8
52
53 insinto /usr/include
54 doins skey.h
55
56 keepdir /etc/skey
57
58 # only root needs to have access to these files.
59 fperms go-rx /etc/skey
60
61 # skeyinit and skeyinfo must be suid root so users
62 # can generate their passwords.
63 fperms u+s,go-r /usr/bin/skeyinit /usr/bin/skeyinfo
64
65 dodoc README CHANGES
66 }
67
68 pkg_postinst() {
69 # do not include /etc/skey/skeykeys in the package, as quickpkg
70 # may package sensitive information.
71 # This also fixes the etc-update issue with #64974.
72
73 # skeyinit will not function if this file is not present.
74 touch /etc/skey/skeykeys
75
76 # these permissions are applied by the skey system if missing.
77 chmod 0600 /etc/skey/skeykeys
78
79 elog "For an introduction into using s/key authentication, take"
80 elog "a look at the EXAMPLES section from the skey(1) manpage."
81 }

  ViewVC Help
Powered by ViewVC 1.1.20