pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/ups-nut ups-nut: fix man page references



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b854ee2b112b
branches:  trunk
changeset: 449261:b854ee2b112b
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Mar 24 11:01:55 2021 +0000

description:
ups-nut: fix man page references

>From Edgar Fuß in private email.

Fix some pkglint while here (openssl option disabled because only openssl 1.0
supported).

Bump PKGREVISION.

diffstat:

 sysutils/ups-nut/Makefile      |  11 +++++++++--
 sysutils/ups-nut/buildlink3.mk |   8 ++++----
 sysutils/ups-nut/options.mk    |  10 +++++-----
 3 files changed, 18 insertions(+), 11 deletions(-)

diffs (73 lines):

diff -r 9f76d3ee0ad1 -r b854ee2b112b sysutils/ups-nut/Makefile
--- a/sysutils/ups-nut/Makefile Wed Mar 24 10:31:15 2021 +0000
+++ b/sysutils/ups-nut/Makefile Wed Mar 24 11:01:55 2021 +0000
@@ -1,11 +1,18 @@
-# $NetBSD: Makefile,v 1.59 2021/02/11 10:05:13 wiz Exp $
+# $NetBSD: Makefile,v 1.60 2021/03/24 11:01:55 wiz Exp $
 
 .include "Makefile.common"
 
 PKGNAME=               ups-${DISTNAME}
-PKGREVISION=           3
+PKGREVISION=           4
 COMMENT=               Network UPS Tools
 
+SUBST_CLASSES+=                man-so
+SUBST_MESSAGE.man-so=  Fixing manpage .so references.
+SUBST_STAGE.man-so=    pre-build
+SUBST_FILES.man-so=    docs/man/*.[0-9]
+SUBST_SED.man-so=      -e 's,^\.so \([^/]*\)\.\([0-9]\)$$,.so man\2/\1.\2,'
+SUBST_NOOP_OK.man-so=  yes
+
 # Don't regenerate any files in tools/.
 TOOLS_SCRIPT.perl=     exit 1
 
diff -r 9f76d3ee0ad1 -r b854ee2b112b sysutils/ups-nut/buildlink3.mk
--- a/sysutils/ups-nut/buildlink3.mk    Wed Mar 24 10:31:15 2021 +0000
+++ b/sysutils/ups-nut/buildlink3.mk    Wed Mar 24 11:01:55 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2021/02/22 17:07:50 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2021/03/24 11:01:55 wiz Exp $
 
 BUILDLINK_TREE+=       ups-nut
 
@@ -11,10 +11,10 @@
 pkgbase:= ups-nut
 .include "../../mk/pkg-build-options.mk"
 
-.if ${PKG_BUILD_OPTIONS.ups-nut:Mopenssl}
-.  include "../../security/openssl/buildlink3.mk"
-.elif ${PKG_BUILD_OPTIONS.ups-nut:Mnss}
+.if ${PKG_BUILD_OPTIONS.ups-nut:Mnss}
 .  include "../../devel/nss/buildlink3.mk"
+#.elif ${PKG_BUILD_OPTIONS.ups-nut:Mopenssl}
+#.  include "../../security/openssl/buildlink3.mk"
 .endif
 
 .include "../../mk/pthread.buildlink3.mk"
diff -r 9f76d3ee0ad1 -r b854ee2b112b sysutils/ups-nut/options.mk
--- a/sysutils/ups-nut/options.mk       Wed Mar 24 10:31:15 2021 +0000
+++ b/sysutils/ups-nut/options.mk       Wed Mar 24 11:01:55 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2021/02/11 10:05:13 wiz Exp $
+# $NetBSD: options.mk,v 1.2 2021/03/24 11:01:55 wiz Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.ups-nut
 PKG_OPTIONS_OPTIONAL_GROUPS=   ssl
@@ -7,12 +7,12 @@
 
 .include "../../mk/bsd.options.mk"
 
-.if !empty(PKG_OPTIONS:Mopenssl)
-CONFIGURE_ARGS+=       --with-ssl=openssl --with-openssl --without-nss
-.  include "../../security/openssl/buildlink3.mk"
-.elif !empty(PKG_OPTIONS:Mnss)
+.if !empty(PKG_OPTIONS:Mnss)
 CONFIGURE_ARGS+=       --with-ssl=nss --with-nss --without-openssl
 .  include "../../devel/nss/buildlink3.mk"
+#.elif !empty(PKG_OPTIONS:Mopenssl)
+#CONFIGURE_ARGS+=      --with-ssl=openssl --with-openssl --without-nss
+#.  include "../../security/openssl/buildlink3.mk"
 .else
 CONFIGURE_ARGS+=       --without-ssl
 .endif



Home | Main Index | Thread Index | Old Index