Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libutempter: ChangeLog libutempter-1.1.6.ebuild
Date: Tue, 28 Aug 2012 06:52:13
Message-Id: 20120828065159.F1AE7209D5@flycatcher.gentoo.org
1 radhermit 12/08/28 06:51:59
2
3 Modified: ChangeLog
4 Added: libutempter-1.1.6.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.38 sys-libs/libutempter/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libutempter/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libutempter/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libutempter/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libutempter/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 24 May 2012 05:37:41 -0000 1.37
24 +++ ChangeLog 28 Aug 2012 06:51:59 -0000 1.38
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/libutempter
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libutempter/ChangeLog,v 1.37 2012/05/24 05:37:41 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libutempter/ChangeLog,v 1.38 2012/08/28 06:51:59 radhermit Exp $
30 +
31 +*libutempter-1.1.6 (28 Aug 2012)
32 +
33 + 28 Aug 2012; Tim Harder <radhermit@g.o> +libutempter-1.1.6.ebuild:
34 + Version bump.
35
36 *libutempter-1.1.5-r1 (24 May 2012)
37
38
39
40
41 1.1 sys-libs/libutempter/libutempter-1.1.6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libutempter/libutempter-1.1.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libutempter/libutempter-1.1.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libutempter-1.1.6.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libutempter/libutempter-1.1.6.ebuild,v 1.1 2012/08/28 06:51:59 radhermit Exp $
51
52 EAPI="4"
53
54 inherit user multilib flag-o-matic
55
56 DESCRIPTION="Library that allows non-privileged apps to write utmp (login) info, which need root access"
57 HOMEPAGE="http://altlinux.org/index.php?module=sisyphus&package=libutempter"
58 SRC_URI="ftp://ftp.altlinux.org/pub/people/ldv/${PN}/${P}.tar.bz2"
59
60 LICENSE="LGPL-2.1"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
63 IUSE="static-libs elibc_FreeBSD"
64
65 RDEPEND="!sys-apps/utempter"
66
67 pkg_setup() {
68 enewgroup utmp 406
69 }
70
71 src_prepare() {
72 local args=(
73 -e "/^libdir /s:/lib:/$(get_libdir):"
74 -e '/^libexecdir /s:=.*:= $(libdir)/misc:'
75 -e '/^CFLAGS = $(RPM_OPT_FLAGS)/d'
76 -e 's:,-stats::'
77 )
78 use static-libs || args+=(
79 -e '/^STATICLIB/d'
80 -e '/INSTALL.*STATICLIB/d'
81 )
82 sed -i "${args[@]}" Makefile || die
83 }
84
85 src_configure() {
86 use elibc_FreeBSD && append-libs -lutil
87 tc-export CC
88 }
89
90 src_compile() {
91 emake LDLIBS="${LIBS}"
92 }
93
94 src_install() {
95 default
96
97 fowners root:utmp /usr/$(get_libdir)/misc/utempter/utempter
98 fperms 2755 /usr/$(get_libdir)/misc/utempter/utempter
99 dodir /usr/sbin
100 dosym ../$(get_libdir)/misc/utempter/utempter /usr/sbin/utempter
101 }
102
103 pkg_postinst() {
104 if [ -f "${ROOT}/var/log/wtmp" ] ; then
105 chown root:utmp "${ROOT}/var/log/wtmp"
106 chmod 664 "${ROOT}/var/log/wtmp"
107 fi
108
109 if [ -f "${ROOT}/var/run/utmp" ] ; then
110 chown root:utmp "${ROOT}/var/run/utmp"
111 chmod 664 "${ROOT}/var/run/utmp"
112 fi
113 }