mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
51 lines
996 B
Bash
51 lines
996 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MY_PN="${P%.*}"
|
|
MY_P="${MY_PN}-${PV##*.}"
|
|
|
|
inherit flag-o-matic rpm toolchain-funcs
|
|
|
|
DESCRIPTION="App that allows non-privileged apps to write utmp (login) info"
|
|
HOMEPAGE="https://www.redhat.com/"
|
|
SRC_URI="mirror://gentoo/${MY_P}.src.rpm"
|
|
S="${WORKDIR}/${MY_PN}"
|
|
|
|
LICENSE="|| ( MIT LGPL-2 )"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 ~s390 ~sparc x86"
|
|
|
|
BDEPEND="acct-group/utmp"
|
|
RDEPEND="
|
|
${BDEPEND}
|
|
!sys-libs/libutempter
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-0.5.5.6-no_utmpx.patch
|
|
"${FILESDIR}"/${PN}-0.5.5.6-fix-build-system.patch
|
|
"${FILESDIR}"/${PN}-0.5.5.6-no_gettimeofday.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
tc-export CC
|
|
append-cflags -Wall
|
|
}
|
|
|
|
src_install() {
|
|
local myemakeargs=(
|
|
LIBDIR="/usr/$(get_libdir)"
|
|
RPM_BUILD_ROOT="${ED}"
|
|
)
|
|
|
|
emake "${myemakeargs[@]}" install
|
|
|
|
dobin utmp
|
|
|
|
fowners root:utmp /usr/sbin/utempter
|
|
fperms 2755 /usr/sbin/utempter
|
|
}
|