1 |
ayoy 10/06/29 17:35:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scratchbox-1.0.19.ebuild |
5 |
Log: |
6 |
Version bump (bug #325659). Thanks to David King <amigadave@×××××××××.com> for the new ebuild. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.16 dev-embedded/scratchbox/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/scratchbox/ChangeLog?rev=1.16&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/scratchbox/ChangeLog?rev=1.16&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/scratchbox/ChangeLog?r1=1.15&r2=1.16 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/ChangeLog,v |
19 |
retrieving revision 1.15 |
20 |
retrieving revision 1.16 |
21 |
diff -u -r1.15 -r1.16 |
22 |
--- ChangeLog 18 Jan 2010 08:56:50 -0000 1.15 |
23 |
+++ ChangeLog 29 Jun 2010 17:35:55 -0000 1.16 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-embedded/scratchbox |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/ChangeLog,v 1.15 2010/01/18 08:56:50 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/ChangeLog,v 1.16 2010/06/29 17:35:55 ayoy Exp $ |
29 |
+ |
30 |
+*scratchbox-1.0.19 (29 Jun 2010) |
31 |
+ |
32 |
+ 29 Jun 2010; Dominik Kapusta <ayoy@g.o> +scratchbox-1.0.19.ebuild: |
33 |
+ Version bump (bug #325659). Thanks to David King <amigadave@×××××××××.com> |
34 |
+ for the new ebuild. |
35 |
|
36 |
18 Jan 2010; 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.19.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/scratchbox/scratchbox-1.0.19.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/scratchbox/scratchbox-1.0.19.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: scratchbox-1.0.19.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.19.ebuild,v 1.1 2010/06/29 17:35:55 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/hathor/tarball/scratchbox-core-${PV}-i386.tar.gz |
59 |
http://scratchbox.org/download/files/sbox-releases/hathor/tarball/scratchbox-libs-${PV}-i386.tar.gz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
IUSE="" |
65 |
|
66 |
# Stripping BREAKS scratchbox, it runs in a chroot and is pre-stripped when needed (bug #296294) |
67 |
RESTRICT="strip" |
68 |
|
69 |
DEPEND="" |
70 |
RDEPEND="" |
71 |
|
72 |
TARGET_DIR="/opt/scratchbox" |
73 |
|
74 |
S=${WORKDIR}/${PN} |
75 |
|
76 |
src_install() { |
77 |
dodir ${TARGET_DIR} |
78 |
# doins doesn't work with symlinks, getting "file not found" with doins |
79 |
cp -pRP ./* "${D}/${TARGET_DIR}" |
80 |
ln -s opt/scratchbox "${D}/scratchbox" |
81 |
|
82 |
# scratchbox service loader |
83 |
newinitd "${FILESDIR}/scratchbox.rc" scratchbox || die "newinitd failed" |
84 |
|
85 |
# group already created |
86 |
echo ${SBOX_GROUP} > "${D}/${TARGET_DIR}/.run_me_first_done" |
87 |
} |
88 |
|
89 |
pkg_preinst() { |
90 |
einfo "Creating group sbox" |
91 |
enewgroup "${SBOX_GROUP}" |
92 |
} |
93 |
|
94 |
pkg_postinst() { |
95 |
"${TARGET_DIR}/sbin/sbox_configure" "no" ${SBOX_GROUP} |
96 |
|
97 |
elog |
98 |
elog "You can run:" |
99 |
elog "\"emerge --config =${CATEGORY}/${PF}\"" |
100 |
elog "to setup scratchbox users" |
101 |
elog |
102 |
elog "For further documentation about how to setup" |
103 |
elog "scratchbox for your development needs have a look at" |
104 |
elog "http://scratchbox.org/documentation/user/scratchbox-1.0/" |
105 |
elog |
106 |
elog "Also note that when you reboot you should run:" |
107 |
elog "/etc/init.d/scratchbox start" |
108 |
elog "before trying to run scratchbox." |
109 |
elog "You can also add it to the default runlevel:" |
110 |
elog "rc-update add scratchbox default" |
111 |
elog |
112 |
elog "Type /opt/scratchbox/login to start scratchbox." |
113 |
elog |
114 |
} |
115 |
|
116 |
pkg_postrm() { |
117 |
elog |
118 |
elog "To remove all traces of scratchbox you will need to remove the file" |
119 |
elog "/etc/init.d/scratchbox. Don't forget to delete the sbox group." |
120 |
elog |
121 |
} |
122 |
|
123 |
pkg_config() { |
124 |
if [ `id -u` != "0" ]; then |
125 |
ewarn "Must be root to run this" |
126 |
die "not root" |
127 |
fi |
128 |
|
129 |
mkdir -p "${TARGET_DIR}/users" |
130 |
|
131 |
while true; do |
132 |
einfo "Existing users:" |
133 |
einfo $(ls "${TARGET_DIR}/users") |
134 |
echo |
135 |
|
136 |
einfo "Create new user (leaf empty to skip): " |
137 |
read newuser |
138 |
case "$newuser" in |
139 |
"") |
140 |
break; |
141 |
;; |
142 |
*) |
143 |
einfo "Note: users have to be in the '${SBOX_GROUP}' to be able to login into the scratchbox" |
144 |
"${TARGET_DIR}/sbin/sbox_adduser" ${newuser} || die "sbox_adduser failed" |
145 |
;; |
146 |
esac |
147 |
done |
148 |
|
149 |
einfo "Configuration finished. Make sure you run '/etc/init.d/scratchbox start' before logging in." |
150 |
} |