Group :: System/Servers
RPM: vhosts-filesystem
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define srv_dir %_var/www
# 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 %srv_dir/vhosts
# 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: alt1
License: GPL
Group: System/Servers
Packager: Yury Konovalov <yurix at altlinux.ru>
Summary: Sared content filesystem to be served by HTTP and FTP servers in hosting environment
Summary(ru_RU.KOI8-R): Файловая система разделяемого контента для служб HTTP и FTP в хостинговом применении
Requires: filesystem
%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 devel
Summary: RPM macroses for packages, serving shared content
Summary(ru_RU.KOI8-R): Макрос RPM для пакетов, обслуживающих разделяемый контент
Group: Development/Other
%description devel
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 -l ru_RU.KOI8-R devel
Содержит макросы 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%_sysconfdir/rpm/macros.d
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%_sysconfdir/rpm/macros.d/%name
%files
# uncomment the following, when %srv_dir will not been provided by apache
# this will requre correct regexp in /etc/sisyphus/fhs
#%attr(0755,root,root) %dir %srv_dir/
%attr(0755,root,root) %dir %vhosts_dir/
%dir %apache_addons_data_dir
%dir %apachk_addon_dir
%dir %apachk_addon_initd
%dir %apachk_favours_dir
%files devel
%attr(0644,root,root) %_sysconfdir/rpm/macros.d/*
%changelog
…
Full changelog you can see here
# 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 %srv_dir/vhosts
# 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: alt1
License: GPL
Group: System/Servers
Packager: Yury Konovalov <yurix at altlinux.ru>
Summary: Sared content filesystem to be served by HTTP and FTP servers in hosting environment
Summary(ru_RU.KOI8-R): Файловая система разделяемого контента для служб HTTP и FTP в хостинговом применении
Requires: filesystem
%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 devel
Summary: RPM macroses for packages, serving shared content
Summary(ru_RU.KOI8-R): Макрос RPM для пакетов, обслуживающих разделяемый контент
Group: Development/Other
%description devel
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 -l ru_RU.KOI8-R devel
Содержит макросы 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%_sysconfdir/rpm/macros.d
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%_sysconfdir/rpm/macros.d/%name
%files
# uncomment the following, when %srv_dir will not been provided by apache
# this will requre correct regexp in /etc/sisyphus/fhs
#%attr(0755,root,root) %dir %srv_dir/
%attr(0755,root,root) %dir %vhosts_dir/
%dir %apache_addons_data_dir
%dir %apachk_addon_dir
%dir %apachk_addon_initd
%dir %apachk_favours_dir
%files devel
%attr(0644,root,root) %_sysconfdir/rpm/macros.d/*
%changelog
…
Full changelog you can see here