Re: [Spacewalk-devel] [PATCH] build rhncfg on openSUSE
Hi, Am Freitag, 8. April 2011, 14:57:56 schrieb Michael Calmer: Hi, here is the patch for rhncfg. 0007-build-rhncfg-on-SUSE.patch: - only some specfile modifications I splitted this into seperate patches. One SUSE specific and one general one like you suggested. -- Regards, Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) From b31b81520f06693b299f962eb20bec4c4bd7d01a Mon Sep 17 00:00:00 2001 From: Michael Calmer m...@suse.de Date: Thu, 14 Apr 2011 18:13:25 +0200 Subject: [PATCH 05/13] build rhncfg build on SUSE - provide on SUSE missing directories --- client/tools/rhncfg/rhncfg.spec |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/client/tools/rhncfg/rhncfg.spec b/client/tools/rhncfg/rhncfg.spec index 43384e6..f760038 100644 --- a/client/tools/rhncfg/rhncfg.spec +++ b/client/tools/rhncfg/rhncfg.spec @@ -17,7 +17,12 @@ BuildRequires: python Requires: python Requires: rhnlib = 2.5.32 Requires: rhn-client-tools +%if 0%{?suse_version} +# provide rhn directories and no selinux on suse +BuildRequires: rhn-client-tools +%else Requires: libselinux-python +%endif %description The base libraries and functions needed by all rhncfg-* packages. @@ -68,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) +%if 0%{?suse_version} +%dir %{_sharedstatedir} +%endif %{rhnroot}/config_common %{_sharedstatedir}/rhncfg/backups %doc LICENSE PYTHON-LICENSES.txt -- 1.7.3.4 From 73cb7d7a4d15ddf533d537f3ec3bcfe016a88d3d Mon Sep 17 00:00:00 2001 From: Michael Calmer m...@suse.de Date: Thu, 14 Apr 2011 18:24:47 +0200 Subject: [PATCH 06/13] add missing directories to filelist --- client/tools/rhncfg/rhncfg.spec |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/client/tools/rhncfg/rhncfg.spec b/client/tools/rhncfg/rhncfg.spec index f760038..0d55a8b 100644 --- a/client/tools/rhncfg/rhncfg.spec +++ b/client/tools/rhncfg/rhncfg.spec @@ -76,6 +76,7 @@ rm -rf $RPM_BUILD_ROOT %if 0%{?suse_version} %dir %{_sharedstatedir} %endif +%dir %{_sharedstatedir}/rhncfg %{rhnroot}/config_common %{_sharedstatedir}/rhncfg/backups %doc LICENSE PYTHON-LICENSES.txt @@ -96,7 +97,7 @@ rm -rf $RPM_BUILD_ROOT %files actions %defattr(-,root,root,-) -%{rhnroot}/actions/* +%{rhnroot}/actions %{_bindir}/rhn-actions-control %config(noreplace) %{client_caps_dir}/* %{_mandir}/man8/rhn-actions-control.8* -- 1.7.3.4 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhn-custom-info on openSUSE
Hi, Am Montag, 11. April 2011, 16:58:21 schrieb Miroslav Suchý: On 04/08/2011 02:59 PM, Michael Calmer wrote: Hi, here is the patch to build rhn-custom-info on openSUSE. 0008-build-rhn-custom-info-on-SUSE.patch: - only some specfile modifications %else +%if 0%{?suse_version} +Requires: zypp-plugin-spacewalk +%else I would much rather prefer usage of %elif here. Hmm, rpm do not support %elif. It does not in OBS and we looked in the upstream code and also there is elif not implemented. +%dir %{_datadir}/rhn Again. rhn-custom-info requires yum-rhn-plugin, which requires rhn-client-tools, which own this directory. So this should not be there. Ok, here is a modified version of the patch. -- Regards, Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) From 9fb215881dd38f79382a889e5dfdb02b244be1ff Mon Sep 17 00:00:00 2001 From: Michael Calmer m...@suse.de Date: Fri, 15 Apr 2011 10:24:18 +0200 Subject: [PATCH 07/13] build rhn-custom-info on SUSE - require zypp-plugin-spacewalk - BuildRequire rhn-client-tools for the filelist check in OBS --- client/tools/rhncustominfo/rhn-custom-info.spec |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/client/tools/rhncustominfo/rhn-custom-info.spec b/client/tools/rhncustominfo/rhn-custom-info.spec index 7d2e7813..da410d8 100644 --- a/client/tools/rhncustominfo/rhn-custom-info.spec +++ b/client/tools/rhncustominfo/rhn-custom-info.spec @@ -21,8 +21,15 @@ Requires: rhnlib %if 0%{?rhel} = 5 || 0%{?fedora} = 1 Requires: yum-rhn-plugin %else +# rpm do not support elif +%if 0%{?suse_version} +Requires: zypp-plugin-spacewalk +# provide rhn directories for filelist check +BuildRequires: rhn-client-tools +%else Requires: up2date %endif +%endif %description Allows for the setting and listing of custom key/value pairs for -- 1.7.3.4 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhnpush on openSUSE
Hi, Am Montag, 11. April 2011, 17:18:13 schrieb Miroslav Suchý: On 04/08/2011 03:01 PM, Michael Calmer wrote: Hi, here is the patch to build rhnpush on openSUSE. 0009-build-rhnpush-on-SUSE.patch: - only some specfile modifications Applied only first part. And next time I would to see instead of - modify the specfile some better explanation why this is done. Well I from first line I know that it is because Suse build, but why? Do you receive some error in OBS. Do you get some Traceback. Or is it some kind of policy (link)?... The rest is as in previous commits. Directories are already owned by rhn-client-tools. Here is the patch for the missing filelist issue with a short explanation why we BuildRequire rhn-client-tools -- Regards, Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) From 7377dc046ff4a1bb2ad4eb480e5f0ba8ff40ccb6 Mon Sep 17 00:00:00 2001 From: Michael Calmer m...@suse.de Date: Fri, 15 Apr 2011 10:30:07 +0200 Subject: [PATCH 08/13] build rhnpush on SUSE - BuildRequire rhn-client-tools to provide rhn directories for the filelist check in OBS --- client/tools/rhnpush/rhnpush.spec |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client/tools/rhnpush/rhnpush.spec b/client/tools/rhnpush/rhnpush.spec index 3d68847..220608c 100644 --- a/client/tools/rhnpush/rhnpush.spec +++ b/client/tools/rhnpush/rhnpush.spec @@ -18,6 +18,10 @@ Requires: up2date %else Requires: rhn-client-tools %endif +%if 0%{?suse_version} +# provides rhn directories for filelist check in OBS +BuildRequires: rhn-client-tools +%endif BuildRequires: docbook-utils, gettext BuildRequires: python-devel -- 1.7.3.4 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build spacewalk-koan on openSUSE
Hi, Am Freitag, 8. April 2011, 15:12:19 schrieb Michael Calmer: Hi, here is the patch to build spacewalk-koan on openSUSE. 0011-build-spacewalk-koan-on-SUSE.patch: - modify the specfile - require virtualization packages It seems, that code of spacewalk-koan import modules from rhn-virtualization. So I added these requires to the specfile. Is there a special reason why it is not there, or simply forgot to add this requirement? Attached is a new versoin of this patch, but without the Requires: rhn- virtualization. -- MFG Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) From 31124cc61c32c66f71f1842e212349936cbfac14 Mon Sep 17 00:00:00 2001 From: Michael Calmer m...@suse.de Date: Fri, 15 Apr 2011 11:50:44 +0200 Subject: [PATCH 10/13] build spacewalk-koan on SUSE - BuildRequire rhn-client-tools to provide directories for filelist check in OBS --- client/tools/spacewalk-koan/spacewalk-koan.spec |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/client/tools/spacewalk-koan/spacewalk-koan.spec b/client/tools/spacewalk-koan/spacewalk-koan.spec index 4af05c1..6bc2241 100644 --- a/client/tools/spacewalk-koan/spacewalk-koan.spec +++ b/client/tools/spacewalk-koan/spacewalk-koan.spec @@ -12,7 +12,10 @@ BuildArch: noarch BuildRequires: python Requires: python = 1.5 Requires: koan = 1.4.3 - +%if 0%{?suse_version} +# provide directories for filelist check in OBS +BuildRequires: rhn-client-tools +%endif Conflicts: rhn-kickstart Conflicts: rhn-kickstart-common Conflicts: rhn-kickstart-virtualization -- 1.7.3.4 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build spacewalk-remote-utils on openSUSE
Hi, Am Freitag, 8. April 2011, 15:14:25 schrieb Michael Calmer: Hi, here is the patch to build spacewalk-remote-utils on openSUSE. 0012-build-spacewalk-remote-utils-on-SUSE.patch - adding only one little dir to the filelist of the specfile Attached is a new version of this patch. It now buildrequires rhn-client-tools to get the directories. -- MFG Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) From 960aada71c92b06445868e62ef76b34f94df4ad7 Mon Sep 17 00:00:00 2001 From: Michael Calmer m...@suse.de Date: Fri, 15 Apr 2011 11:57:15 +0200 Subject: [PATCH 11/13] build spacewalk-remote-utils on SUSE - BuildRequires rhn-client-tools to provide directories for filelist check in OBS --- .../spacewalk-remote-utils.spec|4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client/tools/spacewalk-remote-utils/spacewalk-remote-utils.spec b/client/tools/spacewalk-remote-utils/spacewalk-remote-utils.spec index 8b0f770..cb76ac9 100644 --- a/client/tools/spacewalk-remote-utils/spacewalk-remote-utils.spec +++ b/client/tools/spacewalk-remote-utils/spacewalk-remote-utils.spec @@ -18,6 +18,10 @@ BuildArch: noarch Requires:rhnlib = 2.5.38 BuildRequires: python-devel BuildRequires: docbook-utils +%if 0%{?suse_version} +# provide directories for filelist check in OBS +BuildRequires: rhn-client-tools +%endif %description Utilities to interact with a RHN Satellite or Spacewalk server remotely over XMLRPC. -- 1.7.3.4 ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhnmd on openSUSE
Hi, Am Freitag, 8. April 2011, 15:23:52 schrieb Michael Calmer: Hi, here is a patch to build rhnmd on openSUSE. 0014-build-rhnmd-on-SUSE.patch - modify the specfile - add init script for openSUSE For SUSE I have removed the ssh key generation from the %post section. I added the generation into the SUSE init script. The reason for this is, that if you do it in %post and use this RPM in an appliance, you have the same ssh key on all copies of your appliance. Maybe you are interrested to do this also for RedHat / Fedora. I changed this patch and splited one more general thing out. build rhnmd on SUSE - add init script for SUSE - BuildRequire sysconfig to make chkconfig work during build in OBS - openssh-server does not exist on SUSE (part of openssh) - no keygen in %post to use it in appliances - create nocpulse user in a different way to make hime work on SUSE with openssh add nocpulse config dir to filelist I think rhnmd requires nothing which already provides this directory. -- Regards, Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) From e27fbdae5bb9b67afbbb75a5b7487908791e787d Mon Sep 17 00:00:00 2001 From: Michael Calmer m...@suse.de Date: Fri, 15 Apr 2011 12:09:51 +0200 Subject: [PATCH 12/13] build rhnmd on SUSE - add init script for SUSE - BuildRequire sysconfig to make chkconfig work during build in OBS - openssh-server does not exist on SUSE (part of openssh) - no keygen in %post to use it in appliances - create nocpulse user in a different way to make hime work on SUSE with openssh --- monitoring/rhnmd/rhnmd.init.SUSE | 107 ++ monitoring/rhnmd/rhnmd.spec | 21 +++- 2 files changed, 127 insertions(+), 1 deletions(-) create mode 100644 monitoring/rhnmd/rhnmd.init.SUSE diff --git a/monitoring/rhnmd/rhnmd.init.SUSE b/monitoring/rhnmd/rhnmd.init.SUSE new file mode 100644 index 000..a1662f6 --- /dev/null +++ b/monitoring/rhnmd/rhnmd.init.SUSE @@ -0,0 +1,107 @@ +#!/bin/bash +# +# Init file for rhnmd daemon +# +# chkconfig: 2345 99 1 +# description: rhnmd server daemon +# +# processname: rhnmd + +### BEGIN INIT INFO +# Provides: rhnmd +# Required-Start: $local_fs $network $remote_fs +# Required-Stop: $local_fs $network $remote_fs +# Default-Start: 3 5 +# Default-Stop: 0 1 6 +# Short-Description: rhnmd server daemon +# Description: Provides wrapper around sshd +# so NOCpulse monitoring can connect to your machine +# and run probes, which requires local account. +### END INIT INFO + +# source function library +. /etc/rc.status + +prog=rhnmd + +# Some functions to make the below more readable +SU=/bin/su -s /bin/bash - nocpulse -c +SSHD=/usr/sbin/rhnmd +SSHD_PIDFILE=/var/run/rhnmd.pid + +do_restart_sanity_check() +{ + $SU $SSHD -t -f /etc/nocpulse/rhnmd_config + RETVAL=$? + if [ ! $RETVAL = 0 ]; then + rc_failed + echo Configuration file or keys are invalid + fi +} + +start() +{ + echo -n $Starting $prog: + IDENTITY=/var/lib/nocpulse/.ssh/nocpulse-identity + if [ ! -f $IDENTITY ] + then + /bin/su -s /bin/bash -c /usr/bin/ssh-keygen -q -t dsa -N '' -f $IDENTITY - nocpulse + if [ ! -e /var/lib/nocpulse/.bashrc ]; then + echo 'LANG=C' /var/lib/nocpulse/.bashrc + fi + fi + startproc -p $SSHD_PIDFILE $SSHD -f /etc/nocpulse/rhnmd_config -o PidFile=$SSHD_PIDFILE + rc_status + touch /var/lock/subsys/rhnmd + rc_status -v +} + +stop() +{ + echo -n $Stopping $prog: + rm -f /var/lock/subsys/rhnmd + killproc -p $SSHD_PIDFILE -TERM $SSHD +rc_status -v +} + +reload() +{ + echo -n $Reloading $prog: + killproc -p $SSHD_PIDFILE -HUP $SSHD + rc_status -v +} + +case $1 in + start) + start + ;; + stop) + stop + ;; + restart) + stop + start + ;; + reload) + reload + ;; + condrestart|try-restart) + if [ -f /var/lock/subsys/rhnmd ] ; then + do_restart_sanity_check + if [ $RETVAL = 0 ] ; then +stop +# avoid race +sleep 3 +start + fi + fi + ;; + status) + echo -n Checking for service rhnmd: + checkproc -p $SSHD_PIDFILE $SSHD + rc_status -v + ;; + *) + echo $Usage: $0 {start|stop|restart|reload|condrestart|status} +esac +rc_exit diff --git a/monitoring/rhnmd/rhnmd.spec b/monitoring/rhnmd/rhnmd.spec index 6779bb5..93f85bb 100644 --- a/monitoring/rhnmd/rhnmd.spec +++ b/monitoring/rhnmd/rhnmd.spec @@ -14,7 +14,13 @@ License:GPLv2 BuildArch: noarch Group: System Environment/Daemons BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: openssh-server openssh +Requires: openssh +%if 0%{?suse_version} +# make chkconfig work during build +BuildRequires: sysconfig
Re: [Spacewalk-devel] [PATCH] build rhn-client-tools on openSUSE
Hi, Am Donnerstag, 14. April 2011, 11:05:09 schrieb Miroslav Suchý: On 04/14/2011 10:27 AM, Michael Calmer wrote: [...] When do you need to know the project name for the announcement? It will be nice if you can provide me with url and project name soon (read as tomorrow, or at Monday) and you can build the packages later there. I will let you know at least one day before release. I have created systemsmanagement:spacewalk:1.4 project in OBS The repository URL is: for openSUSE 11.4 (i586 and x86_64): http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/1.4/openSUSE_11.4/ for openSUSE Factory(i586 and x86_64): http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/1.4/openSUSE_Factory/ -- Regards, Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhnpush on openSUSE
On Fri, Apr 15, 2011 at 01:45:32PM +0200, Michael Calmer wrote: Hi, Am Montag, 11. April 2011, 17:18:13 schrieb Miroslav Suchý: On 04/08/2011 03:01 PM, Michael Calmer wrote: Hi, here is the patch to build rhnpush on openSUSE. 0009-build-rhnpush-on-SUSE.patch: - only some specfile modifications Applied only first part. And next time I would to see instead of - modify the specfile some better explanation why this is done. Well I from first line I know that it is because Suse build, but why? Do you receive some error in OBS. Do you get some Traceback. Or is it some kind of policy (link)?... The rest is as in previous commits. Directories are already owned by rhn-client-tools. Here is the patch for the missing filelist issue with a short explanation why we BuildRequire rhn-client-tools Pushed to master as 68a62d0c98976d3224ac3fb4edf53260259f6e9b and tagged as rhnpush-5.5.26-1. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhn-custom-info on openSUSE
On Fri, Apr 15, 2011 at 01:42:10PM +0200, Michael Calmer wrote: Hi, Am Montag, 11. April 2011, 16:58:21 schrieb Miroslav Suchý: On 04/08/2011 02:59 PM, Michael Calmer wrote: Hi, here is the patch to build rhn-custom-info on openSUSE. 0008-build-rhn-custom-info-on-SUSE.patch: - only some specfile modifications %else +%if 0%{?suse_version} +Requires: zypp-plugin-spacewalk +%else I would much rather prefer usage of %elif here. Hmm, rpm do not support %elif. It does not in OBS and we looked in the upstream code and also there is elif not implemented. +%dir %{_datadir}/rhn Again. rhn-custom-info requires yum-rhn-plugin, which requires rhn-client-tools, which own this directory. So this should not be there. Ok, here is a modified version of the patch. Pushed to master as fcb043e5c59703a7803be5af2920b95041571db4 and tagged as rhn-custom-info-5.4.12-1. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhncfg on openSUSE
On Fri, Apr 15, 2011 at 01:38:21PM +0200, Michael Calmer wrote: Hi, Am Freitag, 8. April 2011, 14:57:56 schrieb Michael Calmer: Hi, here is the patch for rhncfg. 0007-build-rhncfg-on-SUSE.patch: - only some specfile modifications I splitted this into seperate patches. One SUSE specific and one general one like you suggested. Pushed to master as dae10073c35f9cbba7d1160014788316c56c37aa and baf0e0467eb5d6c924532399537a02b3ad26cf4a and tagged as rhncfg-5.10.2-1 Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhn-client-tools on openSUSE
On Fri, Apr 15, 2011 at 01:31:41PM +0200, Michael Calmer wrote: Hi, Am Freitag, 8. April 2011, 14:49:30 schrieb Michael Calmer: Hi, rhn-client-tools: [...] 0003-modify-spec-file-to-build-on-SUSE.patch: Specfile work. Use SUSE rpm names and add some directories to the filelist which does not exist on SUSE or does not exist during build. attached you can find a new version for this. Pushed to master as 4f8ebf782cae9687c1cb7b779df159182b988a9d and tagged as rhn-client-tools-1.5.3-1. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhnmd on openSUSE
On Fri, Apr 15, 2011 at 01:55:45PM +0200, Michael Calmer wrote: Hi, Am Freitag, 8. April 2011, 15:23:52 schrieb Michael Calmer: Hi, here is a patch to build rhnmd on openSUSE. 0014-build-rhnmd-on-SUSE.patch - modify the specfile - add init script for openSUSE For SUSE I have removed the ssh key generation from the %post section. I added the generation into the SUSE init script. The reason for this is, that if you do it in %post and use this RPM in an appliance, you have the same ssh key on all copies of your appliance. Maybe you are interrested to do this also for RedHat / Fedora. I changed this patch and splited one more general thing out. build rhnmd on SUSE - add init script for SUSE - BuildRequire sysconfig to make chkconfig work during build in OBS - openssh-server does not exist on SUSE (part of openssh) - no keygen in %post to use it in appliances - create nocpulse user in a different way to make hime work on SUSE with openssh add nocpulse config dir to filelist I think rhnmd requires nothing which already provides this directory. Pushed to master as d4dfbbc37eb42e07b8d2afc6d3a19195731bcb7b and 1e2120ddfc84f6804dda2decc6b2809c5dd154a9 and tagged as rhnmd-5.3.9-1. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build spacewalk-koan on openSUSE
On Fri, Apr 15, 2011 at 01:50:37PM +0200, Michael Calmer wrote: Hi, Am Freitag, 8. April 2011, 15:12:19 schrieb Michael Calmer: Hi, here is the patch to build spacewalk-koan on openSUSE. 0011-build-spacewalk-koan-on-SUSE.patch: - modify the specfile - require virtualization packages It seems, that code of spacewalk-koan import modules from rhn-virtualization. So I added these requires to the specfile. Is there a special reason why it is not there, or simply forgot to add this requirement? Attached is a new versoin of this patch, but without the Requires: rhn- virtualization. Pushed to master as c2950ccba2cc98bb87ea6fba6d4fcd1aceae758e and tagged as spacewalk-koan-0.2.18-1. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build rhn-virtualization on openSUSE
On Fri, Apr 15, 2011 at 01:48:32PM +0200, Michael Calmer wrote: Hi, Am Freitag, 8. April 2011, 15:07:12 schrieb Michael Calmer: Hi, here is the patch to build rhn-virtualization on openSUSE. 0010-build-rhn-virtualization-on-SUSE.patch: - modify the specfile - add SUSE init script Attached is a new version of this patch. build rhn-virtualization on SUSE - add packages to make it build in OBS - change scripts to call cron init script on SUSE - add SUSE init script Pushed to master as c9ce75adb303f812dcc26aa1f40e2ce8b1bbe86b and tagged as rhn-virtualization-5.4.22-1. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] build osad on openSUSE
On Fri, Apr 15, 2011 at 01:35:52PM +0200, Michael Calmer wrote: Hi, Am Freitag, 8. April 2011, 14:55:50 schrieb Michael Calmer: Hi, here is the patch to build and run osad on openSUSE. 0006-build-osad-on-SUSE.patch: - specfile work - add init script for SUSE - osad.py missed and import of the config module I have splitted this one into 3 seperate patches. Pushed to master as 39f768dc06eb56c115bc02d660929ab55bab4148, 6ddb9dcf9969d8feceff37b3cbc8f5d87df3dd48, and a16cf5b6ced8302322e47e6b750a65a09a67a3cf and tagged as osad-5.10.12-1. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] adding support zypper in bootstrap script and allow multiple GPG keys
On Fri, Apr 08, 2011 at 03:18:49PM +0200, Michael Calmer wrote: Hi, here is a patch for the server side. This patch add support for zypper as installer to the bootstrap script. Additionally it enhances the ORG_GPG_KEY variable to be a comma seperated list like the activation keys. 0013-support-zypper-in-bootstrap-script-and-allow-multipl.patch - add zypper as valid installer in the bootstrap script - allow to install multiple GPG keys. Use comma seperated list in ORG_GPG_KEY - force installing ORG_CA_CERT if rpm is used Pushed to master as e78222713ed55aba5a6bfc35fcd3fda7340d2c19 and tagged as spacewalk-certs-tools-1.5.1-1. Ideally we'd like to see patch like this split into multiple commits, which you nicely list in those items. The reason is -- if we hit a problem in the future (say, the --force truns out to break something), it will be easier to see it and revert it. Please don't be shy splitting things into multiple commits. Thanks, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] support for weak dependencies
On Fri, Mar 11, 2011 at 05:21:50PM +0100, Michael Calmer wrote: Hi, Am Mittwoch, 9. März 2011, 12:21:41 schrieb Jan Pazdziora: On Wed, Mar 09, 2011 at 11:11:08AM +0100, Jan Pazdziora wrote: On Mon, Mar 07, 2011 at 01:24:54PM +0100, Michael Calmer wrote: Hello, [...] Could you please investigate? Do you need list of rpms I have installed or something? I reworked the patchset: - removed the trailing whitespaces - fix the missing RPMTAG names bug (patch 0006) I've committed the patches to master now and tagged the respective packages. I'm sorry it got burried for so long. I've shifted the schema upgrade scripts to *-1.5 directory as Spacewalk 1.4 was already branched. I had to fix the SHA1 values in PostgreSQL sources -- you might want to do ( cd schema/spacewalk perl schema-source-sanity-check.pl ) to check that the schema sources look sane. It's actually necessary to do that because the rpm build would fail otherwise. Thank you, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel
Re: [Spacewalk-devel] [PATCH] support for weak dependencies
Hi, Am Freitag, 15. April 2011, 16:04:42 schrieb Jan Pazdziora: On Fri, Mar 11, 2011 at 05:21:50PM +0100, Michael Calmer wrote: Hi, Am Mittwoch, 9. März 2011, 12:21:41 schrieb Jan Pazdziora: On Wed, Mar 09, 2011 at 11:11:08AM +0100, Jan Pazdziora wrote: On Mon, Mar 07, 2011 at 01:24:54PM +0100, Michael Calmer wrote: Hello, [...] Could you please investigate? Do you need list of rpms I have installed or something? I reworked the patchset: - removed the trailing whitespaces - fix the missing RPMTAG names bug (patch 0006) I've committed the patches to master now and tagged the respective packages. I'm sorry it got burried for so long. np I've shifted the schema upgrade scripts to *-1.5 directory as Spacewalk 1.4 was already branched. I had to fix the SHA1 values in PostgreSQL sources -- you might want to do ( cd schema/spacewalk perl schema-source-sanity-check.pl ) to check that the schema sources look sane. It's actually necessary to do that because the rpm build would fail otherwise. ok, thanks. -- MFG Michael Calmer -- Michael Calmer SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: michael.cal...@suse.com -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) ___ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel