Advertisement
Guest User

Untitled

a guest
Jul 11th, 2012
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. --- exfat/Makefile 1970-01-01 01:00:00.000000000 +0100
  2. +++ exfat/Makefile 2012-07-11 13:34:50.000000000 +0200
  3. @@ -0,0 +1,74 @@
  4. +#
  5. +# Copyright (C) 2011 OpenWrt.org
  6. +#
  7. +# This is free software, licensed under the GNU General Public License v2.
  8. +# See /LICENSE for more information.
  9. +#
  10. +
  11. +include $(TOPDIR)/rules.mk
  12. +
  13. +PKG_NAME:=exfat
  14. +PKG_REV:=HEAD
  15. +PKG_VERSION:=svn$(shell date +%Y%m%d)
  16. +PKG_RELEASE:=1
  17. +
  18. +
  19. +PKG_SOURCE_PROTO:=svn
  20. +PKG_SOURCE_VERSION:=$(PKG_REV)
  21. +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  22. +PKG_SOURCE_URL:=http://exfat.googlecode.com/svn/trunk/
  23. +PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  24. +
  25. +include $(INCLUDE_DIR)/package.mk
  26. +
  27. +define Package/exfat/template
  28. + SECTION:=utils
  29. + CATEGORY:=Utilities
  30. + URL:=http://code.google.com/p/exfat/
  31. + SUBMENU:=Filesystem
  32. + DEPENDS:=+libfuse
  33. +endef
  34. +
  35. +define Package/exfat
  36. + $(call Package/exfat/template)
  37. + TITLE:=exFAT Driver
  38. +endef
  39. +
  40. +define Package/exfat/description
  41. + Full-featured exFAT file system implementation for GNU/Linux other Unix-like systems as a FUSE module.
  42. +endef
  43. +
  44. +define Package/exfat-utils
  45. + $(call Package/exfat/template)
  46. + TITLE:=exFAT utilities
  47. +endef
  48. +
  49. +define Package/exfat-utilities/description
  50. + exFAT utilities like fsck
  51. +endef
  52. +
  53. +define Build/Prepare
  54. + $(call Build/Prepare/Default)
  55. + $(CP) $(FILES_DIR)/Makefile $(PKG_BUILD_DIR)/
  56. +endef
  57. +
  58. +define Package/exfat/install
  59. + $(INSTALL_DIR) $(1)/sbin
  60. + $(CP) $(PKG_BUILD_DIR)/mount.exfat $(1)/sbin/
  61. +endef
  62. +
  63. +define Package/exfat-utils/install
  64. + $(INSTALL_DIR) $(1)/sbin
  65. + $(CP) $(PKG_BUILD_DIR)/fsck_exfat $(1)/sbin/
  66. +endef
  67. +
  68. +define Package/exfat/postinst
  69. +#!/bin/sh
  70. +
  71. +if [ -z "$$(grep ^\\exfat: $${IPKG_INSTROOT}/etc/filesystems)" ]; then
  72. + echo "exfat" >> $${IPKG_INSTROOT}/etc/filesystems
  73. +fi
  74. +endef
  75. +
  76. +$(eval $(call BuildPackage,exfat))
  77. +$(eval $(call BuildPackage,exfat-utils))
  78. --- exfat/files/Makefile 1970-01-01 01:00:00.000000000 +0100
  79. +++ exfat/files/Makefile 2012-07-11 13:38:42.000000000 +0200
  80. @@ -0,0 +1,12 @@
  81. +CFLAGS += -O2 -D_FILE_OFFSET_BITS=64 -I./libexfat -DFUSE_USE_VERSION=26
  82. +LIBS=-lfuse
  83. +
  84. +all: mount.exfat fsck_exfat
  85. +
  86. +%.o: %.c
  87. + $(CC) $(CFLAGS) -c -o $@ $^
  88. +
  89. +mount.exfat: libexfat/cluster.o libexfat/io.o libexfat/log.o libexfat/lookup.o libexfat/mount.o libexfat/node.o libexfat/time.c libexfat/utf.o libexfat/utils.o fuse/main.o
  90. + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
  91. +fsck_exfat: libexfat/cluster.o libexfat/io.o libexfat/log.o libexfat/lookup.o libexfat/mount.o libexfat/node.o libexfat/time.c libexfat/utf.o libexfat/utils.o fsck/main.o
  92. + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement