# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/chpax/chpax-0.6.1.ebuild,v 1.8 2004/06/01 20:31:48 solar Exp $ inherit flag-o-matic DESCRIPTION="Manages various PaX related flags for ELF32, ELF64, and a.out binaries." SRC_URI="mirror://chpax-${PV}.tar.bz2 http://dev.gentoo.org/~solar/pax/chpax/chpax-${PV}.tar.bz2" HOMEPAGE="http://pax.grsecurity.net" KEYWORDS="x86 amd64 sparc ppc hppa ia64 ~mips alpha" LICENSE="public-domain" SLOT="0" #IUSE="static" DEPEND="virtual/glibc" src_unpack() { unpack ${A} cd ${S} sed -i -e "s|-Wall|${CFLAGS}|" Makefile } src_compile() { # use static && append-ldflags -static ; # breaks with current ssp. emake CC="${CC}" TARGET="chpax ${LDFLAGS:0}" || die "Parallel Make Failed" } src_install() { into / dosbin chpax fperms 711 /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 }