diff options
author | Markus Dittrich <markusle@gentoo.org> | 2006-01-10 03:14:43 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2006-01-10 03:14:43 +0000 |
commit | 79d05ec048e96843ae3e77686b674ad11cb30d7d (patch) | |
tree | 3ca46f278924db95fa82e1a737439f3b75099b69 /sci-misc/qcad-parts/qcad-parts-2.0.1.2-r1.ebuild | |
parent | Fixed mod_php dependency (diff) | |
download | historical-79d05ec048e96843ae3e77686b674ad11cb30d7d.tar.gz historical-79d05ec048e96843ae3e77686b674ad11cb30d7d.tar.bz2 historical-79d05ec048e96843ae3e77686b674ad11cb30d7d.zip |
Use doins to install files in order to avoid world writable files. This fixes bug #114207.
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'sci-misc/qcad-parts/qcad-parts-2.0.1.2-r1.ebuild')
-rw-r--r-- | sci-misc/qcad-parts/qcad-parts-2.0.1.2-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sci-misc/qcad-parts/qcad-parts-2.0.1.2-r1.ebuild b/sci-misc/qcad-parts/qcad-parts-2.0.1.2-r1.ebuild new file mode 100644 index 000000000000..35e6f13cda81 --- /dev/null +++ b/sci-misc/qcad-parts/qcad-parts-2.0.1.2-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/qcad-parts/qcad-parts-2.0.1.2-r1.ebuild,v 1.1 2006/01/10 03:14:43 markusle Exp $ + +MY_PN="partlibrary" +MY_PV="${PV}-1" + +DESCRIPTION="Collection of CAD files that can be used from the library browser of QCad" +LICENSE="GPL-2" +HOMEPAGE="http://www.ribbonsoft.com/qcad_library.html" +SRC_URI="http://www.ribbonsoft.com/archives/partlibrary/partlibrary-${MY_PV}.zip" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="" + +DEPEND="app-arch/unzip" + +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +src_install() { + cd "${S}" + einfo "Fixing permissions - this might take a while" + insinto /usr/share/${PN} + doins -r ./* || die "Failed installing qcad-parts files" +} + +pkg_postinst() { + einfo + einfo "The QCad parts library was installed in" + einfo "/usr/share/${PN}" + einfo "Please set this path in QCad's preferences to access it." + einfo "(Edit->Application Preferences->Paths->Part Libraries)" + einfo + einfo "After restarting QCad, you can use the library by selecting" + einfo "View->Views->Library Browser" + einfo +} |