diff --git a/debian/android-sdk-ext4-utils.install b/debian/android-sdk-ext4-utils.install new file mode 100755 index 0000000..413461d --- /dev/null +++ b/debian/android-sdk-ext4-utils.install @@ -0,0 +1,6 @@ +#!/usr/bin/dh-exec + +ext4_utils/mkuserimg.sh => usr/bin/mkuserimg +ext4_utils/ext2simg usr/bin +ext4_utils/ext4fixup usr/bin +ext4_utils/make_ext4fs usr/bin diff --git a/debian/android-sdk-ext4-utils.manpages b/debian/android-sdk-ext4-utils.manpages new file mode 100644 index 0000000..34f6179 --- /dev/null +++ b/debian/android-sdk-ext4-utils.manpages @@ -0,0 +1,4 @@ +debian/mkuserimg.1 +debian/make_ext4fs.1 +debian/ext4fixup.1 +debian/ext2simg.1 diff --git a/debian/control b/debian/control index efbdbce..48b91ed 100644 --- a/debian/control +++ b/debian/control @@ -7,9 +7,13 @@ Uploaders: Hans-Christoph Steiner , Chirayu Desai Build-Depends: android-libsparse-dev (>= 1:7.0.0+r33~), android-libselinux-dev (>= 7.0.0~), + android-libcutils-dev, + android-libext4-utils-dev, + e2fsprogs, android-platform-system-core-headers (>= 1:7.0.0+r33~), debhelper (>=10), dh-exec, + pandoc, libf2fs-dev, zlib1g-dev Standards-Version: 3.9.8 @@ -17,6 +21,17 @@ Homepage: https://android.googlesource.com/platform/system/extras Vcs-Git: https://anonscm.debian.org/git/android-tools/android-platform-system-extras.git Vcs-Browser: https://anonscm.debian.org/cgit/android-tools/android-platform-system-extras.git + + +Package: android-sdk-ext4-utils +Architecture: amd64 i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: android-tools-fsutils (<< 6.0~) +Replaces: android-tools-fsutils (<< 6.0~) +Description: Android ext4-utils tools + Command line tools to make sparse images from ext4 file system images and android images(.img) with ext4 file systems . + + Package: android-libf2fs-utils Section: libs Architecture: i386 amd64 armel armhf arm64 mips mipsel mips64el diff --git a/debian/ext2simg.1.md b/debian/ext2simg.1.md new file mode 100644 index 0000000..d56d5ba --- /dev/null +++ b/debian/ext2simg.1.md @@ -0,0 +1,20 @@ +% ext2simg android-platform-system-extras | ext2simg Manuals +% The Android Open Source Project + +# NAME + +ext2simg - ext to simg + +# SYNOPSIS + +ext2simg [ options ] + + -c include CRC block + -v verbose output + -z gzip output + -S don't use sparse output format + +# DESCRIPTION + +**ext2simg** is a command line tool for converting ext to simg + diff --git a/debian/ext2simg.docs b/debian/ext2simg.docs new file mode 100644 index 0000000..e69de29 diff --git a/debian/ext2simg.install b/debian/ext2simg.install new file mode 100644 index 0000000..3845f7c --- /dev/null +++ b/debian/ext2simg.install @@ -0,0 +1,2 @@ + +ext4_utils/ext2simg usr/bin diff --git a/debian/ext2simg.lintian-overrides b/debian/ext2simg.lintian-overrides new file mode 100644 index 0000000..628475b --- /dev/null +++ b/debian/ext2simg.lintian-overrides @@ -0,0 +1,12 @@ +# Executables from the Android SDK normally each staticly link in all +# of the libs. That means each executable includes a full copy of all +# the libs, which is not how Debian works. These libs need to be +# dynamically linlked in so that just the library can be updated when +# there is a security fix, instead of requiring all of the executables +# be recompiled. That said, these libraries do not have a stable +# interface and were never intended to be used by any other project, +# only with the internal, Android SDK executables. Therefore, the +# Android SDK executables use private libraries located in +# /usr/lib/android + +binary-or-shlib-defines-rpath diff --git a/debian/ext2simg.manpages b/debian/ext2simg.manpages new file mode 100644 index 0000000..b2a5cc5 --- /dev/null +++ b/debian/ext2simg.manpages @@ -0,0 +1 @@ +debian/ext2simg.1 diff --git a/debian/ext2simg.mk b/debian/ext2simg.mk new file mode 100644 index 0000000..b652467 --- /dev/null +++ b/debian/ext2simg.mk @@ -0,0 +1,16 @@ +NAME = ext2simg +SOURCES = ext2simg.c +SOURCES := $(foreach source, $(SOURCES), ext4_utils/$(source)) +CFLAGS += -Iext4_utils +LDFLAGS += -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \ + -Wl,-rpath-link=. \ + -L/usr/lib/$(DEB_HOST_MULTIARCH)/android \ + -lz -lsparse -lselinux -lext4_utils + +build: $(SOURCES) + $(CC) $^ -o ext4_utils/$(NAME) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) + +clean: + $(RM) ext4_utils/$(NAME) + + diff --git a/debian/ext4fixup.1.md b/debian/ext4fixup.1.md new file mode 100644 index 0000000..ce7d1d3 --- /dev/null +++ b/debian/ext4fixup.1.md @@ -0,0 +1,16 @@ +% ext4fixup android-platform-system-extras | ext4fixup Manuals +% The Android Open Source Project + +# NAME + +ext4fixup - fixing up ext4 + +# SYNOPSIS + +ext4fixup: usage: ext4fixup [-vn] + + +# DESCRIPTION + +**ext4fixup** is a command line tool for fixing up ext4 + diff --git a/debian/ext4fixup.install b/debian/ext4fixup.install new file mode 100644 index 0000000..2031648 --- /dev/null +++ b/debian/ext4fixup.install @@ -0,0 +1 @@ +ext4_utils/ext4fixup usr/bin diff --git a/debian/ext4fixup.lintian-overrides b/debian/ext4fixup.lintian-overrides new file mode 100644 index 0000000..628475b --- /dev/null +++ b/debian/ext4fixup.lintian-overrides @@ -0,0 +1,12 @@ +# Executables from the Android SDK normally each staticly link in all +# of the libs. That means each executable includes a full copy of all +# the libs, which is not how Debian works. These libs need to be +# dynamically linlked in so that just the library can be updated when +# there is a security fix, instead of requiring all of the executables +# be recompiled. That said, these libraries do not have a stable +# interface and were never intended to be used by any other project, +# only with the internal, Android SDK executables. Therefore, the +# Android SDK executables use private libraries located in +# /usr/lib/android + +binary-or-shlib-defines-rpath diff --git a/debian/ext4fixup.manpages b/debian/ext4fixup.manpages new file mode 100644 index 0000000..1570b73 --- /dev/null +++ b/debian/ext4fixup.manpages @@ -0,0 +1 @@ +debian/ext4fixup.1 diff --git a/debian/ext4fixup.mk b/debian/ext4fixup.mk new file mode 100644 index 0000000..9bd473c --- /dev/null +++ b/debian/ext4fixup.mk @@ -0,0 +1,15 @@ +NAME = ext4fixup +SOURCES = ext4fixup_main.c +SOURCES := $(foreach source, $(SOURCES), ext4_utils/$(source)) +CFLAGS += -Iext4_utils +LDFLAGS += -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \ + -Wl,-rpath-link=. \ + -L/usr/lib/$(DEB_HOST_MULTIARCH)/android \ + -lz -lsparse -lext4_utils + +build: $(SOURCES) + $(CC) $^ -o ext4_utils/$(NAME) $(CFLAGS) $(LDFLAGS) + +clean: + $(RM) ext4_utils/$(NAME) + diff --git a/debian/make-ext4fs.install b/debian/make-ext4fs.install new file mode 100644 index 0000000..7be5809 --- /dev/null +++ b/debian/make-ext4fs.install @@ -0,0 +1,2 @@ + +ext4_utils/make_ext4fs usr/bin diff --git a/debian/make-ext4fs.manpages b/debian/make-ext4fs.manpages new file mode 100644 index 0000000..7a5827b --- /dev/null +++ b/debian/make-ext4fs.manpages @@ -0,0 +1 @@ +debian/make_ext4fs.1 diff --git a/debian/make-ext4fs.mk b/debian/make-ext4fs.mk new file mode 100644 index 0000000..869f7f8 --- /dev/null +++ b/debian/make-ext4fs.mk @@ -0,0 +1,15 @@ +NAME = make_ext4fs +SOURCES = make_ext4fs_main.c +SOURCES := $(foreach source, $(SOURCES), ext4_utils/$(source)) +CFLAGS += -I/usr/include/android/ -DHOST -DANDROID +LDFLAGS += -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \ + -Wl,-rpath-link=. \ + -L/usr/lib/$(DEB_HOST_MULTIARCH)/android \ + -lz -lselinux -lsparse -lext4_utils -lcutils + +build: $(SOURCES) + $(CC) $^ -o ext4_utils/$(NAME) $(CFLAGS) $(LDFLAGS) + +clean: + $(RM) ext4_utils/$(NAME) + diff --git a/debian/make_ext4fs.1.md b/debian/make_ext4fs.1.md new file mode 100644 index 0000000..6e0cf9e --- /dev/null +++ b/debian/make_ext4fs.1.md @@ -0,0 +1,21 @@ +% mkext4fs android-platform-system-extras | mkext4fs Manuals +% The Android Open Source Project + +# NAME + +mkext4fs - making ext4 file systems + +# SYNOPSIS + +mkext4fs [ -l ] [ -j ] [ -b ] + [ -g ] [ -i ] [ -I ] + [ -L