Contents of /smage/trunk/extras/fping/fping-3.10-r1.smage2
Parent Directory | Revision Log
Revision 7108 -
(show annotations)
(download)
Wed Sep 9 10:07:17 2015 UTC (8 years, 7 months ago) by niro
File size: 680 byte(s)
Wed Sep 9 10:07:17 2015 UTC (8 years, 7 months ago) by niro
File size: 680 byte(s)
-fixed SRCFILE and SRCDIR
1 | # $Id$ |
2 | |
3 | PNAME="fping" |
4 | PVER="3.10" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="net-misc" |
8 | |
9 | DESCRIPTION="A utility to ping multiple hosts at once." |
10 | HOMEPAGE="http://fping.org/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | msetfeature "!check" |
18 | sminclude mtools mbuild |
19 | |
20 | SRC_URI=( |
21 | http://fping.org/dist/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd http://fping.org/dist/ | highesttarball" |
26 | |
27 | src_compile() |
28 | { |
29 | cd ${SRCDIR} |
30 | mconfigure --enable-ipv4 --enable-ipv6 || die |
31 | mmake || die |
32 | } |
33 | |
34 | alx_generic_src_install() |
35 | { |
36 | cd ${SRCDIR} |
37 | mmake DESTDIR=${BINDIR} install || die |
38 | |
39 | # suid |
40 | mchmod 4555 /usr/sbin/fping |
41 | mchmod 4555 /usr/sbin/fping6 |
42 | } |