aboutsummaryrefslogtreecommitdiff
path: root/net/rude
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-08-27 14:33:16 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-08-27 14:33:16 +0000
commit44101f20ce3497f2845872bc82d0d1dfae8c7cc5 (patch)
tree1ec894c9e07e4bdf72a43470337d8684a14c57d7 /net/rude
parentfc2ede033ff394c6eeda10a351a0f123792516d1 (diff)
downloadports-44101f20ce3497f2845872bc82d0d1dfae8c7cc5.tar.gz
ports-44101f20ce3497f2845872bc82d0d1dfae8c7cc5.zip
Notes
Diffstat (limited to 'net/rude')
-rw-r--r--net/rude/Makefile20
-rw-r--r--net/rude/files/patch-crude__Makefile.in16
-rw-r--r--net/rude/files/patch-rude__Makefile.in18
-rw-r--r--net/rude/pkg-plist2
4 files changed, 40 insertions, 16 deletions
diff --git a/net/rude/Makefile b/net/rude/Makefile
index b4f31811533f..ec2f940a3ee8 100644
--- a/net/rude/Makefile
+++ b/net/rude/Makefile
@@ -10,29 +10,29 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Rude is a Real-time UDP Data Emitter and Collector (crude)
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/DOC/COPYING
+
RUN_DEPENDS= p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk
HAS_CONFIGURE= yes
CONFIGURE_ENV= --with-debug-lvl=3
-USES= perl5
+USES= perl5 shebangfix
+SHEBANG_FILES= grude/grude
WRKSRC= ${WRKDIR}/${PORTNAME}
-
-MAN8= rude.8 crude.8
+OPTIONS_DEFINE= DOCS
DOC_FILES= README README.rude README.crude TODO example.cfg
EXAMPLE_FILES= crude_jitter.pl crude_parse.pl dump2trace.pl
-NO_STAGE= yes
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/grude/grude ${PREFIX}/bin
-.ifndef(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/grude/grude ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/DOC/${FILE} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/DOC/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.for FILE in ${EXAMPLE_FILES}
- @${INSTALL_DATA} ${WRKSRC}/scripts/${FILE} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/scripts/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/net/rude/files/patch-crude__Makefile.in b/net/rude/files/patch-crude__Makefile.in
index a0075a180071..82e1ddfe262a 100644
--- a/net/rude/files/patch-crude__Makefile.in
+++ b/net/rude/files/patch-crude__Makefile.in
@@ -1,6 +1,6 @@
---- crude/Makefile.in.orig Tue Jun 24 11:26:39 2003
-+++ crude/Makefile.in Tue Jun 24 11:26:57 2003
-@@ -19,7 +19,7 @@
+--- crude/Makefile.in.orig 2002-06-13 20:15:20.000000000 +0800
++++ crude/Makefile.in 2014-08-27 22:10:52.119765569 +0800
+@@ -19,7 +19,7 @@ mandir = @mandir@/man8
sbindir = @sbindir@
srcdir = @srcdir@
@@ -9,3 +9,13 @@
VPATH = @srcdir@
CC = @CC@
+@@ -50,7 +50,7 @@ distclean:
+
+ install: crude
+ @if [ ! -d $(bindir) ]; then mkdir -m 0755 $(bindir); fi;
+- $(INSTALL) crude $(bindir)
++ $(INSTALL) crude $(DESTDIR)$(bindir)
+ @if [ ! -d $(mandir) ]; then mkdir -m 0755 $(mandir); fi;
+- $(INSTALL) crude.8 $(mandir)
++ $(INSTALL) crude.8 $(DESTDIR)$(mandir)
+ ##############################################################################
diff --git a/net/rude/files/patch-rude__Makefile.in b/net/rude/files/patch-rude__Makefile.in
index 361cd96a7929..522169cedb7b 100644
--- a/net/rude/files/patch-rude__Makefile.in
+++ b/net/rude/files/patch-rude__Makefile.in
@@ -1,6 +1,6 @@
---- rude/Makefile.in.orig Thu Jun 13 14:15:21 2002
-+++ rude/Makefile.in Tue Jun 24 11:26:06 2003
-@@ -19,7 +19,7 @@
+--- rude/Makefile.in.orig 2002-06-13 20:15:21.000000000 +0800
++++ rude/Makefile.in 2014-08-27 22:09:51.580787385 +0800
+@@ -19,7 +19,7 @@ mandir = @mandir@/man8
sbindir = @sbindir@
srcdir = @srcdir@
@@ -9,3 +9,15 @@
VPATH = @srcdir@
CC = @CC@
+@@ -50,9 +50,9 @@ distclean:
+
+ install: rude
+ @if [ ! -d $(bindir) ]; then mkdir -m 0755 $(bindir); fi;
+- $(INSTALL) rude $(bindir)
++ $(INSTALL) rude $(DESTDIR)$(bindir)
+ @if [ ! -d $(mandir) ]; then mkdir -m 0755 $(mandir); fi;
+- $(INSTALL) rude.8 $(mandir)
++ $(INSTALL) rude.8 $(DESTDIR)$(mandir)
+
+
+ ##############################################################################
diff --git a/net/rude/pkg-plist b/net/rude/pkg-plist
index 90f47414f161..a326ae1ca1cd 100644
--- a/net/rude/pkg-plist
+++ b/net/rude/pkg-plist
@@ -1,6 +1,8 @@
bin/crude
bin/grude
bin/rude
+man/man8/crude.8.gz
+man/man8/rude.8.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/README.crude
%%PORTDOCS%%%%DOCSDIR%%/README.rude