diff options
author | Mauro Santos | 2015-10-18 14:47:50 +0100 |
---|---|---|
committer | Mauro Santos | 2015-10-18 14:58:27 +0100 |
commit | 735235600f8b3fb8868110b5a831e1f1e4cfc37a (patch) | |
tree | 094652d3929372d58b79c7091b8a11178724a673 | |
download | aur-735235600f8b3fb8868110b5a831e1f1e4cfc37a.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | sedutil.install | 9 |
4 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..71847da7f856 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = sedutil + pkgdesc = TCG OPAL 2.00 SED Management Program + pkgver = 1.00 + pkgrel = 1 + url = https://github.com/Drive-Trust-Alliance/sedutil + install = sedutil.install + arch = i686 + arch = x86_64 + license = GPL3 + source = sedutil-1.00.tar.gz::https://github.com/Drive-Trust-Alliance/sedutil/archive/1.00.tar.gz + sha256sums = 7d9c8b3eb408de8218e8bd29f118a8956157ca6e80fb0d8782074302cc13d2e8 + +pkgname = sedutil + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ebbbfe4bb4f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +sedutil*pkg.tar +sedutil*tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a2097833036c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mauro Santos <registo.mailling@gmail.com> + +pkgname=sedutil +pkgver=1.00 +pkgrel=1 +pkgdesc="TCG OPAL 2.00 SED Management Program" +arch=('i686' 'x86_64') +url="https://github.com/Drive-Trust-Alliance/sedutil" +license=('GPL3') +install=sedutil.install +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Drive-Trust-Alliance/${pkgname}/archive/${pkgver}.tar.gz") +sha256sums=('7d9c8b3eb408de8218e8bd29f118a8956157ca6e80fb0d8782074302cc13d2e8') +PKGEXT='.pkg.tar' +CPPFLAGS="$CPPFLAGS -O2" + +build() { + cd "${srcdir}/${pkgname}-${pkgver}/linux/CLI/" + make + cd "${srcdir}/${pkgname}-${pkgver}/LinuxPBA/" + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/" + install -Dm755 "linux/CLI/dist/Debug_i686/GNU-Linux-x86/sedutil-cli" "${pkgdir}/usr/bin/sedutil-cli" + install -Dm644 "linux/PSIDRevert_LINUX.txt" "${pkgdir}/usr/share/doc/${pkgname}/PSIDRevert.txt" + install -Dm755 "LinuxPBA/dist/Debug/GNU-Linux-x86/linuxpba" "${pkgdir}/usr/bin/linuxpba" +} diff --git a/sedutil.install b/sedutil.install new file mode 100644 index 000000000000..12e845cd784b --- /dev/null +++ b/sedutil.install @@ -0,0 +1,9 @@ +post_install() { +cat <<EOF +You must be administrator/root to run this program, in addition +libata.allow_tpm must be set to 1. Either via adding libata.allow_tpm=1 +to the kernel flags at boot time or changing the contents of +/sys/module/libata/parameters/allow_tpm to a from a "0" to a "1" on a +running system. +EOF +} |