Marcel Telka
2022-10-04 797b9b48cec9234f6d2aaefea5e6042447c5732a
commit | author | age
797b9b 1 #
MT 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2022 Marcel Telka
14 #
15
16 # Create mediated symlinks in /usr/bin for python binaries
17 <transform file path=usr/bin/[^/]+-3\.\d+$ -> default tmp.fmri %{pkg.fmri} >
18 <transform file path=(usr/bin/)([^/]+)-(3\.\d+)$ tmp.fmri=.*runtime/python -> emit \
19     link path=%<1>%<2> target=%<2>-%<3> mediator=python mediator-version=%<3> >
20 <transform file path=(usr/bin/)([^/]+)-(3\.\d+)$ tmp.fmri=.*library/python/ -> emit \
21     link path=%<1>%<2> target=%<2>-%<3> mediator=python mediator-version=%<3> >
22 <transform link tmp.fmri=.* -> delete tmp.fmri .* >