View | Details | Raw Unified | Return to bug 256539 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/safe-iop/Makefile (-9 / +23 lines)
Lines 1-29 Link Here
1
# Created by: stas
1
# Created by: stas
2
2
3
PORTNAME=	safe-iop
3
PORTNAME=	safe-iop
4
PORTVERSION=	0.3.1
4
DISTVERSION=	0.3.2
5
PORTREVISION=	1
6
CATEGORIES=	devel
5
CATEGORIES=	devel
7
MASTER_SITES=	https://BSDforge.com/projects/source/devel/safe-iop/
6
MASTER_SITES=	https://BSDforge.com/projects/source/devel/safe-iop/
8
7
9
MAINTAINER=	portmaster@BSDforge.com
8
MAINTAINER=	portmaster@BSDforge.com
10
COMMENT=	Safe integer operation library for C
9
COMMENT=	Safe integer operation library for C
11
10
12
USES=		tar:tgz
11
# XXX
12
# I use BSD1CLAUSE as defined in /usr/src/include/ifaddrs.h
13
# but bsd.licenses.db.mk only has
14
# BSD BSD0CLAUSE BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE - go figure
15
# So fake it
16
LICENSE=	BSD2CLAUSE
17
LICENSE_FILE=	${WRKSRC}/LICENSE
18
13
USE_LDCONFIG=	yes
19
USE_LDCONFIG=	yes
14
ALL_TARGET=	so
20
ALL_TARGET=	so
15
CFLAGS+=	-fPIC
21
CFLAGS+=	-fPIC
22
16
PLIST_FILES=	include/safe_iop.h \
23
PLIST_FILES=	include/safe_iop.h \
17
		lib/libsafe_iop.so.0
24
		lib/libsafe_iop.so.0 \
25
		%%DOCSDIR%%/README \
26
		%%DOCSDIR%%/README.md \
27
		%%EXAMPLESDIR%%/askme.c
18
28
19
post-patch:
29
USE_GITLAB=	yes
20
	@${REINPLACE_CMD} -E -e 's,(^CC[[:space:]]*=.*),#\1,' \
30
GL_ACCOUNT=	ports1
21
	    -e 's,(^CFLAGS[[:space:]]*)=.*,\1+= -Iinclude,' \
31
GL_PROJECT=	safe-iop
22
	    -e 's,(^VERSION[[:space:]]*=[[:space:]]*[[:digit:]]+).*,\1,' \
32
GL_COMMIT=	2b20d77fb9f22b1ec9e2b3d2eb53c532596d3203
23
	    ${WRKSRC}/Makefile
24
33
25
do-install:
34
do-install:
26
	${INSTALL_LIB} ${WRKSRC}/libsafe_iop.so.0 ${STAGEDIR}${PREFIX}/lib
35
	${INSTALL_LIB} ${WRKSRC}/libsafe_iop.so.0 ${STAGEDIR}${PREFIX}/lib
27
	${INSTALL_DATA} ${WRKSRC}/include/safe_iop.h ${STAGEDIR}${PREFIX}/include
36
	${INSTALL_DATA} ${WRKSRC}/include/safe_iop.h ${STAGEDIR}${PREFIX}/include
37
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
38
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
39
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
40
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
41
	${INSTALL_DATA} ${WRKSRC}/examples/askme.c ${STAGEDIR}${EXAMPLESDIR}
28
42
29
.include <bsd.port.mk>
43
.include <bsd.port.mk>
(-)b/devel/safe-iop/distinfo (-2 / +4 lines)
Lines 1-2 Link Here
1
SHA256 (safe-iop-0.3.1.tgz) = 96027e1512dc463f8418e0ba89f8c39a4bfe36cf2456c9afbf1b3897b4e9cf76
1
TIMESTAMP = 1623347535
2
SIZE (safe-iop-0.3.1.tgz) = 11515
2
SHA256 (ports1-safe-iop-2b20d77fb9f22b1ec9e2b3d2eb53c532596d3203_GL0.tar.gz) = bfe8453159c04e3aa6ad107407212a671d20693dd9592a1b88a54e6e9fc019f5
3
SHA512 (ports1-safe-iop-2b20d77fb9f22b1ec9e2b3d2eb53c532596d3203_GL0.tar.gz) = 21fc2022d22c622a73a3931de86a391d111ae008e03d38ecde96dd0d193b40c64514596a47cc7dee22a75f00f03e5e231858177fe60260b7c83e85c0f162023a
4
SIZE (ports1-safe-iop-2b20d77fb9f22b1ec9e2b3d2eb53c532596d3203_GL0.tar.gz) = 12428
(-)b/devel/safe-iop/pkg-descr (-4 / +4 lines)
Lines 4-14 with a straightforward API. Link Here
4
4
5
It supports two modes of use: header-only and linked dynamic library.
5
It supports two modes of use: header-only and linked dynamic library.
6
The linked, dynamic library supplies a format-string based interface
6
The linked, dynamic library supplies a format-string based interface
7
which is in pre-alpha.  The header-only mode supplies integer and sign
7
which is in pre-alpha. The header-only mode supplies integer and sign
8
overflow and underflow pre-condition checks using checks derived from
8
overflow and underflow pre-condition checks using checks derived from
9
the CERT secure coding guide.  The checks do not rely on twos complement
9
the CERT secure coding guide. The checks do not rely on twos complement
10
arithmetic and should not at any point perform an arithmetic operations
10
arithmetic and should not at any point perform an arithmetic operations
11
that may overflow.  It also performs basic type agreement checks to
11
that may overflow. It also performs basic type agreement checks to
12
ensure that the macros are being used (somewhat) correctly.
12
ensure that the macros are being used (somewhat) correctly.
13
13
14
WWW: https://BSDforge.com/projects/devel/safe-iop/
14
WWW: https://gitlab.com/ports1/safe-iop/

Return to bug 256539