dos2unix: new package
PATCH 1/1 dos2unix: new package
--- package/Config.in | 1 + package/Config.in.host | 1 + package/dos2unix/Config.in | 6 ++++++ package/dos2unix/Config.in.host | 6 ++++++ package/dos2unix/dos2unix.mk | 40 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 package/dos2unix/Config.in create mode 100644 package/dos2unix/Config.in.host create mode 100644 package/dos2unix/dos2unix.mk
package/Config.in +1 -0
@@ -1128,6 +1128,7 @@ comment "Utilities" source "package/at/Config.in" source "package/ccrypt/Config.in" source "package/dialog/Config.in" + source "package/dos2unix/Config.in" source "package/dtach/Config.in" source "package/file/Config.in" source "package/gnupg/Config.in"
package/Config.in.host +1 -0
@@ -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"
package/dos2unix/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_DOS2UNIX + bool "dos2unix" + help + dos2unix converts text file line endings between CRLF and LF + + http://freshmeat.net/projects/dos2unix
package/dos2unix/Config.in.host new file +6 -0
@@ -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
package/dos2unix/dos2unix.mk new file +40 -0
@@ -0,0 +1,40 @@ +################################################################################ +# +# dos2unix +# +################################################################################ + +DOS2UNIX_VERSION = 6.0.6 +DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix/ + +DOS2UNIX_LICENSE = BSD-2c +DOS2UNIX_LICENSE_FILES = COPYING.txt + +define DOS2UNIX_BUILD_CMDS + (cd $(DOS2UNIX_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ + make) +endef + +define DOS2UNIX_INSTALL_TARGET_CMDS + (cd $(DOS2UNIX_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ + make install DESTDIR=$(TARGET_DIR)) +endef + +define HOST_DOS2UNIX_BUILD_CMDS + (cd $(HOST_DOS2UNIX_DIR); \ + $(HOST_CONFIGURE_OPTS) \ + make) +endef + +define HOST_DOS2UNIX_INSTALL_CMDS + (cd $(HOST_DOS2UNIX_DIR); \ + $(HOST_CONFIGURE_OPTS) \ + make install DESTDIR=$(HOST_DIR)) +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))
Signature · 1 line
1.7.10.4
PATCH 1/1 dos2unix: new package
Hi David,
On Wed, Sep 03, 2014 at 11:12:57AM +0200, David Bachelart wrote:
[snip]
Quoted 7 lines
package/dos2unix/dos2unix.mk new file +1
-0@@ -0,0 +1,40 @@ +################################################################################
package/dos2unix/dos2unix.mk line 11
Quoted 10 lines
package/dos2unix/dos2unix.mk new file +10
-0+# +# dos2unix +# +################################################################################ + +DOS2UNIX_VERSION = 6.0.6 +DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix/ + +DOS2UNIX_LICENSE = BSD-2c +DOS2UNIX_LICENSE_FILES = COPYING.txt
dos2unix is also provided by busybox. You need to list busybox in DOS2UNIX_DEPENDENCIES to make sure dos2unix builds (and installs) after busybox, overriding the busybox applet.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 dos2unix: new package
Quoted 19 lines · Baruch Siach
Hi David,
On Wed, Sep 03, 2014 at 11:12:57AM +0200, David Bachelart wrote:
[snip]
Quoted 13 lines
package/dos2unix/dos2unix.mk new file +7
-0@@ -0,0 +1,40 @@ +################################################################################ +# +# dos2unix +# +################################################################################ + +DOS2UNIX_VERSION = 6.0.6
Quoted 9 lines
package/dos2unix/dos2unix.mk line 11
Quoted 4 lines
package/dos2unix/dos2unix.mk new file +4
-0+DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix/ + +DOS2UNIX_LICENSE = BSD-2c +DOS2UNIX_LICENSE_FILES = COPYING.txtdos2unix is also provided by busybox. You need to list busybox in
DOS2UNIX_DEPENDENCIESto make sure dos2unix builds (and installs) after busybox, overriding the busybox applet.
Additionally, a check on BUSYBOX_SHOW_OTHERS should be added somewhere.
Also, one could also argue whether it makes sense to have a separate dos2unix target package, as I expect the tool to be so simple that busybox probably does the same thing as the separate tool.
Best regards,
Thomas
PATCH 1/1 dos2unix: new package
In reply to David BachelartHi David,
Quoted 74 lines · David Bachelart
Signed-off-by David Bachelart <[email protected]>--- package/Config.in | 1 + package/Config.in.host | 1 + package/dos2unix/Config.in | 6 ++++++ package/dos2unix/Config.in.host | 6 ++++++ package/dos2unix/dos2unix.mk | 40 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 package/dos2unix/Config.in create mode 100644 package/dos2unix/Config.in.host create mode 100644 package/dos2unix/dos2unix.mkpackage/Config.in +1
-0@@ -1128,6 +1128,7 @@ comment "Utilities" source "package/at/Config.in" source "package/ccrypt/Config.in" source "package/dialog/Config.in" + source "package/dos2unix/Config.in" source "package/dtach/Config.in" source "package/file/Config.in" source "package/gnupg/Config.in"package/Config.in.host +1
-0@@ -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"package/dos2unix/Config.in new file +6
-0@@ -0,0 +1,6 @@ +config BR2_PACKAGE_DOS2UNIX + bool "dos2unix" + help + dos2unix converts text file line endings between CRLF and LF + + http://freshmeat.net/projects/dos2unixpackage/dos2unix/Config.in.host new file +6
-0@@ -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/dos2unixpackage/dos2unix/dos2unix.mk new file +7
-0@@ -0,0 +1,40 @@ +################################################################################ +# +# dos2unix +# +################################################################################ + +DOS2UNIX_VERSION = 6.0.6
package/dos2unix/dos2unix.mk line 17
Quoted 10 lines
package/dos2unix/dos2unix.mk new file +10
-0+DOS2UNIX_SITE = http://waterlan.home.xs4all.nl/dos2unix/ + +DOS2UNIX_LICENSE = BSD-2c +DOS2UNIX_LICENSE_FILES = COPYING.txt + +define DOS2UNIX_BUILD_CMDS + (cd $(DOS2UNIX_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ + make)
Conventionally, we use 'make -C $(@D)' instead of (cd ....; make) Same issue below.
Best regards,
Thomas
PATCH 1/1 dos2unix: new package
Hi Baruch and Thomas,
In fact, I need this tool for the host part to clean files up before installing stuff on the target. I made a host + target package, but maybe it does not make sense.
Are you interested in the host part only ?
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140903/31544ad9/attachment.html>
PATCH 1/1 dos2unix: new package
Hi David,
Quoted 8 lines · David Bachelart
Hi Baruch and Thomas,
In fact, I need this tool for the host part to clean files up before installing stuff on the target. I made a host + target package, but maybe it does not make sense.
Are you interested in the host part only ?
I don't see a reason why the host part would not be acceptable in mainline buildroot, so yes please update your patch. (note: my opinion only, I'm not the maintainer)
Best regards,
Thomas