summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki <jauhien@gentoo.org>2014-07-01 22:54:34 +0000
committerJauhien Piatlicki <jauhien@gentoo.org>2014-07-01 22:54:34 +0000
commit5bd8e73bd34b09d349f992287e61c6c1e4d7024a (patch)
tree1685ec63dc445af75035f6acd84c15b61c08bbb0 /dev-util
parentfix build wrt #515188 (diff)
downloadgentoo-2-5bd8e73bd34b09d349f992287e61c6c1e4d7024a.tar.gz
gentoo-2-5bd8e73bd34b09d349f992287e61c6c1e4d7024a.tar.bz2
gentoo-2-5bd8e73bd34b09d349f992287e61c6c1e4d7024a.zip
initial import
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/ext4_utils/ChangeLog9
-rw-r--r--dev-util/ext4_utils/Manifest6
-rw-r--r--dev-util/ext4_utils/ext4_utils-4.4.4.1.ebuild27
-rw-r--r--dev-util/ext4_utils/files/Makefile102
-rw-r--r--dev-util/ext4_utils/metadata.xml8
5 files changed, 152 insertions, 0 deletions
diff --git a/dev-util/ext4_utils/ChangeLog b/dev-util/ext4_utils/ChangeLog
new file mode 100644
index 000000000000..2bf9720853d7
--- /dev/null
+++ b/dev-util/ext4_utils/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/ext4_utils
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ext4_utils/ChangeLog,v 1.1 2014/07/01 22:54:34 jauhien Exp $
+
+*ext4_utils-4.4.4.1 (01 Jul 2014)
+
+ 01 Jul 2014; Jauhien Piatlicki <jauhien@gentoo.org>
+ +ext4_utils-4.4.4.1.ebuild, +files/Makefile, +metadata.xml:
+ initial import
diff --git a/dev-util/ext4_utils/Manifest b/dev-util/ext4_utils/Manifest
new file mode 100644
index 000000000000..ec67c8e7627d
--- /dev/null
+++ b/dev-util/ext4_utils/Manifest
@@ -0,0 +1,6 @@
+AUX Makefile 2636 SHA256 c44c054dee6f71d7b77cf84337fd58e1f402d76cf59ef3aa9f562449e7cfa5ea SHA512 59c6b6a0bae81f6ec5d675f4c88a9e763d4bea5d25810b7a0ade27807ef051e4cf950b1f8d6be09dadc055bf58428b178ae4908e1b62fcca8f3668608ddabf71 WHIRLPOOL 492745aab57ac3244a8aad7ebe8a68ee41f56e29fc15775011a63e5a4636feb3a540e7e601c65e30f90b62d7d6201e9d50f4f5cd29726257ecd20db66d5fbb6e
+DIST android-system-core-include-4.4.4.1.tar.gz 125397 SHA256 5e7332428fed7d9f31d85e0c11782aa2c5fea488553b3978274a1d66413e487e SHA512 ab71fccc9340b09e66e4bdefd1f377bb6f466ba1948ea3b6aaafde835867c2e33de432302d24a3cb22315ad6d25cac6253adab879d4baa419d3f999f525d5069 WHIRLPOOL 43b0681ffbcc65f8b318de89359232ac50269c6a57a224958e2e70d335e4332f70324465afb149bc14893fd96c60f60016fcdb9721c2b5a5ff1f94e72b2a0566
+DIST ext4_utils-4.4.4.1.tar.gz 47935 SHA256 192f2376b0214317e40d58c8897b0b9f151aac3aed5c81794ad93a5588c12efa SHA512 8580f169c165605f3334de38285cc28ea940e4f06db92160802d6ff3419784654970a137e43c8eb8b87113623587476d43916333cac8f96733d2f2b89e6cebd7 WHIRLPOOL 5c7c002475e7d77ed47520467bef8cb1afbef485d844d9ee627da5ca40d6e08064550aa6ddc72110ceb8413a599210c8c4b7bf8aa3cc97f3a66e460fc20a7afb
+DIST libselinux-android-4.4.4.1.tar.gz 44370 SHA256 8626457369272a4f398ac9c7cf1996abd5919f094bd0efe386c07dd8261a0cf3 SHA512 76924a44bf06a668cc55ce10c4945dd6019a2c2890dde1e1e74a3abb2fc89c176b63e76bc8ed9a88315eb5626c6bf85fca3c25499091a50b749edaffea2382b0 WHIRLPOOL 4b47c828dc219ba0ca2e9a2c94cd5ba793725e3ca4f6e5c453da7d0f9c9c8a13fdd445ec300d32aa9f30971acea8e05909a1a6582748c41f9efbd15d40b460ad
+EBUILD ext4_utils-4.4.4.1.ebuild 1003 SHA256 b0edc388365efc3d9bd3d9a407727eb9a946083811f9e7fb574809ed0dc1bc9d SHA512 68fa3dd788979fab282e183585ebef7ff59435f47d75f123cee7acefe4d5f988c6a6384d6db2b08ee8931d177b046f2f7b680373f2f63efb0d5cf31a3fb46503 WHIRLPOOL 163ef23f0a17203b6c0057e733be54d3b8084093fc8978d858dba3622cf685b25d252d6c731e7002ba8390bc2f520a4a4c981da055b40ed42f27d04ddf4b4ba6
+MISC metadata.xml 243 SHA256 18abd81b04a3651cbf1290466163ecb9269199286408c133021daa0e74869f47 SHA512 4bdc4acc90c8a444f645f1f058d2eed96adddb53fc28554f8eca840c744c320158daf264e28b644d67dcda59299d921f84eddbdd471b780b2e5bcae78ddbaaae WHIRLPOOL 0643256f713a85f274a4d748f885edc6db04407fb28eaf3c73803b96c8a9d6c79c15ce162c13096958d0f10500f8edf8d1ac0833f2d256988686ad987811622a
diff --git a/dev-util/ext4_utils/ext4_utils-4.4.4.1.ebuild b/dev-util/ext4_utils/ext4_utils-4.4.4.1.ebuild
new file mode 100644
index 000000000000..0061a19df065
--- /dev/null
+++ b/dev-util/ext4_utils/ext4_utils-4.4.4.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/ext4_utils/ext4_utils-4.4.4.1.ebuild,v 1.1 2014/07/01 22:54:34 jauhien Exp $
+
+EAPI=5
+
+inherit versionator
+
+ANDROID_VERSION=$(get_version_component_range 1-3)
+ANDROID_REVISION=$(get_version_component_range 4-)
+ANDROID_SELINUX_COMMIT=8b4760949bbafdee6f7825f39423f3db745f4115
+
+DESCRIPTION="Tools for Android images"
+HOMEPAGE="https://android.googlesource.com/platform/system/extras"
+SRC_URI="https://android.googlesource.com/platform/system/extras/+archive/android-${ANDROID_VERSION}_r${ANDROID_REVISION}/${PN}.tar.gz -> ${P}.tar.gz
+ https://android.googlesource.com/platform/external/libselinux/+archive/${ANDROID_SELINUX_COMMIT}.tar.gz -> libselinux-android-${PV}.tar.gz
+ https://android.googlesource.com/platform/system/core/+archive/android-${ANDROID_VERSION}_r${ANDROID_REVISION}/include.tar.gz -> android-system-core-include-${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ cp "${FILESDIR}/Makefile" "${S}"
+}
diff --git a/dev-util/ext4_utils/files/Makefile b/dev-util/ext4_utils/files/Makefile
new file mode 100644
index 000000000000..b2ce05365b80
--- /dev/null
+++ b/dev-util/ext4_utils/files/Makefile
@@ -0,0 +1,102 @@
+AR ?= ar
+CC ?= gcc
+CFLAGS := $(CFLAGS) -I. -Iinclude -DHOST -DANDROID -fPIC
+LDFLAGS := $(LDFLAGS) -L.
+
+PREFIX ?= /usr/
+BINDIR ?= $(PREFIX)/bin
+INCLUDEDIR ?= $(PREFIX)/include
+LIBDIR ?= $(PREFIX)/lib
+
+libext4_utils_src_files := make_ext4fs.c \
+ ext4fixup.c \
+ ext4_utils.c \
+ allocate.c \
+ contents.c \
+ extent.c \
+ indirect.c \
+ uuid.c \
+ sha1.c \
+ wipe.c \
+ crc16.c
+libext4_utils_obj_files := $(libext4_utils_src_files:.c=.o)
+
+selinux_src_files := src/android.c \
+ src/booleans.c \
+ src/canonicalize_context.c \
+ src/disable.c \
+ src/enabled.c \
+ src/fgetfilecon.c \
+ src/fsetfilecon.c \
+ src/getenforce.c \
+ src/getfilecon.c \
+ src/getpeercon.c \
+ src/lgetfilecon.c \
+ src/load_policy.c \
+ src/lsetfilecon.c \
+ src/policyvers.c \
+ src/procattr.c \
+ src/setenforce.c \
+ src/setfilecon.c \
+ src/context.c \
+ src/mapping.c \
+ src/stringrep.c \
+ src/compute_create.c \
+ src/compute_av.c \
+ src/avc.c \
+ src/avc_internal.c \
+ src/avc_sidtab.c \
+ src/get_initial_context.c \
+ src/checkAccess.c \
+ src/sestatus.c \
+ src/deny_unknown.c \
+ src/callbacks.c \
+ src/check_context.c \
+ src/freecon.c \
+ src/init.c \
+ src/label.c \
+ src/label_file.c \
+ src/label_android_property.c
+selinux_obj_files := $(selinux_src_files:.c=.o)
+
+make_ext4fs_src_files := \
+ make_ext4fs_main.c
+make_ext4fs_obj_files := $(make_ext4fs_src_files:.c=.o)
+
+ext2simg_src_files := \
+ ext2simg.c
+ext2simg_obj_files := $(ext2simg_src_files:.c=.o)
+
+ext4fixup_src_files := \
+ ext4fixup_main.c
+ext4fixup_obj_files := $(ext4fixup_src_files:.c=.o)
+
+libraries := -lext4_utils -lsparse -lz
+
+executables := make_ext4fs ext2simg ext4fixup
+
+all: $(executables)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+libext4_utils.a: $(libext4_utils_obj_files) $(selinux_obj_files)
+ $(AR) rvs $@ $^
+
+make_ext4fs: libext4_utils.a $(make_ext4fs_obj_files)
+ $(CC) $(LDFLAGS) $(make_ext4fs_obj_files) -o $@ $(libraries)
+
+ext2simg: libext4_utils.a $(ext2simg_obj_files)
+ $(CC) $(LDFLAGS) $(ext2simg_obj_files) -o $@ $(libraries)
+
+ext4fixup: libext4_utils.a $(ext4fixup_obj_files)
+ $(CC) $(LDFLAGS) $(ext4fixup_obj_files) -o $@ $(libraries)
+
+.PHONY: clean install
+
+clean:
+ rm -rf *.o *.so $(executables) src/*.o
+
+install: all
+ install -d $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(LIBDIR) $(DESTDIR)/$(INCLUDEDIR)/sparse
+ install mkuserimg.sh $(executables) $(DESTDIR)/$(BINDIR)
diff --git a/dev-util/ext4_utils/metadata.xml b/dev-util/ext4_utils/metadata.xml
new file mode 100644
index 000000000000..0b7db932cfa4
--- /dev/null
+++ b/dev-util/ext4_utils/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>jauhien@gentoo.org</email>
+ <name>Jauhien Piatlicki</name>
+ </maintainer>
+</pkgmetadata>