/[gentoo-x86]/sys-process/acct/acct-6.5.5-r3.ebuild
Gentoo

Contents of /sys-process/acct/acct-6.5.5-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Dec 21 17:22:15 2013 UTC (3 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Stable for ppc, wrt bug #485338

(Portage version: 2.2.1/cvs/Linux ppc64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-process/acct/acct-6.5.5-r3.ebuild,v 1.5 2013/12/17 11:55:06 armin76 Exp $
4
5 EAPI=3
6 inherit eutils autotools systemd
7
8 DESCRIPTION="GNU system accounting utilities"
9 HOMEPAGE="https://savannah.gnu.org/projects/acct/"
10 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-3"
13 SLOT="0"
14 KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
15 IUSE=""
16
17 src_prepare() {
18 epatch \
19 "${FILESDIR}"/${PN}-6.5.5-cross-compile.patch \
20 "${FILESDIR}"/${PN}-6.5.5-no-gets.patch
21 eautoreconf
22 }
23
24 src_configure() {
25 econf --enable-linux-multiformat
26 }
27
28 src_install() {
29 emake install DESTDIR="${D}" || die
30 dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
31 keepdir /var/account
32 newinitd "${FILESDIR}"/acct.initd acct || die
33 newconfd "${FILESDIR}"/acct.confd acct || die
34 systemd_dounit "${FILESDIR}"/acct.service
35 insinto /etc/logrotate.d
36 newins "${FILESDIR}"/acct.logrotate acct || die
37
38 # sys-apps/sysvinit already provides this
39 rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die
40
41 # accton in / is only a temp workaround for #239748
42 dodir /sbin
43 mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die
44 }

  ViewVC Help
Powered by ViewVC 1.1.20