On 2022/08/12 11:29:28 +0200, Hiltjo Posthuma <[email protected]> wrote:
> Hi,
>
> The patch below updates net/geomyidae from 0.50.1 to 0.51.
>
> BTW maybe the patch-Makefile patch procedure can be changed to override
> the MANDIR variable in the Makefile? This would avoid having to maintain
> and bump the patch for each release.
indeed, and it's also possible to drop a couple of lines from the
post-install target too.
btw, make port-lib-depends-check complained that `tls' was missing
from WANTLIB.
(+cc maintainer)
Index: Makefile
===================================================================
RCS file: /home/cvs/ports/net/geomyidae/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile 13 Apr 2022 11:06:32 -0000 1.11
+++ Makefile 12 Aug 2022 09:45:45 -0000
@@ -1,6 +1,6 @@
COMMENT = Gopher protocol daemon
-DISTNAME = geomyidae-v0.50.1
+DISTNAME = geomyidae-v0.51
PKGNAME = ${DISTNAME:S/-v/-/}
CATEGORIES = net
@@ -13,18 +13,17 @@ MAINTAINER = Joerg Jung <[email protected]
PERMIT_PACKAGE = Yes
# uses pledge()
-WANTLIB = c
+WANTLIB = c tls
MASTER_SITES = ftp://bitreich.org/releases/geomyidae/
-MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -Wall"
+MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -Wall" \
+ MANDIR="${PREFIX}/man/man8"
MAKE_ENV = LDFLAGS="${LDFLAGS}"
NO_TEST = Yes
post-install:
- ${INSTALL_PROGRAM} ${WRKBUILD}/geomyidae ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKBUILD}/geomyidae.8 ${PREFIX}/man/man8
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/geomyidae
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/geomyidae
cd ${WRKSRC} && ${INSTALL_DATA} CGI.md README \
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/net/geomyidae/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo 13 Apr 2022 11:06:32 -0000 1.6
+++ distinfo 12 Aug 2022 09:36:27 -0000
@@ -1,2 +1,2 @@
-SHA256 (geomyidae-v0.50.1.tar.gz) =
Rn7facnjCOD21rn58NB1hxuz0fToUcVdlrfefApB1Xk=
-SIZE (geomyidae-v0.50.1.tar.gz) = 31832
+SHA256 (geomyidae-v0.51.tar.gz) = z65VWzcw4FYRTyAi7Gi83dnQWTpIZbNMcdrKlJqdiow=
+SIZE (geomyidae-v0.51.tar.gz) = 33384
Index: patches/patch-Makefile
===================================================================
RCS file: patches/patch-Makefile
diff -N patches/patch-Makefile
--- patches/patch-Makefile 13 Apr 2022 11:06:32 -0000 1.5
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-Index: Makefile
---- Makefile.orig
-+++ Makefile
-@@ -7,7 +7,7 @@ VERSION = 0.50.1
-
- PREFIX = /usr/local
- BINDIR = ${PREFIX}/bin
--MANDIR = ${PREFIX}/share/man/man8
-+MANDIR = ${PREFIX}/man/man8
-
- # Comment to disable TLS support
- TLS_CFLAGS = -DENABLE_TLS