HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-devel] Condor rpm creation



> Where can I get an old version of the rpm source to view.

I mean Condor source tar file which is available in the Condor
download page (for example: condor_src-7.4.2-all-all.tar.gz ). Anyway,
the script is in the attachment.



On Mon, Jun 28, 2010 at 11:51 AM, Berg, Allen <aberg@xxxxxxxx> wrote:
> Where can I get an old version of the rpm source to view.  I have downloaded a couple of the older versions and do not see the src/condor_scripts directory in either one.
>
> Basically what I want to do is in my build directory I have added a directory that contains a Makefile script that I have been given to create the condor environment.   So when I call the make program I need to use the -c switch which tells it to look at a different directory IE:
>
> make -C %RPM_BUILD_ROOT_/Cluster/src/CoreLib rebuild
>
> In my BUILD dir I have Cluster directory that contains the CoreLib library.
>
> Thanks
> Allen
>
>
> -----Original Message-----
> From: Thawan Kooburat [mailto:kthawan@xxxxxxxxx]
> Sent: Friday, June 25, 2010 9:41 PM
> To: Berg, Allen
> Cc: condor-devel@xxxxxxxxxxx
> Subject: Re: [Condor-devel] Condor rpm creation
>
> Hi,
>
> I don't quite understand what you are trying to do, so I will answer
> just the part that I understand
>
> 1.)      How do I actually run the condor_configure
>
> It seems like you trying to create something similar to  the old-style
> Condor RPM. What we used do with this type of package is just extract
> condor tar file into /opt/condor-{version} and build the rpm.
> condor_configure script is run as part of postinstal (%post section),
> so it will configure condor when user install the RPM. You can see how
> we create the "old" RPM by download the Condor source package and see
> this file - src/condor_scripts/make-condor-rpm.sh
>
>
> %prep, %build and %install sections are run when RPM is created. Only
> %pre, %post, %preun and %postun will be run as root when users are
> installing/uninstalling the RPM. This should help you decide where
> your commands should be located.
>
>
>
>
> On Fri, Jun 25, 2010 at 1:18 PM, Berg, Allen <aberg@xxxxxxxx> wrote:
>> I am in the process of creating an rpm for condor.  Its not a typical build
>> the software was modified by another company.
>>
>>
>>
>> Here are the two questions I have about creating the rpm.
>>
>>
>>
>> 1.)      How do I actually run the condor_configure
>>
>> 2.)      How do I do the make as the user condor and actually point to their
>> source code in the CoreLib library.
>>
>>
>>
>> Thanks
>>
>> Allen
>>
>>
>>
>> So here are the instructions I was given:
>>
>>
>>
>> 1)      cp //iots2/working/admin/rnd_software/Cluster
>> /dist/condor-7.4.1-linux-x86_64-rhel5-dynamic.tar.gz /opt/condor
>>
>> 2)      cd /opt/condor
>>
>> 3)      tar xvf condor-7.4.1-linux-x86_64-rhel5-dynamic.tar.gz
>>
>> 4)      cd condor-7.4.1
>>
>> 5)      ./condor_configure
>> --install-dir=/opt/condor/condor-7.4.1/condor_root/ --type=submit,execute
>> --local-dir=/opt/condor/condor_local --owner=condor --install
>>
>> Application compilation (user: condor)
>>
>> 6)      make -C /mnt/condor/src/CoreLib rebuild
>>
>> 7)      make -C /mnt/condor -f MakefileNoMpi rebuild
>>
>>
>>
>>
>>
>> Condor-7.4.1.spec
>>
>>
>>
>>
>>
>> Name:  condor
>> Version: 7.4.1
>> Release: 1
>> Summary:   R & D condor
>> License:   ASL 2.0
>> Group: Applications/System
>> URL: http://www.cs.wisc.edu/condor/
>> Source0: /%(name)/condor-7.4.1-linux-x86_64-rhel5-dynamic.tar.gz
>> prefix:     /opt/condor
>> BuildRequires: bind-utils
>> Requires: gcc
>>
>> %description
>> IOTS R & D Cluster Condor installation.
>> Condor is a workload managment system for
>> compute intesive jobs.
>>
>> %pre
>> getent group condor >/dev/null  || groupadd -r condor
>> getent passwd condor >/dev/null  ||
>>       useradd -r -g condor -s /sbin/nologin \
>>       -c "Owner of Condor Daemons"
>> exit 0
>>
>> %prep
>> mkdir -p $RPM_BUILD_ROOT/mnt/condor
>> mkdir -p $RPM_BUILD_ROOT/opt/condor
>> mkdir -p $RPM_BUILD_ROOT/opt/condor/condor_local
>> mkdir -p $RPM_BUILD_ROOT/opt/condor/condor_local/log
>>
>> %setup -q -n %(name)-%(version)
>>
>> %build
>> #$RPM_BUILD_ROOT/opt/condor/
>> #cd /opt/condor/condor-7.4.1
>> #%condor_configure --install-dir=/opt/condor/%(name)/condor_root
>> --type=submit,execute --local-dir=/opt/condor/condor_local --owner=condor
>> -install
>>
>> #make -C  /Cluster/src/CoreLib/ rebuild
>> #make -C /Cluster/condor -f MakefileNoMpi rebuild
>>
>> %install
>> rm    -rf                 $RPM_BUILD_ROOT
>>
>> %clean
>> rm -rf    $RPM_BUILD_ROOT
>>
>> %post -n condor
>> /sbin/chkconfig --add condor
>> chmod -R 744 /opt/condor/
>>
>>
>> %preun -n condor
>> if [ $1 = 0 ]; then
>>    /sbin/service condor stop >/dev/null 2>&1 || :
>>    /sbin/chkconfig --del condor
>> fi
>>
>>
>> %files
>> %defattr(-,condor,condor)
>> /opt/condor/
>>
>> %changelog
>>
>>
>>
>> This message and any enclosures are intended only for the addressee.  Please
>> notify the sender by email if you are not the intended recipient.  If you
>> are
>> not the intended recipient, you may not use, copy, disclose, or distribute
>> this
>> message or its contents or enclosures to any other person and any such
>> actions
>> may be unlawful.  Ball reserves the right to monitor and review all messages
>> and enclosures sent to or from this email address.
>>
>> _______________________________________________
>> Condor-devel mailing list
>> Condor-devel@xxxxxxxxxxx
>> https://lists.cs.wisc.edu/mailman/listinfo/condor-devel
>>
>
>
>
> --
> Thawan Kooburat
>
> Graduate Student
> Department of Computer Science
> UW-Madison
>
>
>
> This message and any enclosures are intended only for the addressee.  Please
> notify the sender by email if you are not the intended recipient.  If you are
> not the intended recipient, you may not use, copy, disclose, or distribute this
> message or its contents or enclosures to any other person and any such actions
> may be unlawful.  Ball reserves the right to monitor and review all messages
> and enclosures sent to or from this email address.
>



-- 
Thawan Kooburat

Graduate Student
Department of Computer Science
UW-Madison

Attachment: make-condor-rpm.sh
Description: Bourne shell script