diff options
Diffstat (limited to 'app-admin/localepurge/files')
4 files changed, 0 insertions, 107 deletions
diff --git a/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch b/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch deleted file mode 100644 index ebca3b755aec..000000000000 --- a/app-admin/localepurge/files/localepurge-0.5.4-directorysum.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/localepurge -+++ b/localepurge -@@ -198,7 +198,7 @@ - - if [ "$SHOWFREEDSPACE" = "enabled" ]; then - if test $SPACETMP -gt 0 ; then -- LOCALETOTAL=$SPACETMP -+ LOCALETOTAL=$(($LOCALETOTAL + $SPACETMP)) - einfo "localepurge: Disk space freed in $LOCALEDIR: ${BOLD}"$SPACETMP"K${NORMAL}" - fi - SPACETMP=0 -@@ -230,7 +230,7 @@ - - if [ "$SHOWFREEDSPACE" = "enabled" ]; then - if test $SPACETMP -gt 0 ; then -- MANTOTAL=$SPACETMP -+ MANTOTAL=$(($MANTOTAL + $SPACETMP)) - einfo "localepurge: Disk space freed in $MANPAGEDIR: ${BOLD}"$SPACETMP"K${NORMAL}" - fi - SPACETMP=0 diff --git a/app-admin/localepurge/files/localepurge-0.5.4-evaltotal.patch b/app-admin/localepurge/files/localepurge-0.5.4-evaltotal.patch deleted file mode 100644 index aed408283343..000000000000 --- a/app-admin/localepurge/files/localepurge-0.5.4-evaltotal.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/localepurge -+++ b/localepurge -@@ -254,7 +254,7 @@ - - # Calculating and reporting total disk space freed: - if [ "$SHOWFREEDSPACE" = "enabled" ]; then -- let TOTAL=$LOCALETOTAL+$MANTOTAL -+ TOTAL=$(($LOCALETOTAL+$MANTOTAL)) - if test $TOTAL -lt 0; then - TOTAL=0 - fi diff --git a/app-admin/localepurge/files/localepurge-0.5.4-parentdir.patch b/app-admin/localepurge/files/localepurge-0.5.4-parentdir.patch deleted file mode 100644 index 2d8d6dac5720..000000000000 --- a/app-admin/localepurge/files/localepurge-0.5.4-parentdir.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/localepurge -+++ b/localepurge -@@ -165,7 +165,14 @@ - ${ACTION} `find ${REMOVEPATH} -type f -o -type l` - - if [ "$SHOWFREEDSPACE" = "enabled" ]; then -- SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}') -+ # if symlink, REMOVEPATH could be removed -+ # check from parentdir then -+ if [ -d ${REMOVEPATH} ]; then -+ SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}') -+ else -+ SPACEAFTER=$(df -P ${REMOVEPATH%/*} | awk '{if ( NR==2 ) { print $3 }}') -+ fi -+ - SPACESUM=$(($SPACEBEFORE - $SPACEAFTER)) - - if test $SPACESUM -gt 0 ; then diff --git a/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch b/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch deleted file mode 100644 index 488871381aed..000000000000 --- a/app-admin/localepurge/files/localepurge-0.5.4-prefix.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- a/localepurge -+++ b/localepurge -@@ -1,14 +1,14 @@ --#!/bin/bash -+#!@GENTOO_PORTAGE_EPREFIX@/bin/bash - - # Deleting all locale files on system - # *not* listed in /etc/locale.nopurge - - set -e - --LOCALEDIRS="/usr/share/locale /usr/local/share/locale /usr/kde/?.?/share/locale /opt/sun-jdk-*/jre/lib/locale /opt/sun-jre-bin-*/lib/locale /usr/lib/locale /usr/share/binutils-data/*/*/locale /usr/share/gcc-data/*/*/locale" --MANPAGEDIRS="/usr/share/man /usr/man /usr/local/share/man /usr/kde/?.?/share/man /usr/kde/?.?/man /opt/sun-jdk-*/man /opt/sun-jre-bin-*/man" --LOCALELIST="/var/cache/localepurge/localelist" --CONFIGFILE="/etc/locale.nopurge" -+LOCALEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/local/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/jre/lib/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/binutils-data/*/*/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/gcc-data/*/*/locale" -+MANPAGEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/man @GENTOO_PORTAGE_EPREFIX@/usr/man @GENTOO_PORTAGE_EPREFIX@/usr/local/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/man" -+LOCALELIST="@GENTOO_PORTAGE_EPREFIX@/var/cache/localepurge/localelist" -+CONFIGFILE="@GENTOO_PORTAGE_EPREFIX@/etc/locale.nopurge" - VERSION="0.5.4" - - LOCALETOTAL=0 -@@ -23,7 +23,7 @@ - BRACKET=$'\e[34;01m' - BOLD=$'\e[1m' - --ACTION="/bin/rm -vf" -+ACTION="@GENTOO_PORTAGE_EPREFIX@/bin/rm -vf" - - eerror () { - echo -e " ${BAD}*${NORMAL} $*" 2> /dev/stderr -@@ -43,7 +43,7 @@ - print() { - for x in $@; do - if [ "${x}" = "" ]; then return 0 -- else /bin/echo $x -+ else @GENTOO_PORTAGE_EPREFIX@/bin/echo $x - fi - done - } -@@ -184,7 +184,7 @@ - einfo "localepurge: processing locale files in ${LOCALEDIR} ..." - fi - -- for LOCALE in `/bin/ls ${LOCALEDIR}`; do -+ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${LOCALEDIR}`; do - if echo "${PURGELIST}" | grep -xq ${LOCALE}; then - if [ -d ${LOCALEDIR}/${LOCALE}/LC_MESSAGES ]; then - if [ "${LIST}" = "enabled" ]; then -@@ -216,7 +216,7 @@ - einfo "localepurge: processing man pages in ${MANPAGEDIR} ..." - fi - -- for LOCALE in `/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do -+ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do - if echo "${PURGELIST}" | grep -xq ${LOCALE}; then - if [ -d ${MANPAGEDIR}/${LOCALE} ]; then - if [ "${LIST}" = "enabled" ]; then |