From b7efc5798454428b73c68e474abe6fe5b7963e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Sun, 22 May 2011 23:07:39 -0300 Subject: Purge unneded locales --- Makefile | 7 +++++-- createtorrent | 1 + download-repo.sh | 1 + overlay/etc/locale.nopurge | 52 ++++++++++++++++++++++++++++++++++++++++++++++ packages.i686 | 1 + packages.x86_64 | 1 + 6 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 overlay/etc/locale.nopurge diff --git a/Makefile b/Makefile index c18e84c..6fd3a5f 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,7 @@ $(NETname): base-fs mkarchiso -v -C $(PACCONFIG) -L $(LABEL) -P $(PUBLISHER) -A $(APPLICATION) -D $(INSTALL_DIR) -c $(COMPRESS) iso $(WORKDIR) $@ # This is the main rule for make the working filesystem. -base-fs: root-image bootfiles initcpio overlay iso-mounts - +base-fs: root-image bootfiles initcpio overlay purge iso-mounts # Rules for make the root-image for base filesystem. root-image: $(WORKDIR)/root-image/.arch-chroot @@ -74,6 +73,10 @@ overlay: mkdir -p $(WORKDIR)/overlay/etc/pacman.d cp -r overlay $(WORKDIR)/ +purge: + cp overlay/etc/locale.nopurge $(WORKDIR)/root-image/etc/ + chroot $(WORKDIR)/root-image localepurge + # Rule to process isomounts file. iso-mounts: $(WORKDIR)/iso/$(INSTALL_DIR)/isomounts $(WORKDIR)/iso/$(INSTALL_DIR)/isomounts: isomounts root-image diff --git a/createtorrent b/createtorrent index fccf5f5..9f7c736 100755 --- a/createtorrent +++ b/createtorrent @@ -5,6 +5,7 @@ MOTTO=$(cat motto) for iso in $@; do if [ -f ${iso} ]; then + if [ -f ${iso}.torrent ]; then rm -vf ${iso}.torrent; fi mktorrent -c "${MOTTO}" \ -a http://tracker.openbittorrent.com/announce \ -a http://tracker.publicbt.com/announce \ diff --git a/download-repo.sh b/download-repo.sh index fb09f01..05b320f 100755 --- a/download-repo.sh +++ b/download-repo.sh @@ -61,6 +61,7 @@ if [ -n "$PKGS" ]; then if [ "$REPO_CHANGED" = "y" ]; then wget -nv "$baseurl/$REPO.db" -O "$DEST/$REPO.db" fi + wget -nv "${baseurl/core/libre}/libre.db" -O "$DEST/libre.db" else echo "No packages to download... what'd you break?" exit 1 diff --git a/overlay/etc/locale.nopurge b/overlay/etc/locale.nopurge new file mode 100644 index 0000000..8bd5dc1 --- /dev/null +++ b/overlay/etc/locale.nopurge @@ -0,0 +1,52 @@ +#################################################### +# This is the configuration file for localepurge(8). +#################################################### +# Comment this to enable localepurge. +# NO COMMENT IT IF YOU ARE NOT SURE WHAT ARE YOU DOING +# THIS APP DO NOT ASK FOR CONFIRMATION + +#NEEDSCONFIGFIRST + +#################################################### +# Uncommenting this string enables removal of localized +# man pages based on the configuration information for +# locale files defined below: + +MANDELETE + +#################################################### +# Uncommenting this string causes localepurge to simply delete +# locales which have newly appeared on the system without +# bothering you about it: + +DONTBOTHERNEWLOCALE + +##################################################### +# Commenting out this string enables faster but less +# accurate calculation of freed disk space: + +#QUICKNDIRTYCALC + +#################################################### +# Uncommenting this string enables display of freed disk +# space if localepurge has purged any superfluous data: + +SHOWFREEDSPACE + +##################################################### +# Commenting out this string disables verbose output: + +#VERBOSE + +##################################################### +# You like Colors? + +#NOCOLOR + +##################################################### +# You can use the -v -d -nc options in command line. + +##################################################### +# Following locales won't be deleted from this system +# for example: +C diff --git a/packages.i686 b/packages.i686 index f34f532..7b1412c 100644 --- a/packages.i686 +++ b/packages.i686 @@ -36,3 +36,4 @@ wireless_tools wpa_actiond wpa_supplicant zile +localepurge diff --git a/packages.x86_64 b/packages.x86_64 index 0a79879..1bc3c7f 100644 --- a/packages.x86_64 +++ b/packages.x86_64 @@ -37,3 +37,4 @@ wireless_tools wpa_actiond wpa_supplicant zile +localepurge -- cgit v1.2.3