Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils netbsd-kmod-tools: Remove.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/53da4e5c1b15
branches:  trunk
changeset: 430284:53da4e5c1b15
user:      maya <maya%pkgsrc.org@localhost>
date:      Wed Apr 29 20:15:59 2020 +0000

description:
netbsd-kmod-tools: Remove.

Package specific to NetBSD 5.x, which is EOL

diffstat:

 sysutils/Makefile                            |    3 +-
 sysutils/netbsd-kmod-tools/DESCR             |   12 -
 sysutils/netbsd-kmod-tools/Makefile          |   30 ----
 sysutils/netbsd-kmod-tools/PLIST             |    4 -
 sysutils/netbsd-kmod-tools/files/modload.c   |  201 ---------------------------
 sysutils/netbsd-kmod-tools/files/modstat.c   |  130 -----------------
 sysutils/netbsd-kmod-tools/files/modunload.c |   65 --------
 7 files changed, 1 insertions(+), 444 deletions(-)

diffs (truncated from 483 to 300 lines):

diff -r fa9afebb4aae -r 53da4e5c1b15 sysutils/Makefile
--- a/sysutils/Makefile Wed Apr 29 20:15:33 2020 +0000
+++ b/sysutils/Makefile Wed Apr 29 20:15:59 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.874 2020/04/27 15:21:19 mef Exp $
+# $NetBSD: Makefile,v 1.875 2020/04/29 20:15:59 maya Exp $
 #
 
 COMMENT=       System utilities
@@ -393,7 +393,6 @@
 SUBDIR+=       ndesk-dbus-glib
 SUBDIR+=       neb-wipe
 SUBDIR+=       neofetch
-SUBDIR+=       netbsd-kmod-tools
 SUBDIR+=       netbt-hcidump
 SUBDIR+=       news
 SUBDIR+=       nnn
diff -r fa9afebb4aae -r 53da4e5c1b15 sysutils/netbsd-kmod-tools/DESCR
--- a/sysutils/netbsd-kmod-tools/DESCR  Wed Apr 29 20:15:33 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-Kernel modules allow the system administrator to dynamically add and
-remove functionality from a running system.  This ability also helps
-software developers to develop new parts of the kernel without constantly
-rebooting to test their changes.
-
-This package provides the necessary utilities for using kernel modules on
-NetBSD 5.x.
-
-The modload utility loads a kernel module specified by the module parameter
-into the running system. The modunload utility unloads a loadable kernel
-module from a running system. The modstat utility displays the status of
-any kernel modules present in the kernel.
diff -r fa9afebb4aae -r 53da4e5c1b15 sysutils/netbsd-kmod-tools/Makefile
--- a/sysutils/netbsd-kmod-tools/Makefile       Wed Apr 29 20:15:33 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2020/01/18 23:35:19 rillig Exp $
-
-DISTNAME=      netbsd-kmod-tools-5.1
-CATEGORIES=    sysutils
-DISTFILES=     #
-
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://www.NetBSD.org/
-COMMENT=       NetBSD kmod tools
-
-ONLY_FOR_PLATFORM=     NetBSD-5.[0-8]*-*
-
-do-extract:
-       mkdir ${WRKSRC}
-       cp ${FILESDIR}/modstat.c ${WRKSRC}
-       cp ${FILESDIR}/modload.c ${WRKSRC}
-       cp ${FILESDIR}/modunload.c ${WRKSRC}
-
-do-build:
-       cd ${WRKSRC} && ${CC} -Wall -Werror modstat.c -o modstat
-       cd ${WRKSRC} && ${CC} -Wall -Werror modload.c -o modload -lprop
-       cd ${WRKSRC} && ${CC} -Wall -Werror modunload.c -o modunload
-
-do-install:
-       ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
-       ${INSTALL_PROGRAM} ${WRKSRC}/modstat ${DESTDIR}${PREFIX}/sbin
-       ${INSTALL_PROGRAM} ${WRKSRC}/modload ${DESTDIR}${PREFIX}/sbin
-       ${INSTALL_PROGRAM} ${WRKSRC}/modunload ${DESTDIR}${PREFIX}/sbin
-
-.include "../../mk/bsd.pkg.mk"
diff -r fa9afebb4aae -r 53da4e5c1b15 sysutils/netbsd-kmod-tools/PLIST
--- a/sysutils/netbsd-kmod-tools/PLIST  Wed Apr 29 20:15:33 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2018/01/01 22:29:57 rillig Exp $
-sbin/modload
-sbin/modstat
-sbin/modunload
diff -r fa9afebb4aae -r 53da4e5c1b15 sysutils/netbsd-kmod-tools/files/modload.c
--- a/sysutils/netbsd-kmod-tools/files/modload.c        Wed Apr 29 20:15:33 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,201 +0,0 @@
-/*     $NetBSD: modload.c,v 1.1.1.1 2011/08/27 12:33:11 jmcneill Exp $ */
-
-/*-
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-#ifndef lint
-__RCSID("$NetBSD: modload.c,v 1.1.1.1 2011/08/27 12:33:11 jmcneill Exp $");
-#endif /* !lint */
-
-#include <sys/module.h>
-
-#include <assert.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <err.h>
-
-#include <prop/proplib.h>
-
-int            main(int, char **);
-static void    parse_bool_param(prop_dictionary_t, const char *,
-                   const char *);
-static void    parse_int_param(prop_dictionary_t, const char *,
-                   const char *);
-static void    parse_param(prop_dictionary_t, const char *,
-                   void (*)(prop_dictionary_t, const char *, const char *));
-static void    parse_string_param(prop_dictionary_t, const char *,
-                   const char *);
-static void    usage(void) __dead;
-
-int
-main(int argc, char **argv)
-{
-       modctl_load_t cmdargs;
-       prop_dictionary_t props;
-       char *propsstr;
-       int ch;
-       int flags;
-
-       flags = 0;
-       props = prop_dictionary_create();
-
-       while ((ch = getopt(argc, argv, "b:fi:s:")) != -1) {
-               switch (ch) {
-               case 'b':
-                       parse_param(props, optarg, parse_bool_param);
-                       break;
-
-               case 'f':
-                       flags |= MODCTL_LOAD_FORCE;
-                       break;
-
-               case 'i':
-                       parse_param(props, optarg, parse_int_param);
-                       break;
-
-               case 's':
-                       parse_param(props, optarg, parse_string_param);
-                       break;
-
-               default:
-                       usage();
-                       /* NOTREACHED */
-               }
-       }
-
-       argc -= optind;
-       argv += optind;
-       if (argc != 1)
-               usage();
-
-       propsstr = prop_dictionary_externalize(props);
-       if (propsstr == NULL)
-               errx(EXIT_FAILURE, "Failed to process properties");
-
-       cmdargs.ml_filename = argv[0];
-       cmdargs.ml_flags = flags;
-       cmdargs.ml_props = propsstr;
-       cmdargs.ml_propslen = strlen(propsstr);
-
-       if (modctl(MODCTL_LOAD, &cmdargs)) {
-               err(EXIT_FAILURE, NULL);
-       }
-
-       free(propsstr);
-       prop_object_release(props);
-
-       exit(EXIT_SUCCESS);
-}
-
-static
-void
-parse_bool_param(prop_dictionary_t props, const char *name,
-    const char *value)
-{
-       bool boolvalue;
-
-       assert(name != NULL);
-       assert(value != NULL);
-
-       if (strcasecmp(value, "1") == 0 ||
-           strcasecmp(value, "true") == 0 ||
-           strcasecmp(value, "yes") == 0)
-               boolvalue = true;
-       else if (strcasecmp(value, "0") == 0 ||
-           strcasecmp(value, "false") == 0 ||
-           strcasecmp(value, "no") == 0)
-               boolvalue = false;
-       else
-               errx(EXIT_FAILURE, "Invalid boolean value `%s'", value);
-
-       prop_dictionary_set(props, name, prop_bool_create(boolvalue));
-}
-
-static
-void
-parse_int_param(prop_dictionary_t props, const char *name,
-    const char *value)
-{
-       int64_t intvalue;
-
-       assert(name != NULL);
-       assert(value != NULL);
-
-       if (dehumanize_number(value, &intvalue) != 0)
-               err(EXIT_FAILURE, "Invalid integer value `%s'", value);
-
-       prop_dictionary_set(props, name,
-           prop_number_create_integer(intvalue));
-}
-
-static
-void
-parse_param(prop_dictionary_t props, const char *origstr,
-    void (*fmt_handler)(prop_dictionary_t, const char *, const char *))
-{
-       char *name, *value;
-
-       name = strdup(origstr);
-
-       value = strchr(name, '=');
-       if (value == NULL) {
-               free(name);
-               errx(EXIT_FAILURE, "Invalid parameter `%s'", origstr);
-       }
-       *value++ = '\0';
-
-       fmt_handler(props, name, value);
-
-       free(name);
-}
-
-static
-void
-parse_string_param(prop_dictionary_t props, const char *name,
-    const char *value)
-{
-
-       assert(name != NULL);
-       assert(value != NULL);
-
-       prop_dictionary_set(props, name, prop_string_create_cstring(value));
-}
-
-static void
-usage(void)
-{
-
-       (void)fprintf(stderr,
-           "Usage: %s [-b var=boolean] [-f] [-i var=integer] "
-           "[-s var=string]\n"
-           "       <module_name>\n",
-           getprogname());
-       exit(EXIT_FAILURE);
-}
diff -r fa9afebb4aae -r 53da4e5c1b15 sysutils/netbsd-kmod-tools/files/modstat.c
--- a/sysutils/netbsd-kmod-tools/files/modstat.c        Wed Apr 29 20:15:33 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,130 +0,0 @@
-/*     $NetBSD: modstat.c,v 1.1.1.1 2011/08/27 12:33:11 jmcneill Exp $ */
-
-/*-
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS



Home | Main Index | Thread Index | Old Index