mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 19:42:15 +02:00
commit
d519801519
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst postrm prepare setup
|
||||
DEPEND=>=sys-apps/keyutils-1.0 >=dev-libs/libgcrypt-1.2.0 dev-libs/nss gpg? ( app-crypt/gpgme ) gtk? ( x11-libs/gtk+:2 ) openssl? ( >=dev-libs/openssl-0.9.7 ) pam? ( sys-libs/pam ) pkcs11? ( >=dev-libs/openssl-0.9.7 >=dev-libs/pkcs11-helper-1.04 ) tpm? ( app-crypt/trousers ) >=dev-util/pkgconfig-0.9.0 sys-devel/gettext >=dev-util/intltool-0.41.0 python? ( dev-lang/swig ) python? ( || ( =dev-lang/python-2.7* =dev-lang/python-2.6* =dev-lang/python-2.5* ) ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=eCryptfs userspace utilities
|
||||
EAPI=3
|
||||
HOMEPAGE=http://launchpad.net/ecryptfs
|
||||
IUSE=doc gpg gtk openssl pam pkcs11 python suid tpm
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=>=sys-apps/keyutils-1.0 >=dev-libs/libgcrypt-1.2.0 dev-libs/nss gpg? ( app-crypt/gpgme ) gtk? ( x11-libs/gtk+:2 ) openssl? ( >=dev-libs/openssl-0.9.7 ) pam? ( sys-libs/pam ) pkcs11? ( >=dev-libs/openssl-0.9.7 >=dev-libs/pkcs11-helper-1.04 ) tpm? ( app-crypt/trousers ) python? ( || ( =dev-lang/python-2.7* =dev-lang/python-2.6* =dev-lang/python-2.5* ) )
|
||||
SLOT=0
|
||||
SRC_URI=http://launchpad.net/ecryptfs/trunk/91/+download/ecryptfs-utils_91.orig.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 9d81603248f2ba3ec59124320d123e5e flag-o-matic d270fa247153df66074f795fa42dba3e libtool b75230758539a7da029e24afdb693960 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib 3972ca401cf7dbb430df9995f5d8d580 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 python efc1c55fc44c5b7272fc2ffba73c3e6f toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=c8755c7cd66fe6675a408731019f7d2f
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile install prepare
|
||||
DEPEND=!sys-fs/mtd dev-libs/lzo sys-libs/zlib >=sys-apps/util-linux-2.16 xattr? ( sys-apps/acl )
|
||||
DESCRIPTION=MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)
|
||||
EAPI=3
|
||||
HOMEPAGE=http://git.infradead.org/?p=mtd-utils.git;a=summary
|
||||
IUSE=xattr
|
||||
KEYWORDS=amd64 arm ~mips ppc x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=!sys-fs/mtd dev-libs/lzo sys-libs/zlib >=sys-apps/util-linux-2.16
|
||||
SLOT=0
|
||||
SRC_URI=http://git.infradead.org/mtd-utils.git/snapshot/v1.4.8.tar.gz -> mtd-utils-1.4.8.tar.gz
|
||||
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85
|
||||
_md5_=2ca383ae703f5d8faefd719104547fc0
|
@ -1 +0,0 @@
|
||||
DIST ecryptfs-utils_91.orig.tar.gz 569475 RMD160 561a13e55d64f09d365d465cbfb94207f918deee SHA1 b6c8d7301159ef8807cbdc000cb7243cfda108a3 SHA256 7f92d3ac4937d473c53267c393ff863f74689b89b31a155448dbcbbcc9a7b198
|
@ -1,140 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ecryptfs-utils-91.ebuild,v 1.1 2011/09/01 11:19:06 flameeyes Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="python? 2:2.5"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.4 3.* *-jython"
|
||||
|
||||
inherit flag-o-matic pam python linux-info autotools
|
||||
|
||||
DESCRIPTION="eCryptfs userspace utilities"
|
||||
HOMEPAGE="http://launchpad.net/ecryptfs"
|
||||
SRC_URI="http://launchpad.net/ecryptfs/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc gpg gtk openssl pam pkcs11 python suid tpm"
|
||||
|
||||
RDEPEND=">=sys-apps/keyutils-1.0
|
||||
>=dev-libs/libgcrypt-1.2.0
|
||||
dev-libs/nss
|
||||
gpg? ( app-crypt/gpgme )
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
openssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
pam? ( sys-libs/pam )
|
||||
pkcs11? (
|
||||
>=dev-libs/openssl-0.9.7
|
||||
>=dev-libs/pkcs11-helper-1.04
|
||||
)
|
||||
tpm? ( app-crypt/trousers )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/pkgconfig-0.9.0
|
||||
sys-devel/gettext
|
||||
>=dev-util/intltool-0.41.0
|
||||
python? ( dev-lang/swig )"
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
python_pkg_setup
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~ECRYPT_FS"
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
echo "#!/bin/sh" > py-compile
|
||||
|
||||
# Python bindings are built/installed manually.
|
||||
sed -e "/SUBDIRS =/s/ libecryptfs-swig//" -i src/Makefile.am || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -D_FILE_OFFSET_BITS=64
|
||||
|
||||
econf \
|
||||
--docdir="/usr/share/doc/${PF}" \
|
||||
--enable-nss \
|
||||
--with-pamdir=$(getpam_mod_dir) \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable gpg) \
|
||||
$(use_enable gtk gui) \
|
||||
$(use_enable openssl) \
|
||||
$(use_enable pam) \
|
||||
$(use_enable pkcs11 pkcs11-helper) \
|
||||
$(use_enable python pywrap) \
|
||||
$(use_enable tpm tspi)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use python; then
|
||||
python_copy_sources src/libecryptfs-swig
|
||||
building() {
|
||||
emake \
|
||||
PYTHON="$(PYTHON)" \
|
||||
PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
|
||||
PYTHON_LDFLAGS="-L$(python_get_libdir) $(python_get_library -l)" \
|
||||
PYTHON_SITE_PKG="$(python_get_sitedir)" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
SWIG_PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
|
||||
pyexecdir="$(python_get_sitedir)" \
|
||||
pythondir="$(python_get_sitedir)"
|
||||
}
|
||||
python_execute_function -s --source-dir src/libecryptfs-swig building
|
||||
fi
|
||||
}
|
||||
|
||||
src_install(){
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
if use python; then
|
||||
installation() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PYTHON="$(PYTHON)" \
|
||||
PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
|
||||
PYTHON_LDFLAGS="-L$(python_get_libdir) $(python_get_library -l)" \
|
||||
PYTHON_SITE_PKG="$(python_get_sitedir)" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
SWIG_PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
|
||||
pyexecdir="$(python_get_sitedir)" \
|
||||
pythondir="$(python_get_sitedir)" \
|
||||
install || return 1
|
||||
echo "ecryptfs-utils" > "${ED}$(python_get_sitedir)/ecryptfs-utils.pth"
|
||||
}
|
||||
python_execute_function -s --source-dir src/libecryptfs-swig installation
|
||||
|
||||
python_clean_installation_image
|
||||
fi
|
||||
|
||||
use suid && fperms u+s /sbin/mount.ecryptfs_private
|
||||
|
||||
find "${D}" -name '*.la' -exec rm -f '{}' +
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use python; then
|
||||
python_mod_optimize ecryptfs-utils
|
||||
fi
|
||||
|
||||
if use suid; then
|
||||
ewarn
|
||||
ewarn "You have chosen to install ${PN} with the binary setuid root. This"
|
||||
ewarn "means that if there are any undetected vulnerabilities in the binary,"
|
||||
ewarn "then local users may be able to gain root access on your machine."
|
||||
ewarn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use python; then
|
||||
python_mod_cleanup ecryptfs-utils
|
||||
fi
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST mtd-utils-1.4.8.tar.gz 335568 RMD160 59ec75cffe4ea5fe8a113d1f61c4c9ece4891737 SHA1 bed0aa33e5c53adf3128da6c19adbfe59bf55ad4 SHA256 c8d291ec979824996df905f41801507aec2e6d4625bc62bc0a71411849a5d642
|
@ -1,32 +0,0 @@
|
||||
From c7e4747c1589b2d090361cb753f212a7eec5ca7f Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Sat, 19 Nov 2011 15:59:21 -0500
|
||||
Subject: [PATCH 1/2] Makefile: fix install target with out-of-tree builds
|
||||
|
||||
The install target always looks for the compiled binaries in the working
|
||||
directory which breaks when doing something like `make CHOST=... install`.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
---
|
||||
Makefile | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d0bc3d6..4b71b8f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -58,9 +58,9 @@ endif
|
||||
rm -f $(BUILDDIR)/include/version.h
|
||||
$(MAKE) -C $(TESTS) clean
|
||||
|
||||
-install:: ${BINS} ${SCRIPTS}
|
||||
+install:: $(addprefix $(BUILDDIR)/,${BINS}) ${SCRIPTS}
|
||||
mkdir -p ${DESTDIR}/${SBINDIR}
|
||||
- install -m 0755 ${BINS} ${SCRIPTS} ${DESTDIR}/${SBINDIR}/
|
||||
+ install -m 0755 $^ ${DESTDIR}/${SBINDIR}/
|
||||
mkdir -p ${DESTDIR}/${MANDIR}/man1
|
||||
gzip -9c mkfs.jffs2.1 > ${DESTDIR}/${MANDIR}/man1/mkfs.jffs2.1.gz
|
||||
|
||||
--
|
||||
1.7.6.1
|
||||
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mtd-utils/mtd-utils-1.4.8.ebuild,v 1.6 2012/04/17 16:02:42 ranger Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils
|
||||
|
||||
if [[ ${PV} == "99999999" ]] ; then
|
||||
EGIT_REPO_URI="git://git.infradead.org/mtd-utils.git"
|
||||
|
||||
inherit git
|
||||
SRC_URI=""
|
||||
#KEYWORDS=""
|
||||
else
|
||||
if [[ ${PV} == *.*.* ]] ; then
|
||||
MY_PV="${PV}-*"
|
||||
SRC_URI="http://git.infradead.org/mtd-utils.git/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
else
|
||||
MY_PV="${PV}-02ae0aac87576d07202a62d11294ea55b56f450b"
|
||||
SRC_URI="mirror://gentoo/${PN}-snapshot-${MY_PV}.tar.xz"
|
||||
fi
|
||||
KEYWORDS="amd64 arm ~mips ppc x86 ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
|
||||
HOMEPAGE="http://git.infradead.org/?p=mtd-utils.git;a=summary"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="xattr"
|
||||
|
||||
# We need libuuid
|
||||
RDEPEND="!sys-fs/mtd
|
||||
dev-libs/lzo
|
||||
sys-libs/zlib
|
||||
>=sys-apps/util-linux-2.16"
|
||||
# ACL is only required for the <sys/acl.h> header file to build mkfs.jffs2
|
||||
# And ACL brings in Attr as well.
|
||||
DEPEND="${RDEPEND}
|
||||
xattr? ( sys-apps/acl )"
|
||||
|
||||
# Diff snapshots have diff versions encoded into their dirnames
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
cd "${S}"*
|
||||
epatch "${FILESDIR}"/${P}-install.patch
|
||||
}
|
||||
|
||||
makeopts() {
|
||||
echo CROSS=${CHOST}-
|
||||
use xattr || echo WITHOUT_XATTR=1
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"*
|
||||
emake $(makeopts) || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"*
|
||||
emake $(makeopts) install DESTDIR="${ED}" || die
|
||||
dodoc *.txt
|
||||
newdoc mkfs.ubifs/README README.mkfs.ubifs
|
||||
# TODO: check ubi-utils for docs+scripts
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user