Gentoo Archives: gentoo-commits

From: "Dominik Kapusta (ayoy)" <ayoy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-embedded/scratchbox: scratchbox-1.0.17.ebuild ChangeLog
Date: Thu, 07 Jan 2010 21:35:23
Message-Id: E1NT00n-0003YB-2u@stork.gentoo.org
1 ayoy 10/01/07 21:35:21
2
3 Modified: ChangeLog
4 Added: scratchbox-1.0.17.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 dev-embedded/scratchbox/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-embedded/scratchbox/ChangeLog?rev=1.13&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-embedded/scratchbox/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-embedded/scratchbox/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 30 Nov 2009 11:05:04 -0000 1.12
23 +++ ChangeLog 7 Jan 2010 21:35:20 -0000 1.13
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-embedded/scratchbox
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/ChangeLog,v 1.12 2009/11/30 11:05:04 flameeyes Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/ChangeLog,v 1.13 2010/01/07 21:35:20 ayoy Exp $
30 +
31 +*scratchbox-1.0.17 (07 Jan 2010)
32 +
33 + 07 Jan 2010; Dominik Kapusta <ayoy@g.o> +scratchbox-1.0.17.ebuild:
34 + Version bump
35
36 30 Nov 2009; Diego E. Pettenò <flameeyes@g.o>
37 scratchbox-1.0.11.ebuild, scratchbox-1.0.16.ebuild:
38
39
40
41 1.1 dev-embedded/scratchbox/scratchbox-1.0.17.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-embedded/scratchbox/scratchbox-1.0.17.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-embedded/scratchbox/scratchbox-1.0.17.ebuild?rev=1.1&content-type=text/plain
45
46 Index: scratchbox-1.0.17.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/scratchbox-1.0.17.ebuild,v 1.1 2010/01/07 21:35:20 ayoy Exp $
51
52 inherit eutils
53
54 SBOX_GROUP="sbox"
55
56 DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier."
57 HOMEPAGE="http://www.scratchbox.org/"
58 SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/scratchbox-core-${PV}-i386.tar.gz
59 http://scratchbox.org/download/files/sbox-releases/stable/tarball/scratchbox-libs-${PV}-i386.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE=""
65
66 DEPEND=""
67 RDEPEND=""
68
69 TARGET_DIR="/opt/scratchbox"
70
71 S=${WORKDIR}/${PN}
72
73 src_install() {
74 dodir ${TARGET_DIR}
75 # doins doesn't work with symlinks, getting "file not found" with doins
76 cp -pRP ./* "${D}/${TARGET_DIR}"
77 ln -s opt/scratchbox "${D}/scratchbox"
78
79 # scratchbox service loader
80 newinitd "${FILESDIR}/scratchbox.rc" scratchbox || die "newinitd failed"
81
82 # group already created
83 echo ${SBOX_GROUP} > "${D}/${TARGET_DIR}/.run_me_first_done"
84 }
85
86 pkg_preinst() {
87 einfo "Creating group sbox"
88 enewgroup "${SBOX_GROUP}"
89 }
90
91 pkg_postinst() {
92 "${TARGET_DIR}/sbin/sbox_configure" "no" ${SBOX_GROUP}
93
94 elog
95 elog "You can run:"
96 elog "\"emerge --config =${CATEGORY}/${PF}\""
97 elog "to setup scratchbox users"
98 elog
99 elog "For further documentation about how to setup"
100 elog "scratchbox for your development needs have a look at"
101 elog "http://scratchbox.org/documentation/user/scratchbox-1.0/"
102 elog
103 elog "Also note that when you reboot you should run:"
104 elog "/etc/init.d/scratchbox start"
105 elog "before trying to run scratchbox."
106 elog "You can also add it to the default runlevel:"
107 elog "rc-update add scratchbox default"
108 elog
109 elog "Type /opt/scratchbox/login to start scratchbox."
110 elog
111 }
112
113 pkg_postrm() {
114 elog
115 elog "To remove all traces of scratchbox you will need to remove the file"
116 elog "/etc/init.d/scratchbox. Don't forget to delete the sbox group."
117 elog
118 }
119
120 pkg_config() {
121 if [ `id -u` != "0" ]; then
122 ewarn "Must be root to run this"
123 die "not root"
124 fi
125
126 mkdir -p "${TARGET_DIR}/users"
127
128 while true; do
129 einfo "Existing users:"
130 einfo $(ls "${TARGET_DIR}/users")
131 echo
132
133 einfo "Create new user (leaf empty to skip): "
134 read newuser
135 case "$newuser" in
136 "")
137 break;
138 ;;
139 *)
140 einfo "Note: users have to be in the '${SBOX_GROUP}' to be able to login into the scratchbox"
141 "${TARGET_DIR}/sbin/sbox_adduser" ${newuser} || die "sbox_adduser failed"
142 ;;
143 esac
144 done
145
146 einfo "Configuration finished. Make sure you run '/etc/init.d/scratchbox start' before logging in."
147 }