Magellan Linux

Annotation of /trunk/core/cpio/cpio-2.9-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 352 - (hide annotations) (download)
Mon Dec 22 23:34:04 2008 UTC (15 years, 5 months ago) by niro
File size: 1224 byte(s)
-added several patches
1 niro 351 # $Header: /magellan-cvs/smage/cpio/cpio-2.9-r1.smage2,v 1.2 2008/02/12 08:50:04 niro Exp $
2    
3     PNAME="cpio"
4     PVER="2.9"
5     PBUILD="r2"
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 niro 352 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2007-4476.patch
25     mirror://${PNAME}/${PNAME}-${PVER}-gnu-inline.patch
26     mirror://${PNAME}/${PNAME}-${PVER}-restore-perms-owners.patch
27 niro 351 )
28    
29     UP2DATE="updatecmd_gnu ${PNAME}"
30    
31 niro 352 src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # security fix CVE-2007-4476
37     mpatch ${PNAME}-${PVER}-CVE-2007-4476.patch || die
38     # fixes gnu-inlines (compile fix for gcc-4.3)
39     mpatch ${PNAME}-${PVER}-gnu-inline.patch || die
40     # fix permissions
41     mpatch ${PNAME}-${PVER}-restore-perms-owners.patch || die
42     }
43    
44 niro 351 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