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)
Mon, Jun 2, 10:07 PM
Unknown Object (File)
Mon, Jun 2, 2:28 AM
Unknown Object (File)
Sat, May 31, 2:47 AM
Unknown Object (File)
Wed, May 21, 9:17 PM
Unknown Object (File)
Sat, May 17, 5:42 PM
Unknown Object (File)
May 3 2025, 10:13 PM
Unknown Object (File)
Apr 30 2025, 12:13 AM
Unknown Object (File)
Apr 24 2025, 10:16 PM
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 30833
Build 28552: arc lint + arc unit

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
3–4

TAB after =.

15

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

www/varnish-libvmod-digest/Makefile
4–5

DISTVERSION= 1.0.2-6
DISTVERSIONSUFFIX= -g1793bea

27

Remove

www/varnish-libvmod-digest/Makefile
15

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
3–4

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.