/usr/share/plainbox-provider-resource-generic/jobs/resource.pxu is in plainbox-provider-resource-generic 0.23-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | # This is for all the Python scripts
unit: packaging meta-data
os-id: debian
Depends: python3 (>= 3.2)
# This is for bin/efi_resource, bin/cpuinfo_resource, bin/gconf_resource,
# bin/gconf_resource, bin/meminfo_resource, bin/udev_resource
# and bin/xinput_resource
unit: packaging meta-data
os-id: debian
Depends: python3-checkbox-support (>= 0.22)
# This is for bin/display_resource
unit: packaging meta-data
os-id: debian
# NOTE: This is not a hard dependency so that
# plainbox-provider-resource-generic has minimalistic dependencies.
Suggests: x11-server-utils
# This is for bin/dmi_resource
unit: packaging meta-data
os-id: debian
Depends: dmidecode [any-amd64 any-i386 arm64 armhf x32]
# This is for bin/dpkg_resource
unit: packaging meta-data
os-id: debian
Depends: dpkg (>= 1.13)
# This is for bin/gconf_resource
unit: packaging meta-data
os-id: debian
# NOTE: This is not a hard dependency so that
# plainbox-provider-resource-generic has minimalistic dependencies.
Suggests: gconf2
# This is for bin/lsb_resource
unit: packaging meta-data
os-id: debian
Depends: lsb-release
# This is for bin/mobilebroadband_resource
unit: packaging meta-data
os-id: debian
Depends: network-manager
# This is for bin/optical_resource and bin/udev_resource
unit: packaging meta-data
os-id: debian
Depends: udev
# This is for bin/xinput_resource
unit: packaging meta-data
os-id: debian
# NOTE: This is not a hard dependency so that
# plainbox-provider-resource-generic has minimalistic dependencies.
Suggests: xinput
# This is for 'usb'
unit: packaging meta-data
os-id: debian
Depends: usbutils
id: cpuinfo
estimated_duration: 0.37
plugin: resource
command: cpuinfo_resource
_summary: Collect information about the CPU
_description: Gets CPU resource info from /proc/cpuinfo
id: cdimage
estimated_duration: 0.61
plugin: resource
user: root
command: cdimage_resource
_summary: Collect information about installation media (casper)
_description: Gets installation info from casper.log and media-info
id: dpkg
estimated_duration: 0.19
plugin: resource
command: dpkg_resource
requires: package.name == "dpkg"
_summary: Collect information about dpkg version
_description: Gets info on the version of dpkg installed
id: gconf
estimated_duration: 0.42
plugin: resource
command: gconf_resource | filter_templates -w 'name=.*proxy.*'
requires: package.name == "gconf2"
_description: Generates resource info from gconf settings
_summary: Collect information about software configuration (gconf)
id: lsb
estimated_duration: 1.63
plugin: resource
command: lsb_resource
requires: package.name == "lsb-release"
_description: Generates release info based on /etc/lsb-release
_summary: Collect information about installed system (lsb-release)
id: meminfo
estimated_duration: 0.1
plugin: resource
command: meminfo_resource
_description: Generates resource info based on /proc/meminfo
_summary: Collect information about system memory (/proc/meminfo)
id: module
estimated_duration: 0.13
plugin: resource
command: module_resource
_description: Generates resources info on running kernel modules
_summary: Collect information about kernel modules
id: package
estimated_duration: 1.16
plugin: resource
command:
dpkg-query -W -f='name: ${Package}\nversion: ${Version}\nmodalias: ${Modaliases}\n\n' |\
awk 'BEGIN {RS = ""; FS = "\n"}{print $1; print $2; if ($3 ~ /^modalias: .+$/) {print $3}; print "" }'
_description: Generates a list of packages
_summary: Collect information about installed software packages
id: executable
estimated_duration: 0.78
plugin: resource
_summary: Enumerate available system executables
_description: Generates a resource for all available executables
command:
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
find -H $(echo "$PATH" | sed -e 's/:/ /g') -maxdepth 1 -type f -executable -printf "name: %f\n\n"
id: device
estimated_duration: 0.48
plugin: resource
command: udev_resource
requires: package.name == "udev"
_description: Creates resource info from udev
_summary: Collect information about hardware devices (udev)
id: staging/udev
estimated_duration: 1.1
plugin: resource
shell: /bin/sh
requires: package.name == "udev"
command: udevadm info --export-db | udev2resource
_summary: Collect unfiltered udev data
_description:
This job collects the udev database in mostly raw format. The only
transformations applied are basic changes to make the format compatible with
RFC822 syntax required by PlainBox.
id: dmi
estimated_duration: 0.59
plugin: resource
user: root
requires: package.name == "dmidecode"
command: dmi_resource
_summary: Collect information about hardware devices (DMI)
id: efi
estimated_duration: 0.56
plugin: resource
user: root
command: efi_resource
id: uname
estimated_duration: 0.09
plugin: resource
command: uname_resource
_description: Creates resource info from uname output
_summary: Collect information about the running kernel
id: sleep
estimated_duration: 0.03
plugin: resource
command: for state in `cat /sys/power/state`; do echo "$state: supported"; done
_description: Create resource info for supported sleep states
plugin: local
id: optical_drive
estimated_duration: 0.39
requires: device.category == 'CDROM'
_description: Create resource info for supported optical actions
command:
cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
id: optical_drive_`ls /sys$path/block`
plugin: resource
command: optical_resource /dev/`ls /sys/$path/block`
estimated_duration: 0.5
_description: Create resource info for supported optical actions
EOF
id: block_device
estimated_duration: 0.08
plugin: resource
user: root
command: block_device_resource
_description: Create resource info for removable block devices
id: display
estimated_duration: 0.43
plugin: resource
command: display_resource
requires: package.name == "x11-xserver-utils"
_description: Creates display resource info from xrandr output
id: usb
estimated_duration: 0.33
plugin: resource
_description: Creates resource info for supported USB versions
_summary: Collect information about supported types of USB
command:
for version in 2 3; do
echo -n "usb$version: "
lsusb |grep -q "Linux Foundation ${version}.0 root hub" && echo "supported" || echo "unsupported"
done
id: xinput
estimated_duration: 0.19
plugin: resource
command: xinput_resource
requires: package.name == "xinput"
_description: Creates resource info from xinput output.
id: environment
estimated_duration: 0.11
plugin: resource
_description: Create resource info for environment variables
command:
IFS=$'\n'
for e in `env | sed 's/=/:/g'`; do
echo $e | awk -F':' '{print $1 ": " $2}'
done
id: mobilebroadband
estimated_duration: 0.38
plugin: resource
_description: Create resource for mobile broadband devices
command: mobilebroadband_resource
id: virtualization
estimated_duration: 0.13
plugin: resource
requires: package.name == "cpu-checker"
_description: Resource for hardware virtualization
command:
if kvm-ok > /dev/null
then
echo "kvm: supported"
else
echo "kvm: unsupported"
fi
id: IEEE_80211
estimated_duration: 0.08
plugin: resource
command: 80211_resource
_description: Creates resource info for wifi supported protocols/interfaces
id: rtc
estimated_duration: 0.02
plugin: resource
command:
if [ -e /sys/class/rtc ]
then
echo "state: supported"
else
echo "state: unsupported"
fi
_description: Creates resource info for RTC
id: requirements
estimated_duration: 0.01
plugin: resource
command:
if [ -f $PLAINBOX_SESSION_SHARE/requirements_docs.txt ];then
cat $PLAINBOX_SESSION_SHARE/requirements_docs.txt
else
true
fi
_description:
Provide links to requirements documents.
.
The requirement document should contain sets of name/link pairs.
.
Each requirement should have two keys with their respective
values:
name: (to be used as the anchor text)
link: (the actual URL)
.
Each set should be separated from the previous one by a new line.
.
Example:
.
name: Requirement 1
link: http://example.com/requirement1
.
name: requirement 2
link: http://example.com/requirement2
.
Providers wishing to use this feature need to:
1- Write a job that places a suitably-formatted file in $PLAINBOX_SESSION_SHARE
2- Update their whitelists to run that job *before* miscellanea/submission-resources
or the "requirements" resource job.
id: graphics_card
estimated_duration: 0.05
plugin: resource
_description:
Generate an entry for each graphics card present in the system.
command: graphics_card_resource
id: __resource__
plugin: local
_description: Resources to gather system information
_summary: Resources
command:
shopt -s extglob
cat $PLAINBOX_PROVIDER_DATA/../jobs/resource.pxu
|