Lines 133-148
Link Here
|
133 |
} |
133 |
} |
134 |
|
134 |
|
135 |
games_pkg_setup() { |
135 |
games_pkg_setup() { |
|
|
136 |
# This stuff will probably break sandbox assuming it gets run. You can move it to pre-inst and it wili be ok |
137 |
# Relevant to bug 84146 ( sandbox violations ). |
136 |
enewgroup "${GAMES_GROUP}" 35 |
138 |
enewgroup "${GAMES_GROUP}" 35 |
137 |
[[ ${GAMES_USER} != "root" ]] \ |
139 |
[[ ${GAMES_USER} != "root" ]] \ |
138 |
&& enewuser "${GAMES_USER}" 35 /bin/false /usr/games "${GAMES_GROUP}" |
140 |
&& enewuser "${GAMES_USER}" 35 /bin/false /usr/games "${GAMES_GROUP}" |
139 |
[[ ${GAMES_USER_DED} != "root" ]] \ |
141 |
[[ ${GAMES_USER_DED} != "root" ]] \ |
140 |
&& enewuser "${GAMES_USER_DED}" 36 /bin/bash /usr/games "${GAMES_GROUP}" |
142 |
&& enewuser "${GAMES_USER_DED}" 36 /bin/bash /usr/games "${GAMES_GROUP}" |
141 |
|
|
|
142 |
# Dear carpaski and portage-dev team, we are so sorry. Lots of love, games team |
143 |
# See Bug #61680 |
144 |
[[ $(getent passwd "${GAMES_USER_DED}" | cut -f7 -d:) == "/bin/false" ]] \ |
145 |
&& usermod -s /bin/bash "${GAMES_USER_DED}" |
146 |
} |
143 |
} |
147 |
|
144 |
|
148 |
games_src_compile() { |
145 |
games_src_compile() { |
Lines 153-158
Link Here
|
153 |
# pkg_postinst function ... create env.d entry and warn about games group |
150 |
# pkg_postinst function ... create env.d entry and warn about games group |
154 |
games_pkg_postinst() { |
151 |
games_pkg_postinst() { |
155 |
gamesenv |
152 |
gamesenv |
|
|
153 |
# Dear carpaski and portage-dev team, we are so sorry. Lots of love, games team |
154 |
# See Bug #61680 |
155 |
# This breaks sandbox. |
156 |
# See bug #84146 *tongue in cheek* |
157 |
[[ $(getent passwd "${GAMES_USER_DED}" | cut -f7 -d:) == "/bin/false" ]] \ |
158 |
&& usermod -s /bin/bash "${GAMES_USER_DED}" |
159 |
|
156 |
ewarn "Remember, in order to play games, you have to" |
160 |
ewarn "Remember, in order to play games, you have to" |
157 |
ewarn "be in the '${GAMES_GROUP}' group." |
161 |
ewarn "be in the '${GAMES_GROUP}' group." |
158 |
echo |
162 |
echo |