Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: examples/, targets/support/, doc/, catalyst/targets/, targets/livecd-stage2/
Date: Tue, 31 Mar 2020 03:59:48
Message-Id: 1585626884.78d1b3055c943557530c660243ad9dbfc0a892c5.mattst88@gentoo
1 commit: 78d1b3055c943557530c660243ad9dbfc0a892c5
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 31 03:23:08 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 31 03:54:44 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=78d1b305
7
8 catalyst: Drop gamecd target
9
10 Evidently this was a target last used 15 years ago to produce a Gentoo
11 LiveCD ISO with *a* game on it.
12
13 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
14
15 catalyst/targets/livecd_stage2.py | 2 +-
16 doc/catalyst-spec.5.txt | 20 +++++------------
17 examples/gamecd.conf.example | 6 -----
18 examples/livecd-stage2_template.spec | 17 ++++----------
19 examples/stage4_template.spec | 8 +++----
20 targets/livecd-stage2/controller.sh | 16 +-------------
21 targets/support/livecdfs-update.sh | 43 ++++--------------------------------
22 7 files changed, 20 insertions(+), 92 deletions(-)
23
24 diff --git a/catalyst/targets/livecd_stage2.py b/catalyst/targets/livecd_stage2.py
25 index 18810667..454dbab3 100644
26 --- a/catalyst/targets/livecd_stage2.py
27 +++ b/catalyst/targets/livecd_stage2.py
28 @@ -25,7 +25,7 @@ class livecd_stage2(StageBase):
29 "livecd/rcdel","livecd/fsscript","livecd/xinitrc",\
30 "livecd/root_overlay","livecd/users","portage_overlay",\
31 "livecd/fstype","livecd/fsops","livecd/linuxrc","livecd/bootargs",\
32 - "gamecd/conf","livecd/xdm","livecd/xsession","livecd/volid","livecd/verify"])
33 + "livecd/xdm","livecd/xsession","livecd/volid","livecd/verify"])
34
35 StageBase.__init__(self,spec,addlargs)
36 if "livecd/type" not in self.settings:
37
38 diff --git a/doc/catalyst-spec.5.txt b/doc/catalyst-spec.5.txt
39 index ecea9ba7..03fdeecc 100644
40 --- a/doc/catalyst-spec.5.txt
41 +++ b/doc/catalyst-spec.5.txt
42 @@ -111,7 +111,6 @@ explained below.
43 `gentoo-release-minimal`;; This creates an official minimal InstallCD.
44 `gentoo-release-universal`;; This creates an official universal InstallCD.
45 `gentoo-release-livecd`;; This creates an official LiveCD environment.
46 - `gentoo-gamecd`;; This creates an official Gentoo GameCD.
47 `generic-livecd`;; This should be used for all non-official media.
48
49 This setting is supported by the livecd targets.
50 @@ -431,13 +430,12 @@ available if `docache` is enabled, as they are outside the loop.
51 *<target>/xinitrc*::
52 This is used by catalyst to copy the specified file to
53 `/etc/X11/xinit/xinitrc` and is used by the *<target>/type*
54 -`gentoo-gamecd` and `generic-livecd`. While the file will still be
55 -copied for any *<target>/type*, catalyst will only create the
56 -necessary `/etc/startx` for those types, so X will not be
57 -automatically started. This is useful also for setting up X on a CD
58 -where you do not wish X to start automatically. We do not use this on
59 -the release media. This setting is supported by the `stage4` and
60 -`livecd` targets.
61 +`generic-livecd`. While the file will still be copied for any
62 +*<target>/type*, catalyst will only create the necessary `/etc/startx`
63 +for those types, so X will not be automatically started. This is
64 +useful also for setting up X on a CD where you do not wish X to start
65 +automatically. We do not use this on the release media. This setting
66 +is supported by the `stage4` and `livecd` targets.
67
68 *livecd/xdm*::
69 This is used by catalyst to determine which display manager you wish
70 @@ -470,12 +468,6 @@ and is very useful in cleaning up stray files in `/etc` left over
71 after *stage4/unmerge* (example: `/lib/*.a /usr/lib/*.a`). This
72 setting is supported by the `stage4` and `livecd` targets.
73
74 -*gamecd/conf*::
75 -This option is only used when creating a GameCD. This specifies the
76 -file that contains the definitions for `GAME_NAME` and
77 -`GAME_EXECUTABLE`, which are used by the GameCD scripts to set some
78 -specific options for the game. This is not used on the release media.
79 -
80 FILES
81 -----
82 Example specfiles can be found in '/usr/share/doc/catalyst-{catalystversion}/examples'.
83
84 diff --git a/examples/gamecd.conf.example b/examples/gamecd.conf.example
85 deleted file mode 100644
86 index 955eac4e..00000000
87 --- a/examples/gamecd.conf.example
88 +++ /dev/null
89 @@ -1,6 +0,0 @@
90 -#!/bin/bash
91 -
92 -# these variables are to be used for creating the menu entry and also to tell
93 -# the CD what to execute once X starts
94 -GAME_NAME="Unreal Tournament 2004 Demo"
95 -GAME_EXECUTABLE="/usr/games/bin/ut2004-demo"
96
97 diff --git a/examples/livecd-stage2_template.spec b/examples/livecd-stage2_template.spec
98 index 0c45bd67..7398c972 100644
99 --- a/examples/livecd-stage2_template.spec
100 +++ b/examples/livecd-stage2_template.spec
101 @@ -156,7 +156,6 @@ livecd/linuxrc:
102 # gentoo-release-minimal - This creates an official minimal InstallCD.
103 # gentoo-release-universal - This creates an official universal InstallCD.
104 # gentoo-release-livecd - This creates an official LiveCD environment.
105 -# gentoo-gamecd - This creates an official Gentoo GameCD.
106 # generic-livecd - This should be used for all non-official media.
107 # example:
108 # livecd/type: gentoo-release-minimal
109 @@ -223,10 +222,10 @@ livecd/overlay:
110 livecd/root_overlay:
111
112 # This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
113 -# and is used by the livecd/type gentoo-gamecd and generic-livecd. While the
114 -# file will still be copied for any livecd/type, catalyst will only create the
115 -# necessary /etc/startx for those types, so X will not be automatically started.
116 -# This is useful also for setting up X on a CD where you do not wish X to start
117 +# and is used by the livecd/type and generic-livecd. While the file will still
118 +# be copied for any livecd/type, catalyst will only create the necessary
119 +# /etc/startx for those types, so X will not be automatically started. This is
120 +# useful also for setting up X on a CD where you do not wish X to start
121 # automatically. We do not use this on the release media, so it is left blank.
122 # example:
123 # livecd/xinitrc:
124 @@ -260,14 +259,6 @@ livecd/users:
125 # livecd/volid: Gentoo Linux 2006.1 X86
126 livecd/volid:
127
128 -# This option is only used when creating a GameCD. This specifies the file that
129 -# contains the definitions for GAME_NAME and GAME_EXECUTABLE, which are used by
130 -# the GameCD scripts to set some specific options for the game. This is not
131 -# used on the release media, and is therefore blank.
132 -# example:
133 -# gamecd/conf:
134 -gamecd/conf:
135 -
136 # This option is used to specify the number of kernels to build and also the
137 # labels that will be used by the CD bootloader to refer to each kernel image.
138 # example:
139
140 diff --git a/examples/stage4_template.spec b/examples/stage4_template.spec
141 index f3531f90..75e8669f 100644
142 --- a/examples/stage4_template.spec
143 +++ b/examples/stage4_template.spec
144 @@ -174,10 +174,10 @@ stage4/rcdel:
145 stage4/root_overlay:
146
147 # This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
148 -# and is used by the stage4/type gentoo-gamecd and generic-livecd. While the
149 -# file will still be copied for any stage4/type, catalyst will only create the
150 -# necessary /etc/startx for those types, so X will not be automatically started.
151 -# This is useful also for setting up X on a CD where you do not wish X to start
152 +# and is used by the stage4/type generic-livecd. While the file will still be
153 +# copied for any stage4/type, catalyst will only create the necessary
154 +# /etc/startx for those types, so X will not be automatically started. This is
155 +# useful also for setting up X on a CD where you do not wish X to start
156 # automatically. We do not use this on the release media, so it is left blank.
157 # example:
158 # stage4/xinitrc:
159
160 diff --git a/targets/livecd-stage2/controller.sh b/targets/livecd-stage2/controller.sh
161 index 5834c837..166d1b0f 100755
162 --- a/targets/livecd-stage2/controller.sh
163 +++ b/targets/livecd-stage2/controller.sh
164 @@ -46,7 +46,6 @@ case $1 in
165 ${clst_sharedir}/livecd/files/universal.motd.txt \
166 ${clst_sharedir}/livecd/files/minimal.motd.txt \
167 ${clst_sharedir}/livecd/files/livecd.motd.txt \
168 - ${clst_sharedir}/livecd/files/gamecd.motd.txt \
169 ${clst_chroot_path}/etc
170 ;;
171 *)
172 @@ -64,18 +63,6 @@ case $1 in
173 ${clst_chroot_path}/root/.bash_profile
174 cp -f ${clst_sharedir}/livecd/files/livecd-local.start \
175 ${clst_chroot_path}/etc/conf.d/local.start
176 -
177 - # execute copy gamecd.conf if we're a gamecd
178 - if [ "${clst_livecd_type}" = "gentoo-gamecd" ]
179 - then
180 - if [ -n "${clst_gamecd_conf}" ]
181 - then
182 - cp -f ${clst_gamecd_conf} ${clst_chroot_path}/tmp/gamecd.conf
183 - else
184 - echo "gamecd/conf is required for a gamecd!"
185 - exit 1
186 - fi
187 - fi
188 ;;
189
190 livecd-update)
191 @@ -101,8 +88,7 @@ case $1 in
192 ;;
193
194 clean)
195 - if [ "${clst_livecd_type}" = "gentoo-gamecd" ] \
196 - || [ "${clst_livecd_type}" = "gentoo-release-minimal" ] \
197 + if [ "${clst_livecd_type}" = "gentoo-release-minimal" ] \
198 || [ "${clst_livecd_type}" = "gentoo-release-universal" ]
199 then
200 # Clean out man, info and doc files
201
202 diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh
203 index 2c551b42..2a0a1f72 100755
204 --- a/targets/support/livecdfs-update.sh
205 +++ b/targets/support/livecdfs-update.sh
206 @@ -16,14 +16,8 @@ rm -rf /etc/localtime
207 cp /usr/share/zoneinfo/UTC /etc/localtime
208
209 # Setup the hostname
210 -if [ "${clst_livecd_type}" == "gentoo-gamecd" ]
211 -then
212 - echo 'HOSTNAME="gamecd"' > /etc/conf.d/hostname
213 - echo "127.0.0.1 gamecd.gentoo gamecd localhost" > /etc/hosts
214 -else
215 - echo 'HOSTNAME="livecd"' > /etc/conf.d/hostname
216 - echo "127.0.0.1 livecd.gentoo livecd localhost" > /etc/hosts
217 -fi
218 +echo 'HOSTNAME="livecd"' > /etc/conf.d/hostname
219 +echo "127.0.0.1 livecd.gentoo livecd localhost" > /etc/hosts
220
221 # Since we're an official Gentoo release, we do things the official Gentoo way.
222 # As such, we override livecd/users.
223 @@ -32,10 +26,6 @@ case ${clst_livecd_type} in
224 user_comment="Gentoo default user"
225 clst_livecd_users="gentoo"
226 ;;
227 - gentoo-gamecd)
228 - user_comment="Gentoo GameCD default user"
229 - clst_livecd_users="gamecd"
230 - ;;
231 esac
232
233 # Add any users
234 @@ -187,13 +177,9 @@ case ${clst_livecd_type} in
235 ${clst_sed} -i -e 's:^##GREETING:Welcome to the Gentoo Linux LiveCD!:' \
236 -e "s:##DISPLAY_MANAGER:${clst_livecd_xdm}:" /etc/motd
237 ;;
238 - gentoo-gamecd)
239 - cat /etc/generic.motd.txt /etc/gamecd.motd.txt > /etc/motd
240 - ${clst_sed} -i 's:^##GREETING:Welcome to the Gentoo Linux ##GAME_NAME GameCD!:' /etc/motd
241 - ;;
242 esac
243
244 -rm -f /etc/generic.motd.txt /etc/universal.motd.txt /etc/minimal.motd.txt /etc/livecd.motd.txt /etc/gamecd.motd.txt
245 +rm -f /etc/generic.motd.txt /etc/universal.motd.txt /etc/minimal.motd.txt /etc/livecd.motd.txt
246
247 # Setup splash (if called for)
248 if [ -n "${clst_livecd_splash_theme}" ]
249 @@ -214,34 +200,13 @@ fi
250
251 # Clear out locales
252 case ${clst_livecd_type} in
253 - gentoo-release-minimal|gentoo-release-universal|gentoo-gamecd)
254 + gentoo-release-minimal|gentoo-release-universal)
255 rm -rf /usr/lib/locale/{a,b,c,d,e{l,n_{A,B,C,D,G,H,I,N,P,S,US.,Z},s,t,u},f,g,h,i,j,k,l,m,n,o,p,r,s,t,u,v,w,x,y,z}*
256 ;;
257 esac
258
259 # Post configuration
260 case ${clst_livecd_type} in
261 - gentoo-gamecd )
262 - # We grab our configuration
263 - if [ -e /tmp/gamecd.conf ]
264 - then
265 - source /tmp/gamecd.conf || exit 1
266 - rm /tmp/gamecd.conf
267 -
268 - # Here we replace out game information into several files
269 - ${clst_sed} -i -e "s:##GAME_NAME:${GAME_NAME}:" /etc/motd
270 -
271 - # Here we setup our xinitrc
272 - echo "exec ${GAME_EXECUTABLE}" > /etc/X11/xinit/xinitrc
273 - fi
274 -
275 - # This is my hack to reduce tmpfs usage
276 - mkdir -p /usr/livecd/db/pkg/x11-base
277 - mv -f /var/db/pkg/x11-base/xorg* /usr/livecd/db/pkg/x11-base
278 - rm -rf /var/db
279 -
280 - touch /etc/startx
281 - ;;
282 gentoo-release-live*)
283 # Setup Gnome theme
284 if [ "${clst_livecd_xsession}" == "gnome" ]