mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Support STAGE
- Make extra patch for >= 8.x into a normal patch as it's used on all supported FreeBSD versions PR: ports/187320 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> Approved by: wg (mentor)
This commit is contained in:
parent
84a5b341fa
commit
ca48c6d764
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349246
@ -19,31 +19,17 @@ GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
|
||||
ALL_TARGET= trafshow
|
||||
|
||||
MAN1= trafshow.1
|
||||
|
||||
OPTIONS_DEFINE= IPV6
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
OPTIONS_DEFINE= IPV6
|
||||
IPV6_CFLAGS= -DINET6
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE||' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
|
||||
${WRKSRC}/colormask.c ${WRKSRC}/trafshow.1 ${WRKSRC}/trafshow.c
|
||||
.if ${OSVERSION} >= 800074
|
||||
@${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-800074+
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MIPV6}
|
||||
CFLAGS+= -DINET6
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow.dist
|
||||
if [ ! -e ${PREFIX}/etc/trafshow ]; then \
|
||||
${CP} -p ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow; \
|
||||
fi
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/.trafshow ${STAGEDIR}${PREFIX}/etc/trafshow.dist
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -2,3 +2,4 @@ bin/trafshow
|
||||
@unexec if cmp -s %D/etc/trafshow %D/etc/trafshow.dist; then rm -f %D/etc/trafshow; fi
|
||||
etc/trafshow.dist
|
||||
@exec if [ ! -e %D/etc/trafshow ]; then cp -p %D/%F %B/trafshow; fi
|
||||
man/man1/trafshow.1.gz
|
||||
|
Loading…
Reference in New Issue
Block a user