]> git.pld-linux.org Git - packages/apache1-mod_witch.git/commitdiff
- initial spec
authorMarcin Winkler <qurczak@gmail.com>
Sun, 3 Aug 2003 17:46:36 +0000 (17:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- PL translations needed
- apache1 only (?)

Changed files:
    apache-mod_witch.conf -> 1.1
    apache1-mod_witch.conf -> 1.1
    apache1-mod_witch.spec -> 1.1

apache-mod_witch.conf [new file with mode: 0644]
apache1-mod_witch.conf [new file with mode: 0644]
apache1-mod_witch.spec [new file with mode: 0644]

diff --git a/apache-mod_witch.conf b/apache-mod_witch.conf
new file mode 100644 (file)
index 0000000..0ec15c0
--- /dev/null
@@ -0,0 +1,7 @@
+WitchIdent mod-witch
+WitchOption LOG_PID
+WitchFacility LOG_DAEMON
+WitchLevel LOG_INFO
+WitchError log
+WitchLogStyle hostname
+
diff --git a/apache1-mod_witch.conf b/apache1-mod_witch.conf
new file mode 100644 (file)
index 0000000..0ec15c0
--- /dev/null
@@ -0,0 +1,7 @@
+WitchIdent mod-witch
+WitchOption LOG_PID
+WitchFacility LOG_DAEMON
+WitchLevel LOG_INFO
+WitchError log
+WitchLogStyle hostname
+
diff --git a/apache1-mod_witch.spec b/apache1-mod_witch.spec
new file mode 100644 (file)
index 0000000..36f6058
--- /dev/null
@@ -0,0 +1,75 @@
+%define                mod_name        witch
+%define        apxs            /usr/sbin/apxs
+Summary:       Apache module: log the access_log and error_log log into the syslogd
+Summary(pl):   Modu³ do apache: loguje pliki access_log i error_log do demona syslogd
+Name:          apache-mod_%{mod_name}
+Version:       0.0.5
+Release:       1
+License:       GPLv2
+Group:         Networking/Daemons
+Source0:       http://savannah.nongnu.org/download/mod-witch/mod-witch.pkg/%{version}/mod-witch-%{version}.tar.gz
+# Source0-md5: 080ccc5d789ed5efa0c0a7625e4fa02d
+Source1:       apache-mod_witch.conf
+#Patch0:               mod_%{mod_name}-name_clash.patch
+URL:           http://savannah.nongnu.org/projects/mod-witch
+BuildRequires: %{apxs}
+BuildRequires: apache(EAPI)-devel
+Requires(post,preun):  %{apxs}
+Requires(post,preun):  grep
+Requires(preun):       fileutils
+Requires:      apache(EAPI)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define         _sysconfdir     /etc/httpd
+
+%description
+This mod-witch apache module [1] project intend to help the Apache web
+server [1] to log the access_log and error_log log into the syslogd
+[2], this way apache will be able to log onto a remote logger machine
+with the syslogd.
+
+%description -l pl
+
+%prep
+%setup -q -n mod-%{mod_name}-%{version}
+
+%build
+%{apxs} -Wc,-Wall,-pipe -c mod_%{mod_name}.c -o mod_%{mod_name}.so
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
+
+install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_%{mod_name}.conf" /etc/httpd/httpd.conf; then
+        echo "Include /etc/httpd/mod_%{mod_name}.conf" >> /etc/httpd/httpd.conf
+fi
+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
+       umask 027
+       grep -v "^Include.*mod_%{mod_name}.conf" /etc/httpd/httpd.conf > \
+                /etc/httpd/httpd.conf.tmp
+        mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
+       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 INSTALL COPYING
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_*.conf
+%attr(755,root,root) %{_pkglibdir}/*
This page took 0.067054 seconds and 4 git commands to generate.