/[gentoo-alt]/trunk/sys-libs/libutempter/libutempter-1.1.1.ebuild
Gentoo

Contents of /trunk/sys-libs/libutempter/libutempter-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 323 - (show annotations) (download)
Tue May 3 20:29:38 2005 UTC (9 years, 2 months ago) by flameeyes
File size: 1595 byte(s)
Add libutempter ebuild needed for xterm.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit eutils flag-o-matic
6
7 PATCHLEVEL="1"
8 DESCRIPTION="Library that allows non-privileged apps to write utmp (login) info, which need root access"
9 HOMEPAGE="ftp://ftp.altlinux.org/pub/people/ldv/utempter/"
10 SRC_URI="ftp://ftp.altlinux.org/pub/people/ldv/utempter/${P}.tar.bz2
11 !elibc_glibc? ( !elibc_uclibc? (
12 http://digilander.libero.it/dgp85/files/${PN}-patches-${PATCHLEVEL}.tar.bz2
13 ) )"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
18 IUSE=""
19
20 RDEPEND="virtual/libc"
21 DEPEND="!<=sys-apps/utempter-0.5.5.5-r1"
22
23 pkg_setup() {
24 enewgroup utmp 406
25 }
26
27 src_unpack() {
28 unpack ${A}
29 cd ${S}
30
31 ( use elibc_glibc || use elibc_uclibc ) || \
32 EPATCH_SUFFIX="patch" epatch ${WORKDIR}/${PV}
33 }
34
35 src_compile() {
36 append-ldflags -Wl,-z,now
37
38 make \
39 RPM_OPT_FLAGS="${CFLAGS}" \
40 libdir=/usr/$(get_libdir) \
41 libexecdir=/usr/$(get_libdir) || die
42 }
43
44 src_install() {
45 make \
46 DESTDIR=${D} \
47 libdir=/usr/$(get_libdir) \
48 libexecdir=/usr/$(get_libdir) \
49 install || die
50 # dobin utmp
51
52 fowners root:utmp /usr/$(get_libdir)/utempter/utempter
53 fperms 2755 /usr/$(get_libdir)/utempter/utempter
54 dodir /usr/sbin
55 dosym ../$(get_libdir)/utempter/utempter /usr/sbin/utempter
56 }
57
58
59 pkg_postinst() {
60 if [ "${ROOT}" = "/" ]
61 then
62 if [ -f /var/log/wtmp ]
63 then
64 chown root:utmp /var/log/wtmp
65 chmod 664 /var/log/wtmp
66 fi
67
68 if [ -f /var/run/utmp ]
69 then
70 chown root:utmp /var/run/utmp
71 chmod 664 /var/run/utmp
72 fi
73 fi
74 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20