diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 10:19:08 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 13:58:14 +0200 |
commit | cbd8468428a7305f71fa02c94158b2a128da7a4e (patch) | |
tree | 49b31bd1c8c4547236cc25457f59488fb73d8021 /gkbuilds | |
parent | Rework --gpg support (diff) | |
download | genkernel-cbd8468428a7305f71fa02c94158b2a128da7a4e.tar.gz genkernel-cbd8468428a7305f71fa02c94158b2a128da7a4e.tar.bz2 genkernel-cbd8468428a7305f71fa02c94158b2a128da7a4e.zip |
Rework --unionfs support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r-- | gkbuilds/fuse.gkbuild | 21 | ||||
-rw-r--r-- | gkbuilds/unionfs-fuse.gkbuild | 15 |
2 files changed, 36 insertions, 0 deletions
diff --git a/gkbuilds/fuse.gkbuild b/gkbuilds/fuse.gkbuild new file mode 100644 index 0000000..bf23927 --- /dev/null +++ b/gkbuilds/fuse.gkbuild @@ -0,0 +1,21 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +src_configure() { + local myconf=( + --disable-example + ) + + gkconf "${myconf[@]}" +} + +src_install() { + default + + rm -rf \ + "${D}"/dev \ + "${D}"/etc \ + "${D}"/sbin \ + "${D}"/usr/bin \ + "${D}"/usr/share +} diff --git a/gkbuilds/unionfs-fuse.gkbuild b/gkbuilds/unionfs-fuse.gkbuild new file mode 100644 index 0000000..3ce9909 --- /dev/null +++ b/gkbuilds/unionfs-fuse.gkbuild @@ -0,0 +1,15 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +src_configure() { + append-ldflags -static +} + +src_install() { + mkdir "${D}"/sbin || die "Failed to create '${D}/sbin'!" + install -m 0755 -s src/unionfs "${D}"/sbin/unionfs \ + || die "Failed to install 'unionfs' to '${D}/sbin/'!" + + "${STRIP}" --strip-all "${D}"/sbin/unionfs \ + || die "Failed to strip '${D}/sbin/unionfs'!" +} |