/hg/icedtea6: Add pax-mark-vm.in script template missing in earl...

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Fri Jan 25 13:33:39 PST 2013


changeset f6a0a42bf443 in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=f6a0a42bf443
author: Andrew John Hughes <gnu.andrew at redhat.com>
date: Fri Jan 25 21:33:29 2013 +0000

	Add pax-mark-vm.in script template missing in earlier commit.

	2013-01-25  Andrew John Hughes  <gnu.andrew at redhat.com>

		* pax-mark-vm.in: Add template for pax mark
		script.


diffstat:

 ChangeLog      |   5 +++++
 pax-mark-vm.in |  13 +++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r 6af17f5442ff -r f6a0a42bf443 ChangeLog
--- a/ChangeLog	Fri Jan 25 21:28:47 2013 +0000
+++ b/ChangeLog	Fri Jan 25 21:33:29 2013 +0000
@@ -1,3 +1,8 @@
+2013-01-25  Andrew John Hughes  <gnu.andrew at redhat.com>
+
+	* pax-mark-vm.in: Add template for pax mark
+	script.
+
 2013-01-25  Andrew John Hughes  <gnu.andrew at redhat.com>
 
 	* Makefile.am:
diff -r 6af17f5442ff -r f6a0a42bf443 pax-mark-vm.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pax-mark-vm.in	Fri Jan 25 21:33:29 2013 +0000
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Taken from Gentoo's pax-utils.eclass
+list_paxables() {
+       file "$@" 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//'
+}
+
+if test "@PAX_COMMAND@" != "not specified"; then
+       for paxable in `list_paxables "${1}"/bin/* "${1}"/jre/bin/*`; do
+               echo "PaX mark @PAX_COMMAND_ARGS@ ${paxable}"
+               @PAX_COMMAND@ @PAX_COMMAND_ARGS@ "${paxable}"
+       done
+fi



More information about the distro-pkg-dev mailing list