]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Converted lfs/grep to new lfs format.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Feb 2009 21:23:56 +0000 (22:23 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Feb 2009 21:23:56 +0000 (22:23 +0100)
lfs/grep

index 7754156326a1e40d2b70544665c29d8ab2501678..c5fd34eaabce1db077525b6268ed337b257caf56 100644 (file)
--- a/lfs/grep
+++ b/lfs/grep
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -26,6 +26,7 @@ include Config
 
 PKG_NAME   = grep
 VER        = 2.5.3
+PKG_VER    = 0
 
 THISAPP    = $(PKG_NAME)-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -33,6 +34,23 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
 OBJECT     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 
+
+MAINTAINER =
+GROUP      = Applications/Text
+EXTRA      = no
+DEBUG      = no
+DEPS       =
+
+URL        = http://www.gnu.org/software/grep/
+LICENSE    = GPLv3+
+SHORT_DESC = A pattern matching utilities.
+
+define LONG_DESC
+       The GNU versions of commonly used grep utilities. Grep searches through \
+       textual input for lines which contain a match to a specified pattern and then \
+       prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
+endef
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -41,20 +59,26 @@ objects = $(DL_FILE) \
        $(THISAPP)-upstream_fixes-1.patch \
        $(THISAPP)-debian_fixes-1.patch
 
-install : $(OBJECT)
+download: $(objects)
+
+info:
+       $(DO_PKG_INFO)
+
+install: $(OBJECT)
 
-download : $(objects)
+package:
+       @$(DO_PACKAGE)
 
-$(objects) :
+$(objects):
        @$(LOAD)
 
 ###############################################################################
 # Installation Details
 ###############################################################################
 
-$(OBJECT) : 
+$(OBJECT): $(objects)
        @$(PREBUILD)
-       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
 
 ifeq "$(STAGE)" "toolchain"
        # --without-included-regex makes Grep use libc for regex. This gets rid of