1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

update to 0.9a.

PR:		24229
Submitted by:	maintainer

honor CFLAGS.
This commit is contained in:
FUJISHIMA Satsuki 2001-01-29 14:19:26 +00:00
parent 3337237bb4
commit 9e765544dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37739
6 changed files with 67 additions and 24 deletions

View File

@ -6,7 +6,7 @@
# #
PORTNAME= ftrace PORTNAME= ftrace
PORTVERSION= 0.9 PORTVERSION= 0.9a
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= http://software.senko.net/pub/ MASTER_SITES= http://software.senko.net/pub/
DISTNAME= ${PORTNAME}_${PORTVERSION} DISTNAME= ${PORTNAME}_${PORTVERSION}
@ -15,4 +15,6 @@ MAINTAINER= greid@ukug.uk.freebsd.org
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
GNU_CONFIGURE= yes
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (ftrace_0.9.tar.gz) = b2a479f2eec86ec24fd02a6723afe303 MD5 (ftrace_0.9a.tar.gz) = 850a9344b87d94a3d52c46479591b9c8

View File

@ -1,16 +1,15 @@
--- Makefile.orig Fri Jan 5 18:40:20 2001 --- configure.orig Wed Jan 10 17:34:44 2001
+++ Makefile Sat Jan 6 14:11:10 2001 +++ configure Wed Jan 10 17:35:26 2001
@@ -1,11 +1,10 @@ @@ -632,6 +632,12 @@
-PREFIX = /usr/local program_prefix=${target_alias}-
BINDIR = $(PREFIX)/bin
LIBDIR = $(PREFIX)/lib
CC = gcc case "$host" in
LD = ld + *-freebsd*)
-CFLAGS = -Wall -O3 -DPIC -fPIC -D_REENTRANT + cat >> confdefs.h <<\EOF
-LDFLAGS = -shared -ldl +#define LINUX_GLIBC 1
+CFLAGS += -Wall -O3 -DPIC -fPIC -D_REENTRANT +EOF
+LDFLAGS = -shared + LDSHARED=-shared
OBJS = ftrace.o + ;;
*-linux*)
.PHONY: all clean install cat >> confdefs.h <<\EOF
#define LINUX_GLIBC 1

View File

@ -1,8 +1,13 @@
--- ftrace.orig Sat Jan 6 14:11:37 2001 --- ftrace.c.orig Wed Jan 10 17:38:16 2001
+++ ftrace Sat Jan 6 14:11:24 2001 +++ ftrace.c Wed Jan 10 17:36:28 2001
@@ -1,4 +1,4 @@ @@ -10,9 +10,10 @@
-#!/bin/bash #include <errno.h>
+#!/bin/sh #include <unistd.h>
#include <string.h>
+#include <sys/types.h>
if [ "$1" = "-i" ]; then #ifdef LINUX_GLIBC
export FTRACEIGNOREME=1 -typedef __off64_t off64_t;
+typedef off_t off64_t;
#define _GNU_SOURCE
#endif /* LINUX_GLIBC */

View File

@ -0,0 +1,32 @@
--- Makefile.in.orig Wed Jan 10 09:10:45 2001
+++ Makefile.in Mon Jan 29 13:18:13 2001
@@ -1,12 +1,12 @@
BINDIR = @prefix@/bin
LIBDIR = @prefix@/lib
-DOCDIR = @prefix@/doc/ftrace
+DOCDIR = @prefix@/share/doc/ftrace
CC = @CC@
LD = @LD@
INSTALL = @INSTALL@
-CFLAGS = -Wall -O2 -DPIC -fPIC -D_REENTRANT -I.
-LDFLAGS = @LDSHARED@ -ldl
+CFLAGS += -Wall -DPIC -fPIC -D_REENTRANT -I.
+LDFLAGS = @LDSHARED@
OBJS = ftrace.o
.PHONY: all clean install distclean
@@ -20,10 +20,10 @@
$(CC) $(CFLAGS) -c $< -o $@
install: libftrace.so
- $(INSTALL) -m 755 ftrace $(BINDIR)
- $(INSTALL) -m 755 libftrace.so $(LIBDIR)
+ $(INSTALL) -m 555 ftrace $(BINDIR)
+ $(INSTALL) -m 555 libftrace.so $(LIBDIR)
$(INSTALL) -d $(DOCDIR)
- $(INSTALL) COPYING README TODO ChangeLog $(DOCDIR)
+ $(INSTALL) -m 444 COPYING README TODO ChangeLog $(DOCDIR)
clean:
rm -f *.o *.so *.bak *~

View File

@ -1,2 +1,7 @@
bin/ftrace bin/ftrace
lib/libftrace.so lib/libftrace.so
share/doc/ftrace/COPYING
share/doc/ftrace/README
share/doc/ftrace/TODO
share/doc/ftrace/ChangeLog
@dirrm share/doc/ftrace