This commit is contained in:
vanilla
2014-06-08 15:20:23 +00:00
parent d733cc8fa8
commit c4d3bcb38b
2 changed files with 25 additions and 6 deletions
+6 -6
View File
@@ -15,21 +15,21 @@ USE_XORG= x11
USE_PERL5= run
GNU_CONFIGURE= yes
MAN1= tcpdump2xplot.1 xplot.1
PORTDOCS= README README.tcp_plots
PLIST_FILES= bin/tcpdump2xplot bin/tcpdump2xplot.pl bin/xplot
PLIST_FILES= bin/tcpdump2xplot bin/tcpdump2xplot.pl bin/xplot \
man/man1/tcpdump2xplot.1.gz \
man/man1/xplot.1.gz
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e \
'/INSTALL/s|2xplot$$|2xplot.pl|' ${WRKSRC}/Makefile.in
post-install:
${LN} -sf tcpdump2xplot.pl ${PREFIX}/bin/tcpdump2xplot
${LN} -sf tcpdump2xplot.pl ${STAGEDIR}${PREFIX}/bin/tcpdump2xplot
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
+19
View File
@@ -0,0 +1,19 @@
--- Makefile.in.orig 2014-06-08 23:17:52.261073676 +0800
+++ Makefile.in 2014-06-08 23:18:17.975100570 +0800
@@ -70,11 +70,11 @@ version_string.c: version
echo 'char *version_string = "'`cat version`'";' >version_string.c
install: all
- mkdir -p $(bindir)
- $(INSTALL_PROGRAM) xplot $(bindir)/xplot
- $(INSTALL) tcpdump2xplot.pl $(bindir)/tcpdump2xplot
- mkdir -p $(mandir)
- $(INSTALL_MAN) $(MANFILES) $(mandir)
+ mkdir -p $(DESTDIR)$(bindir)
+ $(INSTALL_PROGRAM) xplot $(DESTDIR)$(bindir)/xplot
+ $(INSTALL) tcpdump2xplot.pl $(DESTDIR)$(bindir)/tcpdump2xplot
+ mkdir -p $(DESTDIR)$(mandir)
+ $(INSTALL_MAN) $(MANFILES) $(DESTDIR)$(mandir)
clean:
rm -f ${PROG} ${PROG}.old *.o version_string.c