diff options
author | Ned Ludd <solar@gentoo.org> | 2003-10-05 19:25:52 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2003-10-05 19:25:52 +0000 |
commit | f06417b163a280397950e6d0b54717557a0c07d5 (patch) | |
tree | 9a02f7bb9739219eacf6cbf45e3d934bc21faec8 /sys-apps | |
parent | version bump of chpax, adds manpage, little more verbose when -v is used in c... (diff) | |
download | gentoo-2-f06417b163a280397950e6d0b54717557a0c07d5.tar.gz gentoo-2-f06417b163a280397950e6d0b54717557a0c07d5.tar.bz2 gentoo-2-f06417b163a280397950e6d0b54717557a0c07d5.zip |
version bump of chpax, adds manpage, little more verbose when -v is used in combo with other flags. this should go stable pretty quickly
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/chpax/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/chpax/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/chpax/chpax-0.5.ebuild | 41 | ||||
-rw-r--r-- | sys-apps/chpax/files/digest-chpax-0.5 | 1 | ||||
-rw-r--r-- | sys-apps/chpax/files/pax-conf.d | 18 | ||||
-rw-r--r-- | sys-apps/chpax/files/pax-init.d | 47 |
6 files changed, 117 insertions, 3 deletions
diff --git a/sys-apps/chpax/ChangeLog b/sys-apps/chpax/ChangeLog index 12a5305033a9..d625659b5c13 100644 --- a/sys-apps/chpax/ChangeLog +++ b/sys-apps/chpax/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/chpax # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/chpax/ChangeLog,v 1.7 2003/09/26 09:06:26 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/chpax/ChangeLog,v 1.8 2003/10/05 19:25:48 solar Exp $ + +*chpax-0.5 (05 Oct 2003) + + 05 Oct 2003; <solar@gentoo.org> chpax-0.5.ebuild, files/pax-conf.d, + files/pax-init.d: + version bump of chpax, adds manpage, little more verbose when -v is used in + combo with other flags. this should go stable pretty quickly 26 Sep 2003; <solar@gentoo.org> chpax-0.4.ebuild: marking stable for sparc diff --git a/sys-apps/chpax/Manifest b/sys-apps/chpax/Manifest index bacae5d56ec3..dbbaf8b62d49 100644 --- a/sys-apps/chpax/Manifest +++ b/sys-apps/chpax/Manifest @@ -1,7 +1,7 @@ -MD5 04c07649c132de56243ab26d21cfcbfb ChangeLog 883 +MD5 08f32723357c14c902cbdcdc269c4d5b ChangeLog 1141 MD5 49f11ae4512178f15981e4105f3219bd chpax-0.4.ebuild 772 MD5 e3de83396baf3f43d8213367ba434daf metadata.xml 339 -MD5 289a7fc6764b0f5b695dcbc01ee1b844 chpax-0.5.ebuild 953 +MD5 8810536abe8f07f65498181faa0727cd chpax-0.5.ebuild 949 MD5 10c35ed1761b215e4602ba951a94ab3e files/pax-init.d 962 MD5 e0bef5df8955711a482c1d29f060b6ac files/digest-chpax-0.4 59 MD5 d95ac8cbc92ddd4a9e401455d79571f7 files/digest-chpax-0.5 59 diff --git a/sys-apps/chpax/chpax-0.5.ebuild b/sys-apps/chpax/chpax-0.5.ebuild new file mode 100644 index 000000000000..eeea9e0ce98c --- /dev/null +++ b/sys-apps/chpax/chpax-0.5.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/chpax/chpax-0.5.ebuild,v 1.1 2003/10/05 19:25:49 solar Exp $ + +# S=${WORKDIR}/chpax + +DESCRIPTION="Manages various PaX related flags for ELF32, ELF64, and a.out binaries." +SRC_URI="http://pageexec.virtualave.net/chpax-${PV}.tar.gz" +HOMEPAGE="http://pageexec.virtualave.net" +KEYWORDS="~x86 ~amd64 ~sparc ~ppc ~hppa" +LICENSE="public-domain" +SLOT="0" + +IUSE="" +DEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + cd ${S} + mv Makefile{,.orig} + sed -e "s|-Wall|${CFLAGS} -Wall|" Makefile.orig > Makefile +} + +src_compile() { + emake CC="${CC}" || die "Parallel Make Failed" +} + +src_install() { + into / + dosbin chpax + fperms 700 /sbin/chpax + + dodoc Changelog README + doman chpax.1 + + insinto /etc/conf.d + newins ${FILESDIR}/pax-conf.d chpax + exeinto /etc/init.d + newexe ${FILESDIR}/pax-init.d chpax + +} diff --git a/sys-apps/chpax/files/digest-chpax-0.5 b/sys-apps/chpax/files/digest-chpax-0.5 new file mode 100644 index 000000000000..8d22765c253e --- /dev/null +++ b/sys-apps/chpax/files/digest-chpax-0.5 @@ -0,0 +1 @@ +MD5 aeb0c1aae2c087df369a4c30e0f1adbd chpax-0.5.tar.gz 5030 diff --git a/sys-apps/chpax/files/pax-conf.d b/sys-apps/chpax/files/pax-conf.d new file mode 100644 index 000000000000..78ac17e8597b --- /dev/null +++ b/sys-apps/chpax/files/pax-conf.d @@ -0,0 +1,18 @@ +#################################################################### +# Copyright 1999-2003 Gentoo Technologies, Inc. # +# Distributed under the terms of the GNU General Public License v2 # +#################################################################### +# +# p do not enforce paging based non-executable pages +# e do not emulate trampolines +# r do not randomize mmap() base [ELF only] +# m do not restrict mprotect() +# s do not enforce segmentation based non-executable pages +# x do not randomize ET_EXEC base [ELF only] + +PAGEEXEC_EXEMPT="/usr/X11R6/bin/XFree86 /usr/lib/wine/bin/wine" +TRAMPOLINE_EXEMPT="" +MPROTECT_EXEMPT="" +MMAP_EXEMPT="" +SEGEXEC_EXEMPT="" +RANDEXEC_EXEMPT="" diff --git a/sys-apps/chpax/files/pax-init.d b/sys-apps/chpax/files/pax-init.d new file mode 100644 index 000000000000..bb2d3bc60e0e --- /dev/null +++ b/sys-apps/chpax/files/pax-init.d @@ -0,0 +1,47 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need bootmisc +} + +checkconfig() { + /sbin/chpax -v /sbin/chpax >/dev/null 2>&1 || return 1 +} + +start() { + checkconfig || return 1 + + local err_msg="error running chpax on " + + for x in ${PAGEEXEC_EXEMPT} ; do + [ -f ${x} ] && /sbin/chpax -p ${x} || eerror ${err_msg} ${x} + done + + for x in ${TRAMPOLINE_EXEMPT} ; do + [ -f ${x} ] && /sbin/chpax -e ${x} || eerror ${err_msg} ${x} + done + + for x in ${MMAP_EXEMPT} ; do + [ -f ${x} ] && /sbin/chpax -r ${x} || eerror ${err_msg} ${x} + done + + for x in ${MPROTECT_EXEMPT} ; do + [ -f ${x} ] && /sbin/chpax -m ${x} || eerror ${err_msg} ${x} + done + + for x in ${SEGEXEC_EXEMPT} ; do + [ -f ${x} ] && /sbin/chpax -s ${x} || eerror ${err_msg} ${x} + done + + for x in ${RANDEXEC_EXEMPT} ; do + [ -f ${x} ] && /sbin/chpax -x ${x} || eerror ${err_msg} ${x} + done + +} + +stop() { + return 0 +} + |