Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-25 Thread Alexander Skwar

On Mon, 24 Jun 2002 18:47:52 -0400
Sam Varshavchik [EMAIL PROTECTED] wrote:

 This is a packaging bug.  Apache is the primary owner of

Ok, agreed.

 so it should install this directory, instead of having it implicitly

Yes

 That's incorrect.  Because the packages explicitly install this
 directory, any package will satisfy this dependency. 

So you mean, that every package has a

%dir /usr/.../font

line in %files?  Okay, but then we are talking about different things.
I was talking about the way /var/www/cgi-bin is created right now in
the Mandrake apache RPM.  It is created, because it contains files
which are in /var/www/cgi-bin, and that's why I brought up the
/usr/bin example.  Many packages have files in /usr/bin, but on
Mandrake exactly one package provides this directory: basesystem.

So I don't get what you wanted to say with the X font packages
example.  But that's OT here.

 I'll accept a patch that checks for a Mandrake distro, and makes the
 necessary adjustments.  You should be able to come up with something
 that does not depend on an external flag, and detects a Mandrake
 distro automatically. 

What do you mean by external flag?  I thought about checking for the
existance of /etc/mandrake-release, and if this file is present, I
would have assumed that this is a Mandrake distro.  Or I might do a
rpm -q --queryformat '%{RELEASE}' rpm | grep -q mdk  echo TRUE (or
something like that).  Would these be external flags?

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.de   |   Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-25 Thread Sam Varshavchik

Alexander Skwar writes: 


 I'll accept a patch that checks for a Mandrake distro, and makes the
 necessary adjustments.  You should be able to come up with something
 that does not depend on an external flag, and detects a Mandrake
 distro automatically. 
 
 What do you mean by external flag?  I thought about checking for the
 existance of /etc/mandrake-release, and if this file is present, I
 would have assumed that this is a Mandrake distro.  Or I might do a
 rpm -q --queryformat '%{RELEASE}' rpm | grep -q mdk  echo TRUE (or
 something like that).  Would these be external flags?

Either one will work fine. 

-- 
Sam 



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-25 Thread Alexander Skwar

So sprach Sam Varshavchik am 2002-06-25 um 07:26:15 -0400 :
 Either one will work fine. 

Attached.  It also sets the %courier_release to mdk and further replaces
the obsolete Copyright: tag with License:

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 2 days 8 hours 59 minutes


--- courier.spec.in 2002-06-23 13:17:04.0 -0400
+++ courier.spec.in.mdk 2002-06-25 15:13:59.0 -0400
@@ -6,8 +6,14 @@
 #  Need to version-upgrade RH builds due to different directory locations.
 #
 
-%define courier_release %(release=`rpm -q --queryformat='.%{VERSION}' redhat-release 
2/dev/null` ; if test $? != 0 ; then release= ; fi ; echo $release)
 %define alternatives %(test -x /usr/sbin/alternatives  echo 1 || echo 0)
+%define is_not_mandrake %(test ! -x /etc/mandrake-release  echo 0 || echo 1)
+
+%if %is_not_mandrake
+%define courier_release %(release=`rpm -q --queryformat='.%{VERSION}' redhat-release 
+2/dev/null` ; if test $? != 0 ; then release= ; fi ; echo $release)
+%else
+%define courier_release mdk
+%endif
 
 %define __libtoolize /bin/true
 
@@ -15,7 +21,7 @@
 Name: courier
 Version: @VERSION@
 Release: 1%{courier_release}
-Copyright: GPL
+License: GPL
 Group: Applications/Mail
 Source: http://download.sourceforge.net/courier/courier-@VERSION@.tar.gz
 Packager: %{PACKAGER}
@@ -29,7 +35,10 @@
 Requires: courier-sendmail-wrapper
 %endif
 
-BuildPreReq: rpm = 4.0.2 fileutils binutils sed perl make openssl gdbm-devel 
openssl-perl openssl-devel pam-devel gnupg = 1.0.5 expect
+BuildPreReq: rpm = 4.0.2 fileutils binutils sed perl make openssl gdbm-devel 
+openssl-devel pam-devel gnupg = 1.0.5 expect
+%if %is_not_mandrake
+BuildPreReq: openssl-perl
+%endif
 
 #
 #  RH custom locations.
@@ -79,12 +88,18 @@
 %package webmail
 Summary: Courier @VERSION@ Integrated HTTP (webmail) server
 Group: Applications/Mail
-Requires: courier = @VERSION@ %{_cgibindir} %{_documentrootdir} vixie-cron gnupg = 
1.0.5 expect fileutils
+Requires: courier = @VERSION@ %{_documentrootdir} vixie-cron gnupg = 1.0.5 expect 
+fileutils
+%if %is_not_mandrake
+Requires: %{_cgibindir}
+%endif
 
 %package webadmin
 Summary: Courier @VERSION@ web-based administration tool
 Group: Applications/Mail
-Requires: courier = @VERSION@ %{_cgibindir} %{_documentrootdir}
+Requires: courier = @VERSION@ %{_documentrootdir}
+%if %is_not_mandrake
+Requires: %{_cgibindir}
+%endif
 
 %package mlm
 Summary: Courier @VERSION@ Integrated Mailing List Manager



Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Juha Saarinen

On Mon, 24 Jun 2002, Alexander Skwar wrote:

 Wouldn't it be possible to have it distribution independent?  Especially
 if it is as easy as dropping the require for cgibindir and openssl-perl?

As I said in an earlier off-list email to you, I think you're looking at a 
Mandrake bug (ie. that no package owns /var/www/cgi-bin even though it 
appears that apache-common created it).

I don't see the value in dropping openssl-perl either, as the package 
provides the necessary scripts for cert and key conversions to OpenSSL 
formats.

Sam probably hasn't the time to provide SPEC files for other RPM-based 
distributions like Mandrake and SuSE. If you do, go for it.

-- 
Regards,

Juha
C program run. C program crash. C programmer quit.



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Alexander Skwar

So sprach Juha Saarinen am 2002-06-24 um 21:21:52 +1200 :
 As I said in an earlier off-list email to you, I think you're looking at a 
 Mandrake bug (ie. that no package owns /var/www/cgi-bin even though it 
 appears that apache-common created it).

And as I said, it doesn't matter if a package creates a directory.  It
only matters if it provides it, by either explicitly stating Proivdes:
/var/www/cgi-bin or by having %{dir} /var/www/cgi-bin in the %files
list.

Besides: What's the value in requiring /var/www/cgi-bin?  The package
already Requires: apache by requiring /var/www/html.

 I don't see the value in dropping openssl-perl either, as the package 

The value is, that there's no openssl-perl package.

 Sam probably hasn't the time to provide SPEC files for other RPM-based 
 distributions like Mandrake and SuSE. If you do, go for it.

Well, the SPEC can easily be adopted for Mandrake by dropping the
Requires: for /var/www/cgi-bin and openssl-perl.  This way, it will work
for RedHat and Mandrake.  Don't know about SuSE.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 22 hours 50 minutes


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Sam Varshavchik

Alexander Skwar writes: 

 So sprach Sam Varshavchik am 2002-06-23 um 21:52:49 -0400 :
 The RPM spec file is for Red Hat.  You're welcome to modify it for your 
 distribution. 
 
 Wouldn't it be possible to have it distribution independent?  Especially
 if it is as easy as dropping the require for cgibindir and openssl-perl?

Except that the cgi-bin directory, and the script from openssl-perl, is a 
mandatory prerequisite. 


-- 
Sam 



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Sam Varshavchik

Alexander Skwar writes: 


 And as I said, it doesn't matter if a package creates a directory.  It
 only matters if it provides it, by either explicitly stating Proivdes:
 /var/www/cgi-bin or by having %{dir} /var/www/cgi-bin in the %files
 list.

Nope.  If the package installs /var/www/cgi-bin, then the package will 
satisfy a dependency on /var/www/cgi-bin. 

 Besides: What's the value in requiring /var/www/cgi-bin?  The package
 already Requires: apache by requiring /var/www/html.

If the apache package provides /var/www/html, it should provide the cgi-bin 
directory as well. 


-- 
Sam 



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Alexander Skwar

So sprach Sam Varshavchik am 2002-06-24 um 10:19:51 -0400 :
 Nope.  If the package installs /var/www/cgi-bin, then the package will 
 satisfy a dependency on /var/www/cgi-bin. 

That's wrong.  Else every package would satisfy a dependency on
/usr/bin.  And that's not true - and it also shouldn't be true.

 If the apache package provides /var/www/html, it should provide the cgi-bin 
 directory as well. 

Yes, it should.  However, it doesn't.  And there are a lot of
installations where this won't be.  New packages *MIGHT* satisfy this,
but that's not guaranteed.  However, it's easy to make courier be
Mandrake compatible.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 1 day 6 hours 43 minutes


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Alexander Skwar

So sprach Sam Varshavchik am 2002-06-24 um 17:11:41 -0400 :
 Only if /usr/bin, the directory itself, is created by the package, in 
 addition to whatever the package installs in /usr/bin. 

Yes, exactly.  And the apache RPM does not create the /var/www/cgi-bin
directory directly by having %dir /var/www/cgi-bin.  It's only created,
because it contains files which are in /var/www/cgi-bin.

 packages.  This way, removing the last font package that installs some font 
 subdirectory of /usr/X11R6/lib/X11/fonts will also remove the font 
 subdirectory itself. 

Yes, and this makes sense.  However, because of this, there can be no
package which has a Requires: /usr/X11R6/lib/X11/fonts, because this
directory isn't provided or owned by a package.  Yes, many packages
might create this directory.  But that's not important as far as RPM's
dependencies are concerned.

I do agree that this might/is a bug in the Mandrake apache RPM.  But as
I already said, there's nothing that can be done about it - at least not
as far as the the current and older packages of apache are concerned.

Would you accept a patch to the spec which makes this a conditional
requirement, so that packages built on a Mandrake machine do not have
this?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 1 day 11 hours 25 minutes


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Juha Saarinen

On Tue, 25 Jun 2002, Alexander Skwar wrote:

  Yes, exactly.  And the apache RPM does not create the /var/www/cgi-bin
  directory directly by having %dir /var/www/cgi-bin.  It's only created,
  because it contains files which are in /var/www/cgi-bin.

That depends on which Apache RPM package you use, it seems. RH Apache
2.0.x RPMs have:

%define contentdir  %{_var}/www2
-e 's;@@ServerRoot@@/htdocs;%{contentdir}/html;' \
datadir:   %{contentdir}
iconsdir:  %{contentdir}/icons
htdocsdir: %{contentdir}/html
errordir:  %{contentdir}/error
manualdir: %{contentdir}/manual
cgidir:%{contentdir}/cgi-bin
--datadir=%{contentdir} \

%dir %{contentdir}/cgi-bin

but nothing gets installed in cgi-bin when you install Apache.

Apache 1.3.x RPMs exhibit similar behaviour.

-- 
Juha Saarinen



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-24 Thread Sam Varshavchik

Alexander Skwar writes: 

 So sprach Sam Varshavchik am 2002-06-24 um 17:11:41 -0400 :
 Only if /usr/bin, the directory itself, is created by the package, in 
 addition to whatever the package installs in /usr/bin. 
 
 Yes, exactly.  And the apache RPM does not create the /var/www/cgi-bin
 directory directly by having %dir /var/www/cgi-bin.  It's only created,
 because it contains files which are in /var/www/cgi-bin.

This is a packaging bug.  Apache is the primary owner of /var/www/cgi-bin, 
so it should install this directory, instead of having it implicitly 
created. 

 packages.  This way, removing the last font package that installs some font 
 subdirectory of /usr/X11R6/lib/X11/fonts will also remove the font 
 subdirectory itself. 
 
 Yes, and this makes sense.  However, because of this, there can be no
 package which has a Requires: /usr/X11R6/lib/X11/fonts, because this
 directory isn't provided or owned by a package.

That's incorrect.  Because the packages explicitly install this directory, 
any package will satisfy this dependency. 

Try it, it actually works as advertised. 

 Would you accept a patch to the spec which makes this a conditional
 requirement, so that packages built on a Mandrake machine do not have
 this?

I'll accept a patch that checks for a Mandrake distro, and makes the 
necessary adjustments.  You should be able to come up with something that 
does not depend on an external flag, and detects a Mandrake distro 
automatically. 

-- 
Sam 



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users