mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 21:07:55 +00:00
Sync PolyPkg from upstream.
This commit is contained in:
parent
0cf2e09e0c
commit
e42afc7732
55
scripts/pp
55
scripts/pp
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright 2020 One Identity LLC. ALL RIGHTS RESERVED
|
# Copyright 2020 One Identity LLC. ALL RIGHTS RESERVED
|
||||||
pp_revision="20200422"
|
pp_revision="20200506"
|
||||||
# Copyright 2018 One Identity LLC. ALL RIGHTS RESERVED.
|
# Copyright 2018 One Identity LLC. ALL RIGHTS RESERVED.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -3785,15 +3785,11 @@ pp_solaris_remove_service () {
|
|||||||
if [ "x${PKG_INSTALL_ROOT}" = 'x' ]; then
|
if [ "x${PKG_INSTALL_ROOT}" = 'x' ]; then
|
||||||
if [ -x /usr/sbin/svcadm ] ; then
|
if [ -x /usr/sbin/svcadm ] ; then
|
||||||
/usr/sbin/svcadm disable -s '$svc' 2>/dev/null
|
/usr/sbin/svcadm disable -s '$svc' 2>/dev/null
|
||||||
case "`uname -r`-$pp_svc_xml_file" in
|
if [ `uname -r` = 5.10 ] || [ "'${pp_svc_xml_file%/*/*}'" != "/var/svc/manifest" ]; then
|
||||||
5.1[1-9]*-/var/svc/manifest/*|5.[2-9]*-/var/svc/manifest/*)
|
|
||||||
# Use manifest-import if > 5.10 and manifest in default location
|
|
||||||
/usr/sbin/svcadm restart manifest-import 2>/dev/null
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
/usr/sbin/svccfg delete '$svc' 2>/dev/null
|
/usr/sbin/svccfg delete '$svc' 2>/dev/null
|
||||||
;;
|
else
|
||||||
esac
|
/usr/sbin/svcadm restart manifest-import 2>/dev/null
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
'$file' stop >/dev/null 2>/dev/null
|
'$file' stop >/dev/null 2>/dev/null
|
||||||
fi
|
fi
|
||||||
@ -3813,15 +3809,11 @@ pp_solaris_install_service () {
|
|||||||
echo '
|
echo '
|
||||||
if [ "x${PKG_INSTALL_ROOT}" != "x" ]; then
|
if [ "x${PKG_INSTALL_ROOT}" != "x" ]; then
|
||||||
if [ -x ${PKG_INSTALL_ROOT}/usr/sbin/svcadm ]; then
|
if [ -x ${PKG_INSTALL_ROOT}/usr/sbin/svcadm ]; then
|
||||||
case "`uname -r`-$pp_svc_xml_file" in
|
if [ `uname -r` = 5.10 ] || [ "'${pp_svc_xml_file%/*/*}'" != "/var/svc/manifest" ]; then
|
||||||
5.1[1-9]*-/var/svc/manifest/*|5.[2-9]*-/var/svc/manifest/*)
|
|
||||||
# Use manifest-import if > 5.10 and manifest in default location
|
|
||||||
echo "/usr/sbin/svcadm restart manifest-import 2>/dev/null" >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "/usr/sbin/svccfg import '$pp_svc_xml_file' 2>/dev/null" >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade
|
echo "/usr/sbin/svccfg import '$pp_svc_xml_file' 2>/dev/null" >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade
|
||||||
;;
|
else
|
||||||
esac
|
echo "/usr/sbin/svcadm restart manifest-import 2>/dev/null" >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade
|
||||||
|
fi
|
||||||
else'
|
else'
|
||||||
test -n "${solaris_sysv_init_start_states}" &&
|
test -n "${solaris_sysv_init_start_states}" &&
|
||||||
for state in ${solaris_sysv_init_start_states}; do
|
for state in ${solaris_sysv_init_start_states}; do
|
||||||
@ -3843,9 +3835,10 @@ else
|
|||||||
if [ -x /usr/sbin/svcadm ]; then
|
if [ -x /usr/sbin/svcadm ]; then
|
||||||
echo "Registering '$svc' with SMF"
|
echo "Registering '$svc' with SMF"
|
||||||
/usr/sbin/svcadm disable -s '$svc' 2>/dev/null
|
/usr/sbin/svcadm disable -s '$svc' 2>/dev/null
|
||||||
case "`uname -r`-$pp_svc_xml_file" in
|
if [ `uname -r` = 5.10 ] || [ "'${pp_svc_xml_file%/*/*}'" != "/var/svc/manifest" ]; then
|
||||||
5.1[1-9]*-/var/svc/manifest/*|5.[2-9]*-/var/svc/manifest/*)
|
/usr/sbin/svccfg delete '$svc' 2>/dev/null
|
||||||
# Use manifest-import if > 5.10 and manifest in default location
|
/usr/sbin/svccfg import '$pp_svc_xml_file'
|
||||||
|
else
|
||||||
/usr/sbin/svcadm restart manifest-import
|
/usr/sbin/svcadm restart manifest-import
|
||||||
# Wait for import to complete, otherwise it will not know
|
# Wait for import to complete, otherwise it will not know
|
||||||
# about our service until after we try to start it
|
# about our service until after we try to start it
|
||||||
@ -3861,12 +3854,7 @@ else
|
|||||||
else
|
else
|
||||||
echo manifest-import took to long, you might have to control '$svc' manually.
|
echo manifest-import took to long, you might have to control '$svc' manually.
|
||||||
fi
|
fi
|
||||||
;;
|
fi
|
||||||
*)
|
|
||||||
/usr/sbin/svccfg delete '$svc' 2>/dev/null
|
|
||||||
/usr/sbin/svccfg import '$pp_svc_xml_file'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else'
|
else'
|
||||||
test -n "${solaris_sysv_init_start_states}" &&
|
test -n "${solaris_sysv_init_start_states}" &&
|
||||||
for state in ${solaris_sysv_init_start_states}; do
|
for state in ${solaris_sysv_init_start_states}; do
|
||||||
@ -7950,20 +7938,20 @@ pp_backend_bsd_init () {
|
|||||||
pp_bsd_desc=
|
pp_bsd_desc=
|
||||||
pp_bsd_message=
|
pp_bsd_message=
|
||||||
|
|
||||||
# pp_bsd_category must be in array format comma seperated
|
# pp_bsd_category must be in array format comma separated
|
||||||
# pp_bsd_category=[security,network]
|
# pp_bsd_category=[security,network]
|
||||||
pp_bsd_category=
|
pp_bsd_category=
|
||||||
|
|
||||||
# pp_bsd_licenselogic can be one of the following: single, and, or unset
|
# pp_bsd_licenselogic can be one of the following: single, and, or unset
|
||||||
pp_bsd_licenselogic=
|
pp_bsd_licenselogic=
|
||||||
|
|
||||||
# pp_bsd_licenses must be in array format comma seperated
|
# pp_bsd_licenses must be in array format comma separated
|
||||||
# pp_bsd_licenses=[GPLv2,MIT]
|
# pp_bsd_licenses=[GPLv2,MIT]
|
||||||
pp_bsd_licenses=
|
pp_bsd_licenses=
|
||||||
|
|
||||||
# pp_bsd_annotations. These can be any key: value pair
|
# pp_bsd_annotations. These can be any key: value pair
|
||||||
# key must be seperated by a :
|
# key must be separated by a :
|
||||||
# keyvalue pairs must be comma seperated
|
# keyvalue pairs must be comma separated
|
||||||
# pp_bsd_annotations="repo_type: binary, somekey: somevalue"
|
# pp_bsd_annotations="repo_type: binary, somekey: somevalue"
|
||||||
# since all packages created by PolyPackage will be of type binary
|
# since all packages created by PolyPackage will be of type binary
|
||||||
# let's just set it now.
|
# let's just set it now.
|
||||||
@ -8047,8 +8035,8 @@ pp_bsd_make_annotations () {
|
|||||||
manifest=$1
|
manifest=$1
|
||||||
|
|
||||||
# Add annotations. These can be any key: value pair
|
# Add annotations. These can be any key: value pair
|
||||||
# key must be seperated by a :
|
# key must be separated by a :
|
||||||
# key:value pairs must be comma seperated.
|
# key:value pairs must be comma separated.
|
||||||
if test -n "$pp_bsd_annotations"; then
|
if test -n "$pp_bsd_annotations"; then
|
||||||
pp_debug "Processing annotations:"
|
pp_debug "Processing annotations:"
|
||||||
pp_bsd_label "annotations" "{" >> $manifest
|
pp_bsd_label "annotations" "{" >> $manifest
|
||||||
@ -8092,7 +8080,7 @@ pp_bsd_make_messages () {
|
|||||||
test -z $1 && pp_die "pp_bsd_make_messages requires a parameter"
|
test -z $1 && pp_die "pp_bsd_make_messages requires a parameter"
|
||||||
manifest=$1
|
manifest=$1
|
||||||
|
|
||||||
pp_debug "Processing messsages"
|
pp_debug "Processing messages"
|
||||||
|
|
||||||
# Empty messages: [ ] is OK in the manifest
|
# Empty messages: [ ] is OK in the manifest
|
||||||
pp_bsd_label "messages" "[" >> $manifest
|
pp_bsd_label "messages" "[" >> $manifest
|
||||||
@ -8832,6 +8820,7 @@ ${pp_systemd_service_conflicts:+"Conflicts=$pp_systemd_service_conflicts"}
|
|||||||
ExecStart=${pp_systemd_service_exec:-"/opt/quest/sbin/$svc"} ${pp_systemd_service_exec_args}
|
ExecStart=${pp_systemd_service_exec:-"/opt/quest/sbin/$svc"} ${pp_systemd_service_exec_args}
|
||||||
KillMode=${pp_systemd_service_killmode:-process}
|
KillMode=${pp_systemd_service_killmode:-process}
|
||||||
Type=${pp_systemd_service_type:-forking}
|
Type=${pp_systemd_service_type:-forking}
|
||||||
|
${pp_systemd_service_pidfile:+"PIDFile=$pp_systemd_service_pidfile"}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=${pp_systemd_system_target:-"multi-user.target"}
|
WantedBy=${pp_systemd_system_target:-"multi-user.target"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user