Lines 12-18
Link Here
|
12 |
|
12 |
|
13 |
LICENSE="LGPL-2.1" |
13 |
LICENSE="LGPL-2.1" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
16 |
IUSE="static-libs elibc_FreeBSD" |
16 |
IUSE="static-libs elibc_FreeBSD" |
17 |
|
17 |
|
18 |
RDEPEND="!sys-apps/utempter" |
18 |
RDEPEND="!sys-apps/utempter" |
Lines 23-32
Link Here
|
23 |
|
23 |
|
24 |
src_prepare() { |
24 |
src_prepare() { |
25 |
local args=( |
25 |
local args=( |
26 |
-e "/^libdir /s:/lib:/$(get_libdir):" |
26 |
-e "/^libdir /s:/usr/lib:${EPREFIX}/usr/$(get_libdir):" |
27 |
-e '/^libexecdir /s:=.*:= $(libdir)/misc:' |
27 |
-e '/^libexecdir /s:=.*:= $(libdir)/misc:' |
28 |
-e '/^CFLAGS = $(RPM_OPT_FLAGS)/d' |
28 |
-e '/^CFLAGS = $(RPM_OPT_FLAGS)/d' |
29 |
-e 's:,-stats::' |
29 |
-e 's:,-stats::' |
|
|
30 |
-e "/^includedir /s:/usr/include:${EPREFIX}/usr/include:" |
31 |
-e "/^mandir /s:=.*:= ${EPREFIX}/usr/share/man:" |
30 |
) |
32 |
) |
31 |
use static-libs || args+=( |
33 |
use static-libs || args+=( |
32 |
-e '/^STATICLIB/d' |
34 |
-e '/^STATICLIB/d' |
Lines 47-66
Link Here
|
47 |
src_install() { |
49 |
src_install() { |
48 |
default |
50 |
default |
49 |
|
51 |
|
50 |
fowners root:utmp /usr/$(get_libdir)/misc/utempter/utempter |
52 |
use prefix || fowners root:utmp /usr/$(get_libdir)/misc/utempter/utempter |
51 |
fperms 2755 /usr/$(get_libdir)/misc/utempter/utempter |
53 |
use prefix || fperms 2755 /usr/$(get_libdir)/misc/utempter/utempter |
52 |
dodir /usr/sbin |
54 |
dodir /usr/sbin |
53 |
dosym ../$(get_libdir)/misc/utempter/utempter /usr/sbin/utempter |
55 |
dosym ../$(get_libdir)/misc/utempter/utempter /usr/sbin/utempter |
54 |
} |
56 |
} |
55 |
|
57 |
|
56 |
pkg_postinst() { |
58 |
pkg_postinst() { |
57 |
if [ -f "${ROOT}/var/log/wtmp" ] ; then |
59 |
if [ -f "${EROOT}/var/log/wtmp" ] ; then |
58 |
chown root:utmp "${ROOT}/var/log/wtmp" |
60 |
chown root:utmp "${EROOT}/var/log/wtmp" |
59 |
chmod 664 "${ROOT}/var/log/wtmp" |
61 |
chmod 664 "${EROOT}/var/log/wtmp" |
60 |
fi |
62 |
fi |
61 |
|
63 |
|
62 |
if [ -f "${ROOT}/var/run/utmp" ] ; then |
64 |
if [ -f "${EROOT}/var/run/utmp" ] ; then |
63 |
chown root:utmp "${ROOT}/var/run/utmp" |
65 |
chown root:utmp "${EROOT}/var/run/utmp" |
64 |
chmod 664 "${ROOT}/var/run/utmp" |
66 |
chmod 664 "${EROOT}/var/run/utmp" |
65 |
fi |
67 |
fi |
66 |
} |
68 |
} |