You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
committed by
Renee Otten
parent
e308d9e9f5
commit
685c46a3b8
+14
-13
@@ -1,26 +1,27 @@
|
||||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||||
|
||||
PortSystem 1.0
|
||||
PortGroup github 1.0
|
||||
|
||||
name uplog
|
||||
version 0.3
|
||||
|
||||
github.setup carragom uplog 0.3
|
||||
github.tarball_from archive
|
||||
revision 0
|
||||
categories net
|
||||
license GPL-2.0
|
||||
maintainers nomaintainer
|
||||
platforms darwin
|
||||
|
||||
description A UDP based ping program that can give an ASCII-graphical log of the packet losses.
|
||||
description A UDP based ping program that can give an ASCII-graphical log of the packet losses
|
||||
long_description ${description}.
|
||||
|
||||
long_description ${description}
|
||||
checksums rmd160 246a4668beae74505c50228a57e54ab7c4c57f13 \
|
||||
sha256 fdf8b64835023525cbaefac750493dc7ee265bbcc07f4081105c5f484dc8682a \
|
||||
size 50720
|
||||
|
||||
homepage http://www.nerdlabs.org/projects/uplog.php
|
||||
master_sites http://www.nerdlabs.org/downloads/uplog/
|
||||
checksums md5 38af7eab6c656befbda24683124ac8dc
|
||||
dist_subdir ${name}/${version}_1
|
||||
|
||||
post-patch {
|
||||
reinplace "s|#include <malloc.h>||g" \
|
||||
${worksrcpath}/uplog.c
|
||||
}
|
||||
patch.pre_args-replace -p0 -p1
|
||||
patchfiles implicit.patch
|
||||
patchfiles-append fix-configure-script.patch
|
||||
|
||||
post-destroot {
|
||||
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
Fix -implcit-int in configure script
|
||||
|
||||
diff -urN a/configure b/configure
|
||||
--- a/configure 2003-06-18 09:07:26.000000000 -0400
|
||||
+++ b/configure 2025-10-10 19:57:21.484163969 -0400
|
||||
@@ -908,7 +908,7 @@
|
||||
#line 909 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
ac_cv_prog_cc_works=yes
|
||||
@@ -0,0 +1,18 @@
|
||||
Fix implicit function declarations
|
||||
|
||||
error: call to undeclared library function 'exit' with type
|
||||
'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
|
||||
|
||||
See: https://trac.macports.org/wiki/WimplicitFunctionDeclaration
|
||||
|
||||
diff -urN a/configure b/configure
|
||||
--- a/configure 2003-06-18 09:07:26.000000000 -0400
|
||||
+++ b/configure 2025-10-10 19:58:06.968105588 -0400
|
||||
@@ -1154,6 +1154,7 @@
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1156 "configure"
|
||||
#include "confdefs.h"
|
||||
+#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
||||
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
||||
Reference in New Issue
Block a user