pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libsmi libsmi: do not install smicache by default
details: https://anonhg.NetBSD.org/pkgsrc/rev/117bcf5d972c
branches: trunk
changeset: 371284:117bcf5d972c
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat Jan 08 14:50:59 2022 +0000
description:
libsmi: do not install smicache by default
According to comments in the script itself:
# NOTE, that smicache has just been an experiment. It is NOT suggested
# to use it in a production environment.
Add option to install it for those that want it anyway.
Bump PKGREVISION.
diffstat:
devel/libsmi/Makefile | 7 ++++---
devel/libsmi/PLIST | 4 ++--
devel/libsmi/options.mk | 17 +++++++++++++++++
3 files changed, 23 insertions(+), 5 deletions(-)
diffs (62 lines):
diff -r a911a7b43b03 -r 117bcf5d972c devel/libsmi/Makefile
--- a/devel/libsmi/Makefile Sat Jan 08 14:43:09 2022 +0000
+++ b/devel/libsmi/Makefile Sat Jan 08 14:50:59 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2020/01/26 17:30:59 rillig Exp $
+# $NetBSD: Makefile,v 1.21 2022/01/08 14:50:59 wiz Exp $
DISTNAME= libsmi-0.5.0
+PKGREVISION= 1
CATEGORIES= devel net
MASTER_SITES= http://www.ibr.cs.tu-bs.de/projects/libsmi/download/
@@ -12,8 +13,6 @@
MIBDIR= ${PREFIX}/share/libsmi/mibs
PIBDIR= ${PREFIX}/share/libsmi/pibs
-DEPENDS+= wget-[0-9]*:../../net/wget
-
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
@@ -27,6 +26,8 @@
TEST_TARGET= check
+.include "options.mk"
+
post-extract:
rm -f ${WRKSRC}/test/smilint-smiv2.test
diff -r a911a7b43b03 -r 117bcf5d972c devel/libsmi/PLIST
--- a/devel/libsmi/PLIST Sat Jan 08 14:43:09 2022 +0000
+++ b/devel/libsmi/PLIST Sat Jan 08 14:50:59 2022 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.8 2015/11/06 17:07:23 adam Exp $
-bin/smicache
+@comment $NetBSD: PLIST,v 1.9 2022/01/08 14:50:59 wiz Exp $
+${PLIST.smicache}bin/smicache
bin/smidiff
bin/smidump
bin/smilint
diff -r a911a7b43b03 -r 117bcf5d972c devel/libsmi/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libsmi/options.mk Sat Jan 08 14:50:59 2022 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2022/01/08 14:50:59 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libsmi
+PKG_SUPPORTED_OPTIONS= wget
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= smicache
+.if !empty(PKG_OPTIONS:Mwget)
+DEPENDS+= wget-[0-9]*:../../net/wget
+PLIST.smicache= yes
+.else
+post-install: remove-smicache
+.PHONY: remove-smicache
+remove-smicache:
+ rm ${DESTDIR}${PREFIX}/bin/smicache
+.endif
Home |
Main Index |
Thread Index |
Old Index