Ajout ack, alternative à grep
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 10 Sep 2011 17:19:19 +0000 (17:19 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 10 Sep 2011 17:19:19 +0000 (17:19 +0000)
config/packages-list
stage3/hv-install-1
stage3/packages-update
stage3/pkg/ack [new file with mode: 0644]

index 2fbffaa..00e43b0 100644 (file)
@@ -4,6 +4,7 @@
 # as well the corresponding patches, if needed.
 
 ABIWORD="abiword-2.8.6"
+ACK="ack-1.94"
 ACPID="acpid-2.0.9"
 AGG="agg-2.5"
 ALSA_LIB="alsa-lib-1.0.21"
@@ -352,7 +353,6 @@ PERL_MOD_DIGEST_SHA1="Digest-SHA1-2.13"
 PERL_MOD_LWP="libwww-perl-6.01"
 PERL_MOD_URI="URI-1.58"
 PERL_MOD_NET_DNS="Net-DNS-0.66"
-
 PHP="php-5.3.3"
 PIXMAN="pixman-0.22.0"
 POLKIT="polkit-0.99"
index 6220b56..2026110 100755 (executable)
@@ -80,6 +80,9 @@ ipkg -m pm ${PERL_MOD_PDL}
 ipkg -m pm ${PERL_MOD_XML_WRITER}
 ipkg -m pm ${PERL_MOD_XML_PARSER}
 
+# Grep alternative
+ipkg -m noac ${ACK}
+
 ipkg ${INTLTOOL}
 ipkg ${PYTHON} "--enable-shared"
 
index ae5cbe5..a9cf8b1 100755 (executable)
@@ -70,6 +70,8 @@ fpkg -m sf -s "pdl" ${PERL_MOD_PDL}
 fpkg -m pm -s "J/JO/JOSEPHW" ${PERL_MOD_XML_WRITER}
 fpkg -m pm -s "C/CH/CHORNY"  ${PERL_MOD_XML_PARSER}
 
+fpkg -m hv ${ACK}
+
 fpkg -m gnome ${INTLTOOL}
 fpkg ${PYTHON} "http://www.python.org/ftp/python/$(get_pkg_ver ${PYTHON})"
 
diff --git a/stage3/pkg/ack b/stage3/pkg/ack
new file mode 100644 (file)
index 0000000..a421df9
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+hvbuild()
+{
+    install -v -m 755 ${LFS_TMP}/${PACKAGE}/ack /usr/bin
+    string_add  "alias ack='ack --pager=\"less -RFX\"'" /etc/bashrc
+}