pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libsmi



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jan  8 14:50:59 UTC 2022

Modified Files:
        pkgsrc/devel/libsmi: Makefile PLIST
Added Files:
        pkgsrc/devel/libsmi: options.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/libsmi/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/libsmi/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libsmi/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libsmi/Makefile
diff -u pkgsrc/devel/libsmi/Makefile:1.20 pkgsrc/devel/libsmi/Makefile:1.21
--- pkgsrc/devel/libsmi/Makefile:1.20   Sun Jan 26 17:30:59 2020
+++ pkgsrc/devel/libsmi/Makefile        Sat Jan  8 14:50:59 2022
@@ -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 @@ LICENSE=      esdl-license
 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 @@ REPLACE_SH+=  test/*.test.in
 
 TEST_TARGET=   check
 
+.include "options.mk"
+
 post-extract:
        rm -f ${WRKSRC}/test/smilint-smiv2.test
 

Index: pkgsrc/devel/libsmi/PLIST
diff -u pkgsrc/devel/libsmi/PLIST:1.8 pkgsrc/devel/libsmi/PLIST:1.9
--- pkgsrc/devel/libsmi/PLIST:1.8       Fri Nov  6 17:07:23 2015
+++ pkgsrc/devel/libsmi/PLIST   Sat Jan  8 14:50:59 2022
@@ -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

Added files:

Index: pkgsrc/devel/libsmi/options.mk
diff -u /dev/null pkgsrc/devel/libsmi/options.mk:1.1
--- /dev/null   Sat Jan  8 14:50:59 2022
+++ pkgsrc/devel/libsmi/options.mk      Sat Jan  8 14:50:59 2022
@@ -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