* [Buildroot] [v2 1/1] dos2unix: new package
@ 2014-09-11 7:43 David Bachelart
2014-09-11 9:28 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: David Bachelart @ 2014-09-11 7:43 UTC (permalink / raw)
To: buildroot
Signed-off-by: David Bachelart <david.bachelart@bbright.com>
---
package/Config.in.host | 1 +
package/dos2unix/Config.in.host | 6 ++++++
package/dos2unix/dos2unix.mk | 23 +++++++++++++++++++++++
3 files changed, 30 insertions(+)
create mode 100644 package/dos2unix/Config.in.host
create mode 100644 package/dos2unix/dos2unix.mk
diff --git a/package/Config.in.host b/package/Config.in.host
index e05bbfa..2c88c0b 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,6 +1,7 @@
menu "Host utilities"
source "package/dfu-util/Config.in.host"
+ source "package/dos2unix/Config.in.host"
source "package/dosfstools/Config.in.host"
source "package/e2fsprogs/Config.in.host"
source "package/e2tools/Config.in.host"
diff --git a/package/dos2unix/Config.in.host b/package/dos2unix/Config.in.host
new file mode 100644
index 0000000..946271b
--- /dev/null
+++ b/package/dos2unix/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_DOS2UNIX
+ bool "host dos2unix"
+ help
+ dos2unix converts text file line endings between CRLF and LF
+
+ http://freshmeat.net/projects/dos2unix
diff --git a/package/dos2unix/dos2unix.mk b/package/dos2unix/dos2unix.mk
new file mode 100644
index 0000000..ad47e61
--- /dev/null
+++ b/package/dos2unix/dos2unix.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# dos2unix
+#
+################################################################################
+
+DOS2UNIX_VERSION = 6.0.6
+DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix/
+
+DOS2UNIX_LICENSE = BSD-2c
+DOS2UNIX_LICENSE_FILES = COPYING.txt
+
+define HOST_DOS2UNIX_BUILD_CMDS
+ $(HOST_CONFIGURE_OPTS) \
+ make -C $(@D)
+endef
+
+define HOST_DOS2UNIX_INSTALL_CMDS
+ $(HOST_CONFIGURE_OPTS) \
+ make -C $(@D) install DESTDIR=$(HOST_DIR)
+endef
+
+$(eval $(host-generic-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [v2 1/1] dos2unix: new package
2014-09-11 7:43 [Buildroot] [v2 1/1] dos2unix: new package David Bachelart
@ 2014-09-11 9:28 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-09-11 9:28 UTC (permalink / raw)
To: buildroot
Dear David Bachelart,
On Thu, 11 Sep 2014 09:43:57 +0200, David Bachelart wrote:
> diff --git a/package/dos2unix/Config.in.host b/package/dos2unix/Config.in.host
> new file mode 100644
> index 0000000..946271b
> --- /dev/null
> +++ b/package/dos2unix/Config.in.host
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_HOST_DOS2UNIX
> + bool "host dos2unix"
> + help
Indentation: one tab.
> + dos2unix converts text file line endings between CRLF and LF
> +
> + http://freshmeat.net/projects/dos2unix
Indentation: one tab + two spaces. See the Buildroot manual, "Coding
style" section for details.
> diff --git a/package/dos2unix/dos2unix.mk b/package/dos2unix/dos2unix.mk
> new file mode 100644
> index 0000000..ad47e61
> --- /dev/null
> +++ b/package/dos2unix/dos2unix.mk
> @@ -0,0 +1,23 @@
> +################################################################################
> +#
> +# dos2unix
> +#
> +################################################################################
> +
> +DOS2UNIX_VERSION = 6.0.6
> +DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix/
There is a 7.0 version. Any reason not to use it?
> +
> +DOS2UNIX_LICENSE = BSD-2c
> +DOS2UNIX_LICENSE_FILES = COPYING.txt
This looks good;
> +
> +define HOST_DOS2UNIX_BUILD_CMDS
> + $(HOST_CONFIGURE_OPTS) \
> + make -C $(@D)
Indent with tab, and maybe put on one line since it's not too long. And
use $(MAKE), not make.
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
> +endef
> +
> +define HOST_DOS2UNIX_INSTALL_CMDS
> + $(HOST_CONFIGURE_OPTS) \
> + make -C $(@D) install DESTDIR=$(HOST_DIR)
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
install DESTDIR=$(HOST_DIR)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-11 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-11 7:43 [Buildroot] [v2 1/1] dos2unix: new package David Bachelart
2014-09-11 9:28 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.