[arch-dev-public] [arch-commits] Commit in htdig/trunk (PKGBUILD)

Dan McGee dpmcgee at gmail.com
Sat Apr 25 11:36:19 EDT 2009


On Sat, Apr 25, 2009 at 10:31 AM, Allan McRae <allan at archlinux.org> wrote:
> Pierre Schmitz wrote:
>>
>> Am Samstag, 25. April 2009 16:29:03 schrieb Giovanni Scafora:
>>
>>>
>>> ln -s /srv/http/cgi-bin/htsearch ${pkgdir}/usr/bin || return 1
>>>
>>
>> I thnik it should be the other way round. Imho no package should install
>> anything into /srv.
>>
>> What do you guys think about this?
>>
>
> FHS says:
>
> /srv contains site-specific data which is served by this system.
>
> This main purpose of specifying this is so that users may find the location
> of the data files for particular service, and so that services which require
> a single tree for readonly data, writable data and scripts (such as cgi
> scripts) can be reasonably placed. Data that is only of interest to a
> specific user should go in that users' home directory.
> ...
>
>
> So a cgi script seems fine...  I would tend to agree that /srv should be
> installed into by a package.  But I don't deal with the type of package
> which may want to use /srv so my opinion should be down-weighted
> accordingly.

Installing into /srv/ is no different than installing into /home/,
IMO. It might be worse as it presents a relatively big security risk
for those that do run public facing services, and suddenly a new
script has been made available for web site users to run.

-Dan


More information about the arch-dev-public mailing list