]> git.pld-linux.org Git - packages/apache-mod_vhs.git/commitdiff
- init
authorzbyniu <zbyniu@pld-linux.org>
Mon, 20 Jun 2005 13:12:30 +0000 (13:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_vhs.spec -> 1.1

apache-mod_vhs.spec [new file with mode: 0644]

diff --git a/apache-mod_vhs.spec b/apache-mod_vhs.spec
new file mode 100644 (file)
index 0000000..fd054dc
--- /dev/null
@@ -0,0 +1,64 @@
+%define                mod_name        vhs
+%define        apxs            /usr/sbin/apxs
+Summary:       Apache module: Virtual Hosting
+Summary(pl):   Modu³ do Apache: wirtualny hosting
+Name:          apache-mod_%{mod_name}
+Version:       1.0.16
+Release:       0.1
+License:       Apache
+Group:         Networking/Daemons
+Source0:       http://www.oav.net/projects/mod_vhs/mod_vhs-%{version}.tar.gz
+# Source0-md5: 3f7075c7d63c0b366bd595b90980832e
+URL:           http://www.oav.net/projects/mod_vhs/
+BuildRequires: apache-devel >= 2.0.0
+BuildRequires: %{apxs}
+BuildRequires: libhome-devel
+Requires(post,preun):  %{apxs}
+Requires:      apache >= 2.0.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+
+%description
+mod_vhs is an Apache 2.0 Web Server module allowing mass virtual
+hosting without the need for file based configuration. The virtual
+host paths are translated from a any database supported by libhome at
+request time.
+
+%description -l pl
+mod_vhs jest modu³em dla serwera Apache 2.0 daj±cy mo¿liwo¶æ
+skonfigurowania masowego wirtualnego hostingu bez potrzeby trzymania
+ustawieñ w plikach. Wirtualne ¶cie¿ki t³umaczone s± z dowolnej bazy
+wspieranej przez libhome w momencie wys³ania zapytania.
+
+%prep
+%setup -q -n mod_vhs
+
+%build
+%{apxs} -c mod_vhs.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       umask 027
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README THANKS TODO WARNING.THREADS
+%attr(755,root,root) %{_pkglibdir}/*
This page took 0.055929 seconds and 4 git commands to generate.