Magellan Linux

Contents of /branches/R11-stable/core/pax-utils/pax-utils-0.9.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24078 - (show annotations) (download)
Fri Feb 20 08:52:46 2015 UTC (9 years, 2 months ago) by niro
File size: 1457 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="pax-utils"
4 PVER="0.9.2"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="scanelf pax-utils"
8
9 PCAT="sys-apps"
10 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/pax-utils.xml"
11
12 COMMON_DEPEND=">= virtual/glibc"
13 SDEPEND="${COMMON_DEPEND}"
14
15 SRCFILE="${PNAME}-${PVER}.tar.xz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 # disable src_check
21 msetfeature "!check"
22
23 SRC_URI=(
24 http://dev.gentoo.org/~vapier/dist/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 split_info_scanelf()
29 {
30 DESCRIPTION="Utility from pax-utils to scan ELF binaries."
31 DEPEND="${COMMON_DEPEND}"
32 }
33
34 split_info_pax-utils()
35 {
36 DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties."
37 DEPEND="== sys-apps/scanelf-${PVER}
38 ${COMMON_DEPEND}"
39 }
40
41 UP2DATE="updatecmd 'http://dev.gentoo.org/~vapier/dist/?C=M;O=A' | grep ${PNAME}- | lasttarball xz"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46 }
47
48 src_compile()
49 {
50 cd ${SRCDIR} || die
51 mmake || die
52 }
53
54 src_check()
55 {
56 cd ${SRCDIR}
57 make -k check || die
58 }
59
60 src_install_scanelf()
61 {
62 cd ${SRCDIR}
63 minstallexec scanelf || die
64 minstallman man/scanelf.1 || die
65 minstalldocs COPYING || die
66 }
67
68 src_install_pax-utils()
69 {
70 cd ${SRCDIR}
71 mmake DESTDIR=${BINDIR} install || die
72
73 # remove broken doc dir
74 rm -r ${BINDIR}/usr/share/doc/${PNAME} || die
75
76 # remove scanelf
77 rm ${BINDIR}/usr/bin/scanelf || die
78 rm ${BINDIR}/usr/share/man/man1/scanelf.1 || die
79
80 minstalldocs BUGS COPYING README TODO || die
81 }