summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-05-18 13:00:22 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-05-18 13:00:22 -0400
commitd20eed2cc204f829aa79e588babcabe60f1225ff (patch)
treeb817573c1907476c1e89ba8ddb1b2b0dd9e9287b
parenttests-only/paxmarking: make test fail upon failed rwx mmap (diff)
downloadblueness-d20eed2cc204f829aa79e588babcabe60f1225ff.tar.gz
blueness-d20eed2cc204f829aa79e588babcabe60f1225ff.tar.bz2
blueness-d20eed2cc204f829aa79e588babcabe60f1225ff.zip
tests-only/paxmarking: do pax markings before and after install
Package-Manager: portage-2.1.11.62 Manifest-Sign-Key: 0xF52D4BBA
-rw-r--r--tests-only/paxmarking/Manifest30
-rw-r--r--tests-only/paxmarking/metadata.xml4
-rw-r--r--tests-only/paxmarking/paxmarking-0.1.ebuild10
3 files changed, 27 insertions, 17 deletions
diff --git a/tests-only/paxmarking/Manifest b/tests-only/paxmarking/Manifest
index 0a8b43e..7af488f 100644
--- a/tests-only/paxmarking/Manifest
+++ b/tests-only/paxmarking/Manifest
@@ -4,22 +4,22 @@ Hash: SHA256
AUX Makefile.am 117 SHA256 b6e9384c633cf64c25eade44d4d731cf1cd325bd9786d8f3fd8c55dda949a2f9 SHA512 f7dac2e0c4d6ed02dc9323f7e36028ab83513644ea7e2dd04ae851cb6f419d51abf5994e2e8413996394464eddbc9fffbb90a558a0e70cff23ed71de6a5676de WHIRLPOOL 839770db8752cb40a27d2f941057a2628b27b7dddb06774e45ae12dc2504b5d09373272a5e54303e5155ab001b382abee52d96647e650705bdb2948ab9c2f61e
AUX configure.ac 154 SHA256 a00338565c527da451305361cbc50f9ee1670b0aa786d83c01f4dc1a947bcf28 SHA512 7b18b09e21832e6a31f4df548093f61d1feb4dcfb025194b1d0de95c6aec49beb71a3db64f4cee0dcf550bc37368c6ec71b16f28aef5046e0508b2cd5ef47ee7 WHIRLPOOL 034ac587c1881998fd2a7ef1ada7d0687c9bd8887c0e245744b09fc6da7e1ae3e9e68e1e25249fdd2f4f8e2b0f0a07eac920a526339973ef4c05aeab6ae06e72
AUX mytest.c 262 SHA256 32b3940090e8ab12e28846fa100f9c2d3c0d2fe634ff52edbfa33f82998d9d82 SHA512 cc01308453f18b182ebdf8c585600e4cf2d1959a7358737228857763a743d79b8258c930da4e0fe6fd6fbd8a4947697208dd3afeb41646b8a6181a4182856eb6 WHIRLPOOL 3f496f8894b19c57cf935bbf196f2e07031c1e4f313554cc073ec541ea694a464d31fcbae7352e70cf4d256563055d22a52503c8a608e359938b848949b09824
-EBUILD paxmarking-0.1.ebuild 471 SHA256 f3aacb54e866db0b0729ee178e50487eda5efb0f659823ac3ed2681569b9d5d5 SHA512 5d4c50013099fe86089e5a264b0adf4d4b608d3c84337c32e7ec2be8670f956e50995114f1d3f493fafc8ab2f0f7fb0694718f6b53e15ea77348b9b866d056a0 WHIRLPOOL 033fd33f20ab8b482f162fcbd446ffc813756cf9ed55941854967db442c7bac7b5de21f602596933a0d87d60acd14484e856e6d923af1df36048e140217a715e
-MISC metadata.xml 261 SHA256 8f10a5b7f7571c6e73739c4bed1ecaf34aa8278355e9d163f8bbae77a11575a4 SHA512 7350bedbae4104f555ee7f95e7858069ec6cf5a2d41ffba46aa669dfa5663b100b39cc5f1502b6515aa149d1e661cce1e7e36fbfa350ed086fdf678dbe87661f WHIRLPOOL aa6a80ddc7a5dc80a6cf892e2bfb21616b80c05978435e4f4c6ba7b3be4685a9d15b92a23db0bf333373c436c4e256f02795f6064b476bd7d82309394bd15b3a
+EBUILD paxmarking-0.1.ebuild 647 SHA256 35f9dbf4430e35540d6ac5c957c51a74bf5a6029cbee589d83fd1afac2931954 SHA512 8eaa92dcc3226577553344474ba45a04159fa30880e3d2118669fb6e9966c7c1224417b8e9939437fea0a6654a5b3a2fde534f56fb253d3ea595241ac8fa9fc7 WHIRLPOOL 5742ab3f5f62f90c64d99dacbee57282093743664ef8f6bceff75ed7123b414a39e462989e871be4d82f298592082cc1bbbfc23c0e6b707e403ae3a342676f39
+MISC metadata.xml 394 SHA256 3b35d81861f69b12ee3f615fe44a9af009887609300ac314617477f0dbc9c921 SHA512 1777ffd9d19de6a79ab8e09f2cc7db168343220c2d7e3211e82bf6eb101f93fb42a291eabe152a4e126b9f9e909dd242a334c8dbdddecd75ef030b671b58d082 WHIRLPOOL 56c515a94d9e28133453d26bd7dc537f415f7f5b9c9b1696cb840623d6756c87b4b38aa2c9c132c1e12387b87dfafe211168f87c176901ad3084887570591c79
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJRl6HaAAoJEJOE+m71LUu6CBkQAJvND4axFMF7QLKDYhJHgs6E
-CRmmlY4w5s84t4XNjmJiKSGhuNPh+/ojAIQnrD7XuN0eEuwZZb2TM5hxHmV8Ei+f
-u5xNNjxUL/bo/tFBbCAm7ZsFCGmN2KqTry1elL0yxdweNA7IC32icA13jZuK45Sw
-vcpEEcqcqogQlf0LOsJmvQqzj6FUiRiHxTI6oorbK08JhuGHEbNZjWiEcnky1mCY
-fOV9PUhVn6Ad4F9LVd5UaVTaG71xWxnF781w8tXal9/BTrT3+eq2W47eGlyGFlS/
-rW0K/y8hiMPDYys42x9ZYmgQTa3T2ReNfGBAl0olSqvPnrLn2ETXW9ajAjVd0t53
-jR80d6I61W7/EsFQ3joDZpb6DJhvkkNFkWqKWsLZFwtnOHlwmP3s51Li6s5S8MYV
-jWhbfqcx+3suY6MZbUdK3rhLh/cDayqmBXjVeL1o55lFaLFQ4JK66o1sFFN9ZVLJ
-da2R6UEopd7rQgukSUo+dj5rxk06eUMZ8e3MYqSwhzOe67U6qDKDZXH6hPkgZ8RN
-1Ig+b4eT6jBuC0luKGexP6z76nNH8E3zVepOe8nzPYHf4nusTtG91UoxzpLh51Hi
-zZ0gck7CL0P4H8hf+h1E2E2+n3mWyHnaJwG3BbETxnyXwKZnBrLeEbG0thOBtIxu
-2K3/HKTdBT2AGQHhzUy2
-=peUx
+iQIcBAEBCAAGBQJRl7OmAAoJEJOE+m71LUu6+BkQALJ2MkThdOnKOOm5D3fCQrdp
+fnoiinziSXqJ36Qei1ivkdFesloeg+66c6/tzGo8WhAyinGv8uQmDsxJuo38yHW6
++qfbg+V2IPvTSmkGkx17/Dc2nLdtnsIiHqOl/I+0+PXAKvwqziwOZuA1RQsHiQ09
+TkTA+iScKOH4tz6x6Dm69uPMW1IvyW8HlBQCWb1F6K8/eftU5cSRts7lqPXV9mfA
+9euWE5DDzKYz0xneJD3LhzPIJNCmnydbuGhh/P3fcbtC6RiFF9ev1MC371QmciRe
+9dRggkKx93vei643IqrY3JUIgSro29wrIBrTzOCjjozOtTkfHyY6oasoRF6zjAoS
+pXdLpYPLHndsfq5L5UKFnYtCq9162+xV1vDhbHvEP9jgpDhgn+3BJQ7AS12Hn9dF
+F9KyRobnRO9/gWMO0thDkFdeFmr+kzDl3VbjUXK98jc7LLK10eYgHgWMQkTWDeFk
+DoG/n2bJPcEF2dUuSV/ZAOf27FyDAs/vjwJ5TfIjTe61SDfdtBLmznRAgUT1p4r8
+RLBESGCX/6pd+Zu86uze9CAM/IHd1Emc23yhxMXHSyJgObkoi4XJbXANxq7nICfX
+hWnNvtQpk1nJXwqBLhug5q4DSu95NyafN3xzku1g9NWv7Sb1f/j8nfpe+8fOaQdj
+t1hS2zNWzVNEhU5eRCT4
+=fD4c
-----END PGP SIGNATURE-----
diff --git a/tests-only/paxmarking/metadata.xml b/tests-only/paxmarking/metadata.xml
index e217c37..1c3ccb0 100644
--- a/tests-only/paxmarking/metadata.xml
+++ b/tests-only/paxmarking/metadata.xml
@@ -6,4 +6,8 @@
<email>blueness@gentoo.org</email>
<name>Anthony G. Basile</name>
</maintainer>
+ <use>
+ <flag name='before'>Do pax markings before install</flag>
+ <flag name='after'>Do pax markings after install</flag>
+ </use>
</pkgmetadata>
diff --git a/tests-only/paxmarking/paxmarking-0.1.ebuild b/tests-only/paxmarking/paxmarking-0.1.ebuild
index bf57556..dc12d65 100644
--- a/tests-only/paxmarking/paxmarking-0.1.ebuild
+++ b/tests-only/paxmarking/paxmarking-0.1.ebuild
@@ -4,7 +4,7 @@
EAPI="5"
-inherit autotools
+inherit autotools pax-utils
DESCRIPTION="Test XT and PT pax markings"
HOMEPAGE="https://bugs.gentoo.org/show_bug.cgi?id=427888"
@@ -13,7 +13,7 @@ SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE=""
+IUSE="+before after"
DEPEND=""
RDEPEND="${DEPEND}"
@@ -26,3 +26,9 @@ src_unpack() {
src_prepare() {
eautoreconf
}
+
+src_install() {
+ use before && pax-mark -m ${S}/mytest
+ emake DESTDIR="${ED}" install
+ use after && pax-mark -m ${D}/usr/bin/mytest
+}