source: projects/specs/trunk/r/rinse/rinse-1.7-git.patch @ 2744

Revision 2744, 64.1 KB checked in by daisuke, 13 years ago (diff)

rinse:

  • update from git master to support newer fedora and opensuse
  • update rinse.conf to change mirror urls to faster server.
RevLine 
[2744]1diff -ruN rinse-1.7.orig/bin/rinse rinse-1.7/bin/rinse
2--- rinse-1.7.orig/bin/rinse    2009-04-22 03:38:40.000000000 +0900
3+++ rinse-1.7/bin/rinse 2011-02-23 01:31:09.000000000 +0900
4@@ -868,6 +868,12 @@
5                 $arch = 'x86_64';
6             }
7 
8+            # 32bit packages come in a variety of specific formats now 
9+            if ( $CONFIG{ 'arch' } eq 'i386' )
10+            {
11+                $arch = 'i386|i586|i686';
12+            }
13+
14             if ( $#remainder_parts != 2 ||
15                  $remainder_parts[0] ne '' ||
16                  $remainder_parts[1] !~ /^[\d\w][\d\w.+]*$/ ||
17diff -ruN rinse-1.7.orig/etc/fedora-10.packages rinse-1.7/etc/fedora-10.packages
18--- rinse-1.7.orig/etc/fedora-10.packages       1970-01-01 09:00:00.000000000 +0900
19+++ rinse-1.7/etc/fedora-10.packages    2011-02-23 01:04:31.000000000 +0900
20@@ -0,0 +1,106 @@
21+audit-libs
22+basesystem
23+bash
24+bzip2-libs
25+chkconfig
26+compat-db45
27+ConsoleKit-libs
28+coreutils
29+cpio
30+cracklib
31+cracklib-dicts
32+crontabs
33+cyrus-sasl-lib
34+db4
35+dbus
36+dbus-libs
37+device-mapper
38+device-mapper-libs
39+dhclient
40+dirmngr
41+e2fsprogs
42+e2fsprogs-libs
43+elfutils-libelf
44+ethtool
45+expat
46+fedora-release
47+fedora-release-notes
48+file
49+file-libs
50+filesystem
51+findutils
52+gamin
53+gawk
54+gdbm
55+glib2
56+glibc
57+glibc-common
58+gnupg2
59+gpgme
60+grep
61+info
62+initscripts
63+iproute
64+iputils
65+keyutils-libs
66+krb5-libs
67+libacl
68+libattr
69+libcap
70+libcurl
71+libgcc
72+libgcrypt
73+libgpg-error
74+libidn
75+libksba
76+libselinux
77+libsepol
78+libstdc++
79+libusb
80+libvolume_id
81+libxml2
82+linux-atm-libs
83+logrotate
84+lua
85+MAKEDEV
86+mingetty
87+module-init-tools
88+ncurses
89+ncurses-base
90+ncurses-libs
91+net-tools
92+nspr
93+nss
94+openldap
95+openssl
96+pam
97+passwd
98+pcre
99+pinentry
100+popt
101+procps
102+psmisc
103+pth
104+pygpgme
105+python
106+python-iniparse
107+python-libs
108+python-urlgrabber
109+readline
110+rpm
111+rpm-libs
112+rpm-python
113+rsyslog
114+sed
115+setup
116+shadow-utils
117+sqlite
118+sysvinit-tools
119+tzdata
120+udev
121+upstart
122+util-linux-ng
123+vim-minimal
124+yum
125+yum-metadata-parser
126+zlib
127diff -ruN rinse-1.7.orig/etc/fedora-11.packages rinse-1.7/etc/fedora-11.packages
128--- rinse-1.7.orig/etc/fedora-11.packages       1970-01-01 09:00:00.000000000 +0900
129+++ rinse-1.7/etc/fedora-11.packages    2011-02-23 01:11:57.000000000 +0900
130@@ -0,0 +1,106 @@
131+audit-libs
132+basesystem
133+bash
134+bzip2-libs
135+chkconfig
136+compat-db45
137+ConsoleKit-libs
138+coreutils
139+cpio
140+cracklib
141+cracklib-dicts
142+crontabs
143+cyrus-sasl-lib
144+db4
145+dbus
146+dbus-libs
147+device-mapper
148+device-mapper-libs
149+dhclient
150+dirmngr
151+e2fsprogs
152+e2fsprogs-libs
153+elfutils-libelf
154+ethtool
155+expat
156+fedora-release
157+fedora-release-notes
158+file
159+file-libs
160+filesystem
161+findutils
162+gamin
163+gawk
164+gdbm
165+glib2
166+glibc
167+glibc-common
168+gnupg2
169+gpgme
170+grep
171+info
172+initscripts
173+iproute
174+iputils
175+keyutils-libs
176+krb5-libs
177+libacl
178+libattr
179+libcap
180+libcurl
181+libgcc
182+libgcrypt
183+libgpg-error
184+libidn
185+libksba
186+libselinux
187+libsepol
188+libstdc++
189+libusb
190+libvolume_id
191+libxml2
192+linux-atm-libs
193+logrotate
194+lua
195+MAKEDEV
196+mingetty
197+module-init-tools
198+ncurses
199+ncurses-base
200+ncurses-libs
201+net-tools
202+nspr
203+nss
204+openldap
205+openssl
206+pam
207+passwd
208+pcre
209+pinentry
210+popt
211+procps
212+psmisc
213+pth
214+pygpgme
215+python
216+python-iniparse
217+python-libs
218+python-urlgrabber
219+readline
220+rpm
221+rpm-libs
222+rpm-python
223+rsyslog
224+sed
225+setup
226+shadow-utils
227+sqlite
228+sysvinit-tools
229+tzdata
230+udev
231+upstart
232+util-linux-ng
233+vim-minimal
234+yum
235+yum-metadata-parser
236+zlib
237diff -ruN rinse-1.7.orig/etc/fedora-12.packages rinse-1.7/etc/fedora-12.packages
238--- rinse-1.7.orig/etc/fedora-12.packages       1970-01-01 09:00:00.000000000 +0900
239+++ rinse-1.7/etc/fedora-12.packages    2011-02-23 01:04:31.000000000 +0900
240@@ -0,0 +1,115 @@
241+audit-libs
242+basesystem
243+bash
244+bzip2-libs
245+chkconfig
246+ConsoleKit-libs
247+coreutils
248+cpio
249+cracklib
250+cracklib-dicts
251+crontabs
252+cyrus-sasl-lib
253+db4
254+dbus
255+dbus-libs
256+device-mapper
257+device-mapper-libs
258+dhclient
259+dirmngr
260+e2fsprogs
261+e2fsprogs-libs
262+elfutils-libelf
263+ethtool
264+expat
265+fedora-release
266+fedora-release-notes
267+file
268+file-libs
269+filesystem
270+findutils
271+gamin
272+gawk
273+gdbm
274+glib2
275+glibc
276+glibc-common
277+gnupg2
278+gpgme
279+grep
280+info
281+initscripts
282+iproute
283+iputils
284+keyutils-libs
285+krb5-libs
286+libacl
287+libattr
288+libcap
289+libcurl
290+libgcc
291+libgcrypt
292+libgpg-error
293+libidn
294+libksba
295+libselinux
296+libsepol
297+libstdc++
298+libusb
299+libxml2
300+linux-atm-libs
301+logrotate
302+lua
303+MAKEDEV
304+mingetty
305+module-init-tools
306+ncurses
307+ncurses-base
308+ncurses-libs
309+net-tools
310+nspr
311+nss
312+openldap
313+openssl
314+pam
315+passwd
316+pcre
317+pinentry
318+popt
319+procps
320+psmisc
321+pth
322+pygpgme
323+python
324+python-iniparse
325+python-libs
326+python-urlgrabber
327+readline
328+rpm
329+rpm-libs
330+rpm-python
331+rsyslog
332+sed
333+setup
334+shadow-utils
335+sqlite
336+sysvinit-tools
337+tzdata
338+udev
339+upstart
340+util-linux-ng
341+vim-minimal
342+yum
343+yum-metadata-parser
344+zlib
345+
346+# New to v12
347+xz-libs
348+nss-util
349+python-pycurl
350+libssh2
351+libcom_err
352+nss-softokn-freebl
353+nss-softokn
354+# Required or else login failse
355+libcap-ng
356diff -ruN rinse-1.7.orig/etc/fedora-13.packages rinse-1.7/etc/fedora-13.packages
357--- rinse-1.7.orig/etc/fedora-13.packages       1970-01-01 09:00:00.000000000 +0900
358+++ rinse-1.7/etc/fedora-13.packages    2011-02-23 01:04:31.000000000 +0900
359@@ -0,0 +1,118 @@
360+audit-libs
361+basesystem
362+bash
363+bzip2-libs
364+chkconfig
365+ConsoleKit-libs
366+coreutils
367+cpio
368+cracklib
369+cracklib-dicts
370+crontabs
371+cyrus-sasl-lib
372+db4
373+dbus
374+dbus-libs
375+device-mapper
376+device-mapper-libs
377+dhclient
378+dirmngr
379+e2fsprogs
380+e2fsprogs-libs
381+elfutils-libelf
382+ethtool
383+expat
384+fedora-release
385+fedora-release-notes
386+file
387+file-libs
388+filesystem
389+findutils
390+gamin
391+gawk
392+gdbm
393+glib2
394+glibc
395+glibc-common
396+gnupg2
397+gpgme
398+grep
399+info
400+initscripts
401+iproute
402+iputils
403+keyutils-libs
404+krb5-libs
405+libacl
406+libattr
407+libcap
408+libcurl
409+libgcc
410+libgcrypt
411+libgpg-error
412+libidn
413+libksba
414+libselinux
415+libsepol
416+libstdc++
417+libusb
418+libxml2
419+linux-atm-libs
420+logrotate
421+lua
422+MAKEDEV
423+mingetty
424+module-init-tools
425+ncurses
426+ncurses-base
427+ncurses-libs
428+net-tools
429+nspr
430+nss
431+openldap
432+openssl
433+pam
434+passwd
435+pcre
436+pinentry
437+popt
438+procps
439+psmisc
440+pth
441+pygpgme
442+python
443+python-iniparse
444+python-libs
445+python-urlgrabber
446+readline
447+rpm
448+rpm-libs
449+rpm-python
450+rsyslog
451+sed
452+setup
453+shadow-utils
454+sqlite
455+sysvinit-tools
456+tzdata
457+udev
458+upstart
459+util-linux-ng
460+vim-minimal
461+yum
462+yum-metadata-parser
463+zlib
464+
465+# New to v12
466+xz-libs
467+nss-util
468+python-pycurl
469+libssh2
470+libcom_err
471+nss-softokn-freebl
472+nss-softokn
473+# Required or else login failse
474+libcap-ng
475+
476+# New to v13
477+c-ares
478diff -ruN rinse-1.7.orig/etc/fedora-14.packages rinse-1.7/etc/fedora-14.packages
479--- rinse-1.7.orig/etc/fedora-14.packages       1970-01-01 09:00:00.000000000 +0900
480+++ rinse-1.7/etc/fedora-14.packages    2011-02-23 01:21:35.000000000 +0900
481@@ -0,0 +1,114 @@
482+audit-libs
483+basesystem
484+bash
485+bzip2-libs
486+chkconfig
487+ConsoleKit-libs
488+coreutils
489+cpio
490+cracklib
491+cracklib-dicts
492+crontabs
493+cyrus-sasl-lib
494+db4
495+dbus
496+dbus-libs
497+device-mapper
498+device-mapper-libs
499+dhclient
500+e2fsprogs
501+e2fsprogs-libs
502+elfutils-libelf
503+expat
504+fedora-release
505+fedora-release-notes
506+file
507+file-libs
508+filesystem
509+findutils
510+gamin
511+gawk
512+gdbm
513+glib2
514+glibc
515+glibc-common
516+gnupg2
517+gpgme
518+grep
519+info
520+initscripts
521+iproute
522+iputils
523+keyutils-libs
524+krb5-libs
525+libacl
526+libattr
527+libcap
528+libcurl
529+libgcc
530+libgcrypt
531+libgpg-error
532+libidn
533+libselinux
534+libsepol
535+libstdc++
536+libusb
537+libxml2
538+linux-atm-libs
539+logrotate
540+lua
541+mingetty
542+module-init-tools
543+ncurses
544+ncurses-base
545+ncurses-libs
546+net-tools
547+nspr
548+nss
549+openldap
550+openssl
551+pam
552+passwd
553+pcre
554+pinentry
555+popt
556+procps
557+psmisc
558+pth
559+pygpgme
560+python
561+python-iniparse
562+python-libs
563+python-urlgrabber
564+readline
565+rpm
566+rpm-libs
567+rpm-python
568+rsyslog
569+sed
570+setup
571+shadow-utils
572+sqlite
573+sysvinit-tools
574+tzdata
575+udev
576+upstart
577+util-linux-ng
578+vim-minimal
579+yum
580+yum-metadata-parser
581+zlib
582+
583+# New to v12
584+xz-libs
585+nss-util
586+python-pycurl
587+libssh2
588+libcom_err
589+nss-softokn-freebl
590+nss-softokn
591+# Required or else login failse
592+libcap-ng
593+
594+# New to v13
595+c-ares
596diff -ruN rinse-1.7.orig/etc/fedora-7.packages rinse-1.7/etc/fedora-7.packages
597--- rinse-1.7.orig/etc/fedora-7.packages        1970-01-01 09:00:00.000000000 +0900
598+++ rinse-1.7/etc/fedora-7.packages     2011-02-23 01:04:31.000000000 +0900
599@@ -0,0 +1,85 @@
600+#
601+#  Packages which we'll need to download for a minimal installation
602+# of Fedora Core 7.
603+#
604+
605+
606+MAKEDEV
607+SysVinit
608+audit-libs
609+basesystem
610+bash
611+beecrypt
612+bzip2-libs
613+chkconfig
614+coreutils
615+cracklib
616+cracklib-dicts
617+db4
618+device-mapper
619+e2fsprogs
620+e2fsprogs-libs
621+elfutils-libelf
622+ethtool
623+expat
624+filesystem
625+findutils
626+gawk
627+gdbm
628+glib2
629+glibc
630+glibc-common
631+grep
632+info
633+initscripts
634+iproute
635+iputils
636+krb5-libs
637+libacl
638+libattr
639+libcap
640+libgcc
641+libidn
642+keyutils-libs
643+libselinux
644+libsepol
645+libstdc++
646+libsysfs
647+libtermcap
648+libxml2
649+libxml2-python
650+mcstrans
651+mingetty
652+mktemp
653+module-init-tools
654+ncurses
655+neon
656+net-tools
657+openssl
658+pam
659+pcre
660+popt
661+procps
662+psmisc
663+python
664+python-elementtree
665+python-libs
666+python-numeric
667+python-sqlite
668+python-urlgrabber
669+readline
670+rpm
671+rpm-libs
672+rpm-python
673+sed
674+setup
675+shadow-utils
676+sqlite
677+sysklogd
678+termcap
679+tzdata
680+udev
681+util-linux
682+yum
683+yum-metadata-parser
684+zlib
685diff -ruN rinse-1.7.orig/etc/fedora-8.packages rinse-1.7/etc/fedora-8.packages
686--- rinse-1.7.orig/etc/fedora-8.packages        1970-01-01 09:00:00.000000000 +0900
687+++ rinse-1.7/etc/fedora-8.packages     2011-02-23 01:04:31.000000000 +0900
688@@ -0,0 +1,85 @@
689+#
690+#  Packages which we'll need to download for a minimal installation
691+# of Fedora Core 8.
692+#
693+
694+
695+MAKEDEV
696+SysVinit
697+audit-libs
698+basesystem
699+bash
700+beecrypt
701+bzip2-libs
702+chkconfig
703+coreutils
704+cracklib
705+cracklib-dicts
706+db4
707+device-mapper
708+e2fsprogs
709+e2fsprogs-libs
710+elfutils-libelf
711+ethtool
712+expat
713+filesystem
714+findutils
715+gawk
716+gdbm
717+glib2
718+glibc
719+glibc-common
720+grep
721+info
722+initscripts
723+iproute
724+iputils
725+krb5-libs
726+libacl
727+libattr
728+libcap
729+libgcc
730+libidn
731+keyutils-libs
732+libselinux
733+libsepol
734+libstdc++
735+libsysfs
736+libtermcap
737+libxml2
738+libxml2-python
739+mcstrans
740+mingetty
741+mktemp
742+module-init-tools
743+ncurses
744+neon
745+net-tools
746+openssl
747+pam
748+pcre
749+popt
750+procps
751+psmisc
752+python
753+python-elementtree
754+python-libs
755+python-numeric
756+python-sqlite
757+python-urlgrabber
758+readline
759+rpm
760+rpm-libs
761+rpm-python
762+sed
763+setup
764+shadow-utils
765+sqlite
766+sysklogd
767+termcap
768+tzdata
769+udev
770+util-linux
771+yum
772+yum-metadata-parser
773+zlib
774diff -ruN rinse-1.7.orig/etc/fedora-9.packages rinse-1.7/etc/fedora-9.packages
775--- rinse-1.7.orig/etc/fedora-9.packages        1970-01-01 09:00:00.000000000 +0900
776+++ rinse-1.7/etc/fedora-9.packages     2011-02-23 01:04:31.000000000 +0900
777@@ -0,0 +1,103 @@
778+audit-libs
779+basesystem
780+bash
781+bzip2-libs
782+chkconfig
783+ConsoleKit-libs
784+coreutils
785+cpio
786+cracklib
787+cracklib-dicts
788+crontabs
789+cyrus-sasl-lib
790+db4
791+dbus
792+dbus-libs
793+device-mapper
794+device-mapper-libs
795+dhclient
796+dirmngr
797+e2fsprogs
798+e2fsprogs-libs
799+elfutils-libelf
800+ethtool
801+event-compat-sysv
802+expat
803+fedora-release
804+fedora-release-notes
805+filesystem
806+findutils
807+gamin
808+gawk
809+gdbm
810+glib2
811+glibc
812+glibc-common
813+gnupg2
814+gpgme
815+grep
816+info
817+initscripts
818+iproute
819+iputils
820+keyutils-libs
821+krb5-libs
822+libacl
823+libattr
824+libcap
825+libcurl
826+libgcc
827+libgcrypt
828+libgpg-error
829+libidn
830+libksba
831+libselinux
832+libsepol
833+libstdc++
834+libsysfs
835+libusb
836+libvolume_id
837+libxml2
838+linux-atm-libs
839+logrotate
840+MAKEDEV
841+mingetty
842+module-init-tools
843+ncurses
844+ncurses-base
845+ncurses-libs
846+net-tools
847+nspr
848+nss
849+openldap
850+openssl
851+pam
852+pcre
853+pinentry
854+popt
855+procps
856+psmisc
857+pth
858+pygpgme
859+python
860+python-iniparse
861+python-libs
862+python-urlgrabber
863+readline
864+rpm
865+rpm-libs
866+rpm-python
867+rsyslog
868+sed
869+setup
870+shadow-utils
871+sqlite
872+sysvinit-tools
873+tzdata
874+udev
875+upstart
876+util-linux-ng
877+vim-minimal
878+yum
879+yum-metadata-parser
880+zlib
881diff -ruN rinse-1.7.orig/etc/fedora-core-10.packages rinse-1.7/etc/fedora-core-10.packages
882--- rinse-1.7.orig/etc/fedora-core-10.packages  2009-04-22 03:38:40.000000000 +0900
883+++ rinse-1.7/etc/fedora-core-10.packages       1970-01-01 09:00:00.000000000 +0900
884@@ -1,106 +0,0 @@
885-audit-libs
886-basesystem
887-bash
888-bzip2-libs
889-chkconfig
890-compat-db45
891-ConsoleKit-libs
892-coreutils
893-cpio
894-cracklib
895-cracklib-dicts
896-crontabs
897-cyrus-sasl-lib
898-db4
899-dbus
900-dbus-libs
901-device-mapper
902-device-mapper-libs
903-dhclient
904-dirmngr
905-e2fsprogs
906-e2fsprogs-libs
907-elfutils-libelf
908-ethtool
909-expat
910-fedora-release
911-fedora-release-notes
912-file
913-file-libs
914-filesystem
915-findutils
916-gamin
917-gawk
918-gdbm
919-glib2
920-glibc
921-glibc-common
922-gnupg2
923-gpgme
924-grep
925-info
926-initscripts
927-iproute
928-iputils
929-keyutils-libs
930-krb5-libs
931-libacl
932-libattr
933-libcap
934-libcurl
935-libgcc
936-libgcrypt
937-libgpg-error
938-libidn
939-libksba
940-libselinux
941-libsepol
942-libstdc++
943-libusb
944-libvolume_id
945-libxml2
946-linux-atm-libs
947-logrotate
948-lua
949-MAKEDEV
950-mingetty
951-module-init-tools
952-ncurses
953-ncurses-base
954-ncurses-libs
955-net-tools
956-nspr
957-nss
958-openldap
959-openssl
960-pam
961-passwd
962-pcre
963-pinentry
964-popt
965-procps
966-psmisc
967-pth
968-pygpgme
969-python
970-python-iniparse
971-python-libs
972-python-urlgrabber
973-readline
974-rpm
975-rpm-libs
976-rpm-python
977-rsyslog
978-sed
979-setup
980-shadow-utils
981-sqlite
982-sysvinit-tools
983-tzdata
984-udev
985-upstart
986-util-linux-ng
987-vim-minimal
988-yum
989-yum-metadata-parser
990-zlib
991diff -ruN rinse-1.7.orig/etc/fedora-core-7.packages rinse-1.7/etc/fedora-core-7.packages
992--- rinse-1.7.orig/etc/fedora-core-7.packages   2009-04-22 03:38:40.000000000 +0900
993+++ rinse-1.7/etc/fedora-core-7.packages        1970-01-01 09:00:00.000000000 +0900
994@@ -1,85 +0,0 @@
995-#
996-#  Packages which we'll need to download for a minimal installation
997-# of Fedora Core 7.
998-#
999-
1000-
1001-MAKEDEV
1002-SysVinit
1003-audit-libs
1004-basesystem
1005-bash
1006-beecrypt
1007-bzip2-libs
1008-chkconfig
1009-coreutils
1010-cracklib
1011-cracklib-dicts
1012-db4
1013-device-mapper
1014-e2fsprogs
1015-e2fsprogs-libs
1016-elfutils-libelf
1017-ethtool
1018-expat
1019-filesystem
1020-findutils
1021-gawk
1022-gdbm
1023-glib2
1024-glibc
1025-glibc-common
1026-grep
1027-info
1028-initscripts
1029-iproute
1030-iputils
1031-krb5-libs
1032-libacl
1033-libattr
1034-libcap
1035-libgcc
1036-libidn
1037-keyutils-libs
1038-libselinux
1039-libsepol
1040-libstdc++
1041-libsysfs
1042-libtermcap
1043-libxml2
1044-libxml2-python
1045-mcstrans
1046-mingetty
1047-mktemp
1048-module-init-tools
1049-ncurses
1050-neon
1051-net-tools
1052-openssl
1053-pam
1054-pcre
1055-popt
1056-procps
1057-psmisc
1058-python
1059-python-elementtree
1060-python-libs
1061-python-numeric
1062-python-sqlite
1063-python-urlgrabber
1064-readline
1065-rpm
1066-rpm-libs
1067-rpm-python
1068-sed
1069-setup
1070-shadow-utils
1071-sqlite
1072-sysklogd
1073-termcap
1074-tzdata
1075-udev
1076-util-linux
1077-yum
1078-yum-metadata-parser
1079-zlib
1080diff -ruN rinse-1.7.orig/etc/fedora-core-8.packages rinse-1.7/etc/fedora-core-8.packages
1081--- rinse-1.7.orig/etc/fedora-core-8.packages   2009-04-22 03:38:40.000000000 +0900
1082+++ rinse-1.7/etc/fedora-core-8.packages        1970-01-01 09:00:00.000000000 +0900
1083@@ -1,85 +0,0 @@
1084-#
1085-#  Packages which we'll need to download for a minimal installation
1086-# of Fedora Core 8.
1087-#
1088-
1089-
1090-MAKEDEV
1091-SysVinit
1092-audit-libs
1093-basesystem
1094-bash
1095-beecrypt
1096-bzip2-libs
1097-chkconfig
1098-coreutils
1099-cracklib
1100-cracklib-dicts
1101-db4
1102-device-mapper
1103-e2fsprogs
1104-e2fsprogs-libs
1105-elfutils-libelf
1106-ethtool
1107-expat
1108-filesystem
1109-findutils
1110-gawk
1111-gdbm
1112-glib2
1113-glibc
1114-glibc-common
1115-grep
1116-info
1117-initscripts
1118-iproute
1119-iputils
1120-krb5-libs
1121-libacl
1122-libattr
1123-libcap
1124-libgcc
1125-libidn
1126-keyutils-libs
1127-libselinux
1128-libsepol
1129-libstdc++
1130-libsysfs
1131-libtermcap
1132-libxml2
1133-libxml2-python
1134-mcstrans
1135-mingetty
1136-mktemp
1137-module-init-tools
1138-ncurses
1139-neon
1140-net-tools
1141-openssl
1142-pam
1143-pcre
1144-popt
1145-procps
1146-psmisc
1147-python
1148-python-elementtree
1149-python-libs
1150-python-numeric
1151-python-sqlite
1152-python-urlgrabber
1153-readline
1154-rpm
1155-rpm-libs
1156-rpm-python
1157-sed
1158-setup
1159-shadow-utils
1160-sqlite
1161-sysklogd
1162-termcap
1163-tzdata
1164-udev
1165-util-linux
1166-yum
1167-yum-metadata-parser
1168-zlib
1169diff -ruN rinse-1.7.orig/etc/fedora-core-9.packages rinse-1.7/etc/fedora-core-9.packages
1170--- rinse-1.7.orig/etc/fedora-core-9.packages   2009-04-22 03:38:40.000000000 +0900
1171+++ rinse-1.7/etc/fedora-core-9.packages        1970-01-01 09:00:00.000000000 +0900
1172@@ -1,103 +0,0 @@
1173-audit-libs
1174-basesystem
1175-bash
1176-bzip2-libs
1177-chkconfig
1178-ConsoleKit-libs
1179-coreutils
1180-cpio
1181-cracklib
1182-cracklib-dicts
1183-crontabs
1184-cyrus-sasl-lib
1185-db4
1186-dbus
1187-dbus-libs
1188-device-mapper
1189-device-mapper-libs
1190-dhclient
1191-dirmngr
1192-e2fsprogs
1193-e2fsprogs-libs
1194-elfutils-libelf
1195-ethtool
1196-event-compat-sysv
1197-expat
1198-fedora-release
1199-fedora-release-notes
1200-filesystem
1201-findutils
1202-gamin
1203-gawk
1204-gdbm
1205-glib2
1206-glibc
1207-glibc-common
1208-gnupg2
1209-gpgme
1210-grep
1211-info
1212-initscripts
1213-iproute
1214-iputils
1215-keyutils-libs
1216-krb5-libs
1217-libacl
1218-libattr
1219-libcap
1220-libcurl
1221-libgcc
1222-libgcrypt
1223-libgpg-error
1224-libidn
1225-libksba
1226-libselinux
1227-libsepol
1228-libstdc++
1229-libsysfs
1230-libusb
1231-libvolume_id
1232-libxml2
1233-linux-atm-libs
1234-logrotate
1235-MAKEDEV
1236-mingetty
1237-module-init-tools
1238-ncurses
1239-ncurses-base
1240-ncurses-libs
1241-net-tools
1242-nspr
1243-nss
1244-openldap
1245-openssl
1246-pam
1247-pcre
1248-pinentry
1249-popt
1250-procps
1251-psmisc
1252-pth
1253-pygpgme
1254-python
1255-python-iniparse
1256-python-libs
1257-python-urlgrabber
1258-readline
1259-rpm
1260-rpm-libs
1261-rpm-python
1262-rsyslog
1263-sed
1264-setup
1265-shadow-utils
1266-sqlite
1267-sysvinit-tools
1268-tzdata
1269-udev
1270-upstart
1271-util-linux-ng
1272-vim-minimal
1273-yum
1274-yum-metadata-parser
1275-zlib
1276diff -ruN rinse-1.7.orig/etc/opensuse-11.0.packages rinse-1.7/etc/opensuse-11.0.packages
1277--- rinse-1.7.orig/etc/opensuse-11.0.packages   2009-04-22 03:38:40.000000000 +0900
1278+++ rinse-1.7/etc/opensuse-11.0.packages        2011-02-23 01:32:13.000000000 +0900
1279@@ -72,6 +72,7 @@
1280 libzio
1281 libzypp
1282 login
1283+makedev
1284 mingetty
1285 module-init-tools
1286 ncurses-utils
1287diff -ruN rinse-1.7.orig/etc/opensuse-11.1.packages rinse-1.7/etc/opensuse-11.1.packages
1288--- rinse-1.7.orig/etc/opensuse-11.1.packages   2009-04-22 03:38:40.000000000 +0900
1289+++ rinse-1.7/etc/opensuse-11.1.packages        2011-02-23 01:32:15.000000000 +0900
1290@@ -78,6 +78,7 @@
1291 libzio
1292 libzypp
1293 login
1294+makedev
1295 mingetty
1296 module-init-tools
1297 ncurses-utils
1298diff -ruN rinse-1.7.orig/etc/opensuse-11.2.packages rinse-1.7/etc/opensuse-11.2.packages
1299--- rinse-1.7.orig/etc/opensuse-11.2.packages   1970-01-01 09:00:00.000000000 +0900
1300+++ rinse-1.7/etc/opensuse-11.2.packages        2011-02-23 01:22:03.000000000 +0900
1301@@ -0,0 +1,131 @@
1302+#
1303+#  Packages which we'll need to download for a minimal installation
1304+# OpenSuSE 11.1
1305+#
1306+
1307+
1308+aaa_base
1309+audit-libs
1310+bash
1311+boost-license
1312+bzip2
1313+ConsoleKit
1314+coreutils
1315+coreutils-lang
1316+cpio
1317+cpio-lang
1318+cracklib
1319+cracklib-dict-small
1320+cyrus-sasl
1321+dbus-1
1322+dbus-1-glib
1323+device-mapper
1324+diffutils
1325+dirmngr
1326+e2fsprogs
1327+ethtool
1328+expat
1329+filesystem
1330+fillup
1331+findutils
1332+gawk
1333+gdbm
1334+glib2
1335+glib2-lang
1336+glib2-branding-upstream
1337+glibc
1338+gpg2
1339+gpg2-lang
1340+grep
1341+gzip
1342+hal
1343+info
1344+insserv
1345+keyutils-libs
1346+krb5
1347+libacl
1348+libattr
1349+libboost_signals1_36_0
1350+libbz2-1
1351+libcom_err2
1352+libcurl4
1353+libdb-4_5
1354+libexpat1
1355+libgcc43
1356+libgcrypt11
1357+libglib-2_0-0
1358+libgobject-2_0-0
1359+libgthread-2_0-0
1360+libgpg-error0
1361+libidn
1362+libksba
1363+libldap-2_4-2
1364+libncurses5
1365+libnscd
1366+libopenssl0_9_8
1367+libreadline5
1368+libreiserfs
1369+libselinux1
1370+libsepol1
1371+libsmbios2
1372+libstdc++43
1373+libusb-0_1-4
1374+libuuid1
1375+libvolume_id1
1376+libxcrypt
1377+libxml2
1378+libxml2-python
1379+libzio
1380+libzypp
1381+login
1382+makedev
1383+mingetty
1384+module-init-tools
1385+ncurses-utils
1386+neon
1387+net-tools
1388+openSUSE-release
1389+openSUSE-release-ftp
1390+openslp
1391+pam
1392+pam-config
1393+pam-modules
1394+parted
1395+pciutils
1396+pcre
1397+perl-base
1398+permissions
1399+pinentry
1400+pm-utils
1401+pmtools
1402+PolicyKit
1403+popt
1404+procps
1405+psmisc
1406+pth
1407+pwdutils
1408+python
1409+python-urlgrabber
1410+rpm
1411+rpm-python
1412+satsolver-tools
1413+sed
1414+setserial
1415+sysvinit
1416+termcap
1417+terminfo-base
1418+udev
1419+util-linux
1420+uuid-runtime
1421+zlib
1422+zypper
1423+
1424+# New to 11.2
1425+libreadline6
1426+libaugeas0
1427+libstdc++44
1428+libgcc44
1429+liblua5_1
1430+libpopt0
1431+libelf1
1432+liblzma0
1433diff -ruN rinse-1.7.orig/etc/opensuse-11.3.packages rinse-1.7/etc/opensuse-11.3.packages
1434--- rinse-1.7.orig/etc/opensuse-11.3.packages   1970-01-01 09:00:00.000000000 +0900
1435+++ rinse-1.7/etc/opensuse-11.3.packages        2011-02-23 01:22:17.000000000 +0900
1436@@ -0,0 +1,136 @@
1437+#
1438+#  Packages which we'll need to download for a minimal installation
1439+# OpenSuSE 11.1
1440+#
1441+
1442+
1443+aaa_base
1444+audit-libs
1445+bash
1446+boost-license
1447+bzip2
1448+ConsoleKit
1449+coreutils
1450+coreutils-lang
1451+cpio
1452+cpio-lang
1453+cracklib
1454+cracklib-dict-small
1455+cyrus-sasl
1456+dbus-1
1457+dbus-1-glib
1458+device-mapper
1459+diffutils
1460+dirmngr
1461+e2fsprogs
1462+ethtool
1463+expat
1464+filesystem
1465+fillup
1466+findutils
1467+gawk
1468+gdbm
1469+glib2
1470+glib2-lang
1471+glib2-branding-upstream
1472+glibc
1473+gpg2
1474+gpg2-lang
1475+grep
1476+gzip
1477+hal
1478+info
1479+insserv
1480+keyutils-libs
1481+krb5
1482+libacl
1483+libattr
1484+libboost_signals1_36_0
1485+libbz2-1
1486+libcom_err2
1487+libcurl4
1488+libdb-4_5
1489+libexpat1
1490+libgcc43
1491+libgcrypt11
1492+libglib-2_0-0
1493+libgobject-2_0-0
1494+libgthread-2_0-0
1495+libgpg-error0
1496+libidn
1497+libksba
1498+libldap-2_4-2
1499+libncurses5
1500+libnscd
1501+libopenssl0_9_8
1502+libreadline5
1503+libreiserfs
1504+libselinux1
1505+libsepol1
1506+libsmbios2
1507+libstdc++43
1508+libusb-0_1-4
1509+libuuid1
1510+libvolume_id1
1511+libxcrypt
1512+libxml2
1513+libxml2-python
1514+libzio
1515+libzypp
1516+login
1517+makedev
1518+mingetty
1519+module-init-tools
1520+ncurses-utils
1521+neon
1522+net-tools
1523+openSUSE-release
1524+openSUSE-release-ftp
1525+openslp
1526+pam
1527+pam-config
1528+pam-modules
1529+parted
1530+pciutils
1531+pcre
1532+perl-base
1533+permissions
1534+pinentry
1535+pm-utils
1536+pmtools
1537+popt
1538+procps
1539+psmisc
1540+pth
1541+pwdutils
1542+python
1543+python-urlgrabber
1544+rpm
1545+rpm-python
1546+satsolver-tools
1547+sed
1548+setserial
1549+sysvinit
1550+termcap
1551+terminfo-base
1552+udev
1553+util-linux
1554+uuid-runtime
1555+zlib
1556+zypper
1557+
1558+# New to 11.2
1559+libreadline6
1560+libaugeas0
1561+liblua5_1
1562+libpopt0
1563+libelf1
1564+liblzma0
1565+
1566+# New to 11.3
1567+libstdc++45
1568+libgcc45
1569+libopenssl1_0_0
1570+libassuan0
1571+libssh2-1
1572+libudev0
1573diff -ruN rinse-1.7.orig/etc/rinse.conf rinse-1.7/etc/rinse.conf
1574--- rinse-1.7.orig/etc/rinse.conf       2009-04-22 03:38:40.000000000 +0900
1575+++ rinse-1.7/etc/rinse.conf    2011-02-23 01:34:37.000000000 +0900
1576@@ -11,13 +11,13 @@
1577 
1578 
1579 [centos-4]
1580-mirror       = http://mirror.bytemark.co.uk/centos/4/os/i386/CentOS/RPMS/
1581-mirror.amd64 = http://mirror.bytemark.co.uk/centos/4/os/x86_64/CentOS/RPMS/
1582+mirror       = http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/
1583+mirror.amd64 = http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/
1584 
1585 
1586 [centos-5]
1587-mirror       = http://mirror.bytemark.co.uk/centos/5/os/i386/CentOS/
1588-mirror.amd64 = http://mirror.bytemark.co.uk/centos/5/os/x86_64/CentOS/
1589+mirror       = http://mirror.centos.org/centos/5/os/i386/CentOS/
1590+mirror.amd64 = http://mirror.centos.org/centos/5/os/x86_64/CentOS/
1591 
1592 
1593 [fedora-core-4]
1594@@ -35,25 +35,38 @@
1595 mirror.amd64 = http://ftp.heanet.ie/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/
1596 
1597 
1598-[fedora-core-7]
1599-mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/7/Fedora/i386/os/Fedora/
1600-mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/7/Fedora/x86_64/os/Fedora/
1601+[fedora-7]
1602+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/7/Fedora/i386/os/Fedora/
1603+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/7/Fedora/x86_64/os/Fedora/
1604 
1605 
1606-[fedora-core-8]
1607-mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/8/Fedora/i386/os/Packages/
1608-mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/8/Fedora/x86_64/os/Packages/
1609+[fedora-8]
1610+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/i386/os/Packages/
1611+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/x86_64/os/Packages/
1612 
1613 
1614+[fedora-9]
1615+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/i386/os/Packages/
1616+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/x86_64/os/Packages/
1617 
1618-[fedora-core-9]
1619-mirror       = http://mirror.bytemark.co.uk/fedora/linux/releases/9/Fedora/i386/os/Packages/
1620-mirror.amd64 = http://mirror.bytemark.co.uk/fedora/linux/releases/9/Fedora/x86_64/os/Packages/
1621 
1622+[fedora-10]
1623+mirror       = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/i386/os/Packages/
1624+mirror.amd64 = http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/x86_64/os/Packages/
1625 
1626-[fedora-core-10]
1627-mirror       = http://mirrors.vexs.net/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/
1628-mirror.amd64 = http://mirrors.vexs.net/pub/fedora/linux/releases/10/Fedora/x86_64/os/Packages/
1629+
1630+[fedora-12]
1631+mirror       = http://mirrors.kernel.org/fedora/releases/12/Fedora/i386/os/Packages/
1632+mirror.amd64 = http://mirrors.kernel.org/fedora/releases/12/Fedora/x86_64/os/Packages/
1633+
1634+
1635+[fedora-13]
1636+mirror       = http://mirrors.kernel.org/fedora/releases/13/Fedora/i386/os/Packages/
1637+mirror.amd64 = http://mirrors.kernel.org/fedora/releases/13/Fedora/x86_64/os/Packages/
1638+
1639+[fedora-14]
1640+mirror       = http://mirrors.kernel.org/fedora/releases/14/Fedora/i386/os/Packages/
1641+mirror.amd64 = http://mirrors.kernel.org/fedora/releases/14/Fedora/x86_64/os/Packages/
1642 
1643 
1644 [opensuse-10.1]
1645@@ -72,11 +85,19 @@
1646 
1647 
1648 [opensuse-11.0]
1649-mirror       = http://download.opensuse.org/distribution/11.0/repo/oss/suse/i686/
1650+mirror       = http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/
1651 mirror.amd64 = http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/
1652 
1653 
1654 [opensuse-11.1]
1655-mirror       = http://download.opensuse.org/distribution/11.1/repo/oss/suse/i686/
1656+mirror       = http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/
1657 mirror.amd64 = http://download.opensuse.org/distribution/11.1/repo/oss/suse/x86_64/
1658 
1659+
1660+[opensuse-11.2]
1661+mirror       = http://download.opensuse.org/distribution/11.2/repo/oss/suse/i586/
1662+mirror.amd64 = http://download.opensuse.org/distribution/11.2/repo/oss/suse/x86_64/
1663+
1664+[opensuse-11.3]
1665+mirror       = http://download.opensuse.org/distribution/11.3/repo/oss/suse/i586/
1666+mirror.amd64 = http://download.opensuse.org/distribution/11.3/repo/oss/suse/x86_64/
1667diff -ruN rinse-1.7.orig/scripts/centos-5/post-install.sh rinse-1.7/scripts/centos-5/post-install.sh
1668--- rinse-1.7.orig/scripts/centos-5/post-install.sh     2009-04-22 03:38:40.000000000 +0900
1669+++ rinse-1.7/scripts/centos-5/post-install.sh  2010-11-24 17:04:23.000000000 +0900
1670@@ -29,6 +29,19 @@
1671 done
1672 
1673 #
1674+#  Record arch, if present.
1675+#
1676+if [ -d $prefix/etc/rpm ]; then
1677+
1678+    #
1679+    #  If i386 then record this
1680+    #
1681+    if [ "$arch" = "i386" ]; then
1682+        echo "i686-centos-linux-gnu" >> $prefix/etc/rpm/platform
1683+    fi
1684+fi
1685+
1686+#
1687 #  4.  Run "yum install yum".
1688 #
1689 echo "  Mounting /proc"
1690diff -ruN rinse-1.7.orig/scripts/fedora-10/post-install.sh rinse-1.7/scripts/fedora-10/post-install.sh
1691--- rinse-1.7.orig/scripts/fedora-10/post-install.sh    1970-01-01 09:00:00.000000000 +0900
1692+++ rinse-1.7/scripts/fedora-10/post-install.sh 2010-11-24 17:04:23.000000000 +0900
1693@@ -0,0 +1,115 @@
1694+#!/bin/sh
1695+#
1696+#  Customise the distribution post-install.
1697+#
1698+
1699+
1700+
1701+prefix=$1
1702+
1703+if [ ! -d "${prefix}" ]; then
1704+  echo "Serious error - the named directory doesn't exist."
1705+  exit
1706+fi
1707+
1708+
1709+
1710+#
1711+#  1.  Make sure there is a resolv.conf file present, such that
1712+#     DNS lookups succeed.
1713+#
1714+echo "  Creating resolv.conf"
1715+if [ ! -d "${prefix}/etc/" ]; then
1716+    mkdir -p "${prefix}/etc/"
1717+fi
1718+cp /etc/resolv.conf "${prefix}/etc/"
1719+
1720+
1721+#
1722+#  2.  Copy the cached .RPM files into the yum directory, so that
1723+#     yum doesn't need to make them again.
1724+#
1725+echo "  Setting up YUM cache"
1726+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
1727+    mkdir -p ${prefix}/var/cache/yum/core/packages/
1728+fi
1729+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
1730+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
1731+fi
1732+
1733+for i in ${prefix}/*.rpm ; do
1734+    cp $i ${prefix}/var/cache/yum/core/packages/
1735+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
1736+done
1737+
1738+
1739+
1740+#
1741+#  3.  Ensure that Yum has a working configuration file.
1742+#
1743+arch=i386
1744+if [ $ARCH = "amd64" ] ; then
1745+    arch=x86_64
1746+fi
1747+
1748+echo "  Creating yum.conf"
1749+cat > ${prefix}/etc/yum.conf <<EOF
1750+[main]
1751+cachedir=/var/cache/yum
1752+debuglevel=1
1753+reposdir=/dev/null
1754+logfile=/var/log/yum.log
1755+retries=20
1756+obsoletes=1
1757+gpgcheck=0
1758+assumeyes=1
1759+
1760+# repos
1761+
1762+[core]
1763+name=core
1764+baseurl=$mirror
1765+
1766+EOF
1767+
1768+
1769+#
1770+#  4.  Run "yum install yum".
1771+#
1772+echo "  Mounting /proc"
1773+if [ ! -d "${prefix}/proc" ]; then
1774+    mkdir -p "${prefix}/proc"
1775+fi
1776+mount -o bind /proc ${prefix}/proc
1777+
1778+echo "  Priming the yum cache"
1779+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
1780+    mkdir -p ${prefix}/var/cache/yum/core/packages
1781+fi
1782+cp /var/cache/rinse/fedora-10.$ARCH/* ${prefix}/var/cache/yum/core/packages/
1783+
1784+echo "  Bootstrapping yum"
1785+chroot ${prefix} /sbin/ldconfig
1786+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
1787+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
1788+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
1789+
1790+
1791+#
1792+#  5.  Clean up
1793+#
1794+echo "  Cleaning up"
1795+chroot ${prefix} /usr/bin/yum clean all
1796+
1797+umount ${prefix}/proc
1798+
1799+
1800+#
1801+#  6.  Remove the .rpm files from the prefix root.
1802+#
1803+echo "  Final tidy..."
1804+for i in ${prefix}/*.rpm; do
1805+    rm -f $i
1806+done
1807+find ${prefix} -name '*.rpmorig' -delete
1808+find ${prefix} -name '*.rpmnew' -delete
1809diff -ruN rinse-1.7.orig/scripts/fedora-11/post-install.sh rinse-1.7/scripts/fedora-11/post-install.sh
1810--- rinse-1.7.orig/scripts/fedora-11/post-install.sh    1970-01-01 09:00:00.000000000 +0900
1811+++ rinse-1.7/scripts/fedora-11/post-install.sh 2011-02-23 01:24:38.000000000 +0900
1812@@ -0,0 +1,115 @@
1813+#!/bin/sh
1814+#
1815+#  Customise the distribution post-install.
1816+#
1817+
1818+
1819+
1820+prefix=$1
1821+
1822+if [ ! -d "${prefix}" ]; then
1823+  echo "Serious error - the named directory doesn't exist."
1824+  exit
1825+fi
1826+
1827+
1828+
1829+#
1830+#  1.  Make sure there is a resolv.conf file present, such that
1831+#     DNS lookups succeed.
1832+#
1833+echo "  Creating resolv.conf"
1834+if [ ! -d "${prefix}/etc/" ]; then
1835+    mkdir -p "${prefix}/etc/"
1836+fi
1837+cp /etc/resolv.conf "${prefix}/etc/"
1838+
1839+
1840+#
1841+#  2.  Copy the cached .RPM files into the yum directory, so that
1842+#     yum doesn't need to make them again.
1843+#
1844+echo "  Setting up YUM cache"
1845+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
1846+    mkdir -p ${prefix}/var/cache/yum/core/packages/
1847+fi
1848+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
1849+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
1850+fi
1851+
1852+for i in ${prefix}/*.rpm ; do
1853+    cp $i ${prefix}/var/cache/yum/core/packages/
1854+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
1855+done
1856+
1857+
1858+
1859+#
1860+#  3.  Ensure that Yum has a working configuration file.
1861+#
1862+arch=i386
1863+if [ $ARCH = "amd64" ] ; then
1864+    arch=x86_64
1865+fi
1866+
1867+echo "  Creating yum.conf"
1868+cat > ${prefix}/etc/yum.conf <<EOF
1869+[main]
1870+cachedir=/var/cache/yum
1871+debuglevel=1
1872+reposdir=/dev/null
1873+logfile=/var/log/yum.log
1874+retries=20
1875+obsoletes=1
1876+gpgcheck=0
1877+assumeyes=1
1878+
1879+# repos
1880+
1881+[core]
1882+name=core
1883+baseurl=$mirror
1884+
1885+EOF
1886+
1887+
1888+#
1889+#  4.  Run "yum install yum".
1890+#
1891+echo "  Mounting /proc"
1892+if [ ! -d "${prefix}/proc" ]; then
1893+    mkdir -p "${prefix}/proc"
1894+fi
1895+mount -o bind /proc ${prefix}/proc
1896+
1897+echo "  Priming the yum cache"
1898+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
1899+    mkdir -p ${prefix}/var/cache/yum/core/packages
1900+fi
1901+cp /var/cache/rinse/fedora-11.$ARCH/* ${prefix}/var/cache/yum/core/packages/
1902+
1903+echo "  Bootstrapping yum"
1904+chroot ${prefix} /sbin/ldconfig
1905+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
1906+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
1907+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
1908+
1909+
1910+#
1911+#  5.  Clean up
1912+#
1913+echo "  Cleaning up"
1914+chroot ${prefix} /usr/bin/yum clean all
1915+
1916+umount ${prefix}/proc
1917+
1918+
1919+#
1920+#  6.  Remove the .rpm files from the prefix root.
1921+#
1922+echo "  Final tidy..."
1923+for i in ${prefix}/*.rpm; do
1924+    rm -f $i
1925+done
1926+find ${prefix} -name '*.rpmorig' -delete
1927+find ${prefix} -name '*.rpmnew' -delete
1928diff -ruN rinse-1.7.orig/scripts/fedora-12/post-install.sh rinse-1.7/scripts/fedora-12/post-install.sh
1929--- rinse-1.7.orig/scripts/fedora-12/post-install.sh    1970-01-01 09:00:00.000000000 +0900
1930+++ rinse-1.7/scripts/fedora-12/post-install.sh 2010-11-24 17:04:23.000000000 +0900
1931@@ -0,0 +1,121 @@
1932+#!/bin/sh
1933+#
1934+#  Customise the distribution post-install.
1935+#
1936+
1937+
1938+
1939+prefix=$1
1940+
1941+if [ ! -d "${prefix}" ]; then
1942+  echo "Serious error - the named directory doesn't exist."
1943+  exit
1944+fi
1945+
1946+
1947+
1948+#
1949+#  1.  Make sure there is a resolv.conf file present, such that
1950+#     DNS lookups succeed.
1951+#
1952+echo "  Creating resolv.conf"
1953+if [ ! -d "${prefix}/etc/" ]; then
1954+    mkdir -p "${prefix}/etc/"
1955+fi
1956+cp /etc/resolv.conf "${prefix}/etc/"
1957+
1958+
1959+#
1960+#  2.  Copy the cached .RPM files into the yum directory, so that
1961+#     yum doesn't need to make them again.
1962+#
1963+echo "  Setting up YUM cache"
1964+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
1965+    mkdir -p ${prefix}/var/cache/yum/core/packages/
1966+fi
1967+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
1968+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
1969+fi
1970+
1971+for i in ${prefix}/*.rpm ; do
1972+    cp $i ${prefix}/var/cache/yum/core/packages/
1973+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
1974+done
1975+
1976+
1977+
1978+#
1979+#  3.  Ensure that Yum has a working configuration file.
1980+#
1981+arch=i386
1982+if [ $ARCH = "amd64" ] ; then
1983+    arch=x86_64
1984+fi
1985+
1986+# A correct mirror URL does not contain /Packages on the end
1987+mirror=`dirname $mirror`
1988+
1989+echo "  Creating initial yum.conf"
1990+cat > ${prefix}/etc/yum.conf <<EOF
1991+[main]
1992+reposdir=/dev/null
1993+logfile=/var/log/yum.log
1994+
1995+[core]
1996+name=core
1997+baseurl=$mirror
1998+EOF
1999+
2000+
2001+#
2002+#  4.  Run "yum install yum".
2003+#
2004+echo "  Mounting /proc"
2005+if [ ! -d "${prefix}/proc" ]; then
2006+    mkdir -p "${prefix}/proc"
2007+fi
2008+mount -o bind /proc ${prefix}/proc
2009+
2010+echo "  Priming the yum cache"
2011+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
2012+    mkdir -p ${prefix}/var/cache/yum/core/packages
2013+fi
2014+cp /var/cache/rinse/fedora-12.$ARCH/* ${prefix}/var/cache/yum/core/packages/
2015+
2016+echo "  Bootstrapping yum"
2017+chroot ${prefix} /sbin/ldconfig
2018+chroot ${prefix} /sbin/MAKEDEV urandom
2019+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2020+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2021+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2022+
2023+# Can use regular repositories now
2024+echo "  Creating final yum.conf"
2025+cat > ${prefix}/etc/yum.conf <<EOF
2026+[main]
2027+logfile=/var/log/yum.log
2028+gpgcheck=1
2029+
2030+# PUT YOUR REPOS HERE OR IN separate files named file.repo
2031+# in /etc/yum.repos.d
2032+EOF
2033+
2034+
2035+#
2036+#  5.  Clean up
2037+#
2038+echo "  Cleaning up"
2039+chroot ${prefix} /usr/bin/yum clean all
2040+
2041+umount ${prefix}/proc
2042+
2043+
2044+#
2045+#  6.  Remove the .rpm files from the prefix root.
2046+#
2047+echo "  Final tidy..."
2048+for i in ${prefix}/*.rpm; do
2049+    rm -f $i
2050+done
2051+find ${prefix} -name '*.rpmorig' -delete
2052+find ${prefix} -name '*.rpmnew' -delete
2053diff -ruN rinse-1.7.orig/scripts/fedora-13/post-install.sh rinse-1.7/scripts/fedora-13/post-install.sh
2054--- rinse-1.7.orig/scripts/fedora-13/post-install.sh    1970-01-01 09:00:00.000000000 +0900
2055+++ rinse-1.7/scripts/fedora-13/post-install.sh 2010-11-24 17:04:23.000000000 +0900
2056@@ -0,0 +1,121 @@
2057+#!/bin/sh
2058+#
2059+#  Customise the distribution post-install.
2060+#
2061+
2062+
2063+
2064+prefix=$1
2065+
2066+if [ ! -d "${prefix}" ]; then
2067+  echo "Serious error - the named directory doesn't exist."
2068+  exit
2069+fi
2070+
2071+
2072+
2073+#
2074+#  1.  Make sure there is a resolv.conf file present, such that
2075+#     DNS lookups succeed.
2076+#
2077+echo "  Creating resolv.conf"
2078+if [ ! -d "${prefix}/etc/" ]; then
2079+    mkdir -p "${prefix}/etc/"
2080+fi
2081+cp /etc/resolv.conf "${prefix}/etc/"
2082+
2083+
2084+#
2085+#  2.  Copy the cached .RPM files into the yum directory, so that
2086+#     yum doesn't need to make them again.
2087+#
2088+echo "  Setting up YUM cache"
2089+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2090+    mkdir -p ${prefix}/var/cache/yum/core/packages/
2091+fi
2092+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2093+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2094+fi
2095+
2096+for i in ${prefix}/*.rpm ; do
2097+    cp $i ${prefix}/var/cache/yum/core/packages/
2098+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2099+done
2100+
2101+
2102+
2103+#
2104+#  3.  Ensure that Yum has a working configuration file.
2105+#
2106+arch=i386
2107+if [ $ARCH = "amd64" ] ; then
2108+    arch=x86_64
2109+fi
2110+
2111+# A correct mirror URL does not contain /Packages on the end
2112+mirror=`dirname $mirror`
2113+
2114+echo "  Creating initial yum.conf"
2115+cat > ${prefix}/etc/yum.conf <<EOF
2116+[main]
2117+reposdir=/dev/null
2118+logfile=/var/log/yum.log
2119+
2120+[core]
2121+name=core
2122+baseurl=$mirror
2123+EOF
2124+
2125+
2126+#
2127+#  4.  Run "yum install yum".
2128+#
2129+echo "  Mounting /proc"
2130+if [ ! -d "${prefix}/proc" ]; then
2131+    mkdir -p "${prefix}/proc"
2132+fi
2133+mount -o bind /proc ${prefix}/proc
2134+
2135+echo "  Priming the yum cache"
2136+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
2137+    mkdir -p ${prefix}/var/cache/yum/core/packages
2138+fi
2139+cp /var/cache/rinse/fedora-13.$ARCH/* ${prefix}/var/cache/yum/core/packages/
2140+
2141+echo "  Bootstrapping yum"
2142+chroot ${prefix} /sbin/ldconfig
2143+chroot ${prefix} /sbin/MAKEDEV urandom
2144+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2145+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2146+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2147+
2148+# Can use regular repositories now
2149+echo "  Creating final yum.conf"
2150+cat > ${prefix}/etc/yum.conf <<EOF
2151+[main]
2152+logfile=/var/log/yum.log
2153+gpgcheck=1
2154+
2155+# PUT YOUR REPOS HERE OR IN separate files named file.repo
2156+# in /etc/yum.repos.d
2157+EOF
2158+
2159+
2160+#
2161+#  5.  Clean up
2162+#
2163+echo "  Cleaning up"
2164+chroot ${prefix} /usr/bin/yum clean all
2165+
2166+umount ${prefix}/proc
2167+
2168+
2169+#
2170+#  6.  Remove the .rpm files from the prefix root.
2171+#
2172+echo "  Final tidy..."
2173+for i in ${prefix}/*.rpm; do
2174+    rm -f $i
2175+done
2176+find ${prefix} -name '*.rpmorig' -delete
2177+find ${prefix} -name '*.rpmnew' -delete
2178diff -ruN rinse-1.7.orig/scripts/fedora-14/post-install.sh rinse-1.7/scripts/fedora-14/post-install.sh
2179--- rinse-1.7.orig/scripts/fedora-14/post-install.sh    1970-01-01 09:00:00.000000000 +0900
2180+++ rinse-1.7/scripts/fedora-14/post-install.sh 2010-11-24 17:04:23.000000000 +0900
2181@@ -0,0 +1,120 @@
2182+#!/bin/sh
2183+#
2184+#  Customise the distribution post-install.
2185+#
2186+
2187+
2188+
2189+prefix=$1
2190+
2191+if [ ! -d "${prefix}" ]; then
2192+  echo "Serious error - the named directory doesn't exist."
2193+  exit
2194+fi
2195+
2196+
2197+
2198+#
2199+#  1.  Make sure there is a resolv.conf file present, such that
2200+#     DNS lookups succeed.
2201+#
2202+echo "  Creating resolv.conf"
2203+if [ ! -d "${prefix}/etc/" ]; then
2204+    mkdir -p "${prefix}/etc/"
2205+fi
2206+cp /etc/resolv.conf "${prefix}/etc/"
2207+
2208+
2209+#
2210+#  2.  Copy the cached .RPM files into the yum directory, so that
2211+#     yum doesn't need to make them again.
2212+#
2213+echo "  Setting up YUM cache"
2214+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2215+    mkdir -p ${prefix}/var/cache/yum/core/packages/
2216+fi
2217+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2218+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2219+fi
2220+
2221+for i in ${prefix}/*.rpm ; do
2222+    cp $i ${prefix}/var/cache/yum/core/packages/
2223+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2224+done
2225+
2226+
2227+
2228+#
2229+#  3.  Ensure that Yum has a working configuration file.
2230+#
2231+arch=i386
2232+if [ $ARCH = "amd64" ] ; then
2233+    arch=x86_64
2234+fi
2235+
2236+# A correct mirror URL does not contain /Packages on the end
2237+mirror=`dirname $mirror`
2238+
2239+echo "  Creating initial yum.conf"
2240+cat > ${prefix}/etc/yum.conf <<EOF
2241+[main]
2242+reposdir=/dev/null
2243+logfile=/var/log/yum.log
2244+
2245+[core]
2246+name=core
2247+baseurl=$mirror
2248+EOF
2249+
2250+
2251+#
2252+#  4.  Run "yum install yum".
2253+#
2254+echo "  Mounting /proc"
2255+if [ ! -d "${prefix}/proc" ]; then
2256+    mkdir -p "${prefix}/proc"
2257+fi
2258+mount -o bind /proc ${prefix}/proc
2259+
2260+echo "  Priming the yum cache"
2261+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
2262+    mkdir -p ${prefix}/var/cache/yum/core/packages
2263+fi
2264+cp /var/cache/rinse/fedora-14.$ARCH/* ${prefix}/var/cache/yum/core/packages/
2265+
2266+echo "  Bootstrapping yum"
2267+chroot ${prefix} /sbin/ldconfig
2268+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2269+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2270+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2271+
2272+# Can use regular repositories now
2273+echo "  Creating final yum.conf"
2274+cat > ${prefix}/etc/yum.conf <<EOF
2275+[main]
2276+logfile=/var/log/yum.log
2277+gpgcheck=1
2278+
2279+# PUT YOUR REPOS HERE OR IN separate files named file.repo
2280+# in /etc/yum.repos.d
2281+EOF
2282+
2283+
2284+#
2285+#  5.  Clean up
2286+#
2287+echo "  Cleaning up"
2288+chroot ${prefix} /usr/bin/yum clean all
2289+
2290+umount ${prefix}/proc
2291+
2292+
2293+#
2294+#  6.  Remove the .rpm files from the prefix root.
2295+#
2296+echo "  Final tidy..."
2297+for i in ${prefix}/*.rpm; do
2298+    rm -f $i
2299+done
2300+find ${prefix} -name '*.rpmorig' -delete
2301+find ${prefix} -name '*.rpmnew' -delete
2302diff -ruN rinse-1.7.orig/scripts/fedora-7/post-install.sh rinse-1.7/scripts/fedora-7/post-install.sh
2303--- rinse-1.7.orig/scripts/fedora-7/post-install.sh     1970-01-01 09:00:00.000000000 +0900
2304+++ rinse-1.7/scripts/fedora-7/post-install.sh  2010-11-24 17:04:23.000000000 +0900
2305@@ -0,0 +1,112 @@
2306+#!/bin/sh
2307+#
2308+#  Customise the distribution post-install.
2309+#
2310+
2311+
2312+
2313+prefix=$1
2314+
2315+if [ ! -d "${prefix}" ]; then
2316+  echo "Serious error - the named directory doesn't exist."
2317+  exit
2318+fi
2319+
2320+
2321+
2322+#
2323+#  1.  Make sure there is a resolv.conf file present, such that
2324+#     DNS lookups succeed.
2325+#
2326+echo "  Creating resolv.conf"
2327+if [ ! -d "${prefix}/etc/" ]; then
2328+    mkdir -p "${prefix}/etc/"
2329+fi
2330+cp /etc/resolv.conf "${prefix}/etc/"
2331+
2332+
2333+#
2334+#  2.  Copy the cached .RPM files into the yum directory, so that
2335+#     yum doesn't need to make them again.
2336+#
2337+echo "  Setting up YUM cache"
2338+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2339+    mkdir -p ${prefix}/var/cache/yum/core/packages/
2340+fi
2341+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2342+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2343+fi
2344+
2345+for i in ${prefix}/*.rpm ; do
2346+    cp $i ${prefix}/var/cache/yum/core/packages/
2347+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2348+done
2349+
2350+
2351+
2352+#
2353+#  3.  Ensure that Yum has a working configuration file.
2354+#
2355+arch=i386
2356+if [ $ARCH = "amd64" ] ; then
2357+    arch=x86_64
2358+fi
2359+
2360+echo "  Creating yum.conf"
2361+cat > ${prefix}/etc/yum.conf <<EOF
2362+[main]
2363+cachedir=/var/cache/yum
2364+debuglevel=1
2365+reposdir=/dev/null
2366+logfile=/var/log/yum.log
2367+retries=20
2368+obsoletes=1
2369+gpgcheck=0
2370+assumeyes=1
2371+
2372+# repos
2373+
2374+[core]
2375+name=core
2376+baseurl=$mirror
2377+
2378+[updates-released]
2379+name=updates
2380+baseurl=$mirror
2381+EOF
2382+
2383+
2384+#
2385+#  4.  Run "yum install yum".
2386+#
2387+echo "  Mounting /proc"
2388+if [ ! -d "${prefix}/proc" ]; then
2389+    mkdir -p "${prefix}/proc"
2390+fi
2391+mount -o bind /proc ${prefix}/proc
2392+
2393+echo "  Bootstrapping yum"
2394+chroot ${prefix} /sbin/ldconfig
2395+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2396+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2397+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2398+
2399+
2400+#
2401+#  5.  Clean up
2402+#
2403+echo "  Cleaning up"
2404+chroot ${prefix} /usr/bin/yum clean all
2405+
2406+umount ${prefix}/proc
2407+
2408+
2409+#
2410+#  6.  Remove the .rpm files from the prefix root.
2411+#
2412+echo "  Final tidy..."
2413+for i in ${prefix}/*.rpm; do
2414+    rm -f $i
2415+done
2416+find ${prefix} -name '*.rpmorig' -delete
2417+find ${prefix} -name '*.rpmnew' -delete
2418diff -ruN rinse-1.7.orig/scripts/fedora-8/post-install.sh rinse-1.7/scripts/fedora-8/post-install.sh
2419--- rinse-1.7.orig/scripts/fedora-8/post-install.sh     1970-01-01 09:00:00.000000000 +0900
2420+++ rinse-1.7/scripts/fedora-8/post-install.sh  2010-11-24 17:04:23.000000000 +0900
2421@@ -0,0 +1,118 @@
2422+#!/bin/sh
2423+#
2424+#  Customise the distribution post-install.
2425+#
2426+
2427+
2428+
2429+prefix=$1
2430+
2431+if [ ! -d "${prefix}" ]; then
2432+  echo "Serious error - the named directory doesn't exist."
2433+  exit
2434+fi
2435+
2436+
2437+
2438+#
2439+#  1.  Make sure there is a resolv.conf file present, such that
2440+#     DNS lookups succeed.
2441+#
2442+echo "  Creating resolv.conf"
2443+if [ ! -d "${prefix}/etc/" ]; then
2444+    mkdir -p "${prefix}/etc/"
2445+fi
2446+cp /etc/resolv.conf "${prefix}/etc/"
2447+
2448+
2449+#
2450+#  2.  Copy the cached .RPM files into the yum directory, so that
2451+#     yum doesn't need to make them again.
2452+#
2453+echo "  Setting up YUM cache"
2454+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2455+    mkdir -p ${prefix}/var/cache/yum/core/packages/
2456+fi
2457+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2458+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2459+fi
2460+
2461+for i in ${prefix}/*.rpm ; do
2462+    cp $i ${prefix}/var/cache/yum/core/packages/
2463+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2464+done
2465+
2466+
2467+
2468+#
2469+#  3.  Ensure that Yum has a working configuration file.
2470+#
2471+arch=i386
2472+if [ $ARCH = "amd64" ] ; then
2473+    arch=x86_64
2474+fi
2475+
2476+echo "  Creating yum.conf"
2477+cat > ${prefix}/etc/yum.conf <<EOF
2478+[main]
2479+cachedir=/var/cache/yum
2480+debuglevel=1
2481+reposdir=/dev/null
2482+logfile=/var/log/yum.log
2483+retries=20
2484+obsoletes=1
2485+gpgcheck=0
2486+assumeyes=1
2487+
2488+# repos
2489+
2490+[core]
2491+name=core
2492+baseurl=$mirror
2493+
2494+[updates-released]
2495+name=updates
2496+baseurl=$mirror
2497+EOF
2498+
2499+
2500+#
2501+#  4.  Run "yum install yum".
2502+#
2503+echo "  Mounting /proc"
2504+if [ ! -d "${prefix}/proc" ]; then
2505+    mkdir -p "${prefix}/proc"
2506+fi
2507+mount -o bind /proc ${prefix}/proc
2508+
2509+echo "  Priming the yum cache"
2510+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
2511+    mkdir -p ${prefix}/var/cache/yum/core/packages
2512+fi
2513+cp /var/cache/rinse/fedora-8.$ARCH/* ${prefix}/var/cache/yum/core/packages/
2514+
2515+echo "  Bootstrapping yum"
2516+chroot ${prefix} /sbin/ldconfig
2517+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2518+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2519+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2520+
2521+
2522+#
2523+#  5.  Clean up
2524+#
2525+echo "  Cleaning up"
2526+chroot ${prefix} /usr/bin/yum clean all
2527+
2528+umount ${prefix}/proc
2529+
2530+
2531+#
2532+#  6.  Remove the .rpm files from the prefix root.
2533+#
2534+echo "  Final tidy..."
2535+for i in ${prefix}/*.rpm; do
2536+    rm -f $i
2537+done
2538+find ${prefix} -name '*.rpmorig' -delete
2539+find ${prefix} -name '*.rpmnew' -delete
2540diff -ruN rinse-1.7.orig/scripts/fedora-9/post-install.sh rinse-1.7/scripts/fedora-9/post-install.sh
2541--- rinse-1.7.orig/scripts/fedora-9/post-install.sh     1970-01-01 09:00:00.000000000 +0900
2542+++ rinse-1.7/scripts/fedora-9/post-install.sh  2010-11-24 17:04:23.000000000 +0900
2543@@ -0,0 +1,115 @@
2544+#!/bin/sh
2545+#
2546+#  Customise the distribution post-install.
2547+#
2548+
2549+
2550+
2551+prefix=$1
2552+
2553+if [ ! -d "${prefix}" ]; then
2554+  echo "Serious error - the named directory doesn't exist."
2555+  exit
2556+fi
2557+
2558+
2559+
2560+#
2561+#  1.  Make sure there is a resolv.conf file present, such that
2562+#     DNS lookups succeed.
2563+#
2564+echo "  Creating resolv.conf"
2565+if [ ! -d "${prefix}/etc/" ]; then
2566+    mkdir -p "${prefix}/etc/"
2567+fi
2568+cp /etc/resolv.conf "${prefix}/etc/"
2569+
2570+
2571+#
2572+#  2.  Copy the cached .RPM files into the yum directory, so that
2573+#     yum doesn't need to make them again.
2574+#
2575+echo "  Setting up YUM cache"
2576+if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2577+    mkdir -p ${prefix}/var/cache/yum/core/packages/
2578+fi
2579+if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2580+    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2581+fi
2582+
2583+for i in ${prefix}/*.rpm ; do
2584+    cp $i ${prefix}/var/cache/yum/core/packages/
2585+    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2586+done
2587+
2588+
2589+
2590+#
2591+#  3.  Ensure that Yum has a working configuration file.
2592+#
2593+arch=i386
2594+if [ $ARCH = "amd64" ] ; then
2595+    arch=x86_64
2596+fi
2597+
2598+echo "  Creating yum.conf"
2599+cat > ${prefix}/etc/yum.conf <<EOF
2600+[main]
2601+cachedir=/var/cache/yum
2602+debuglevel=1
2603+reposdir=/dev/null
2604+logfile=/var/log/yum.log
2605+retries=20
2606+obsoletes=1
2607+gpgcheck=0
2608+assumeyes=1
2609+
2610+# repos
2611+
2612+[core]
2613+name=core
2614+baseurl=$mirror
2615+
2616+EOF
2617+
2618+
2619+#
2620+#  4.  Run "yum install yum".
2621+#
2622+echo "  Mounting /proc"
2623+if [ ! -d "${prefix}/proc" ]; then
2624+    mkdir -p "${prefix}/proc"
2625+fi
2626+mount -o bind /proc ${prefix}/proc
2627+
2628+echo "  Priming the yum cache"
2629+if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
2630+    mkdir -p ${prefix}/var/cache/yum/core/packages
2631+fi
2632+cp /var/cache/rinse/fedora-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/
2633+
2634+echo "  Bootstrapping yum"
2635+chroot ${prefix} /sbin/ldconfig
2636+chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2637+chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2638+chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2639+
2640+
2641+#
2642+#  5.  Clean up
2643+#
2644+echo "  Cleaning up"
2645+chroot ${prefix} /usr/bin/yum clean all
2646+
2647+umount ${prefix}/proc
2648+
2649+
2650+#
2651+#  6.  Remove the .rpm files from the prefix root.
2652+#
2653+echo "  Final tidy..."
2654+for i in ${prefix}/*.rpm; do
2655+    rm -f $i
2656+done
2657+find ${prefix} -name '*.rpmorig' -delete
2658+find ${prefix} -name '*.rpmnew' -delete
2659diff -ruN rinse-1.7.orig/scripts/fedora-core-10/post-install.sh rinse-1.7/scripts/fedora-core-10/post-install.sh
2660--- rinse-1.7.orig/scripts/fedora-core-10/post-install.sh       2009-04-22 03:38:40.000000000 +0900
2661+++ rinse-1.7/scripts/fedora-core-10/post-install.sh    1970-01-01 09:00:00.000000000 +0900
2662@@ -1,115 +0,0 @@
2663-#!/bin/sh
2664-#
2665-#  Customise the distribution post-install.
2666-#
2667-
2668-
2669-
2670-prefix=$1
2671-
2672-if [ ! -d "${prefix}" ]; then
2673-  echo "Serious error - the named directory doesn't exist."
2674-  exit
2675-fi
2676-
2677-
2678-
2679-#
2680-#  1.  Make sure there is a resolv.conf file present, such that
2681-#     DNS lookups succeed.
2682-#
2683-echo "  Creating resolv.conf"
2684-if [ ! -d "${prefix}/etc/" ]; then
2685-    mkdir -p "${prefix}/etc/"
2686-fi
2687-cp /etc/resolv.conf "${prefix}/etc/"
2688-
2689-
2690-#
2691-#  2.  Copy the cached .RPM files into the yum directory, so that
2692-#     yum doesn't need to make them again.
2693-#
2694-echo "  Setting up YUM cache"
2695-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2696-    mkdir -p ${prefix}/var/cache/yum/core/packages/
2697-fi
2698-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2699-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2700-fi
2701-
2702-for i in ${prefix}/*.rpm ; do
2703-    cp $i ${prefix}/var/cache/yum/core/packages/
2704-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2705-done
2706-
2707-
2708-
2709-#
2710-#  3.  Ensure that Yum has a working configuration file.
2711-#
2712-arch=i386
2713-if [ $ARCH = "amd64" ] ; then
2714-    arch=x86_64
2715-fi
2716-
2717-echo "  Creating yum.conf"
2718-cat > ${prefix}/etc/yum.conf <<EOF
2719-[main]
2720-cachedir=/var/cache/yum
2721-debuglevel=1
2722-reposdir=/dev/null
2723-logfile=/var/log/yum.log
2724-retries=20
2725-obsoletes=1
2726-gpgcheck=0
2727-assumeyes=1
2728-
2729-# repos
2730-
2731-[core]
2732-name=core
2733-baseurl=$mirror
2734-
2735-EOF
2736-
2737-
2738-#
2739-#  4.  Run "yum install yum".
2740-#
2741-echo "  Mounting /proc"
2742-if [ ! -d "${prefix}/proc" ]; then
2743-    mkdir -p "${prefix}/proc"
2744-fi
2745-mount -o bind /proc ${prefix}/proc
2746-
2747-echo "  Priming the yum cache"
2748-if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
2749-    mkdir -p ${prefix}/var/cache/yum/core/packages
2750-fi
2751-cp /var/cache/rinse/fedora-core-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/
2752-
2753-echo "  Bootstrapping yum"
2754-chroot ${prefix} /sbin/ldconfig
2755-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2756-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2757-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2758-
2759-
2760-#
2761-#  5.  Clean up
2762-#
2763-echo "  Cleaning up"
2764-chroot ${prefix} /usr/bin/yum clean all
2765-
2766-umount ${prefix}/proc
2767-
2768-
2769-#
2770-#  6.  Remove the .rpm files from the prefix root.
2771-#
2772-echo "  Final tidy..."
2773-for i in ${prefix}/*.rpm; do
2774-    rm -f $i
2775-done
2776-find ${prefix} -name '*.rpmorig' -delete
2777-find ${prefix} -name '*.rpmnew' -delete
2778diff -ruN rinse-1.7.orig/scripts/fedora-core-7/post-install.sh rinse-1.7/scripts/fedora-core-7/post-install.sh
2779--- rinse-1.7.orig/scripts/fedora-core-7/post-install.sh        2009-04-22 03:38:40.000000000 +0900
2780+++ rinse-1.7/scripts/fedora-core-7/post-install.sh     1970-01-01 09:00:00.000000000 +0900
2781@@ -1,112 +0,0 @@
2782-#!/bin/sh
2783-#
2784-#  Customise the distribution post-install.
2785-#
2786-
2787-
2788-
2789-prefix=$1
2790-
2791-if [ ! -d "${prefix}" ]; then
2792-  echo "Serious error - the named directory doesn't exist."
2793-  exit
2794-fi
2795-
2796-
2797-
2798-#
2799-#  1.  Make sure there is a resolv.conf file present, such that
2800-#     DNS lookups succeed.
2801-#
2802-echo "  Creating resolv.conf"
2803-if [ ! -d "${prefix}/etc/" ]; then
2804-    mkdir -p "${prefix}/etc/"
2805-fi
2806-cp /etc/resolv.conf "${prefix}/etc/"
2807-
2808-
2809-#
2810-#  2.  Copy the cached .RPM files into the yum directory, so that
2811-#     yum doesn't need to make them again.
2812-#
2813-echo "  Setting up YUM cache"
2814-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2815-    mkdir -p ${prefix}/var/cache/yum/core/packages/
2816-fi
2817-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2818-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2819-fi
2820-
2821-for i in ${prefix}/*.rpm ; do
2822-    cp $i ${prefix}/var/cache/yum/core/packages/
2823-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2824-done
2825-
2826-
2827-
2828-#
2829-#  3.  Ensure that Yum has a working configuration file.
2830-#
2831-arch=i386
2832-if [ $ARCH = "amd64" ] ; then
2833-    arch=x86_64
2834-fi
2835-
2836-echo "  Creating yum.conf"
2837-cat > ${prefix}/etc/yum.conf <<EOF
2838-[main]
2839-cachedir=/var/cache/yum
2840-debuglevel=1
2841-reposdir=/dev/null
2842-logfile=/var/log/yum.log
2843-retries=20
2844-obsoletes=1
2845-gpgcheck=0
2846-assumeyes=1
2847-
2848-# repos
2849-
2850-[core]
2851-name=core
2852-baseurl=$mirror
2853-
2854-[updates-released]
2855-name=updates
2856-baseurl=$mirror
2857-EOF
2858-
2859-
2860-#
2861-#  4.  Run "yum install yum".
2862-#
2863-echo "  Mounting /proc"
2864-if [ ! -d "${prefix}/proc" ]; then
2865-    mkdir -p "${prefix}/proc"
2866-fi
2867-mount -o bind /proc ${prefix}/proc
2868-
2869-echo "  Bootstrapping yum"
2870-chroot ${prefix} /sbin/ldconfig
2871-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2872-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2873-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2874-
2875-
2876-#
2877-#  5.  Clean up
2878-#
2879-echo "  Cleaning up"
2880-chroot ${prefix} /usr/bin/yum clean all
2881-
2882-umount ${prefix}/proc
2883-
2884-
2885-#
2886-#  6.  Remove the .rpm files from the prefix root.
2887-#
2888-echo "  Final tidy..."
2889-for i in ${prefix}/*.rpm; do
2890-    rm -f $i
2891-done
2892-find ${prefix} -name '*.rpmorig' -delete
2893-find ${prefix} -name '*.rpmnew' -delete
2894diff -ruN rinse-1.7.orig/scripts/fedora-core-8/post-install.sh rinse-1.7/scripts/fedora-core-8/post-install.sh
2895--- rinse-1.7.orig/scripts/fedora-core-8/post-install.sh        2009-04-22 03:38:40.000000000 +0900
2896+++ rinse-1.7/scripts/fedora-core-8/post-install.sh     1970-01-01 09:00:00.000000000 +0900
2897@@ -1,118 +0,0 @@
2898-#!/bin/sh
2899-#
2900-#  Customise the distribution post-install.
2901-#
2902-
2903-
2904-
2905-prefix=$1
2906-
2907-if [ ! -d "${prefix}" ]; then
2908-  echo "Serious error - the named directory doesn't exist."
2909-  exit
2910-fi
2911-
2912-
2913-
2914-#
2915-#  1.  Make sure there is a resolv.conf file present, such that
2916-#     DNS lookups succeed.
2917-#
2918-echo "  Creating resolv.conf"
2919-if [ ! -d "${prefix}/etc/" ]; then
2920-    mkdir -p "${prefix}/etc/"
2921-fi
2922-cp /etc/resolv.conf "${prefix}/etc/"
2923-
2924-
2925-#
2926-#  2.  Copy the cached .RPM files into the yum directory, so that
2927-#     yum doesn't need to make them again.
2928-#
2929-echo "  Setting up YUM cache"
2930-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
2931-    mkdir -p ${prefix}/var/cache/yum/core/packages/
2932-fi
2933-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
2934-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
2935-fi
2936-
2937-for i in ${prefix}/*.rpm ; do
2938-    cp $i ${prefix}/var/cache/yum/core/packages/
2939-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
2940-done
2941-
2942-
2943-
2944-#
2945-#  3.  Ensure that Yum has a working configuration file.
2946-#
2947-arch=i386
2948-if [ $ARCH = "amd64" ] ; then
2949-    arch=x86_64
2950-fi
2951-
2952-echo "  Creating yum.conf"
2953-cat > ${prefix}/etc/yum.conf <<EOF
2954-[main]
2955-cachedir=/var/cache/yum
2956-debuglevel=1
2957-reposdir=/dev/null
2958-logfile=/var/log/yum.log
2959-retries=20
2960-obsoletes=1
2961-gpgcheck=0
2962-assumeyes=1
2963-
2964-# repos
2965-
2966-[core]
2967-name=core
2968-baseurl=$mirror
2969-
2970-[updates-released]
2971-name=updates
2972-baseurl=$mirror
2973-EOF
2974-
2975-
2976-#
2977-#  4.  Run "yum install yum".
2978-#
2979-echo "  Mounting /proc"
2980-if [ ! -d "${prefix}/proc" ]; then
2981-    mkdir -p "${prefix}/proc"
2982-fi
2983-mount -o bind /proc ${prefix}/proc
2984-
2985-echo "  Priming the yum cache"
2986-if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
2987-    mkdir -p ${prefix}/var/cache/yum/core/packages
2988-fi
2989-cp /var/cache/rinse/fedora-core-8.$ARCH/* ${prefix}/var/cache/yum/core/packages/
2990-
2991-echo "  Bootstrapping yum"
2992-chroot ${prefix} /sbin/ldconfig
2993-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
2994-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
2995-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
2996-
2997-
2998-#
2999-#  5.  Clean up
3000-#
3001-echo "  Cleaning up"
3002-chroot ${prefix} /usr/bin/yum clean all
3003-
3004-umount ${prefix}/proc
3005-
3006-
3007-#
3008-#  6.  Remove the .rpm files from the prefix root.
3009-#
3010-echo "  Final tidy..."
3011-for i in ${prefix}/*.rpm; do
3012-    rm -f $i
3013-done
3014-find ${prefix} -name '*.rpmorig' -delete
3015-find ${prefix} -name '*.rpmnew' -delete
3016diff -ruN rinse-1.7.orig/scripts/fedora-core-9/post-install.sh rinse-1.7/scripts/fedora-core-9/post-install.sh
3017--- rinse-1.7.orig/scripts/fedora-core-9/post-install.sh        2009-04-22 03:38:40.000000000 +0900
3018+++ rinse-1.7/scripts/fedora-core-9/post-install.sh     1970-01-01 09:00:00.000000000 +0900
3019@@ -1,115 +0,0 @@
3020-#!/bin/sh
3021-#
3022-#  Customise the distribution post-install.
3023-#
3024-
3025-
3026-
3027-prefix=$1
3028-
3029-if [ ! -d "${prefix}" ]; then
3030-  echo "Serious error - the named directory doesn't exist."
3031-  exit
3032-fi
3033-
3034-
3035-
3036-#
3037-#  1.  Make sure there is a resolv.conf file present, such that
3038-#     DNS lookups succeed.
3039-#
3040-echo "  Creating resolv.conf"
3041-if [ ! -d "${prefix}/etc/" ]; then
3042-    mkdir -p "${prefix}/etc/"
3043-fi
3044-cp /etc/resolv.conf "${prefix}/etc/"
3045-
3046-
3047-#
3048-#  2.  Copy the cached .RPM files into the yum directory, so that
3049-#     yum doesn't need to make them again.
3050-#
3051-echo "  Setting up YUM cache"
3052-if [ ! -d ${prefix}/var/cache/yum/core/packages/ ]; then
3053-    mkdir -p ${prefix}/var/cache/yum/core/packages/
3054-fi
3055-if [ ! -d ${prefix}/var/cache/yum/updates-released/packages/ ]; then
3056-    mkdir -p ${prefix}/var/cache/yum/updates-released/packages/
3057-fi
3058-
3059-for i in ${prefix}/*.rpm ; do
3060-    cp $i ${prefix}/var/cache/yum/core/packages/
3061-    cp $i ${prefix}/var/cache/yum/updates-released/packages/
3062-done
3063-
3064-
3065-
3066-#
3067-#  3.  Ensure that Yum has a working configuration file.
3068-#
3069-arch=i386
3070-if [ $ARCH = "amd64" ] ; then
3071-    arch=x86_64
3072-fi
3073-
3074-echo "  Creating yum.conf"
3075-cat > ${prefix}/etc/yum.conf <<EOF
3076-[main]
3077-cachedir=/var/cache/yum
3078-debuglevel=1
3079-reposdir=/dev/null
3080-logfile=/var/log/yum.log
3081-retries=20
3082-obsoletes=1
3083-gpgcheck=0
3084-assumeyes=1
3085-
3086-# repos
3087-
3088-[core]
3089-name=core
3090-baseurl=$mirror
3091-
3092-EOF
3093-
3094-
3095-#
3096-#  4.  Run "yum install yum".
3097-#
3098-echo "  Mounting /proc"
3099-if [ ! -d "${prefix}/proc" ]; then
3100-    mkdir -p "${prefix}/proc"
3101-fi
3102-mount -o bind /proc ${prefix}/proc
3103-
3104-echo "  Priming the yum cache"
3105-if [ ! -d "${prefix}/var/cache/yum/core/packages/" ]; then
3106-    mkdir -p ${prefix}/var/cache/yum/core/packages
3107-fi
3108-cp /var/cache/rinse/fedora-core-9.$ARCH/* ${prefix}/var/cache/yum/core/packages/
3109-
3110-echo "  Bootstrapping yum"
3111-chroot ${prefix} /sbin/ldconfig
3112-chroot ${prefix} /usr/bin/yum -y install yum         2>/dev/null
3113-chroot ${prefix} /usr/bin/yum -y install vim-minimal 2>/dev/null
3114-chroot ${prefix} /usr/bin/yum -y install dhclient    2>/dev/null
3115-
3116-
3117-#
3118-#  5.  Clean up
3119-#
3120-echo "  Cleaning up"
3121-chroot ${prefix} /usr/bin/yum clean all
3122-
3123-umount ${prefix}/proc
3124-
3125-
3126-#
3127-#  6.  Remove the .rpm files from the prefix root.
3128-#
3129-echo "  Final tidy..."
3130-for i in ${prefix}/*.rpm; do
3131-    rm -f $i
3132-done
3133-find ${prefix} -name '*.rpmorig' -delete
3134-find ${prefix} -name '*.rpmnew' -delete
3135diff -ruN rinse-1.7.orig/scripts/opensuse-11.1/post-install.sh rinse-1.7/scripts/opensuse-11.1/post-install.sh
3136--- rinse-1.7.orig/scripts/opensuse-11.1/post-install.sh        2009-04-22 03:38:40.000000000 +0900
3137+++ rinse-1.7/scripts/opensuse-11.1/post-install.sh     2010-11-24 17:04:23.000000000 +0900
3138@@ -59,6 +59,11 @@
3139 
3140 EOF
3141 
3142+if [ $ARCH = "i386" ] ; then
3143+       echo "  Setting architecture to i686"
3144+       sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
3145+fi
3146+
3147 
3148 #
3149 #  4.  Run "zypper install zypper".
3150@@ -73,7 +78,7 @@
3151 chroot ${prefix} /sbin/ldconfig
3152 chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null
3153 chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null
3154-chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install dhclient    2>/dev/null
3155+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null
3156 chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null
3157 
3158 
3159@@ -82,9 +87,10 @@
3160 #
3161 echo "  Cleaning up"
3162 chroot ${prefix} /usr/bin/zypper clean
3163-
3164 umount ${prefix}/proc
3165 
3166+echo "  Ending uuidd"
3167+pkill uuidd
3168 
3169 #
3170 #  6.  Remove the .rpm files from the prefix root.
3171diff -ruN rinse-1.7.orig/scripts/opensuse-11.2/post-install.sh rinse-1.7/scripts/opensuse-11.2/post-install.sh
3172--- rinse-1.7.orig/scripts/opensuse-11.2/post-install.sh        1970-01-01 09:00:00.000000000 +0900
3173+++ rinse-1.7/scripts/opensuse-11.2/post-install.sh     2010-11-24 17:04:23.000000000 +0900
3174@@ -0,0 +1,104 @@
3175+#!/bin/sh
3176+#
3177+#  Customise the distribution post-install.
3178+#
3179+
3180+prefix=$1
3181+
3182+if [ ! -d "${prefix}" ]; then
3183+  echo "Serious error - the named directory doesn't exist."
3184+  exit
3185+fi
3186+
3187+
3188+# There's no pre-existing /dev/zero nor is there one from the packages that are already unpacked.
3189+echo "  Creating devices in /dev"
3190+if ! [ -e "${prefix}/dev/zero" ]; then
3191+    mknod -m 666 "${prefix}/dev/zero" c 1 5
3192+fi
3193+
3194+#
3195+#  1.  Make sure there is a resolv.conf file present, such that
3196+#     DNS lookups succeed.
3197+#
3198+echo "  Creating resolv.conf"
3199+if [ ! -d "${prefix}/etc/" ]; then
3200+    mkdir -p "${prefix}/etc/"
3201+fi
3202+cp /etc/resolv.conf "${prefix}/etc/"
3203+
3204+
3205+#
3206+#  2.  Copy the cached .RPM files into the zypper directory, so that
3207+#     zypper doesn't need to fetch them again.
3208+#
3209+echo "  Setting up zypper cache"
3210+
3211+if [ ! -d "${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}" ]; then
3212+    mkdir -p ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
3213+fi
3214+cp ${cache_dir}/${dist}.${ARCH}/* ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
3215+
3216+
3217+#
3218+#  3.  Ensure that zypper has a working configuration file.
3219+#
3220+arch=i386
3221+if [ $ARCH = "amd64" ] ; then
3222+    arch=x86_64
3223+fi
3224+
3225+echo "  Creating zypper repo entry"
3226+[ -d "${prefix}/etc/zypp/repos.d" ] || mkdir -p ${prefix}/etc/zypp/repos.d
3227+cat > ${prefix}/etc/zypp/repos.d/${dist}.repo <<EOF
3228+[opensuse]
3229+name=${dist}
3230+baseurl=$(dirname $(dirname ${mirror}))
3231+enabled=1
3232+gpgcheck=1
3233+
3234+EOF
3235+
3236+if [ $ARCH = "i386" ] ; then
3237+       echo "  Setting architecture to i686"
3238+       sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
3239+fi
3240+
3241+
3242+#
3243+#  4.  Run "zypper install zypper".
3244+#
3245+echo "  Mounting /proc"
3246+if [ ! -d "${prefix}/proc" ]; then
3247+    mkdir -p "${prefix}/proc"
3248+fi
3249+mount -o bind /proc ${prefix}/proc
3250+
3251+echo "  Bootstrapping zypper"
3252+chroot ${prefix} /sbin/ldconfig
3253+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null
3254+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null
3255+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null
3256+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install syslog-ng   2>/dev/null
3257+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null
3258+
3259+
3260+#
3261+#  5.  Clean up
3262+#
3263+echo "  Cleaning up"
3264+chroot ${prefix} /usr/bin/zypper clean
3265+umount ${prefix}/proc
3266+
3267+echo "  Ending uuidd"
3268+pkill uuidd
3269+
3270+#
3271+#  6.  Remove the .rpm files from the prefix root.
3272+#
3273+echo "  Final tidy..."
3274+for i in ${prefix}/*.rpm; do
3275+    rm -f $i
3276+done
3277+find ${prefix} -name '*.rpmorig' -delete
3278+find ${prefix} -name '*.rpmnew' -delete
3279diff -ruN rinse-1.7.orig/scripts/opensuse-11.3/post-install.sh rinse-1.7/scripts/opensuse-11.3/post-install.sh
3280--- rinse-1.7.orig/scripts/opensuse-11.3/post-install.sh        1970-01-01 09:00:00.000000000 +0900
3281+++ rinse-1.7/scripts/opensuse-11.3/post-install.sh     2010-11-24 17:04:23.000000000 +0900
3282@@ -0,0 +1,111 @@
3283+#!/bin/sh
3284+#
3285+#  Customise the distribution post-install.
3286+#
3287+
3288+prefix=$1
3289+
3290+if [ ! -d "${prefix}" ]; then
3291+  echo "Serious error - the named directory doesn't exist."
3292+  exit
3293+fi
3294+
3295+
3296+# There's no pre-existing /dev/zero nor is there one from the packages that are already unpacked.
3297+echo "  Creating devices in /dev"
3298+if ! [ -e "${prefix}/dev/zero" ]; then
3299+    mknod -m 666 "${prefix}/dev/zero" c 1 5
3300+fi
3301+
3302+#
3303+#  1.  Make sure there is a resolv.conf file present, such that
3304+#     DNS lookups succeed.
3305+#
3306+echo "  Creating resolv.conf"
3307+if [ ! -d "${prefix}/etc/" ]; then
3308+    mkdir -p "${prefix}/etc/"
3309+fi
3310+cp /etc/resolv.conf "${prefix}/etc/"
3311+
3312+
3313+#
3314+#  2.  Copy the cached .RPM files into the zypper directory, so that
3315+#     zypper doesn't need to fetch them again.
3316+#
3317+echo "  Setting up zypper cache"
3318+
3319+if [ ! -d "${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}" ]; then
3320+    mkdir -p ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
3321+fi
3322+cp ${cache_dir}/${dist}.${ARCH}/* ${prefix}/var/cache/zypp/packages/opensuse/suse/${arch}
3323+
3324+
3325+#
3326+#  3.  Ensure that zypper has a working configuration file.
3327+#
3328+arch=i386
3329+if [ $ARCH = "amd64" ] ; then
3330+    arch=x86_64
3331+fi
3332+
3333+echo "  Creating zypper repo entry"
3334+[ -d "${prefix}/etc/zypp/repos.d" ] || mkdir -p ${prefix}/etc/zypp/repos.d
3335+cat > ${prefix}/etc/zypp/repos.d/${dist}.repo <<EOF
3336+[opensuse]
3337+name=${dist}
3338+baseurl=$(dirname $(dirname ${mirror}))
3339+enabled=1
3340+gpgcheck=1
3341+
3342+EOF
3343+
3344+if [ $ARCH = "i386" ] ; then
3345+       echo "  Setting architecture to i686"
3346+       sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
3347+fi
3348+
3349+
3350+#
3351+#  4.  Run "zypper install zypper".
3352+#
3353+echo "  Mounting /proc"
3354+if [ ! -d "${prefix}/proc" ]; then
3355+    mkdir -p "${prefix}/proc"
3356+fi
3357+mount -o bind /proc ${prefix}/proc
3358+
3359+echo "  Bootstrapping zypper"
3360+chroot ${prefix} /sbin/ldconfig
3361+
3362+# Need key trusted to prevent warnings during package install
3363+chroot ${prefix} /usr/bin/zypper -n --gpg-auto-import-keys refresh --force-download
3364+
3365+# Need these two to be properly installed to prevent numerous errors during installation of other packages
3366+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install PolicyKit permissions 2>/dev/null
3367+
3368+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install zypper      2>/dev/null
3369+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install vim-minimal 2>/dev/null
3370+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install e2fsprogs   2>/dev/null
3371+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks install syslog-ng   2>/dev/null
3372+chroot ${prefix} /usr/bin/zypper -n --no-gpg-checks update              2>/dev/null
3373+
3374+
3375+#
3376+#  5.  Clean up
3377+#
3378+echo "  Cleaning up"
3379+chroot ${prefix} /usr/bin/zypper clean
3380+umount ${prefix}/proc
3381+
3382+echo "  Ending uuidd"
3383+pkill uuidd
3384+
3385+#
3386+#  6.  Remove the .rpm files from the prefix root.
3387+#
3388+echo "  Final tidy..."
3389+for i in ${prefix}/*.rpm; do
3390+    rm -f $i
3391+done
3392+find ${prefix} -name '*.rpmorig' -delete
3393+find ${prefix} -name '*.rpmnew' -delete
Note: See TracBrowser for help on using the repository browser.