HTCondor Project List Archives



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

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