summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-22 23:07:39 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-22 23:07:39 -0300
commitb7efc5798454428b73c68e474abe6fe5b7963e41 (patch)
treec24a2d3338d4c15854301641a91947c61deff59c
parent3db6b4547b2e25ac2f250781e63754a7319164bb (diff)
Purge unneded locales2011.05.22
-rw-r--r--Makefile7
-rwxr-xr-xcreatetorrent1
-rwxr-xr-xdownload-repo.sh1
-rw-r--r--overlay/etc/locale.nopurge52
-rw-r--r--packages.i6861
-rw-r--r--packages.x86_641
6 files changed, 61 insertions, 2 deletions
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