# Copyright 1999-2010 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: linux-pcnfsd2-1.6640.1.ebuild,v 0.2 2010/10/14 12:45:36 KM $ REALP="linux_pcnfsd2-1.6-643.1" inherit rpm eutils DESCRIPTION="Linux PC-NFS daemon" SRC_URI="http://download.opensuse.org/source/distribution/11.4/repo/oss/suse/src/${REALP}.src.rpm" SLOT="0" LICENSE="FSR" KEYWORDS="~x86 ~sparc ~amd64 ~ppc ~alpha ~ia64 ~mips" # For binary: src_unpack() { rpm_src_unpack cd "${WORKDIR}/linux_pcnfsd2" epatch ../linux_pcnfsd2.dif } src_compile() { cd "${WORKDIR}/linux_pcnfsd2/" emake -f Makefile.linux || die "Make failed" } src_install() { mkdir -p "${D}/etc/init.d/" cp -p "${FILESDIR}/pcnfsd2.init.d" "${D}/etc/init.d/pcnfsd2" cd "${WORKDIR}/linux_pcnfsd2/linux/" mkdir -p "${D}/usr/sbin/" cp -p clnt.pcnfsd rpc.pcnfsd "${D}/usr/sbin/" doman "${WORKDIR}/linux_pcnfsd2/pcnfsd.8c" }