All pastes #617354 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-13 05:21 UTC
rendered paste body
Index: Makefile
===================================================================
--- Makefile    (revision 7908)
+++ Makefile    (working copy)
@@ -30,6 +30,14 @@
   URL:=ftp://ftp.astron.com/pub/file/
 endef

+define Package/file
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=+libmagic
+  TITLE:=File type determination library
+  URL:=ftp://ftp.astron.com/pub/file/
+endef
+
 define Build/Configure
    $(call Build/Configure/Default, \
        --enable-shared \
@@ -64,4 +72,14 @@
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmagic.so.* $(1)/usr/lib/
 endef

+define Package/file/install
+   $(INSTALL_DIR) $(1)/usr/bin
+   $(INSTALL_DIR) $(1)/usr/share/file
+   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/file \
+       $(1)/usr/bin
+   $(INSTALL_DATA) $(PKG_BUILD_DIR)/magic/Magdir/linux \
+       $(1)/usr/share/file/magic
+endef
+
 $(eval $(call BuildPackage,libmagic))
+$(eval $(call BuildPackage,file))