summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-03-05 16:07:27 -0500
committerWill Woods <wwoods@redhat.com>2009-03-05 16:07:27 -0500
commit6feb4a62f81f9746b8ad4d78e0b2a77ad8f0ca20 (patch)
tree170521e0b295d6a02423b2364949baa25e85105b
parent9f6ba8ea1feb13d91d57fd43ede1cba27ceb8490 (diff)
downloaddebuginfofs-6feb4a62f81f9746b8ad4d78e0b2a77ad8f0ca20.zip
debuginfofs-6feb4a62f81f9746b8ad4d78e0b2a77ad8f0ca20.tar.gz
debuginfofs-6feb4a62f81f9746b8ad4d78e0b2a77ad8f0ca20.tar.xz
Add semanage call to allow httpd access to port 3309, update README to reflect this
-rw-r--r--README10
-rw-r--r--debuginfofs.spec2
2 files changed, 8 insertions, 4 deletions
diff --git a/README b/README
index 8e18029..33c0c3d 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-Fetching data for a debuginfofs server: the easy way
+Fetching data for a debuginfofs server
1) Edit /etc/debuginfofs.conf (if needed)
2) run debuginfofs-mirror REPO [REPO...]
- Note: if you're on EL5 and you want rawhide/F11 debuginfo you might need
@@ -7,9 +7,11 @@ Fetching data for a debuginfofs server: the easy way
http://http://skvidal.fedorapeople.org/hashlib/
Running the debuginfofs server
-1) vi /etc/httpd/conf.d/dav-debuginfo.conf
- - Make sure the Alias line matches exportdir in config.sh
-2) service httpd start
+1) service debuginfofs-server start
+- You might want to edit /usr/share/debuginfofs/dav-debuginfo.conf
+- If you're running SELinux you'll need to allow httpd to access port 3309.
+ The package %post script handles this, or you can do it yourself:
+ /usr/sbin/semanage port -a -S targeted -t http_port_t -p tcp 3309
Some rough stats about disk usage:
- F10 i386+x86_64 full debuginfo stats:
diff --git a/debuginfofs.spec b/debuginfofs.spec
index 23d3cbc..5d82db0 100644
--- a/debuginfofs.spec
+++ b/debuginfofs.spec
@@ -73,11 +73,13 @@ fi
%post server
/sbin/chkconfig --add debuginfofs-server
+/usr/sbin/semanage port -a -S targeted -t http_port_t -p tcp 3309 &> /dev/null || :
%preun server
if [ "$1" == "0" ] ; then
/sbin/service debuginfofs-server stop >/dev/null 2>&1
/sbin/chkconfig --del debuginfofs-server
fi
+/usr/sbin/semanage port -d -t http_port_t -p tcp 3309 &> /dev/null || :
%postun server
if [ "$1" -ge "1" ] ; then
/sbin/service debuginfofs-server condrestart >/dev/null 2>&1 || :