initial commit master
initial commit

file:b/exfat/Makefile (new)
--- /dev/null
+++ b/exfat/Makefile
@@ -1,1 +1,52 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
 
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fuse-exfat
+PKG_RELEASE:=1
+
+PKG_VERSION:=0.9.8
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://exfat.googlecode.com/files
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/exfat
+  SECTION:=utils
+  CATEGORY:=Utilities
+  URL:=http://code.google.com/p/exfat/
+  SUBMENU:=Filesystem
+  TITLE:=exFAT Driver
+  DEPENDS:=+libfuse
+endef
+
+define Package/exfat/description
+  Full-featured exFAT file system implementation for GNU/Linux other Unix-like systems as a FUSE module.
+endef
+
+define Build/Prepare
+	$(call Build/Prepare/Default)
+	$(CP) ./files/Makefile $(PKG_BUILD_DIR)/
+endef
+
+define Package/exfat/install
+	$(INSTALL_DIR) $(1)/sbin
+	$(CP) $(PKG_BUILD_DIR)/mount.exfat $(1)/sbin/
+endef
+
+define Package/exfat/postinst
+#!/bin/sh
+
+if [ -z "$$(grep ^\\exfat: $${IPKG_INSTROOT}/etc/filesystems)" ]; then
+	echo "exfat" >> $${IPKG_INSTROOT}/etc/filesystems
+fi
+endef
+
+$(eval $(call BuildPackage,exfat))
+

--- /dev/null
+++ b/exfat/files/Makefile
@@ -1,1 +1,11 @@
+CFLAGS += -O2 -D_FILE_OFFSET_BITS=64 -I./libexfat -DFUSE_USE_VERSION=26
+LIBS=-lfuse
 
+all: mount.exfat
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
+
+mount.exfat: libexfat/cluster.o libexfat/io.o libexfat/log.o libexfat/lookup.o libexfat/mount.o libexfat/node.o libexfat/utf.o libexfat/time.o libexfat/utils.o fuse/main.o
+	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+

comments