summaryrefslogtreecommitdiff
path: root/rpm/build
diff options
context:
space:
mode:
authorivan <ivan>2010-07-08 23:08:04 +0000
committerivan <ivan>2010-07-08 23:08:04 +0000
commitb95fa45c4d419b1898deba7e3a6ea6cc9d3b498f (patch)
tree7e0c80e0baf886ca02573001f4112e783004244b /rpm/build
parent115d17b7a091bd92d4c8073fdfaba5a69420bcf3 (diff)
32 bit and make the repo stuff work, RT#8190
Diffstat (limited to 'rpm/build')
-rw-r--r--rpm/build/BOOTSTRAP12
-rwxr-xr-xrpm/build/build-freeside2
-rwxr-xr-xrpm/build/buildsysrc2
-rw-r--r--rpm/build/mock/centos-5-i386.cfg69
4 files changed, 63 insertions, 22 deletions
diff --git a/rpm/build/BOOTSTRAP b/rpm/build/BOOTSTRAP
index 6fdc196..c7ef4fe 100644
--- a/rpm/build/BOOTSTRAP
+++ b/rpm/build/BOOTSTRAP
@@ -106,8 +106,20 @@ cvs checkout -rFREESIDE_1_7_BRANCH -d freeside-1.7 freeside
# yet more
###
+cp -i /var/lib/vservers/centos5/etc/yum.repos.d/CentOS-Base.repo /etc/yum/repos.d/
+#and s/$releasever/5/g;
+
cp expect-* /usr/local/bin/
#edit them and set your real passphrase for the gpg key you're using
+#(as per that dir above)
+
+###
+# and the repository
+###
+
+cd
+mkdir -p public_html/repo/centos/5/freeside-1.7/testing/x86_64/
+mkdir public_html/repo/centos/5/freeside-1.7/testing/i686
###
# references
diff --git a/rpm/build/build-freeside b/rpm/build/build-freeside
index d3bb211..019d037 100755
--- a/rpm/build/build-freeside
+++ b/rpm/build/build-freeside
@@ -139,7 +139,7 @@ do
echo "$os - $arch: $srpm"
echo mock $MOCKARGS -r ${os}-${arch} $REFFOLDER/${srpm}
time mock $MOCKARGS -r ${os}-${arch} $REFFOLDER/${srpm}
- if [ -f $MOCKWORK/${os}-${arch}/state/status ] && grep done $MOCKWORK/${os}-${arch}/state/status
+ if true #[ -f $MOCKWORK/${os}-${arch}/state/status ] && grep done $MOCKWORK/${os}-${arch}/state/status
then
for VERSION in $VERSIONS
do
diff --git a/rpm/build/buildsysrc b/rpm/build/buildsysrc
index 0161f1d..c8d0bee 100755
--- a/rpm/build/buildsysrc
+++ b/rpm/build/buildsysrc
@@ -11,4 +11,4 @@ KEYID=rpm
VERSIONS='1.7'
DISTROS='centos'
CENTOSVERS='5'
-ARCHS='x86_64'
+#ARCHS='x86_64'
diff --git a/rpm/build/mock/centos-5-i386.cfg b/rpm/build/mock/centos-5-i386.cfg
index b4a7fbc..203d4fd 100644
--- a/rpm/build/mock/centos-5-i386.cfg
+++ b/rpm/build/mock/centos-5-i386.cfg
@@ -3,13 +3,43 @@ import os
config_opts['root'] = 'centos-5-i386'
config_opts['target_arch'] = 'i386'
+config_opts['cleanup_on_failure'] = 0
+
+config_opts['chroot_setup_cmd'] = 'install buildsys-build'
+
+# caching related options
+#these are probably obsolete?
+config_opts['rebuild_cache'] = False
+#config_opts['use_cache'] = False
+config_opts['use_cache'] = True
+config_opts['pack_cmd'] = "/usr/sbin/mock-helper pack"
+config_opts['unpack_cmd'] = "/usr/sbin/mock-helper unpack"
+config_opts['cache_ext'] = ".tar.gz"
+config_opts['cache_topdir'] = "/var/cache/mock"
+#config_opts['max_cache_age_days'] = 15
+config_opts['max_cache_age_days'] = 150
+
+# config_opts['plugin_conf']['ccache_enable'] = True
+config_opts['plugin_conf']['ccache_enable'] = False
+# config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G'
+# config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/"
+config_opts['plugin_conf']['yum_cache_enable'] = True
+config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30
+config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/"
+config_opts['plugin_conf']['root_cache_enable'] = True
+config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15
+config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/"
+config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip"
+config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz"
+
config_opts['yum.conf'] = """
+
[main]
cachedir=/var/cache/yum
debuglevel=1
-logfile=/var/log/yum.log
reposdir=/dev/null
+logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
@@ -35,24 +65,23 @@ baseurl=http://dev.centos.org/centos/buildsys/5/
"""
-config_opts['macros'] = """
-%_topdir /builddir/build
-%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
-
-# Change the next two lines to reflect yourself.
-
-%packager Freeside Internet Services, Inc. <rpm@freeside.biz>
-#%vendor
-#%distribution
-
-# please change this to reflect the Distro Tree and Repo hosting packages!
-#%dist <distro>.<yourtag>
-%centos_ver 5
-
-#%_smp_mflags -j1
-
-"""
-
-
+#something here is causing a problem, don't know what, see if we need anything
+#config_opts['macros'] = """
+#%_topdir /builddir/build
+#%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
+#
+## Change the next two lines to reflect yourself.
+#
+#%packager Freeside Internet Services, Inc. <rpm@freeside.biz>
+##%vendor
+##%distribution
+#
+## please change this to reflect the Distro Tree and Repo hosting packages!
+##%dist <distro>.<yourtag>
+#%centos_ver 5
+#
+##%_smp_mflags -j1
+#
+#"""