mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: Fix building on 10 and -current.
2: support stagedir PR: ports/185694 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
5c110cd44d
commit
1720395be1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339763
@ -21,11 +21,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
MANCOMPRESSED= yes
|
||||
MAN1= traflog.1 trafstat.1
|
||||
MAN8= trafstatd.8 trafd.8
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@ -33,20 +28,23 @@ post-patch:
|
||||
's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/^PATH_TOSAVE/s|=.*|= ${PREFIX}/var/bpft| ; \
|
||||
/^INSTALL_DIRECTORY/s|=.*|= ${MKDIR}|' ${WRKSRC}/Makefile
|
||||
/^INSTALL_DIRECTORY/s|=.*|= ${MKDIR}| ; \
|
||||
s|please!|&"| ; \
|
||||
s| $${PATH_| $${DESTDIR}$${PATH_|g ; \
|
||||
s| $${PREFIX_| $${DESTDIR}$${PREFIX_|g' ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|bpf_dump.[co]||' ${WRKSRC}/lib/Makefile
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|<net/slip.h>|"../linux-include/net/slip.h"|' \
|
||||
${WRKSRC}/lib/interfaces.c
|
||||
|
||||
post-install:
|
||||
.for i in bin/traflog bin/trafstat sbin/trafd sbin/trafstatd
|
||||
@${STRIP_CMD} ${PREFIX}/${i}
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${i}
|
||||
.endfor
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for i in README WhatsNew
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -6,10 +6,14 @@ bin/trafstat
|
||||
bin/trafstop
|
||||
etc/rc.d/trafd.sh
|
||||
etc/traflog.format
|
||||
man/man1/traflog.1.gz
|
||||
man/man1/trafstat.1.gz
|
||||
man/man8/trafd.8.gz
|
||||
man/man8/trafstatd.8.gz
|
||||
sbin/trafd
|
||||
sbin/trafstatd
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/WhatsNew
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrmtry var/bpft
|
||||
@dirrmtry var
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user