Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37604072
en ru br
ALT Linux repositórios
S:0.2-alt2
D:0.2-alt1.4
5.0: 0.2-alt1.4
4.1: 0.2-alt1.1
4.0: 0.2-alt1
3.0: 0.2-alt1

Group :: Sistema/Servidores
RPM: vhosts-filesystem

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define srv_dir           %webserver_datadir
# The word "www" here does not meen http
# It used for compability for now and should be
# changed to something like "inet-services-data" in the future.
# That's why it looks better to move to /svr, - it simplify
# naming :)
%define vhosts_dir             %webserver_vhostdir
# Next is for addons (content), that could be used with both apaches
%define apache_addons_data_dir %srv_dir/common-addons
# Next three defines are for apachkconfig fs
%define apachk_addon_dir        /etc/httpd-addon
%define apachk_addon_initd      %apachk_addon_dir/init.d
%define apachk_favours_dir      %apachk_addon_dir/favours

Name: vhosts-filesystem
Version: 0.2
Release: alt2
License: GPLv2+
Group: System/Servers
Packager: Yury Konovalov <yurix at altlinux.ru>

Summary: Shared content filesystem to be served by HTTP and FTP servers in hosting environment
Summary(ru_RU.KOI8-R): æÁÊÌÏ×ÁÑ ÓÉÓÔÅÍÁ ÒÁÚÄÅÌÑÅÍÏÇÏ ËÏÎÔÅÎÔÁ ÄÌÑ ÓÌÕÖ HTTP É FTP × ÈÏÓÔÉÎÇÏ×ÏÍ ÐÒÉÍÅÎÅÎÉÉ

Provides: %apache_addons_data_dir
Provides: %apachk_addon_dir
Provides: %apachk_addon_initd
Provides: %apachk_favours_dir

BuildRequires(pre): rpm-build-webserver-common

PreReq: webserver-common

BuildArch: noarch

%description
The basic directory layout for shared content in hosting environment.
The vhosts-filesystem package is the basic package that is needed by
services like HTTP and FTP. The package contains the basic directory
layout for a virtual hosts data, and other shared data. It also provide
the root directory which could be used by corresponding packages
to install sprecific subdirectories, used by thouse services.

%description -l ru_RU.KOI8-R
âÁÚÏ×ÁÑ ÓÔÒÕËÔÕÒÁ ËÁÔÁÌÏÇÏ× ÄÌÑ ÒÁÚÍÅÝÅÎÉÑ ÒÁÚÄÅÌÑÅÍÏÇÏ ËÏÎÔÅÎÔÁ × ÈÏÓÔÉÎÇÏ×ÙÈ
ÐÒÉÍÅÎÉÑÈ. ðÁËÅÔ vhosts-filesystem Ñ×ÌÑÅÔÓÑ ÂÁÚÏ×ÙÍ ÐÁËÅÔÏÍ, ÔÒÅÂÕÅÍÙÍ ÔÁËÉÍÉ ÓÌÕÖÂÁÍÉ
ËÁË HTTP É FTP. óÏÄÅÒÖÉÔ ÂÁÚÏ×ÕÀ ÓÔÒÕËÔÕÒÕ ËÁÔÁÌÏÇÏ× ÄÌÑ ÒÁÚÍÅÝÅÎÉÑ ÄÁÎÎÙÈ
×ÉÒÔÕÁÌØÎÙÈ ÈÏÓÔÏ× É ÄÒ. ÒÁÚÄÅÌÑÅÍÙÈ ÄÁÎÎÙÈ. üÔÏÔ ÐÁËÅÔ ÔÁËÖÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
ÏÂÝÉÊ "ËÏÒÅÎØ", × ËÏÔÏÒÏÍ ÄÒÕÇÉÅ ÐÁËÅÔÙ ÍÏÇÕÔ ÒÁÓÐÏÌÁÇÁÔØ Ó×ÏÉ ÓÐÅÃÉÆÉÞÎÙÅ ÄÁÎÎÙÅ.

%package -n rpm-macros-%name
Summary: RPM macroses for packages, serving shared content
Summary(ru_RU.KOI8-R): RPM ÍÁËÒÏÓÙ ÄÌÑ ÐÁËÅÔÏ×, ÏÂÓÌÕÖÉ×ÁÀÝÉÈ ÒÁÚÄÅÌÑÅÍÙÊ ËÏÎÔÅÎÔ
Group: Development/Other

Conflicts: %name-devel <= 0.2-alt1.2
Requires: rpm-macros-webserver-common

%description -n rpm-macros-%name
Contains RPM macroses to be used while building other packages in case them
provide a software that could be used to serve shared content.

%description -n rpm-macros-%name -l ru_RU.KOI8-R
óÏÄÅÒÖÉÔ ÍÁËÒÏÓÙ RPM, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÅ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÒÉ ÓÂÏÒËÅ ÄÒÕÇÉÈ ÐÁËÅÔÏ×
× ÓÌÕÞÁÅ ÅÓÌÉ ÓÏÂÉÒÁÅÍÙÅ ÐÁËÅÔÙ ÓÏÄÅÒÖÁÔ ÐÒÏÇÒÁÍÍÙ ÄÌÑ ÏÂÓÌÕÖÉ×ÁÎÉÑ ÒÁÚÄÅÌÑÅÍÏÇÏ
ËÏÎÔÅÎÔÁ.

%package -n rpm-build-%name
Summary: RPM macroses for build packages, serving shared content
Summary(ru_RU.KOI8-R): RPM ÍÁËÒÏÓÙ ÓÂÏÒËÉ ÄÌÑ ÐÁËÅÔÏ×, ÏÂÓÌÕÖÉ×ÁÀÝÉÈ ÒÁÚÄÅÌÑÅÍÙÊ ËÏÎÔÅÎÔ
Group: Development/Other

Provides: %name-devel = %version-%release
Obsoletes: %name-devel <= 0.2-alt1.2
Requires: rpm-macros-%name >= %version
Requires: rpm-build-webserver-common

%description -n rpm-build-%name
Contains RPM macroses to be used while building other packages in case them
provide a software that could be used to serve shared content.

%description -n rpm-build-%name -l ru_RU.KOI8-R
óÏÄÅÒÖÉÔ ÍÁËÒÏÓÙ RPM, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÅ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÒÉ ÓÂÏÒËÅ ÄÒÕÇÉÈ ÐÁËÅÔÏ×
× ÓÌÕÞÁÅ ÅÓÌÉ ÓÏÂÉÒÁÅÍÙÅ ÐÁËÅÔÙ ÓÏÄÅÒÖÁÔ ÐÒÏÇÒÁÍÍÙ ÄÌÑ ÏÂÓÌÕÖÉ×ÁÎÉÑ ÒÁÚÄÅÌÑÅÍÏÇÏ
ËÏÎÔÅÎÔÁ.

%install
mkdir -p %buildroot%srv_dir %buildroot%vhosts_dir \
   %buildroot%apache_addons_data_dir \
   %buildroot%apachk_addon_dir \
   %buildroot%apachk_addon_initd \
   %buildroot%apachk_favours_dir

# Generate macros for rpm

mkdir -p %buildroot%_rpmmacrosdir

echo "#root for data served by inet services
srv_dir                 %srv_dir

#place to hold virtual hosts data

vhosts_dir              %vhosts_dir

# Next is for addons content, that could be served by both apache1/2

apache_addons_data_dir  %apache_addons_data_dir

# Next three defines are for apachkconfig fs

apachk_addon_dir        %apachk_addon_dir
apachk_addon_initd      %apachk_addon_initd
apachk_favours_dir      %apachk_favours_dir
post_addon() [ -x /usr/sbin/apachkconfig ] && /usr/sbin/apachkconfig --add %* ||: %\nil
preun_addon() [ -x /usr/sbin/apachkconfig ] && /usr/sbin/apachkconfig --del %* ||: %\nil
" | sed -e "s/^\([[:alpha:]]\+\)/%\1/" -e "s/\\\//g" > %buildroot%_rpmmacrosdir/%name

mkdir -p %buildroot%_rpmlibdir
cat <<\EOF >%buildroot%_rpmlibdir/%name-files.req.list
# %name dirlist for %_rpmlibdir/files.req
%apache_addons_data_dir %name
%apachk_addon_dir %name
%apachk_addon_initd %name
%apachk_favours_dir %name
EOF

%files
# uncomment the following, when %srv_dir will not been provided by apache
# this will requre correct regexp in /etc/sisyphus/fhs
#%dir %srv_dir/
#%dir %vhosts_dir/
%attr(2771,root,%webserver_webmaster) %dir %apache_addons_data_dir
%dir %apachk_addon_dir
%dir %apachk_addon_initd
%dir %apachk_favours_dir

%files -n rpm-macros-%name
%attr(0644,root,root) %_rpmmacrosdir/%name

%files -n rpm-build-%name
%_rpmlibdir/%name-files.req.list

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009