Contents of /smage/trunk/extras/fping/fping-3.10-r2.smage2
Parent Directory | Revision Log
Revision 7109 -
(show annotations)
(download)
Wed Sep 9 10:15:50 2015 UTC (9 years, 1 month ago) by niro
File size: 714 byte(s)
Wed Sep 9 10:15:50 2015 UTC (9 years, 1 month ago) by niro
File size: 714 byte(s)
-alx split rebuild
1 | # $Id$ |
2 | |
3 | PNAME="fping" |
4 | PVER="3.10" |
5 | PBUILD="r2" |
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 | ALX_PKG_KEEP="usr/sbin" |
18 | sminclude mtools mbuild alx-split |
19 | msetfeature "!check" |
20 | |
21 | SRC_URI=( |
22 | http://fping.org/dist/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd http://fping.org/dist/ | highesttarball" |
27 | |
28 | src_compile() |
29 | { |
30 | cd ${SRCDIR} |
31 | mconfigure --enable-ipv4 --enable-ipv6 || die |
32 | mmake || die |
33 | } |
34 | |
35 | alx_generic_src_install() |
36 | { |
37 | cd ${SRCDIR} |
38 | mmake DESTDIR=${BINDIR} install || die |
39 | |
40 | # suid |
41 | mchmod 4555 /usr/sbin/fping |
42 | mchmod 4555 /usr/sbin/fping6 |
43 | } |