mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
- Support staging
- Add LICENSE
This commit is contained in:
parent
9b0fa1eda0
commit
f51d12e24c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344534
@ -9,12 +9,8 @@ MASTER_SITES= http://caia.swin.edu.au/tools/spp/downloads/
|
|||||||
MAINTAINER= lars@eggert.org
|
MAINTAINER= lars@eggert.org
|
||||||
COMMENT= Calculates round trip time from pcap files or live capture
|
COMMENT= Calculates round trip time from pcap files or live capture
|
||||||
|
|
||||||
PLIST_FILES= bin/spp
|
LICENSE= GPLv2
|
||||||
MAN1= spp.1
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
PLIST_FILES= bin/spp man/man1/spp.1.gz
|
||||||
post-patch:
|
|
||||||
@${REINPLACE_CMD} -E '/(-DDEBUG|-g)/s|^|#|g' \
|
|
||||||
${WRKSRC}/Makefile
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
40
benchmarks/spp/files/patch-Makefile
Normal file
40
benchmarks/spp/files/patch-Makefile
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
--- ./Makefile.orig 2013-05-22 03:50:24.000000000 +0200
|
||||||
|
+++ ./Makefile 2014-02-16 12:29:01.767731648 +0100
|
||||||
|
@@ -39,8 +39,8 @@
|
||||||
|
SLIBS= -pthread -lpcap
|
||||||
|
BINDIR=./bin
|
||||||
|
PROGRAM= $(BINDIR)/$(NAME)
|
||||||
|
-CFLAGS += -I/usr/local/include
|
||||||
|
-LDFLAGS += -L/usr/local/lib
|
||||||
|
+CFLAGS += -I$(LOCALBASE)/include
|
||||||
|
+LDFLAGS += -L$(LOCALBASE)/lib
|
||||||
|
INSTALL= install
|
||||||
|
|
||||||
|
|
||||||
|
@@ -48,11 +48,11 @@
|
||||||
|
# If, for some reason, you don't want debugging info to bewww
|
||||||
|
# logged, then comment the following line.
|
||||||
|
#
|
||||||
|
-CFLAGS+= -DDEBUG
|
||||||
|
+#CFLAGS+= -DDEBUG
|
||||||
|
|
||||||
|
# If you want the program with support for debuggers
|
||||||
|
# (gdb, etc), then uncomment the following line
|
||||||
|
-CFLAGS+= -g
|
||||||
|
+#CFLAGS+= -g
|
||||||
|
|
||||||
|
# turn on optimisation
|
||||||
|
CFLAGS += -O2
|
||||||
|
@@ -80,9 +80,10 @@
|
||||||
|
echo "You must be root to install" && exit 1 ; \
|
||||||
|
fi ;
|
||||||
|
@echo "Installing spp binary"
|
||||||
|
- $(INSTALL) -c -m 755 $(PROGRAM) /usr/local/bin/
|
||||||
|
+ @strip $(PROGRAM)
|
||||||
|
+ $(INSTALL) -c -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
|
||||||
|
@echo "Installing manual page"
|
||||||
|
- $(INSTALL) -c -m 644 doc/spp.1 /usr/local/man/man1/
|
||||||
|
+ $(INSTALL) -c -m 644 doc/spp.1 $(DESTDIR)$(PREFIX)/man/man1/
|
||||||
|
|
||||||
|
# target 'distro'
|
||||||
|
#
|
Loading…
Reference in New Issue
Block a user