mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Stagify.
This commit is contained in:
+6
-6
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user