Ticket #41233: Portfile-fping.diff
File Portfile-fping.diff, 1.9 KB (added by Schamschula (Marius Schamschula), 11 years ago) |
---|
-
Portfile
old new 4 4 5 5 name fping 6 6 epoch 1 7 version 2.4b27 version 3.7 8 8 revision 1 9 9 categories net 10 10 license X11 11 11 maintainers nomaintainer 12 12 platforms darwin 13 homepage http://unfix.org/projects/ipv6/ 14 master_sites http://unfix.org/projects/ipv6/ 15 distname ${name}-${version}_to-ipv6 13 homepage http://fping.org/ 14 master_sites http://fping.org/dist/ 16 15 17 checksums md5 b1f10f88afd35b94846bfb0844d7a834\18 sha1 9b540b5fe81feffa5096f10f011d56f0c4dc0c09\19 rmd160 f838382136977e74fe610e06437a2ee0185f66f816 checksums md5 4d74c780a5ea036b1f2be2d2baa36e9c \ 17 sha1 6a6e3490a8ae80101a29afa90a72289db2d011ca \ 18 rmd160 d6d433ef455580a17b36c9113d964d02a5feff29 20 19 21 20 description A scriptable ping program to check if multiple hosts are up 22 21 long_description fping is different from ping in that you can specify \ … … 30 29 a certain time limit and/or retry limit it will be \ 31 30 considered unreachable. 32 31 33 patchfiles patch-Makefile.am.diff34 35 # Ensure UsingTheRightCompiler, fix universal variant, use build_arch, fix mandir36 use_autoreconf yes37 autoreconf.args -fvi38 39 post-destroot {40 system "ln -s fping.8 ${destroot}${prefix}/share/man/man8/fping6.8"41 # Check if user is running as root42 if {[geteuid] == 0} {43 system "chmod 4511 ${destroot}${prefix}/sbin/fping"44 system "chmod 4511 ${destroot}${prefix}/sbin/fping6"45 } else {46 ui_msg "-----------------------------------------------------------"47 ui_msg "Note that you are not running as root, so ${name} cannot"48 ui_msg "be installed setuid root. Therefore, it will only be able"49 ui_msg "to be executed by root."50 ui_msg "-----------------------------------------------------------"51 system "chmod 0511 ${destroot}${prefix}/sbin/fping"52 system "chmod 0511 ${destroot}${prefix}/sbin/fping6"53 }54 }55 56 32 livecheck.type none