Contents of /branches/magellan-next/core/pax-utils/pax-utils-0.2.3-r1.smage2
Parent Directory | Revision Log
Revision 9729 -
(show annotations)
(download)
Mon Jan 9 13:26:34 2012 UTC (12 years, 8 months ago) by niro
File size: 1421 byte(s)
Mon Jan 9 13:26:34 2012 UTC (12 years, 8 months ago) by niro
File size: 1421 byte(s)
auto added: ver bump to 0.2.3-r1
1 | # $Id$ |
2 | |
3 | PNAME="pax-utils" |
4 | PVER="0.2.3" |
5 | PBUILD="r1" |
6 | |
7 | SPLIT_PACKAGES="scanelf pax-utils" |
8 | |
9 | PCATEGORIE="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 | SRC_URI=( |
21 | http://dev.gentoo.org/~vapier/dist/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | split_info_scanelf() |
26 | { |
27 | DESCRIPTION="Utility from pax-utils to scan ELF binaries." |
28 | DEPEND="${COMMON_DEPEND}" |
29 | } |
30 | |
31 | split_info_pax-utils() |
32 | { |
33 | DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties." |
34 | DEPEND="== sys-apps/scanelf-${PVER} |
35 | ${COMMON_DEPEND}" |
36 | } |
37 | |
38 | UP2DATE="updatecmd 'http://dev.gentoo.org/~vapier/dist/?C=M;O=A' | grep ${PNAME}- | lasttarball xz" |
39 | |
40 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} || die |
48 | mmake || die |
49 | } |
50 | |
51 | src_check() |
52 | { |
53 | cd ${SRCDIR} |
54 | make -k check || die |
55 | } |
56 | |
57 | src_install_scanelf() |
58 | { |
59 | cd ${SRCDIR} |
60 | minstallexec scanelf || die |
61 | minstallman man/scanelf.1 || die |
62 | minstalldocs COPYING || die |
63 | } |
64 | |
65 | src_install_pax-utils() |
66 | { |
67 | cd ${SRCDIR} |
68 | mmake DESTDIR=${BINDIR} install || die |
69 | |
70 | # remove broken doc dir |
71 | rm -r ${BINDIR}/usr/share/doc/${PNAME} || die |
72 | |
73 | # remove scanelf |
74 | rm ${BINDIR}/usr/bin/scanelf || die |
75 | rm ${BINDIR}/usr/share/man/man1/scanelf.1 || die |
76 | |
77 | minstalldocs BUGS COPYING README TODO || die |
78 | } |