localepurge stable port information

Package: localepurge
Version: 0.0.37
Revision: 2
License: GPL
BuildDepends: fink (>= 0.24.12)
Depends: debconf
Homepage: http://packages.debian.org/unstable/admin/localepurge
Source: mirror:debian:pool/main/l/%n/%n_%v.tar.gz
Source-MD5: f198a6e0a60f1c2680be44926539f4b8
SourceDirectory: %n-%v
PatchFile: %n.patch
PatchFile-MD5: ec6b099fce1932ef4c9bf5d3dc80c575
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
ConfFiles: <<
%p/etc/locale.nopurge
%p/var/cache/%n/localelist
%p/var/cache/%n/localelist-new
%p/var/cache/%n/localelist-old
%p/var/cache/%n/defaultlist
<<
Docfiles: debian/changelog debian/copyright debian/README.debian debian/TODO.Debian
CompileScript: echo "Nothing to compile."
InstallScript: <<
mkdir -p %i/share/doc/%n/
install -m 755 debian/reinstall_debs.sh %i/share/doc/%n/
mkdir -p %i/etc/apt/apt.conf.d/ %i/sbin/ %i/var/cache/%n/ %i/share/man/man8/
install -m 644 etc/apt/apt.conf.d/99-%n %i/etc/apt/apt.conf.d/
install -m 755 usr/sbin/%n %i/sbin/
install -m 644 var/cache/%n/defaultlist %i/var/cache/%n/
install -m 644 debian/%n.8 %i/share/man/man8/
touch %i/etc/locale.nopurge %i/var/cache/%n/localelist %i/var/cache/%n/localelist-new %i/var/cache/%n/localelist-old
chmod 644 %i/etc/locale.nopurge %i/var/cache/%n/localelist %i/var/cache/%n/localelist-new %i/var/cache/%n/localelist-old
install -m 755 debian/postinst %d/DEBIAN/
install -m 755 debian/postrm %d/DEBIAN/
install -m 755 debian/preinst %d/DEBIAN/
install -m 755 debian/%n.config %d/DEBIAN/config
install -m 644 debian/%n.templates %d/DEBIAN/templates
<<
PostInstScript: <<
chgrp staff %p/etc/locale.nopurge %p/var/cache/%n/localelist %p/var/cache/%n/localelist-new %p/var/cache/%n/localelist-old
<<
Maintainer: None
Description: Automatically remove unnecessary locale data
DescDetail: <<
This is just a simple script to recover diskspace wasted for unneeded
locale files and localized man pages. It will automatically be
invoked upon completion of any apt installation run.

Please note, that this tool is a hack which is *not* integrated with
Debian's package management system and therefore is not for the faint
of heart. Responsibility for its usage and possible breakage of your
system therefore lies in the sysadmin's (your) hands.

Please definitely do abstain from reporting any bugs blaming
localepurge if you break your system by using it. If you don't know
what you are doing and can't handle any resulting breakage on your
own then please simply don't use this package.
<<
DescPackaging: <<
Original maintainer: Carsten Klapp
Nonstandard Fink use of included DEBIAN control files due to
dpkg-reconfigure requirement:
- postinst postrm preinst config templates all bypass their
respective fields in the Fink info file
<<
DescUsage: <<
Fink package maintainers should probably not install this package,
since we need to make sure our packages install everything for users.
<<

localepurge stable port .patch

diff -ru1N --exclude=.DS_Store localepurge-0.0.37/debian/README.debian localepurge-0.0.37-fink/debian/README.debian
--- localepurge-0.0.37/debian/README.debian Sun Apr 14 10:16:18 2002
+++ localepurge-0.0.37-fink/debian/README.debian Sat Dec 11 16:33:01 2004
@@ -21,4 +21,4 @@
installation run. It uses the dpkg "Post-Invoke" function to execute
-the script "/usr/sbin/localepurge", which automagically deletes the
-directory of every locale *not* defined in "/etc/locale.nopurge". You
+the script "@PREFIX@/sbin/localepurge", which automagically deletes the
+directory of every locale *not* defined in "@PREFIX@/etc/locale.nopurge". You
have to put in the locale directory names you want to keep from removal
@@ -27,3 +27,3 @@
system's locale directories won't be touched at all. Any other
-directory (or file) in /usr/share/locale not containing a subdirectory
+directory (or file) in @PREFIX@/share/locale not containing a subdirectory
named LC_MESSAGES will be discreetly ignored.
@@ -43,3 +43,3 @@
All locale directories containing a subdirectory named LC_MESSAGES
- which are *not* listed in "/etc/locale.nopurge" will be irreversibly
+ which are *not* listed in "@PREFIX@/etc/locale.nopurge" will be irreversibly
deleted. The only way to reinstall any lost locales then is a complete
@@ -50,3 +50,3 @@

- See "/usr/share/doc/localepurge/reinstall_debs.sh" for a ready made recipe.
+ See "@PREFIX@/share/doc/localepurge/reinstall_debs.sh" for a ready made recipe.

diff -ru1N --exclude=.DS_Store localepurge-0.0.37/debian/localepurge.8 localepurge-0.0.37-fink/debian/localepurge.8
--- localepurge-0.0.37/debian/localepurge.8 Sun Apr 14 09:57:55 2002
+++ localepurge-0.0.37-fink/debian/localepurge.8 Sat Dec 11 16:17:16 2004
@@ -18,3 +18,3 @@
in the
-.BR /etc/locale.nopurge
+.BR @PREFIX@/etc/locale.nopurge
configuration file. Unless
@@ -25,3 +25,3 @@
Any other directory (or file) in
-.BR /usr/share/locale
+.BR @PREFIX@/share/locale
not containing a subdirectory named
@@ -33,3 +33,3 @@
addition to locale files. All actions are specified in the
-.BR /etc/locale.nopurge
+.BR @PREFIX@/etc/locale.nopurge
configuration file. Since
@@ -71,3 +71,3 @@
which are either commented out or not even listed at all in
-.BR /etc/locale.nopurge
+.BR @PREFIX@/etc/locale.nopurge
will be irreversibly deleted. The only way to
@@ -75,3 +75,3 @@
Debian packages containing them. See
-.BR /usr/share/doc/localepurge/reinstall_debs.sh
+.BR @PREFIX@/share/doc/localepurge/reinstall_debs.sh
for a recipe.
@@ -99,3 +99,3 @@
.SH FILES
-.BR /etc/locale.nopurge
+.BR @PREFIX@/etc/locale.nopurge
.SH SEE ALSO
@@ -105,5 +105,5 @@
.br
-.BR /usr/share/doc/localepurge/README.debian
+.BR @PREFIX@/share/doc/localepurge/README.debian
.br
-.BR /usr/share/doc/localepurge/reinstall_debs.sh
+.BR @PREFIX@/share/doc/localepurge/reinstall_debs.sh
.SH AUTHOR
diff -ru1N --exclude=.DS_Store localepurge-0.0.37/debian/localepurge.config localepurge-0.0.37-fink/debian/localepurge.config
--- localepurge-0.0.37/debian/localepurge.config Sun Apr 14 10:14:01 2002
+++ localepurge-0.0.37-fink/debian/localepurge.config Sat Dec 11 16:37:04 2004
@@ -7,7 +7,7 @@

-if [ ! -f /var/cache/localepurge/defaultlist ]; then
- if [ ! -d /var/cache/localepurge ]; then
- mkdir -m 755 /var/cache/localepurge
+if [ ! -f @PREFIX@/var/cache/localepurge/defaultlist ]; then
+ if [ ! -d @PREFIX@/var/cache/localepurge ]; then
+ mkdir -m 755 @PREFIX@/var/cache/localepurge
fi
- cat << ENDOFLIST > /var/cache/localepurge/defaultlist
+ cat << ENDOFLIST > @PREFIX@/var/cache/localepurge/defaultlist
af
@@ -281,3 +281,7 @@

-. /usr/share/debconf/confmodule
+if [ -f @PREFIX@/share/debconf/confmodule ]; then
+. @PREFIX@/share/debconf/confmodule
+else
+ echo "WARNING: @PREFIX@/share/debconf/confmodule NOT FOUND."
+fi

@@ -290,5 +294,5 @@

-if [ -d /usr/share/locale ]; then
- for locale in `cd /usr/share/locale; ls .`
- do if [ -d /usr/share/locale/$locale/LC_MESSAGES ]; then
+if [ -d @PREFIX@/share/locale ]; then
+ for locale in `cd @PREFIX@/share/locale; ls .`
+ do if [ -d @PREFIX@/share/locale/$locale/LC_MESSAGES ]; then
echo $locale; fi; done >> "$TEMPFILE"
@@ -296,4 +300,4 @@

-if [ -d /usr/share/i18n/locales ]; then
- ls -1 /usr/share/i18n/locales/??_* | cut -d '/' -f 6 >> "$TEMPFILE"
+if [ -d @PREFIX@/share/i18n/locales ]; then
+ ls -1 @PREFIX@/share/i18n/locales/??_* | cut -d '/' -f 6 >> "$TEMPFILE"
fi
@@ -305,4 +309,4 @@

-if [ -f /etc/locale.gen ]; then
- grep ^[a-z] /etc/locale.gen | cut -d" " -f1 > "$LOCALEGEN"
+if [ -f @PREFIX@/etc/locale.gen ]; then
+ grep ^[a-z] @PREFIX@/etc/locale.gen | cut -d" " -f1 > "$LOCALEGEN"
fi
@@ -311,4 +315,4 @@

-if [ -f /etc/locale.nopurge ]; then
- grep ^[a-z] /etc/locale.nopurge | cut -d" " -f1 >> "$LOCALEGEN"
+if [ -f @PREFIX@/etc/locale.nopurge ]; then
+ grep ^[a-z] @PREFIX@/etc/locale.nopurge | cut -d" " -f1 >> "$LOCALEGEN"
fi
@@ -326,4 +330,4 @@

-if [ -f /var/cache/localepurge/defaultlist ]; then
- cat /var/cache/localepurge/defaultlist >> "$TEMPFILE"
+if [ -f @PREFIX@/var/cache/localepurge/defaultlist ]; then
+ cat @PREFIX@/var/cache/localepurge/defaultlist >> "$TEMPFILE"
fi
@@ -332,4 +336,4 @@

-if [ -f /var/cache/localepurge/localelist ]; then
- cat /var/cache/localepurge/localelist >> "$TEMPFILE"
+if [ -f @PREFIX@/var/cache/localepurge/localelist ]; then
+ cat @PREFIX@/var/cache/localepurge/localelist >> "$TEMPFILE"
fi
@@ -342,10 +346,10 @@

-if [ ! -f /var/cache/localepurge/localelist ]; then
- if [ ! -d /var/cache/localepurge ]; then
- mkdir -m 755 /var/cache/localepurge
+if [ ! -f @PREFIX@/var/cache/localepurge/localelist ]; then
+ if [ ! -d @PREFIX@/var/cache/localepurge ]; then
+ mkdir -m 755 @PREFIX@/var/cache/localepurge
fi
- sort -u "$TEMPFILE" > /var/cache/localepurge/localelist
+ sort -u "$TEMPFILE" > @PREFIX@/var/cache/localepurge/localelist
else
- mv /var/cache/localepurge/localelist /var/cache/localepurge/localelist-old
- sort -u "$TEMPFILE" > /var/cache/localepurge/localelist
+ mv @PREFIX@/var/cache/localepurge/localelist @PREFIX@/var/cache/localepurge/localelist-old
+ sort -u "$TEMPFILE" > @PREFIX@/var/cache/localepurge/localelist
fi
diff -ru1N --exclude=.DS_Store localepurge-0.0.37/debian/localepurge.templates localepurge-0.0.37-fink/debian/localepurge.templates
--- localepurge-0.0.37/debian/localepurge.templates Sun Apr 14 10:22:01 2002
+++ localepurge-0.0.37-fink/debian/localepurge.templates Sat Dec 11 16:22:31 2004
@@ -10,3 +10,3 @@
So please select both for best support of your national
- language settings. The entries from /etc/locale.gen will be
+ language settings. The entries from @PREFIX@/etc/locale.gen will be
preselected if no prior configuration has been successfully completed.
@@ -38,3 +38,3 @@
it with the command "dpkg-reconfigure localepurge". The configured entries
- from /etc/locale.gen of the locales package will then be automagically
+ from @PREFIX@/etc/locale.gen of the locales package will then be automagically
preselected.
diff -ru1N --exclude=.DS_Store localepurge-0.0.37/debian/postinst localepurge-0.0.37-fink/debian/postinst
--- localepurge-0.0.37/debian/postinst Mon Jan 14 15:56:30 2002
+++ localepurge-0.0.37-fink/debian/postinst Sat Dec 11 16:24:43 2004
@@ -7,3 +7,3 @@

-CACHEDIR=/var/cache/localepurge
+CACHEDIR=@PREFIX@/var/cache/localepurge
DEFAULTLIST=$CACHEDIR/defaultlist
@@ -21,5 +21,9 @@

-CONFIGFILE=/etc/locale.nopurge
+CONFIGFILE=@PREFIX@/etc/locale.nopurge

-. /usr/share/debconf/confmodule
+if [ -f @PREFIX@/share/debconf/confmodule ]; then
+. @PREFIX@/share/debconf/confmodule
+else
+ echo "WARNING: @PREFIX@/share/debconf/confmodule NOT FOUND."
+fi

@@ -114,3 +118,3 @@
# present on the system and this will result in the definite loss
-# of all locale data in "/usr/share/locale/". You should know what
+# of all locale data in "@PREFIX@/share/locale/". You should know what
# you are doing or reconfigure "localepurge" as described above.
diff -ru1N --exclude=.DS_Store localepurge-0.0.37/debian/postrm localepurge-0.0.37-fink/debian/postrm
--- localepurge-0.0.37/debian/postrm Sun Apr 14 10:32:02 2002
+++ localepurge-0.0.37-fink/debian/postrm Sat Dec 11 16:25:40 2004
@@ -4,7 +4,7 @@

-if [ "$1" = purge -a -e /usr/share/debconf/confmodule ]; then
- . /usr/share/debconf/confmodule
+if [ "$1" = purge -a -e @PREFIX@/share/debconf/confmodule ]; then
+ . @PREFIX@/share/debconf/confmodule
db_purge
- rm -rf /var/cache/localepurge
- rm -f /etc/locale.nopurge
+ rm -rf @PREFIX@/var/cache/localepurge
+ rm -f @PREFIX@/etc/locale.nopurge

@@ -18,5 +18,5 @@
echo "apt-get -u --reinstall --fix-missing install \`dpkg -S LC_MESSAGES | cut -d: -f1 | tr ', ' '\n' | sort -u\`" > $DEBREINSTALL
-mv $DEBREINSTALL /var/tmp/reinstall_debs.sh
+mv $DEBREINSTALL @PREFIX@/var/tmp/reinstall_debs.sh

-echo " For your further usage, the file \"/var/tmp/reinstall_debs.sh\""
+echo " For your further usage, the file \"@PREFIX@/var/tmp/reinstall_debs.sh\""
echo " contains an enhanced version the command line printed out above."
diff -ru1N --exclude=.DS_Store localepurge-0.0.37/debian/preinst localepurge-0.0.37-fink/debian/preinst
--- localepurge-0.0.37/debian/preinst Sun Apr 14 09:06:04 2002
+++ localepurge-0.0.37-fink/debian/preinst Sat Dec 11 16:27:23 2004
@@ -4,12 +4,12 @@

-if [ -f /etc/locale.purge ]
+if [ -f @PREFIX@/etc/locale.purge ]
then
- /bin/mv /etc/locale.purge /etc/locale.purge-obsolete
- /usr/bin/mail -n -s "Upgrade of localepurge" root@localhost << EOF
- The configuration file /etc/locale.purge has become obsolete and
+ /bin/mv @PREFIX@/etc/locale.purge @PREFIX@/etc/locale.purge-obsolete
+ echo'
+ The configuration file @PREFIX@/etc/locale.purge has become obsolete and
can be safely removed from your system. As reminder, it has been
- renamed to /etc/locale.purge-obsolete.
+ renamed to @PREFIX@/etc/locale.purge-obsolete.

Note please, that the removal mechanism of localepurge has been
- inverted. It now keeps locales as listed in "/etc/locale.nopurge"
+ inverted. It now keeps locales as listed in "@PREFIX@/etc/locale.nopurge"
and deletes all else locale directories containing a LC_MESSAGES
@@ -18,3 +18,3 @@
Yours truly, Root
-EOF
+'
fi
diff -ru1N --exclude=.DS_Store localepurge-0.0.37/etc/apt/apt.conf.d/99-localepurge localepurge-0.0.37-fink/etc/apt/apt.conf.d/99-localepurge
--- localepurge-0.0.37/etc/apt/apt.conf.d/99-localepurge Tue Oct 2 18:21:04 2001
+++ localepurge-0.0.37-fink/etc/apt/apt.conf.d/99-localepurge Sat Dec 11 16:27:57 2004
@@ -4,3 +4,3 @@
{
-Post-Invoke {"if [ -x /usr/sbin/localepurge ]; then /usr/sbin/localepurge; else exit 0; fi";};
+Post-Invoke {"if [ -x @PREFIX@/sbin/localepurge ]; then @PREFIX@/sbin/localepurge; else exit 0; fi";};
};
\ No newline at end of file
diff -ru1N --exclude=.DS_Store localepurge-0.0.37/usr/sbin/localepurge localepurge-0.0.37-fink/usr/sbin/localepurge
--- localepurge-0.0.37/usr/sbin/localepurge Fri Feb 8 16:09:30 2002
+++ localepurge-0.0.37-fink/usr/sbin/localepurge Sat Dec 11 16:29:51 2004
@@ -3,3 +3,3 @@
# Deleting all locale files on system
-# *not* listed in /etc/locale.nopurge
+# *not* listed in @PREFIX@/etc/locale.nopurge

@@ -7,4 +7,4 @@

-LOCALEDIR=/usr/share/locale
-MANPAGEDIR=/usr/share/man
+LOCALEDIR=@PREFIX@/share/locale
+MANPAGEDIR=@PREFIX@/share/man

@@ -12,8 +12,8 @@

-if [ ! -f /etc/locale.nopurge ]
+if [ ! -f @PREFIX@/etc/locale.nopurge ]
then
- echo " No /etc/locale.nopurge file present, exiting ..."
+ echo " No @PREFIX@/etc/locale.nopurge file present, exiting ..."
exit 0
else
- if [ `grep -x ^NEEDSCONFIGFIRST /etc/locale.nopurge` ]
+ if [ `grep -x ^NEEDSCONFIGFIRST @PREFIX@/etc/locale.nopurge` ]
then
@@ -38,3 +38,3 @@

- if [ `grep -x ^VERBOSE /etc/locale.nopurge` ]; then
+ if [ `grep -x ^VERBOSE @PREFIX@/etc/locale.nopurge` ]; then
echo " localepurge: processing locale files ..."
@@ -44,5 +44,5 @@
do
- if [ ! `grep -x ^$LOCALE /etc/locale.nopurge` ]; then
+ if [ ! `grep -x ^$LOCALE @PREFIX@/etc/locale.nopurge` ]; then
if [ -d $LOCALEDIR/$LOCALE/LC_MESSAGES ]; then
- if [ `grep -x ^VERBOSE /etc/locale.nopurge` ]; then
+ if [ `grep -x ^VERBOSE @PREFIX@/etc/locale.nopurge` ]; then
echo " Purging $LOCALEDIR/$LOCALE"
@@ -54,3 +54,3 @@

- if [ `grep -x ^SHOWFREEDSPACE /etc/locale.nopurge` ]; then
+ if [ `grep -x ^SHOWFREEDSPACE @PREFIX@/etc/locale.nopurge` ]; then
LOCALEAFTER=`du -s $LOCALEDIR | cut -f1`
@@ -65,3 +65,3 @@

-if [ -d $MANPAGEDIR ] && [ `grep -x ^MANDELETE /etc/locale.nopurge` ]; then
+if [ -d $MANPAGEDIR ] && [ `grep -x ^MANDELETE @PREFIX@/etc/locale.nopurge` ]; then

@@ -69,3 +69,3 @@

- if [ `grep -x ^VERBOSE /etc/locale.nopurge` ]; then
+ if [ `grep -x ^VERBOSE @PREFIX@/etc/locale.nopurge` ]; then
echo " localepurge: processing man pages ..."
@@ -75,5 +75,5 @@
do
- if [ ! `grep -x ^$LOCALE /etc/locale.nopurge` ]; then
+ if [ ! `grep -x ^$LOCALE @PREFIX@/etc/locale.nopurge` ]; then
if [ -d $MANPAGEDIR/$LOCALE ]; then
- if [ `grep -x ^VERBOSE /etc/locale.nopurge` ]; then
+ if [ `grep -x ^VERBOSE @PREFIX@/etc/locale.nopurge` ]; then
echo " Purging $MANPAGEDIR/$LOCALE"
@@ -85,3 +85,3 @@

- if [ `grep -x ^SHOWFREEDSPACE /etc/locale.nopurge` ]; then
+ if [ `grep -x ^SHOWFREEDSPACE @PREFIX@/etc/locale.nopurge` ]; then
MANAFTER=`du -s $MANPAGEDIR | cut -f1`
@@ -96,3 +96,3 @@

-if [ `grep -x ^SHOWFREEDSPACE /etc/locale.nopurge` ]; then
+if [ `grep -x ^SHOWFREEDSPACE @PREFIX@/etc/locale.nopurge` ]; then
if [ $MANTOTAL ] && [ $LOCALETOTAL ]; then

localepurge _unstable_ port .patch