Patchwork [1/1] infozip: new package

login
register
mail settings
Submitter Jan Pedersen
Date Jan. 11, 2013, 9:45 a.m.
Message ID <1357897555-9196-1-git-send-email-jp@jp-embedded.com>
Download mbox | patch
Permalink /patch/211261/
State Superseded
Headers show

Comments

Jan Pedersen - Jan. 11, 2013, 9:45 a.m.
This commit adds a package for infozip, compression and file
packaging/archive utility.

Signed-off-by: Jan Pedersen <jp@jp-embedded.com>
---
 package/Config.in          |    1 +
 package/infozip/Config.in  |   10 ++++++++++
 package/infozip/infozip.mk |   21 +++++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 package/infozip/Config.in
 create mode 100644 package/infozip/infozip.mk
Arnout Vandecappelle - Jan. 11, 2013, 8:25 p.m.
On 11/01/13 10:45, Jan Pedersen wrote:
> This commit adds a package for infozip, compression and file
> packaging/archive utility.
>
> Signed-off-by: Jan Pedersen<jp@jp-embedded.com>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(as a reminder to Peter)

  Two small remarks below.

> ---
>   package/Config.in          |    1 +
>   package/infozip/Config.in  |   10 ++++++++++
>   package/infozip/infozip.mk |   21 +++++++++++++++++++++
>   3 files changed, 32 insertions(+)
>   create mode 100644 package/infozip/Config.in
>   create mode 100644 package/infozip/infozip.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index bd1db6b..1c2b228 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -14,6 +14,7 @@ endif
>   source "package/lzop/Config.in"
>   source "package/lzma/Config.in"
>   source "package/xz/Config.in"
> +source "package/infozip/Config.in"

  Packages should be sorted alpabetically, so before lzop.

>   endmenu
>
>   menu "Debugging, profiling and benchmark"
> diff --git a/package/infozip/Config.in b/package/infozip/Config.in
> new file mode 100644
> index 0000000..1a4b756
> --- /dev/null
> +++ b/package/infozip/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_INFOZIP
> +	bool "infozip"
> +	help
> +	  Zip is a compression and file packaging/archive utility.
> +	  Although highly compatible both with PKWARE's PKZIP and
> +	  PKUNZIP utilities for MS-DOS and with Info-ZIP's own UnZip,
> + 	  our primary objectives have been portability and other-than-MSDOS
> +	  functionality.
> +
> +	  http://infozip.sourceforge.net/Zip.html
> diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk
> new file mode 100644
> index 0000000..5258a7a
> --- /dev/null
> +++ b/package/infozip/infozip.mk
> @@ -0,0 +1,21 @@
> +#############################################################
> +#
> +# infozip
> +#
> +#############################################################
> +INFOZIP_VERSION = 30
> +INFOZIP_SOURCE = zip$(INFOZIP_VERSION).tgz
> +INFOZIP_SITE = ftp://ftp.info-zip.org/pub/infozip/src
> +INFOZIP_LICENSE = Info-ZIP
> +INFOZIP_LICENSE_FILES = LICENSE
> +
> +define INFOZIP_BUILD_CMDS
> +	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile generic
> +endef
> +
> +define INFOZIP_INSTALL_TARGET_CMDS
> +	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install prefix=$(TARGET_DIR)/usr
> +endef
> +
> +$(eval $(generic-package))
> +

  Redundant empty line at end of file.

  Regards,
  Arnout

Patch

diff --git a/package/Config.in b/package/Config.in
index bd1db6b..1c2b228 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -14,6 +14,7 @@  endif
 source "package/lzop/Config.in"
 source "package/lzma/Config.in"
 source "package/xz/Config.in"
+source "package/infozip/Config.in"
 endmenu
 
 menu "Debugging, profiling and benchmark"
diff --git a/package/infozip/Config.in b/package/infozip/Config.in
new file mode 100644
index 0000000..1a4b756
--- /dev/null
+++ b/package/infozip/Config.in
@@ -0,0 +1,10 @@ 
+config BR2_PACKAGE_INFOZIP
+	bool "infozip"
+	help
+	  Zip is a compression and file packaging/archive utility. 
+	  Although highly compatible both with PKWARE's PKZIP and 
+	  PKUNZIP utilities for MS-DOS and with Info-ZIP's own UnZip, 
+ 	  our primary objectives have been portability and other-than-MSDOS 
+	  functionality. 
+
+	  http://infozip.sourceforge.net/Zip.html
diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk
new file mode 100644
index 0000000..5258a7a
--- /dev/null
+++ b/package/infozip/infozip.mk
@@ -0,0 +1,21 @@ 
+#############################################################
+#
+# infozip
+#
+#############################################################
+INFOZIP_VERSION = 30
+INFOZIP_SOURCE = zip$(INFOZIP_VERSION).tgz
+INFOZIP_SITE = ftp://ftp.info-zip.org/pub/infozip/src
+INFOZIP_LICENSE = Info-ZIP
+INFOZIP_LICENSE_FILES = LICENSE
+
+define INFOZIP_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile generic
+endef
+
+define INFOZIP_INSTALL_TARGET_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install prefix=$(TARGET_DIR)/usr
+endef
+
+$(eval $(generic-package))
+