Magellan Linux

Contents of /trunk/core/cpio/cpio-2.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3145 - (show annotations) (download)
Tue Oct 13 22:31:20 2009 UTC (14 years, 7 months ago) by niro
File size: 1116 byte(s)
auto added: ver bump to 2.10-r1
1 # $Id$
2
3 PNAME="cpio"
4 PVER="2.10"
5 PBUILD="r1"
6
7 PCATEGORIE="app-arch"
8 STATE="unstable"
9
10 DESCRIPTION="Archiver that handles various types of cpio and tar archives."
11 HOMEPAGE="http://www.gnu.org/software/cpio/"
12
13 DEPEND=">= virtual/glibc"
14 SDEPEND=">= sys-apps/sed-4"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mbuild
20
21 SRC_URI=(
22 gnu://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-2.9-CVE-2007-4476.patch
25 mirror://${PNAME}/${PNAME}-2.9-gnu-inline.patch
26 mirror://${PNAME}/${PNAME}-2.9-restore-perms-owners.patch
27 )
28
29 UP2DATE="updatecmd_gnu ${PNAME}"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # security fix CVE-2007-4476
37 mpatch ${PNAME}-2.9-CVE-2007-4476.patch || die
38 # fixes gnu-inlines (compile fix for gcc-4.3)
39 mpatch ${PNAME}-2.9-gnu-inline.patch || die
40 # fix permissions
41 mpatch ${PNAME}-2.9-restore-perms-owners.patch || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47
48 mconfigure \
49 CPIO_MT_PROG=mt \
50 --bindir=/bin \
51 --libexecdir=/usr/$(mlibdir)/cpio \
52 --with-rmt=/usr/sbin/rmt \
53 --enable-nls \
54 || die
55
56 mmake || die
57 }

Properties

Name Value
svn:keywords Id