]> git.pld-linux.org Git - packages/apache-mod_vhost_mysql.git/commitdiff
- Rel 1,
authordjrzulf <djrzulf@pld-linux.org>
Sun, 9 Jan 2005 02:22:08 +0000 (02:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- STBR for AC-test,

Changed files:
    apache-mod_vhost_mysql.spec -> 1.1

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

diff --git a/apache-mod_vhost_mysql.spec b/apache-mod_vhost_mysql.spec
new file mode 100644 (file)
index 0000000..64dbd48
--- /dev/null
@@ -0,0 +1,59 @@
+#
+# TODO:
+# Summary clean +pl, description,
+
+%define                mod_name        vhost_mysql
+%define        apxs            /usr/sbin/apxs
+Summary:       Apache vhost in mysql
+Name:          apache-mod_%{mod_name}
+Version:       0.10
+Release:       1
+License:       GPL
+Group:         Networking/Daemons
+Source0:       http://fabienne.tc2.utelisys.net/~skinkie/mod_%{mod_name}2/mod_%{mod_name}2-%{version}.tar.gz
+# Source0-md5: c47c8dc4ac41e9ed2c91a239c876d272
+BuildRequires: %{apxs}
+BuildRequires: apache-devel
+BuildRequires: db-devel >= 4.2.52
+BuildRequires: mysql-devel
+Requires(post,preun):  %{apxs}
+Requires:      apache
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+
+%description
+
+%prep
+%setup -q -n mod_%{mod_name}2-%{version}
+
+%build
+%{__make} APXS=apxs
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pkglibdir}
+
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       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 README
+%attr(755,root,root) %{_pkglibdir}/*
This page took 0.063547 seconds and 4 git commands to generate.