oi pessoal

estou adaptando o arquivo squirrelmail.spec a minha distribui��o de linux, a
compila��o
do arquivo squirrelmail.spec e feita se nenhum problema. A instala��o e
perfeita, o meu
problema e na hora de remover o pacote, ele remove quase todos os arquivos,
s� que
na hora de remover o diret�rio /etc/squirrelmail ele acusa que nao pode
remover este diret�rio,
pq um arquivo que existia l� foi renomeado p/ config.php.rpmsave.

algu�m pode ajudar com este problema?

-----------------------------------
squirrelmail.spec ----------------------------------------
%define contentdir /home/httpd/html/webmail
%define vardir /var/squirrelmail
%define etcdir /etc/squirrelmail

Summary: Squirrelmail is a webmail client for PHP4.
Name: squirrelmail
Version: 1.2.2
Release: 1
License: GPL
Vendor: http://www.squirrelmail.org/
Group: Applications/Internet
Source0: %{name}-%{version}.tar.bz2
Source1: squirrelmail-rh7_config.php
Packager: Konstantin Riabitsev <[EMAIL PROTECTED]>
BuildRoot: /var/tmp/%{name}-%{version}-root
BuildArch: i386
#BuildArch: noarch
Requires: apache >= 1.3.19 php4 >= 4.0.6 perl
Requires: /usr/sbin/sendmail

%description
SquirrelMail is a standards-based webmail package written in PHP4. It
includes built-in pure PHP support for the IMAP and SMTP protocols, and
all pages render in pure HTML 4.0 (with no Javascript) for maximum
compatibility across browsers.  It has very few requirements and is very
easy to configure and install. SquirrelMail has a all the functionality
you would want from an email client, including strong MIME support,
address books, and folder manipulation.

%package poutils
Summary: Some development tools for SquirrelMail.
Group: Applications/Internet
Requires: %{name} = %{version}

%description poutils
This package includes some development tools for squirrelmail
i18n, including the main po file and some compilation scripts.

%changelog
* Tue Jan 01 2002 Konstantin Riabitsev <[EMAIL PROTECTED]>
- Package for the 1.2.2 release.

* Fri Dec 28 2001 Konstantin Riabitsev <[EMAIL PROTECTED]>
- Changed Requires: sendmail to Requires: /usr/sbin/sendmail so people
  with Postfix can install it as well.
- Changed the chowning of the /var/squirrelmail/* to doing it the right
  way, with %attr's.

* Tue Dec 25 2001 Konstantin Riabitsev <[EMAIL PROTECTED]>
- First spec file build for RH7.
- Locale patches.
- Fixed russian po/mo files (still screws up on occasion! php/gettext is
  so broken!).
- Default config for RH7 systems.

%prep
%setup -q -n %{name}-%{version}
# organize the docs nicely!
mv AUTHORS ChangeLog COPYING INSTALL MIRRORS README UPGRADE doc/
mv ReleaseNotes doc/ReleaseNotes.txt
mkdir -p doc/plugins/bug_report
mkdir -p doc/plugins/filters
mkdir -p doc/plugins/mail_fetch
mkdir -p doc/plugins/newmail
mkdir -p doc/plugins/sent_subfolders
mkdir -p doc/plugins/squirrelspell
mkdir -p doc/plugins/translate
mv plugins/README.plugins doc/plugins/
cd plugins/bug_report; mv INSTALL README ../../doc/plugins/bug_report; cd
../../
cd plugins/filters; mv CHANGES README ../../doc/plugins/filters; cd ../../
cd plugins/mail_fetch; mv README ../../doc/plugins/mail_fetch; cd ../../
cd plugins/newmail; mv HISTORY README ../../doc/plugins/newmail; cd ../../
# cd plugins/sent_subfolders; mv... eh? NO docs?
cd plugins/squirrelspell; mv INSTALL ../../doc/plugins/squirrelspell; \
  rm -f doc/index.php; mv doc/* ../../doc/plugins/squirrelspell; \
  rm -rf doc; cd ../../
cd plugins/translate; mv INSTALL README ../../doc/plugins/translate; cd
../../
# remove the silly make_archive.pl stuff from plugins/. It's supposed to be
# run on sourceforge and shouldn't be in the releases.
rm -f plugins/make_archive.pl

%build

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{etcdir}
mkdir -p $RPM_BUILD_ROOT%{vardir}/prefs
mkdir -p $RPM_BUILD_ROOT%{vardir}/attachments
mkdir -p $RPM_BUILD_ROOT%{contentdir}

# install default_pref
install -m 0644 data/default_pref $RPM_BUILD_ROOT%{vardir}/prefs/

# install the config files
mkdir -p $RPM_BUILD_ROOT%{contentdir}/config
install -m 0644 config/*.php $RPM_BUILD_ROOT%{contentdir}/config/
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{etcdir}/config.php
# symlink
ln -s %{etcdir}/config.php $RPM_BUILD_ROOT%{contentdir}/config/config.php
install -m 0755 config/*.pl $RPM_BUILD_ROOT%{contentdir}/config/

# install index.php
install -m 0644 index.php $RPM_BUILD_ROOT%{contentdir}/
# install functions
mkdir -p $RPM_BUILD_ROOT%{contentdir}/functions
install -m 0644 functions/* $RPM_BUILD_ROOT%{contentdir}/functions/
# install src
mkdir -p $RPM_BUILD_ROOT%{contentdir}/src
install -m 0644 src/* $RPM_BUILD_ROOT%{contentdir}/src/
# install themes
mkdir -p $RPM_BUILD_ROOT%{contentdir}/themes
install -m 0644 themes/* $RPM_BUILD_ROOT%{contentdir}/themes/
# install images
mkdir -p $RPM_BUILD_ROOT%{contentdir}/images
install -m 0644 images/* $RPM_BUILD_ROOT%{contentdir}/images/

# install the plugins
# do a simple mv, we'll figure out the files later.
mv plugins $RPM_BUILD_ROOT%{contentdir}

# install the locales.
# do a simple mv as well.
mv locale $RPM_BUILD_ROOT%{contentdir}

# install help files
# just mv it.
mv help $RPM_BUILD_ROOT%{contentdir}

# po will go into the poutils package, so just move it.
mv po $RPM_BUILD_ROOT%{contentdir}

%post
# fix the hostname
sed "s|__HOSTNAME__|$HOSTNAME|g" %{etcdir}/config.php >
%{etcdir}/config.php.new
mv -f %{etcdir}/config.php.new %{etcdir}/config.php

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%config %dir %{etcdir}
%config(noreplace) %{etcdir}/config.php
%doc doc/*
%dir %{contentdir}
%{contentdir}/config
%{contentdir}/functions
%{contentdir}/help
%{contentdir}/images
%{contentdir}/locale
%{contentdir}/plugins
%{contentdir}/src
%{contentdir}/themes
%{contentdir}/index.php
%dir %{vardir}
%attr(0700, nobody, nobody) %dir %{vardir}/prefs
%attr(0700, nobody, nobody) %dir %{vardir}/attachments
%{vardir}/prefs/default_pref

%files poutils
%defattr(-,root,root)
%{contentdir}/po




Assinantes em 17/01/2002: 2225
Mensagens recebidas desde 07/01/1999: 150919
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista: 
            mailto:[EMAIL PROTECTED]

Responder a