1 |
+ |
### RPM cms pkgtools 1.0 |
2 |
+ |
## INITENV ALIAS cmsbuild %{i}/bin/install.sh -spec_dir ./inst-files |
3 |
+ |
## INITENV ALIAS_SH cmsapt eval `%{i}/bin/aptinstaller.sh config -path %{instroot} -sh` |
4 |
+ |
## INITENV ALIAS_CSH cmsapt eval `%{i}/bin/aptinstaller.sh config -path %{instroot} -csh` |
5 |
|
|
2 |
– |
### RPM cms pkgtools V00-01-00 |
3 |
– |
## INITENV ALIAS cmsbuild install.sh -spec_dir ./inst-files |
6 |
|
# This generates an rpm for aptinstaller, install.sh, etc. etc. |
7 |
|
Requires: cms-env |
8 |
|
%define moduleName PKGTOOLS |
26 |
|
%{instroot}/%{cmsplatf}/etc/profile.d/S00pkgtools.csh |
27 |
|
|
28 |
|
%post |
29 |
+ |
perl -p -i -e 's|(.*setenv.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.csh |
30 |
+ |
perl -p -i -e 's|(.*export.*)|#$1|' $RPM_INSTALL_PREFIX/%pkgrel/etc/profile.d/init.sh |
31 |
|
ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00pkgtools.sh |
32 |
|
ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh $RPM_INSTALL_PREFIX/%cmsplatf/etc/profile.d/S00pkgtools.csh |
29 |
– |
ln -sf $RPM_INSTALL_PREFIX/%{pkgrel}/inst-files $RPM_INSTALL_PREFIX/inst-files |