27 |
|
|
28 |
distname='SME Server' |
distname='SME Server' |
29 |
distvers=$(basename $(pwd)) |
distvers=$(basename $(pwd)) |
30 |
|
distarch=i386 |
31 |
|
|
32 |
for img in product updates |
for img in product updates |
33 |
do |
do |
42 |
|
|
43 |
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \ |
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \ |
44 |
$(pwd)/cdrom.image \ |
$(pwd)/cdrom.image \ |
45 |
i386 > pkgorder |
$distarch > pkgorder |
46 |
|
|
47 |
PACKAGES="acl anaconda anaconda-help anaconda-images anaconda-runtime ash |
PACKAGES="acl anaconda anaconda-help anaconda-images anaconda-runtime ash |
48 |
atk attr audiofile audit-libs bash beecrypt bitmap-fonts-cjk bogl |
atk attr audiofile audit-libs bash beecrypt bitmap-fonts-cjk bogl |
75 |
xorg-x11-ISO8859-9-75dpi-fonts xorg-x11-KOI8-R xorg-x11-KOI8-R-75dpi-fonts |
xorg-x11-ISO8859-9-75dpi-fonts xorg-x11-KOI8-R xorg-x11-KOI8-R-75dpi-fonts |
76 |
xorg-x11-libs xorg-x11-libs-data xorg-x11-xfs zlib" |
xorg-x11-libs xorg-x11-libs-data xorg-x11-xfs zlib" |
77 |
|
|
78 |
for PKG in $PACKAGES; |
for PKG in $PACKAGES |
79 |
do |
do |
80 |
PACKAGEFILE=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4.2/updates/i386/RPMS/$PKG*{i386,noarch}.rpm | egrep "^$PKG " | sed 's/.* //') |
PACKAGEFILES=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4/updates/$distarch/RPMS/$PKG*.rpm | grep "^$PKG " | sed 's/.* //') |
81 |
if [ -n "$PACKAGEFILE" ]; |
if [ -n "$PACKAGEFILES" ]; |
82 |
then |
then |
83 |
if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PACKAGEFILE ]; |
for PKGFILE in $PACKAGEFILES |
84 |
then |
do |
85 |
ln -sf /mirrors/centos/4.2/updates/i386/RPMS/$PACKAGEFILE $(pwd)/cdrom.image/CentOS/RPMS/$PACKAGEFILE |
if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ]; |
|
fi |
|
|
else |
|
|
PACKAGEFILE=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4.2/os/i386/CentOS/RPMS/$PKG*{i386,noarch}.rpm | egrep "^$PKG " | sed 's/.* //') |
|
|
if [ -n "$PACKAGEFILE" ]; |
|
|
then |
|
|
if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PACKAGEFILE ]; |
|
86 |
then |
then |
87 |
ln -sf /mirrors/centos/4.2/os/i386/CentOS/RPMS/$PACKAGEFILE $(pwd)/cdrom.image/CentOS/RPMS/$PACKAGEFILE |
ln -sf /mirrors/centos/4/updates/$distarch/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE |
88 |
fi |
fi |
89 |
|
done |
90 |
|
else |
91 |
|
PACKAGEFILES=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4/os/$distarch/CentOS/RPMS/$PKG*.rpm | grep "^$PKG " | sed 's/.* //') |
92 |
|
if [ -n "$PACKAGEFILES" ]; |
93 |
|
then |
94 |
|
for PKGFILE in $PACKAGEFILES |
95 |
|
do |
96 |
|
if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ]; |
97 |
|
then |
98 |
|
ln -sf /mirrors/centos/4/os/$distarch/CentOS/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE |
99 |
|
fi |
100 |
|
done |
101 |
fi |
fi |
102 |
fi |
fi |
103 |
done |
done |
104 |
|
|
105 |
PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \ |
PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \ |
106 |
--comp dist-4.1 \ |
--comp dist-4.3 \ |
107 |
--pkgorder pkgorder \ |
--pkgorder pkgorder \ |
108 |
--release "$distname" \ |
--release "$distname" \ |
109 |
--product "$distname" \ |
--product "$distname" \ |