Page MenuHomeFreeBSD

Update libvmod-digest to 1.0.2 + unreleased patches
ClosedPublic

Authored by allanjude on Apr 30 2020, 10:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 5:28 PM
Unknown Object (File)
Wed, Apr 3, 1:02 AM
Unknown Object (File)
Mar 11 2024, 1:36 PM
Unknown Object (File)
Feb 16 2024, 6:34 AM
Unknown Object (File)
Feb 16 2024, 6:34 AM
Unknown Object (File)
Feb 16 2024, 6:34 AM
Unknown Object (File)
Feb 16 2024, 6:34 AM
Unknown Object (File)
Feb 16 2024, 6:34 AM
Subscribers

Details

Summary

Update the port to include unrelease upstream patches to work with newer versions of varnish

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Should the shared library be picked up by the shared library cache? If so, you want USE_LDCONFIG=${PREFIX}/lib/varnach/vmods.

If you want to conform to the Order of Variables in Port Makefiles chapter from the Porter's Handbook, then...

# $FreeBSD$

PORTNAME=	libvmod-digest
DISTVERSIONPREFIX=	${PORTNAME}-
DISTVERSION=	1.0.2-6
DISTVERSIONSUFFIX=	-g1793bea
CATEGORIES=	www
PKGNAMEPREFIX=	varnish-

MAINTAINER=	allanjude@FreeBSD.org
COMMENT=	Varnish Module (vmod) for computing message digests and HMAC

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	rst2man:textproc/py-docutils@${PY_FLAVOR}
LIB_DEPENDS=	libmhash.so:security/mhash

USES=		autoreconf gmake libtool pkgconfig python:3.6,build varnish
USE_GITHUB=	yes
GH_ACCOUNT=	varnish
USE_LDCONFIG=	${PREFIX}/lib/varnach/vmods

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-static

INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	DOCS

.include <bsd.port.mk>
www/varnish-libvmod-digest/Makefile
4 ↗(On Diff #71211)

TAB after =.

15 ↗(On Diff #71211)

BUILD_DEPENDS= textproc/py-docutils@${PY_FLAVOR}

www/varnish-libvmod-digest/Makefile
5 ↗(On Diff #71211)

DISTVERSION= 1.0.2-6
DISTVERSIONSUFFIX= -g1793bea

25 ↗(On Diff #71211)

Remove

www/varnish-libvmod-digest/Makefile
15 ↗(On Diff #71211)

is there something similar that can be done for the USES build depends?

Apply suggested changes from jrm

Here is the full Makefile that builds for me. poudriere testport 11/12 i386/amd64 passes.

# $FreeBSD$

PORTNAME=	libvmod-digest
DISTVERSION=	1.0.2-6
DISTVERSIONSUFFIX=	-g1793bea
CATEGORIES=	www
PKGNAMEPREFIX=	varnish-

MAINTAINER=	allanjude@FreeBSD.org
COMMENT=	Varnish Module (vmod) for computing message digests and HMAC

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	rst2man:textproc/py-docutils@${PY_FLAVOR}
LIB_DEPENDS=	libmhash.so:security/mhash

USES=		autoreconf gmake libtool pkgconfig python:3.7+,build varnish:6
USE_GITHUB=	yes
GH_ACCOUNT=	varnish
USE_LDCONFIG=	${PREFIX}/lib/varnach/vmods

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-static

INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	DOCS

.include <bsd.port.mk>
www/varnish-libvmod-digest/Makefile
4 ↗(On Diff #71211)

Actually, you don't need the DISTVERSIONPREFIX=${PORTNAME}-. You can remove this.

Sync with jrm's suggestions

This revision was not accepted when it landed; it landed in state Needs Review.May 1 2020, 4:04 AM
This revision was automatically updated to reflect the committed changes.