mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
c82a78a255
In file included from build_acl.cc:2: In file included from ./sancp.h:47: In file included from ./gvars.h:6: ./pcapFileHandle.h:19:30: error: constant expression evaluates to 212 which cannot be narrowed to type 'char' [-Wc++11-narrowing] const char pcap_header[] = { 0xd4,0xc3,0xb2,0xa1,0x02,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x4e,0x00,0x00,0x01,0x00,0x00,0x00 }; ^~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p477696_s338122/logs/errors/sancp-1.6.1_6.log - Make sure CXXFLAGS is respected PR: 230878 Submitted by: tobik Approved by: bofh (maintainer timeout, 2 weeks)
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# Created by: Paul Schmehl <pauls@utdallas.edu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sancp
|
|
PORTVERSION= 1.6.1
|
|
DISTVERSIONSUFFIX= -stable
|
|
PORTREVISION= 6
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}-stable
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Network connection profiler
|
|
|
|
LICENSE= QPLv1
|
|
LICENSE_NAME= Q PUBLIC LICENSE v1.0
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
USES= compiler
|
|
ALL_TARGET= bsd
|
|
USE_RC_SUBR= sancp
|
|
|
|
USERS= sancp
|
|
GROUPS= sancp
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTDOCS= CHANGES INSTALL ISSUES \
|
|
README SETUP fields.LIST
|
|
|
|
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
|
|
CXXFLAGS_clang= -Wno-c++11-narrowing
|
|
MAKE_ARGS= CFLAGS="${CXXFLAGS}" \
|
|
LFLAGS="${LDFLAGS}"
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|gcc|$${CC}|g ; s|g++|$${CXX}|g' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sancp \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/etc/sancp/sancp.conf \
|
|
${STAGEDIR}${PREFIX}/etc/sancp.conf.sample
|
|
${MKDIR} ${STAGEDIR}/var/log/sancp
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|