SDB:How to setup a build server

Jump to: navigation, search

Created with the help of SUSE Build Tutorial.

1.) install standard KDE install + y2pmsh + yast2-instserver

mkdir -p /work/dist/opensuse/10.0/

2.) Use yast --> Misc yast2instserver to create an installation source in /work/dist/opensuse/ and create an installsource called 10.0

3.) Change the Yast --> Software --> Installation Source to this new local source and also add one of these online sources

to be able to access some missing packs.

mkdir -p /work/build/
mkdir -p /work/repository/10.0

4.) vi /etc/y2pmbuild/dists/10.0 and change the email and locations.

defaultpackages="aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libgcc libnscd libselinux libstdc++ libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils gcc gdbm gettext libtool perl rpm"
url_opensuse="file:/work/dist/opensuse/10.0/"
url_remote="http://mirror.switch.ch/ftp/mirror/opensuse/distribution/SL-10.0-OSS-RC1/inst-source/"
url_updates="file:/work/repository/10.0/"

add_sources="opensuse remote updates"
buildrootbase="/work/build/"
rpm_sign_name="Example user <user@example.com>"
rpm_sign_key="/etc/y2pmbuild/signkey.asc"
repository="/work/repository/$BUILD_DIST"
regen_repository="yum"
extra_copy="/etc/profile"

5.) use your own email address

cd /etc/y2pmbuild
gpg --gen-key
gpg -a --export user@example.com > signkey.asc
gpg -a --export-secret-key user@example.com >> signkey.asc

6.) Put export BUILD_DIST=10.0 into /etc/profile

cd /etc/y2pmbuild/dists
ln -s 10.0 10.0-i386