From fdb5c003b67137ad55a6605b0fd5da1738185b4b Mon Sep 17 00:00:00 2001 From: James Meyer Date: Fri, 26 Mar 2010 13:15:58 -0500 Subject: linhes-scripts: added modified version of tjc post-install closes #518 --- abs/core-testing/linhes-scripts/PKGBUILD | 48 +++++++++++++++++++---- abs/core-testing/linhes-scripts/system-cleanup.sh | 47 ++++++++++++++++++++++ 2 files changed, 88 insertions(+), 7 deletions(-) create mode 100755 abs/core-testing/linhes-scripts/system-cleanup.sh diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD index 02fba0e..82cede0 100644 --- a/abs/core-testing/linhes-scripts/PKGBUILD +++ b/abs/core-testing/linhes-scripts/PKGBUILD @@ -3,7 +3,7 @@ pkgname=linhes-scripts pkgver=1 -pkgrel=58 +pkgrel=63 pkgdesc="Various scripts that help to make LinHES, LinHES." arch=('i686' 'x86_64') license=('GPL2') @@ -38,6 +38,7 @@ update_schema_021_to_022.sh upgrade_to_0.22.sh remove_php_mythvideo.sh removecommercials.sh +system-cleanup.sh ) build() { @@ -63,9 +64,9 @@ md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' '0750d7c65109d12aa536f312a38410d1' 'ac2a4a6b4100f4d7bfb9ecd9356c8c6e' 'd2b475821f902c5e081e7da43a35e6ac' - '26a194301b0cfc4ca212d462a0899077' + '95c092f67036a361ef7a57436f44332e' '3b776bbff68906ddc2f62b7e0dde3fe4' - '85706c981e8ec2c5bb49a33538782d4c' + '15f3143d2b1369da431e4268029aba40' '3d0adf26280cde55a0c47188fff34826' '93aaa2940e33ec9ebb305b839ac46a3e' '972e42e02a11575da91f5e051d4de1d2' @@ -76,7 +77,9 @@ md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' 'c9dc0dd07369622879a000247ac55074' '65629302a4d2c3adf88cdf0ebc10d493' 'ea5492d4dab8271db20cb84416c001dc' - 'd7c7914225ec86bf3ea46104a364f977') + 'd7c7914225ec86bf3ea46104a364f977' + '25c1baeb97a49656456ae33f7e7a9f06' + '5713640cb516246cfd4c06b1393a7f13') md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' '623b6e9ba6cc4a19771005e750f337a7' '9ae2cd7a0c42d57ad8b5f515d7d60196' @@ -91,7 +94,7 @@ md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' 'd2b475821f902c5e081e7da43a35e6ac' '95c092f67036a361ef7a57436f44332e' '3b776bbff68906ddc2f62b7e0dde3fe4' - '85706c981e8ec2c5bb49a33538782d4c' + '15f3143d2b1369da431e4268029aba40' '3d0adf26280cde55a0c47188fff34826' '93aaa2940e33ec9ebb305b839ac46a3e' '972e42e02a11575da91f5e051d4de1d2' @@ -102,7 +105,37 @@ md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' 'c9dc0dd07369622879a000247ac55074' '65629302a4d2c3adf88cdf0ebc10d493' 'ea5492d4dab8271db20cb84416c001dc' - 'd7c7914225ec86bf3ea46104a364f977') + 'd7c7914225ec86bf3ea46104a364f977' + '25c1baeb97a49656456ae33f7e7a9f06' + 'f77bb76ee2759195b67a2e0df8c47c44') +md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' + '623b6e9ba6cc4a19771005e750f337a7' + '9ae2cd7a0c42d57ad8b5f515d7d60196' + '1274bad3fb7296f00acd2d44804bad14' + 'b4f858834ea92418208ab496ca39ad32' + '6b6e7d34a4bda6d608d150039adefd07' + '3fe554dbbf7d09e1f9925032ba888bf5' + '18263972b6326e140bbef0bb7dfa2da9' + '410795ef9039e4c6c0484e706ecfd567' + '0750d7c65109d12aa536f312a38410d1' + 'ac2a4a6b4100f4d7bfb9ecd9356c8c6e' + 'd2b475821f902c5e081e7da43a35e6ac' + '95c092f67036a361ef7a57436f44332e' + '3b776bbff68906ddc2f62b7e0dde3fe4' + '15f3143d2b1369da431e4268029aba40' + '3d0adf26280cde55a0c47188fff34826' + '93aaa2940e33ec9ebb305b839ac46a3e' + '972e42e02a11575da91f5e051d4de1d2' + 'b527b01d119d3bc33b8fa69bdf1082bb' + 'c537c44156d8404016cc4b405b092d45' + '4e66f302a77f1a857476e7f289d0c157' + 'be324dba44ae96676973a74421944853' + 'c9dc0dd07369622879a000247ac55074' + '65629302a4d2c3adf88cdf0ebc10d493' + 'ea5492d4dab8271db20cb84416c001dc' + 'd7c7914225ec86bf3ea46104a364f977' + '25c1baeb97a49656456ae33f7e7a9f06' + 'bd419fe54590925eb0bc991902dffecf') md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' '623b6e9ba6cc4a19771005e750f337a7' '9ae2cd7a0c42d57ad8b5f515d7d60196' @@ -129,4 +162,5 @@ md5sums=('f56985b2d602e11dc1e10d3e7848b2a5' '65629302a4d2c3adf88cdf0ebc10d493' 'ea5492d4dab8271db20cb84416c001dc' 'd7c7914225ec86bf3ea46104a364f977' - '25c1baeb97a49656456ae33f7e7a9f06') + '25c1baeb97a49656456ae33f7e7a9f06' + '2fb25aef03ffd1282414d8cca3df7056') diff --git a/abs/core-testing/linhes-scripts/system-cleanup.sh b/abs/core-testing/linhes-scripts/system-cleanup.sh new file mode 100755 index 0000000..59a4ebb --- /dev/null +++ b/abs/core-testing/linhes-scripts/system-cleanup.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +# This script cleans up some SVN stuff that the build process leaves +# in /usr/share/mythtv, along with ownership and file permsisions on the +# themes and the mythstream stuff. There are bunch of files which are +# left executable for no good reason, although I can think of several +# potentially bad reasons for it. + +find /usr/share/mythtv -name .svn -print0 | xargs -0 rm -rf +find /usr/share/mythtv -name CVS -print0 | xargs -0 rm -rf + +THEMES=/usr/share/mythtv/themes + +chown -R root:root $THEMES +chmod -R +r $THEMES +find $THEMES -type f -print0 | xargs -0 chmod a-x + + +chown -R mythtv:users /myth +chown -R root:root /myth/backup/ +chown -R root:root /etc/sv + +chown -R http:users /data/srv/httpd/ + +# None of thes files should be executable. +for ext in gif png jpg xml htm html php ; do + find / -type f -name "*.$ext" -print0 | xargs -0 chmod a-x +done + +# These files should be owned by root and not writable to anybody else + +#chown root:root /usr/share/mythtv/*.xml /usr/share/mythtv/*.ttf +chown root:root /usr/share/mythtv/*.ttf + +chown -R root:root \ + /usr/share/mythtv/i18n \ + /usr/share/mythtv/mytharchive \ + /usr/share/mythtv/mythflix \ + /usr/share/mythtv/mythnews \ + /usr/share/mythtv/mythvideo \ + /usr/share/mythtv/mythweather \ + /usr/LH + + + +# Report any remaining orphans... +find / /myth -xdev \( -nouser -o -nogroup \) -ls -- cgit v0.12