1 |
|
### RPM external apt 0.5.15lorg3.2-wt1 |
2 |
< |
## INITENV SET APT_CONFIG %{i}/etc/apt/apt.conf |
2 |
> |
## INITENV SET APT_CONFIG %{i}/etc/apt.conf |
3 |
|
|
4 |
|
Source: http://apt-rpm.org/releases/%n-%realversion.tar.bz2 |
5 |
|
Source1: bootstrap |
39 |
|
echo "source $RPM_ROOT/etc/profile.d/init.csh"; \ |
40 |
|
echo "source $LIBXML2_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh |
41 |
|
|
42 |
< |
mkdir -p %{i}/etc/apt |
43 |
< |
cat << \EOF_APT_CONF > %{i}/etc/apt/apt.conf |
42 |
> |
mkdir -p %{i}/etc |
43 |
> |
cat << \EOF_APT_CONF > %{i}/etc/apt.conf |
44 |
|
Dir "%{instroot}" |
45 |
|
{ |
46 |
|
// Location of the state dir |
74 |
|
|
75 |
|
|
76 |
|
// Config files |
77 |
< |
Etc "%{cmsplatf}/etc/apt/" { |
77 |
> |
Etc "%{cmsplatf}/etc/" { |
78 |
|
sourcelist "sources.list"; |
79 |
|
main "apt.conf"; |
80 |
|
preferences "preferences"; |
125 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/apt/lists/partial |
126 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/rpm |
127 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/cache/%{cmsplatf}/partial |
128 |
< |
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/apt |
128 |
> |
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/etc |
129 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/rpm |
130 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/lib/apt/methods |
131 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/dpkg/status |
148 |
|
EOF_BIN_APT_GET_WRAPPER |
149 |
|
chmod +x $RPM_INSTALL_PREFIX/bin/apt-get-wrapper |
150 |
|
|
151 |
< |
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/apt |
152 |
< |
cat << \EOF_RPMPRIORITIES > $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/apt/rpmpriorities |
151 |
> |
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/etc |
152 |
> |
cat << \EOF_RPMPRIORITIES > $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/rpmpriorities |
153 |
|
Essantial: |
154 |
|
|
155 |
|
EOF_RPMPRIORITIES |
156 |
|
|
157 |
< |
cat << \EOF_SOURCES_LIST > $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/apt/sources.list |
157 |
> |
cat << \EOF_SOURCES_LIST > $RPM_INSTALL_PREFIX/%{cmsplatf}/etc/sources.list |
158 |
|
rpm http://cmsrep.cern.ch cms/cpt/Software/download/cms.eulisse/apt/%{cmsplatf} cms lcg external |
159 |
|
rpm-src http://cmsrep.cern.ch cms/cpt/Software/download/cms.eulisse/apt/%{cmsplatf} cms lcg external |
160 |
|
# This are defined to support experimental repositories. The bootstrap file rewrites and uncomments |
187 |
|
|
188 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
189 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
190 |
+ |
%{relocateConfig}etc/apt.conf |
191 |
|
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|" $RPM_INSTALL_PREFIX/bin/apt-cache-wrapper $RPM_INSTALL_PREFIX/bin/apt-get-wrapper |
192 |
|
%files |
193 |
|
%{i} |
194 |
|
%{instroot}/bootstrap-%{cmsplatf}.sh |
195 |
|
%{instroot}/%{cmsplatf}/var/lib/rpm |
196 |
+ |
|
197 |
+ |
|