summaryrefslogtreecommitdiffstats
path: root/cgit.spec
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2018-06-15 23:24:01 -0400
committerTodd Zullinger <tmz@pobox.com>2018-06-16 22:36:06 -0400
commit9eedf28d2469ff79b713988f2d242a8a1a5a1282 (patch)
tree64ed8703fa99e191de29377cb1eed5db045e31f9 /cgit.spec
parentbd1a10187c7885064d6af691c58f429f0fbd7f2c (diff)
downloadcgit_EL6-9eedf28d2469ff79b713988f2d242a8a1a5a1282.tar.gz
simplify README.SELinux install
All supported releases use the same selinux context (git_sys_content_t). Update README.SELinux and install it as-is.
Diffstat (limited to 'cgit.spec')
-rw-r--r--cgit.spec14
1 files changed, 4 insertions, 10 deletions
diff --git a/cgit.spec b/cgit.spec
index 9de375b..cb4068e 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -69,6 +69,9 @@ Cgit is a fast web interface for git. It uses caching to increase performance.
rm -rf git
mv git-%{gitver} git
+# add README.SELinux
+cp -p %{SOURCE3} .
+
# Use the same options for every invocation of 'make'.
# Otherwise it will rebuild in %%install due to flags changes.
cat << \EOF > cgit.conf
@@ -95,16 +98,6 @@ EOF
# remove env shebang's from filter scripts
grep -rl '#!.*/env' filters/ | xargs -r sed -Ei 's@^(.+/)env (.+)$@\1\2@'
-# I tried to use matchpathcon, but we would need to require
-# selinux-policy-targeted probably.
-
-build_dist=%{?fedora:fedora}%{?rhel:rhel}
-build_ver=%{?fedora}%{?rhel}
-
-cgit_context=git_sys_content_t
-sed -e "s|@CGIT_CONTEXT@|$cgit_context|g" \
- %{SOURCE3} > README.SELinux
-
cat > httpd.conf <<EOF
Alias /cgit-data /usr/share/cgit
ScriptAlias /cgit /var/www/cgi-bin/cgit
@@ -160,6 +153,7 @@ install -d -m0755 %{buildroot}%{cachedir}
- use %%autosetup macro
- drop crufty curl-devel conditional
- fix parallel make issues in docs
+- simplify README.SELinux install
* Mon Jun 04 2018 Todd Zullinger <tmz@pobox.com>
- make config: drop redundant DESTDIR/INSTALL, add COPYTREE