]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Converted lfs/file to new LFS format.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Dec 2008 18:58:51 +0000 (19:58 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Dec 2008 18:58:51 +0000 (19:58 +0100)
lfs/file

index 95964b7e8b72dfe2ddf94b5685a6be38c893d0fd..0cc644f3757a6e71fc63c5bbad0603ef706d1b66 100644 (file)
--- a/lfs/file
+++ b/lfs/file
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007, 2008 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   = file
 VER        = 4.24
+PKG_VER    = 0
 
 THISAPP    = $(PKG_NAME)-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -33,27 +34,50 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
 OBJECT     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 
+MAINTAINER =
+GROUP      = System/Tools
+EXTRA      = no
+DEBUG      = no
+DEPS       =
+
+URL        = http://www.darwinsys.com/file/
+LICENSE    = BSD
+SHORT_DESC = A utility for determining file types.
+
+define LONG_DESC
+       The file command is used to identify a particular file according to the \
+       type of data contained by the file.  File can identify many different \
+       file types, including ELF binaries, system libraries, RPM packages, and \
+       different graphics formats.
+endef
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
 
 objects = $(DL_FILE)
 
-install : $(OBJECT)
+download: $(objects)
+
+install: $(OBJECT)
 
-download : $(objects)
+package:
+       @$(DO_PACKAGE)
 
-$(objects) :
+$(objects):
        @$(LOAD)
 
 ###############################################################################
 # Installation Details
 ###############################################################################
 
-$(OBJECT) : 
+$(OBJECT): $(objects)
        @$(PREBUILD)
-       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure --prefix=/usr --disable-static
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && \
+               ./configure \
+                       --prefix=/usr \
+                       --disable-static
        cd $(DIR_APP) && make $(PARALLELISMFLAGS)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)