Magellan Linux

Contents of /trunk/core/pax-utils/pax-utils-1.3.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33388 - (show annotations) (download)
Fri Jul 14 17:40:10 2023 UTC (10 months, 3 weeks ago) by niro
File size: 1634 byte(s)
-ver bump to 1.3.3-r1
1 # $Id$
2
3 PNAME="pax-utils"
4 PVER="1.3.3"
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 #https://dev.gentoo.org/~sam/distfiles/app-misc/${PNAME}/${SRCFILE}
25 http://dev.gentoo.org/~vapier/dist/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 split_info_scanelf()
30 {
31 DESCRIPTION="Utility from pax-utils to scan ELF binaries."
32 DEPEND="${COMMON_DEPEND}"
33 }
34
35 split_info_pax-utils()
36 {
37 DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties."
38 DEPEND="== sys-apps/scanelf-${PVER}
39 ${COMMON_DEPEND}"
40 }
41
42 UP2DATE="updatecmd http://dev.gentoo.org/~vapier/dist/ | grep ${PNAME}- | highesttarball xz"
43 #UP2DATE="updatecmd https://dev.gentoo.org/~sam/distfiles/app-misc/${PNAME}/ | grep ${PNAME}- | highesttarball xz"
44
45 src_prepare()
46 {
47 munpack ${SRCFILE} || die
48 }
49
50 src_compile()
51 {
52 cd ${SRCDIR} || die
53 mmake || die
54 }
55
56 src_check()
57 {
58 cd ${SRCDIR}
59 make -k check || die
60 }
61
62 src_install_scanelf()
63 {
64 cd ${SRCDIR}
65 minstallexec scanelf || die
66 minstallman man/scanelf.1 || die
67 minstalldocs COPYING || die
68 }
69
70 src_install_pax-utils()
71 {
72 cd ${SRCDIR}
73 mmake DESTDIR=${BINDIR} install || die
74
75 # remove broken doc dir
76 rm -r ${BINDIR}/usr/share/doc/${PNAME} || die
77
78 # remove scanelf
79 rm ${BINDIR}/usr/bin/scanelf || die
80 rm ${BINDIR}/usr/share/man/man1/scanelf.1 || die
81
82 minstalldocs BUGS COPYING README TODO || die
83 }