Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 344807 | Differences between
and this patch

Collapse All | Expand All

(-)tar-1.25.ebuild (-9 / +20 lines)
Lines 2-10 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.25.ebuild,v 1.1 2010/11/08 20:57:35 ssuominen Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.25.ebuild,v 1.1 2010/11/08 20:57:35 ssuominen Exp $
4
4
5
EAPI="2"
5
EAPI="3"
6
6
7
inherit flag-o-matic
7
inherit flag-o-matic prefix
8
8
9
DESCRIPTION="Use this to make tarballs :)"
9
DESCRIPTION="Use this to make tarballs :)"
10
HOMEPAGE="http://www.gnu.org/software/tar/"
10
HOMEPAGE="http://www.gnu.org/software/tar/"
Lines 14-20 Link Here
14
14
15
LICENSE="GPL-3"
15
LICENSE="GPL-3"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
18
IUSE="nls static userland_GNU"
18
IUSE="nls static userland_GNU"
19
19
20
RDEPEND=""
20
RDEPEND=""
Lines 28-37 Link Here
28
			scripts/{backup,dump-remind,restore}.in \
28
			scripts/{backup,dump-remind,restore}.in \
29
			|| die "sed non-GNU"
29
			|| die "sed non-GNU"
30
	fi
30
	fi
31
32
	cp "${FILESDIR}"/rmt "${T}"
33
	eprefixify ${T}/rmt
31
}
34
}
32
35
33
src_configure() {
36
src_configure() {
34
	local myconf
37
	local myconf
38
	# hack around ld: duplicate symbol _argp_fmtstream_putc problem
39
	[[ ${CHOST} == *-darwin* ]] && append-flags -U__OPTIMIZE__
35
	use static && append-ldflags -static
40
	use static && append-ldflags -static
36
	use userland_GNU || myconf="--program-prefix=g"
41
	use userland_GNU || myconf="--program-prefix=g"
37
	# Work around bug in sandbox #67051
42
	# Work around bug in sandbox #67051
Lines 39-46 Link Here
39
	FORCE_UNSAFE_CONFIGURE=1 \
44
	FORCE_UNSAFE_CONFIGURE=1 \
40
	econf \
45
	econf \
41
		--enable-backup-scripts \
46
		--enable-backup-scripts \
42
		--bindir=/bin \
47
		--bindir="${EPREFIX}"/bin \
43
		--libexecdir=/usr/sbin \
48
		--libexecdir="${EPREFIX}"/usr/sbin \
44
		$(use_enable nls) \
49
		$(use_enable nls) \
45
		${myconf}
50
		${myconf}
46
}
51
}
Lines 54-66 Link Here
54
	if [[ -z ${p} ]] ; then
59
	if [[ -z ${p} ]] ; then
55
		# a nasty yet required piece of baggage
60
		# a nasty yet required piece of baggage
56
		exeinto /etc
61
		exeinto /etc
57
		doexe "${FILESDIR}"/rmt || die
62
		doexe "${T}"/rmt || die
63
	fi
64
65
	# autoconf looks for this, so in prefix, make sure it is there
66
	if use prefix ; then
67
		dodir /usr/bin
68
		dosym /bin/tar /usr/bin/gtar
58
	fi
69
	fi
59
70
60
	dodoc AUTHORS ChangeLog* NEWS README* THANKS
71
	dodoc AUTHORS ChangeLog* NEWS README* THANKS
61
	newman "${FILESDIR}"/tar.1 ${p}tar.1
72
	newman "${FILESDIR}"/tar.1 ${p}tar.1
62
	mv "${D}"/usr/sbin/${p}backup{,-tar}
73
	mv "${ED}"/usr/sbin/${p}backup{,-tar}
63
	mv "${D}"/usr/sbin/${p}restore{,-tar}
74
	mv "${ED}"/usr/sbin/${p}restore{,-tar}
64
75
65
	rm -f "${D}"/usr/$(get_libdir)/charset.alias
76
	rm -f "${ED}"/usr/$(get_libdir)/charset.alias
66
}
77
}
(-)files/rmt (-2 / +2 lines)
Lines 1-8 Link Here
1
#!/bin/sh
1
#!@GENTOO_PORTAGE_EPREFIX@/bin/sh
2
#
2
#
3
# This is not a mistake.  This shell script (/etc/rmt) has been provided
3
# This is not a mistake.  This shell script (/etc/rmt) has been provided
4
# for compatibility with other Unix-like systems, some of which have
4
# for compatibility with other Unix-like systems, some of which have
5
# utilities that expect to find (and execute) rmt in the /etc directory
5
# utilities that expect to find (and execute) rmt in the /etc directory
6
# on remote systems.
6
# on remote systems.
7
#
7
#
8
exec /usr/sbin/rmt "$@"
8
exec @GENTOO_PORTAGE_EPREFIX@/usr/sbin/rmt "$@"

Return to bug 344807