2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://git.kernel.org
/pub
/scm
/linux
/kernel
/git
/jaegeuk
/f2fs-tools.git
/snapshot
/
16 PKG_HASH
:=619263d4e2022152a1472c1d912eaae104f20bd227ce0bb9d41d1d6608094bd1
18 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
19 PKG_LICENSE
:=GPL-2.0
-only
20 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/f2fs-tools
/Default
33 URL
:=http
://git.kernel.org
/cgit
/linux
/kernel
/git
/jaegeuk
/f2fs-tools.git
37 define Package
/f2fs-tools
/SELinux
41 DEPENDS
:=+libf2fs-selinux
+libselinux
42 URL
:=http
://git.kernel.org
/cgit
/linux
/kernel
/git
/jaegeuk
/f2fs-tools.git
47 $(Package
/f2fs-tools
/Default
)
48 TITLE
:=Utility for creating a Flash-Friendly File System
(F2FS
)
49 CONFLICTS
:=mkf2fs-selinux
52 define Package
/mkf2fs-selinux
53 $(Package
/f2fs-tools
/SELinux
)
54 TITLE
:=Utility for creating a Flash-Friendly File System
(F2FS
) with SELinux support
58 $(Package
/f2fs-tools
/Default
)
59 TITLE
:=Utility for checking
/repairing a Flash-Friendly File System
(F2FS
)
60 CONFLICTS
:=f2fsck-selinux
63 define Package
/f2fsck-selinux
64 $(Package
/f2fs-tools
/SELinux
)
65 TITLE
:=Utility for checking
/repairing a Flash-Friendly File System
(F2FS
) with SELinux support
68 define Package
/f2fs-tools
69 $(Package
/f2fs-tools
/Default
)
70 TITLE
:=Tools for Flash-Friendly File System
(F2FS
)
71 DEPENDS
+= +mkf2fs
+f2fsck
72 CONFLICTS
:=f2fs-tools-selinux
75 define Package
/f2fs-tools-selinux
76 $(Package
/f2fs-tools
/SELinux
)
77 TITLE
:=Tools for Flash-Friendly File System
(F2FS
) with SELinux support
78 DEPENDS
+= +mkf2fs-selinux
+f2fsck-selinux
81 define Package
/libf2fs
84 TITLE
:=Library for Flash-Friendly File System
(F2FS
) tools
87 CONFLICTS
:=libf2fs-selinux
90 define Package
/libf2fs-selinux
93 TITLE
:=Library for Flash-Friendly File System
(F2FS
) tools with SELinux support
94 DEPENDS
:=+libuuid
+libselinux
102 ifneq ($(BUILD_VARIANT
),selinux
)
103 CONFIGURE_ARGS
+= --without-selinux
109 define Package
/libf2fs
/install
110 $(INSTALL_DIR
) $(1)/usr
/lib
112 $(PKG_INSTALL_DIR
)/usr
/lib
/libf2fs.so.
* $(1)/usr
/lib
/
115 Package
/libf2fs-selinux
/install = $(Package
/libf2fs
/install)
117 define Package
/mkf2fs
/install
118 $(INSTALL_DIR
) $(1)/usr
/sbin
119 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mkfs.f2fs
$(1)/usr
/sbin
122 Package
/mkf2fs-selinux
/install = $(Package
/mkf2fs
/install)
124 define Package
/f2fsck
/install
125 $(INSTALL_DIR
) $(1)/usr
/sbin
126 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
127 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/defrag.f2fs
128 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/dump.f2fs
129 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/sload.f2fs
130 ln
-s
/usr
/sbin
/fsck.f2fs
$(1)/usr
/sbin
/resize.f2fs
133 Package
/f2fsck-selinux
/install = $(Package
/f2fsck
/install)
135 define Package
/f2fs-tools
/install
136 $(INSTALL_DIR
) $(1)/usr
/sbin
137 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/f2fstat
$(1)/usr
/sbin
138 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/fibmap.f2fs
$(1)/usr
/sbin
139 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/parse.f2fs
$(1)/usr
/sbin
142 Package
/f2fs-tools-selinux
/install = $(Package
/f2fs-tools
/install)
144 $(eval
$(call BuildPackage
,libf2fs
))
145 $(eval
$(call BuildPackage
,libf2fs-selinux
))
146 $(eval
$(call BuildPackage
,mkf2fs
))
147 $(eval
$(call BuildPackage
,mkf2fs-selinux
))
148 $(eval
$(call BuildPackage
,f2fsck
))
149 $(eval
$(call BuildPackage
,f2fsck-selinux
))
150 $(eval
$(call BuildPackage
,f2fs-tools
))
151 $(eval
$(call BuildPackage
,f2fs-tools-selinux
))