From danderson@lnxi.com Fri May 11 23:05:59 2007 From: "David B. Anderson" To: buildservice@lists.opensuse.org Subject: [opensuse-buildservice] Patches to easy Stand Alone OBS install. Date: Fri, 11 May 2007 17:10:07 -0600 Message-ID: <4644F7CF.3060306@lnxi.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4808983250935336533==" --===============4808983250935336533== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Here are some patches to make setting up a stand alone OBS install easier. They mostly remove some hard code URLs, allowing the use of the=20 environment configuration files. Also included is a patch for the obs-server.spec file to make it work=20 with a tarball made from current development tree. All of the patches are against r1638. --=20 David B. Anderson=20 Linux Networx Sr. Software Engineer Email: danderson(a)lnxi.com Phone: (801) 649-1311 --- ../obs-r/buildservice/src/webclient/app/helpers/application_helper.rb 200= 7-05-11 16:04:41.000000000 -0600 +++ buildservice/src/webclient/app/helpers/application_helper.rb 2007-05-11 1= 5:46:42.000000000 -0600 @@ -28,8 +28,12 @@ :project =3D> project, :package =3D> package end =20 + def link_to_repo(message=3D'', repo=3D'') + link_to "Build Service Software #{message}", URL_SW_REPO_HOST + "/#{repo= }" + end + def repo_url(project, repo=3D'' ) - 'http://software.opensuse.org/download/' + project.gsub(':', ':/') + "/#= {repo}" + URL_SW_REPO_HOST + '/download/' + project.gsub(':', ':/') + "/#{repo}" end =20 =20 --- ../obs-r/buildservice/src/backend/BSConfig.pm 2007-05-11 16:04:41.0000000= 00 -0600 +++ buildservice/src/backend/BSConfig.pm 2007-05-11 15:46:42.000000000 -0600 @@ -27,6 +27,8 @@ our $stageserver =3D 'rsync://149.44.161.5/put-repos-main'; our $stageserver_sync =3D 'rsync://149.44.161.5/trigger-repos-sync'; our $repodownload =3D 'http://software.opensuse.org/download/repositories'; +our $gpgkeyurl =3D 'http://software.opensuse.org/openSUSE-Build-Service.asc'; +our $gpgcheck_flag =3D'1'; our $sign =3D '/root/bin/sign'; our $bsdir =3D '/bs'; our $keyfile =3D '/bs/openSUSE-Build-Service.asc'; --- ../obs-r/buildservice/src/webclient/config/environments/development.rb 20= 07-05-11 16:04:41.000000000 -0600 +++ buildservice/src/webclient/config/environments/development.rb 2007-05-11 = 15:46:42.000000000 -0600 @@ -42,3 +42,8 @@ ### ICHAIN_HOST =3D "212.12.12.12" ICHAIN_TEST_USER =3D "test" =20 +# Software Repository Machine Path +URL_SW_REPO_HOST =3D "http://software.opensuse.org" + +# API Machine URL +URL_API_HOST =3D"https://api.opensuse.org" --- ../obs-r/buildservice/src/webclient/app/views/main/index.rhtml 2007-05-11= 16:04:41.000000000 -0600 +++ buildservice/src/webclient/app/views/main/index.rhtml 2007-05-11 15:46:42= .000000000 -0600 @@ -16,7 +16,10 @@ It can build packages for various Linux distributions.
Most of the advanced features are still missing, but the basic build functio= nality is there.

=20 -

Everyone can download the resulting software packag= es via the software browsing interfa= ce.

+

Everyone can download the resulting software packag= es via the=20 + <%=3D link_to_repo 'browsing interface' + -%>. +

=20 =20