diff options
author | Ioannis Aslanidis <deathwing00@gentoo.org> | 2009-03-27 16:03:38 +0000 |
---|---|---|
committer | Ioannis Aslanidis <deathwing00@gentoo.org> | 2009-03-27 16:03:38 +0000 |
commit | e10dc1f24d4a8a3d98ad34fd887eaea9bfaf5a25 (patch) | |
tree | 29236036acc0ca86dfc5d04cf7923020af1beca9 /dev-util/mock | |
parent | Marking gecko-sharp-0.13 ppc for bug 234305 (diff) | |
download | gentoo-2-e10dc1f24d4a8a3d98ad34fd887eaea9bfaf5a25.tar.gz gentoo-2-e10dc1f24d4a8a3d98ad34fd887eaea9bfaf5a25.tar.bz2 gentoo-2-e10dc1f24d4a8a3d98ad34fd887eaea9bfaf5a25.zip |
Ebuild creates mock group if it does not exist.
(Portage version: 2.2_rc27/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/mock')
-rw-r--r-- | dev-util/mock/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/mock/mock-0.9.10-r1.ebuild | 31 | ||||
-rw-r--r-- | dev-util/mock/mock-0.9.10.ebuild | 10 |
3 files changed, 47 insertions, 2 deletions
diff --git a/dev-util/mock/ChangeLog b/dev-util/mock/ChangeLog index 2e66b5871d12..e14bd4d0a269 100644 --- a/dev-util/mock/ChangeLog +++ b/dev-util/mock/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/mock # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mock/ChangeLog,v 1.2 2009/03/03 19:45:11 deathwing00 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/mock/ChangeLog,v 1.3 2009/03/27 16:03:38 deathwing00 Exp $ + +*mock-0.9.10-r1 (27 Mar 2009) + + 27 Mar 2009; Ioannis Aslanidis <iaslanidis@gentoo.org> mock-0.9.10.ebuild, + +mock-0.9.10-r1.ebuild: + Now properly creating the mock group. 03 Mar 2009; Ioannis Aslanidis <iaslanidis@gentoo.org> mock-0.9.10.ebuild: Added missing dependency. Fixed src_install so that it now properly installs diff --git a/dev-util/mock/mock-0.9.10-r1.ebuild b/dev-util/mock/mock-0.9.10-r1.ebuild new file mode 100644 index 000000000000..330293faab35 --- /dev/null +++ b/dev-util/mock/mock-0.9.10-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mock/mock-0.9.10-r1.ebuild,v 1.1 2009/03/27 16:03:38 deathwing00 Exp $ + +DESCRIPTION="Mock creates chroots and builds packages in them for Fedora and +RedHat." +HOMEPAGE="http://fedoraproject.org/wiki/Projects/Mock" +SRC_URI="https://fedorahosted.org/mock/attachment/wiki/MockTarballs/mock-${PV}.tar.gz?format=raw -> mock-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +EAPI="2" + +DEPEND="" +RDEPEND="sys-apps/yum + dev-python/decoratortools" + +src_install() { + emake DESTDIR="${D}" install || die "install failed" +} + +pkg_postinst() { + if ! [[ $(grep -q mock /etc/group && echo $?) ]]; then + einfo "Creating group 'mock'" + groupadd mock + fi +} + diff --git a/dev-util/mock/mock-0.9.10.ebuild b/dev-util/mock/mock-0.9.10.ebuild index 9ae6fc4f5f47..2b1446032ee2 100644 --- a/dev-util/mock/mock-0.9.10.ebuild +++ b/dev-util/mock/mock-0.9.10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mock/mock-0.9.10.ebuild,v 1.3 2009/03/05 16:04:38 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/mock/mock-0.9.10.ebuild,v 1.4 2009/03/27 16:03:38 deathwing00 Exp $ DESCRIPTION="Mock creates chroots and builds packages in them for Fedora and RedHat." @@ -21,3 +21,11 @@ RDEPEND="sys-apps/yum src_install() { emake DESTDIR="${D}" install || die "install failed" } + +pkg_postinst() { + if [[ ! $(egrep -q mock /etc/group) ]]; then + einfo "Creating group `mock`" + groupadd mock + fi +} + |