mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
parent
ccac4779b7
commit
7dc89a322d
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2016-2021 Franco Fichtner <franco@opnsense.org>
|
# Copyright (c) 2016-2024 Franco Fichtner <franco@opnsense.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@ -70,6 +70,7 @@ CORE_SYSLOGNG?= ${_CORE_SYSLOGNG:S/./ /g:[1..2]:tW:S/ /./g}
|
|||||||
REPLACEMENTS= CORE_ABI \
|
REPLACEMENTS= CORE_ABI \
|
||||||
CORE_ARCH \
|
CORE_ARCH \
|
||||||
CORE_COMMIT \
|
CORE_COMMIT \
|
||||||
|
CORE_CONFLICTS \
|
||||||
CORE_COPYRIGHT_HOLDER \
|
CORE_COPYRIGHT_HOLDER \
|
||||||
CORE_COPYRIGHT_WWW \
|
CORE_COPYRIGHT_WWW \
|
||||||
CORE_COPYRIGHT_YEARS \
|
CORE_COPYRIGHT_YEARS \
|
||||||
|
|||||||
@ -30,3 +30,5 @@ CORE_NAME?= opnsense-devel
|
|||||||
# adjust src/root/boot/lua/logo-hourglass.lua.in accordingly:
|
# adjust src/root/boot/lua/logo-hourglass.lua.in accordingly:
|
||||||
CORE_NICKNAME?= Not Yet
|
CORE_NICKNAME?= Not Yet
|
||||||
CORE_TYPE?= development
|
CORE_TYPE?= development
|
||||||
|
# plugins that were migrated to core are here
|
||||||
|
CORE_CONFLICTS?=firewall wireguard wireguard-go
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2018-2023 Franco Fichtner <franco@opnsense.org>
|
.\" Copyright (c) 2018-2024 Franco Fichtner <franco@opnsense.org>
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
@ -24,7 +24,7 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd February 7, 2023
|
.Dd August 27, 2024
|
||||||
.Dt OPNSENSE-VERSION 8
|
.Dt OPNSENSE-VERSION 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -32,7 +32,7 @@
|
|||||||
.Nd OPNsense version utility
|
.Nd OPNsense version utility
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl AaefHilNnsVvwx
|
.Op Fl AaCefHilNnsVvwx
|
||||||
.Op Ar package
|
.Op Ar package
|
||||||
.Nm
|
.Nm
|
||||||
.Fl cO
|
.Fl cO
|
||||||
@ -67,6 +67,8 @@ The options are as follows:
|
|||||||
Return the system architecture string.
|
Return the system architecture string.
|
||||||
.It Fl a
|
.It Fl a
|
||||||
Return the firmware ABI string.
|
Return the firmware ABI string.
|
||||||
|
.It Fl C
|
||||||
|
Return a space separated list of known product conficts.
|
||||||
.It Fl c
|
.It Fl c
|
||||||
Exit successfully if the package exists.
|
Exit successfully if the package exists.
|
||||||
Otherwise, exit with an error.
|
Otherwise, exit with an error.
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"product_abi": "%%CORE_ABI%%",
|
"product_abi": "%%CORE_ABI%%",
|
||||||
"product_arch": "%%CORE_ARCH%%",
|
"product_arch": "%%CORE_ARCH%%",
|
||||||
|
"product_conflicts": "%%CORE_CONFLICTS%%",
|
||||||
"product_copyright_owner": "%%CORE_COPYRIGHT_HOLDER%%",
|
"product_copyright_owner": "%%CORE_COPYRIGHT_HOLDER%%",
|
||||||
"product_copyright_url": "%%CORE_COPYRIGHT_WWW%%",
|
"product_copyright_url": "%%CORE_COPYRIGHT_WWW%%",
|
||||||
"product_copyright_years": "%%CORE_COPYRIGHT_YEARS%%",
|
"product_copyright_years": "%%CORE_COPYRIGHT_YEARS%%",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2018-2023 Franco Fichtner <franco@opnsense.org>
|
# Copyright (c) 2018-2024 Franco Fichtner <franco@opnsense.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions are met:
|
# modification, are permitted provided that the following conditions are met:
|
||||||
@ -33,7 +33,7 @@ OUTPUT=
|
|||||||
DO_CHECK=
|
DO_CHECK=
|
||||||
DO_ORIGIN=
|
DO_ORIGIN=
|
||||||
|
|
||||||
while getopts AaceHilNnOstVvwx OPT; do
|
while getopts AaCceHilNnOstVvwx OPT; do
|
||||||
case ${OPT} in
|
case ${OPT} in
|
||||||
A)
|
A)
|
||||||
OUTPUT="${OUTPUT} \${product_arch}"
|
OUTPUT="${OUTPUT} \${product_arch}"
|
||||||
@ -41,6 +41,9 @@ while getopts AaceHilNnOstVvwx OPT; do
|
|||||||
a)
|
a)
|
||||||
OUTPUT="${OUTPUT} \${product_abi}"
|
OUTPUT="${OUTPUT} \${product_abi}"
|
||||||
;;
|
;;
|
||||||
|
C)
|
||||||
|
OUTPUT="${OUTPUT} \${product_conflicts}"
|
||||||
|
;;
|
||||||
c)
|
c)
|
||||||
DO_CHECK="-c"
|
DO_CHECK="-c"
|
||||||
;;
|
;;
|
||||||
@ -215,4 +218,7 @@ core)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
eval echo ${OUTPUT}
|
OUTPUT=$(eval echo ${OUTPUT})
|
||||||
|
if [ -n "${OUTPUT}" ]; then
|
||||||
|
echo "${OUTPUT}"
|
||||||
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user