mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 06:40:33 -04:00
1: Stagify.
2: use @sample on pkg-plist. Approved by: portmgr@ (blanket approval)
This commit is contained in:
parent
f8bddd5160
commit
abbc5fe13f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359050
2 changed files with 4 additions and 11 deletions
|
@ -19,19 +19,14 @@ LIBNET_CONFIG= ${LOCALBASE}/bin/libnet11-config
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-2.9.0
|
WRKSRC= ${WRKDIR}/${PORTNAME}-2.9.0
|
||||||
USE_GNOME= glib20
|
USE_GNOME= glib20
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
cd ${WRKSRC} && ${CC} -c vortex.c -I${LOCALBASE}/include
|
cd ${WRKSRC} && ${CC} -c vortex.c -I${LOCALBASE}/include
|
||||||
cd ${WRKSRC} && ${CC} -v -o vortex vortex.o -L${LOCALBASE}/lib ${LOCALBASE}/lib/libnids.a `${LIBNET_CONFIG} --libs` -lglib-2.0 -lgthread-2.0 -lpcap
|
cd ${WRKSRC} && ${CC} -v -o vortex vortex.o -L${LOCALBASE}/lib ${LOCALBASE}/lib/libnids.a `${LIBNET_CONFIG} --libs` -lglib-2.0 -lgthread-2.0 -lpcap
|
||||||
cd ${WRKSRC} && ${CC} -o xpipes xpipes.c ${PTHREAD_LIBS}
|
cd ${WRKSRC} && ${CC} -o xpipes xpipes.c ${PTHREAD_LIBS}
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_DATA} ${WRKSRC}/vortex.conf ${PREFIX}/etc/vortex.conf.sample
|
${INSTALL_DATA} ${WRKSRC}/vortex.conf ${STAGEDIR}${PREFIX}/etc/vortex.conf.sample
|
||||||
if [ ! -f ${PREFIX}/etc/vortex.conf ]; then \
|
${INSTALL_PROGRAM} ${WRKSRC}/vortex ${STAGEDIR}${PREFIX}/bin
|
||||||
${CP} -p ${PREFIX}/etc/vortex.conf.sample ${PREFIX}/etc/vortex.conf; \
|
${INSTALL_PROGRAM} ${WRKSRC}/xpipes ${STAGEDIR}${PREFIX}/bin
|
||||||
fi
|
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/vortex ${PREFIX}/bin
|
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/xpipes ${PREFIX}/bin
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
bin/vortex
|
bin/vortex
|
||||||
bin/xpipes
|
bin/xpipes
|
||||||
@unexec if cmp -s %D/etc/vortex.conf.sample %D/etc/vortex.conf; then rm -f %D/etc/vortex.conf; fi
|
@sample etc/vortex.conf.sample
|
||||||
etc/vortex.conf.sample
|
|
||||||
@exec if [ ! -f %D/etc/vortex.conf ]; then cp -p %D/%F %B/vortex.conf; fi
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue