Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/tar: ChangeLog tar-1.24-r2.ebuild tar-1.24-r1.ebuild
Date: Mon, 01 Nov 2010 14:52:59
Message-Id: 20101101145255.7537420051@flycatcher.gentoo.org
1 ssuominen 10/11/01 14:52:55
2
3 Modified: ChangeLog
4 Added: tar-1.24-r2.ebuild
5 Removed: tar-1.24-r1.ebuild
6 Log:
7 Fix extraction of device nodes wrt #343245 by Albert W. Hopkins.
8
9 (Portage version: 2.2.0_alpha1/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.158 app-arch/tar/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/tar/ChangeLog?rev=1.158&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/tar/ChangeLog?rev=1.158&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/tar/ChangeLog?r1=1.157&r2=1.158
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v
21 retrieving revision 1.157
22 retrieving revision 1.158
23 diff -u -r1.157 -r1.158
24 --- ChangeLog 27 Oct 2010 18:19:39 -0000 1.157
25 +++ ChangeLog 1 Nov 2010 14:52:55 -0000 1.158
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-arch/tar
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.157 2010/10/27 18:19:39 ssuominen Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.158 2010/11/01 14:52:55 ssuominen Exp $
31 +
32 +*tar-1.24-r2 (01 Nov 2010)
33 +
34 + 01 Nov 2010; Samuli Suominen <ssuominen@g.o> +tar-1.24-r2.ebuild,
35 + +files/tar-1.24-device-node.patch:
36 + Fix extraction of device nodes wrt #343245 by Albert W. Hopkins.
37
38 *tar-1.24-r1 (27 Oct 2010)
39
40
41
42
43 1.1 app-arch/tar/tar-1.24-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/tar/tar-1.24-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/tar/tar-1.24-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: tar-1.24-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.24-r2.ebuild,v 1.1 2010/11/01 14:52:55 ssuominen Exp $
53
54 EAPI="2"
55
56 inherit flag-o-matic eutils
57
58 DESCRIPTION="Use this to make tarballs :)"
59 HOMEPAGE="http://www.gnu.org/software/tar/"
60 SRC_URI="http://ftp.gnu.org/gnu/tar/${P}.tar.bz2
61 ftp://alpha.gnu.org/gnu/tar/${P}.tar.bz2
62 mirror://gnu/tar/${P}.tar.bz2"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
67 IUSE="nls static userland_GNU"
68
69 RDEPEND=""
70 DEPEND="${RDEPEND}
71 nls? ( >=sys-devel/gettext-0.10.35 )"
72
73 RESTRICT="test" # Remove this from 1.25
74
75 src_prepare() {
76 epatch "${FILESDIR}"/${PN}-1.23-strncpy.patch #317139
77 epatch "${FILESDIR}"/${P}-mkdirat.patch #342735
78 epatch "${FILESDIR}"/${P}-transform{,-2}.patch #342785
79 epatch "${FILESDIR}"/${P}-device-node.patch #343245
80
81 if ! use userland_GNU ; then
82 sed -i \
83 -e 's:/backup\.sh:/gbackup.sh:' \
84 scripts/{backup,dump-remind,restore}.in \
85 || die "sed non-GNU"
86 fi
87 }
88
89 src_configure() {
90 local myconf
91 use static && append-ldflags -static
92 use userland_GNU || myconf="--program-prefix=g"
93 # Work around bug in sandbox #67051
94 gl_cv_func_chown_follows_symlink=yes \
95 FORCE_UNSAFE_CONFIGURE=1 \
96 econf \
97 --enable-backup-scripts \
98 --bindir=/bin \
99 --libexecdir=/usr/sbin \
100 $(use_enable nls) \
101 ${myconf}
102 }
103
104 src_install() {
105 local p=""
106 use userland_GNU || p=g
107
108 emake DESTDIR="${D}" install || die
109
110 if [[ -z ${p} ]] ; then
111 # a nasty yet required piece of baggage
112 exeinto /etc
113 doexe "${FILESDIR}"/rmt || die
114 fi
115
116 dodoc AUTHORS ChangeLog* NEWS README* THANKS
117 newman "${FILESDIR}"/tar.1 ${p}tar.1
118 mv "${D}"/usr/sbin/${p}backup{,-tar}
119 mv "${D}"/usr/sbin/${p}restore{,-tar}
120
121 rm -f "${D}"/usr/$(get_libdir)/charset.alias
122 }