1 |
lxnay 12/09/27 10:58:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: entropy-144.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.30 sys-apps/entropy/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/entropy/ChangeLog?rev=1.30&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/entropy/ChangeLog?rev=1.30&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/entropy/ChangeLog?r1=1.29&r2=1.30 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/entropy/ChangeLog,v |
20 |
retrieving revision 1.29 |
21 |
retrieving revision 1.30 |
22 |
diff -u -r1.29 -r1.30 |
23 |
--- ChangeLog 24 Aug 2012 15:55:39 -0000 1.29 |
24 |
+++ ChangeLog 27 Sep 2012 10:58:55 -0000 1.30 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-apps/entropy |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/entropy/ChangeLog,v 1.29 2012/08/24 15:55:39 lxnay Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/entropy/ChangeLog,v 1.30 2012/09/27 10:58:55 lxnay Exp $ |
30 |
+ |
31 |
+*entropy-144 (27 Sep 2012) |
32 |
+ |
33 |
+ 27 Sep 2012; Fabio Erculiani <lxnay@g.o> +entropy-144.ebuild: |
34 |
+ version bump |
35 |
|
36 |
24 Aug 2012; Fabio Erculiani <lxnay@g.o> -entropy-1.0_rc38.ebuild, |
37 |
-entropy-1.0_rc43.ebuild, -entropy-1.0_rc53.ebuild, -entropy-1.0_rc59.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-apps/entropy/entropy-144.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/entropy/entropy-144.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/entropy/entropy-144.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: entropy-144.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/entropy/entropy-144.ebuild,v 1.1 2012/09/27 10:58:55 lxnay Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
PYTHON_DEPEND="2" |
54 |
PYTHON_USE_WITH="sqlite" |
55 |
inherit eutils python user |
56 |
|
57 |
DESCRIPTION="Entropy Package Manager foundation library" |
58 |
HOMEPAGE="http://www.sabayon.org" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~arm ~x86" |
63 |
|
64 |
IUSE="" |
65 |
SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2" |
66 |
|
67 |
RDEPEND="dev-db/sqlite[soundex] |
68 |
net-misc/rsync |
69 |
sys-apps/diffutils |
70 |
sys-apps/sandbox |
71 |
>=sys-apps/portage-2.1.9 |
72 |
sys-devel/gettext" |
73 |
DEPEND="${RDEPEND} |
74 |
dev-util/intltool" |
75 |
|
76 |
REPO_CONFPATH="${ROOT}/etc/entropy/repositories.conf" |
77 |
REPO_D_CONFPATH="${ROOT}/etc/entropy/repositories.conf.d" |
78 |
ENTROPY_CACHEDIR="${ROOT}/var/lib/entropy/caches" |
79 |
|
80 |
pkg_setup() { |
81 |
# Can: |
82 |
# - update repos |
83 |
# - update security advisories |
84 |
# - handle on-disk cache (atm) |
85 |
enewgroup entropy || die "failed to create entropy group" |
86 |
# Create unprivileged entropy user |
87 |
enewgroup entropy-nopriv || die "failed to create entropy-nopriv group" |
88 |
enewuser entropy-nopriv -1 -1 -1 entropy-nopriv || die "failed to create entropy-nopriv user" |
89 |
} |
90 |
|
91 |
src_compile() { |
92 |
cd "${S}"/client/po || die |
93 |
emake || die "make failed" |
94 |
} |
95 |
|
96 |
src_install() { |
97 |
emake DESTDIR="${D}" LIBDIR="usr/lib" entropy-install || die "make install failed" |
98 |
cd "${S}"/client/po || die |
99 |
emake DESTDIR="${D}" LIBDIR="usr/lib" install || die "make install failed" |
100 |
} |
101 |
|
102 |
pkg_postinst() { |
103 |
for ex_conf in "${REPO_D_CONFPATH}"/_entropy_sabayon-limbo.example; do |
104 |
real_conf="${ex_conf%.example}" |
105 |
if [ -f "${real_conf}" ] || [ -f "${real_conf/_}" ]; then |
106 |
# skip installation then |
107 |
continue |
108 |
fi |
109 |
elog "Installing: ${real_conf}" |
110 |
cp "${ex_conf}" "${real_conf}" -p |
111 |
done |
112 |
|
113 |
# Copy config file over |
114 |
if [ -f "${REPO_CONFPATH}.example" ] && [ ! -f "${REPO_CONFPATH}" ]; then |
115 |
elog "Copying ${REPO_CONFPATH}.example over to ${REPO_CONFPATH}" |
116 |
cp "${REPO_CONFPATH}.example" "${REPO_CONFPATH}" -p |
117 |
fi |
118 |
|
119 |
if [ -d "${ENTROPY_CACHEDIR}" ]; then |
120 |
einfo "Purging current Entropy cache" |
121 |
rm -rf "${ENTROPY_CACHEDIR}"/* |
122 |
fi |
123 |
|
124 |
# Fixup Entropy Resources Lock, and /etc/entropy/packages |
125 |
# files permissions. This fixes unprivileged Entropy Library usage |
126 |
local res_file="${ROOT}"/var/lib/entropy/client/database/*/.using_resources |
127 |
if [ -f "${res_file}" ]; then |
128 |
chown root:entropy "${res_file}" |
129 |
chmod g+rw "${res_file}" |
130 |
chmod o+r "${res_file}" |
131 |
fi |
132 |
local pkg_files="package.mask package.unmask package.mask.d package.unmask.d" |
133 |
local pkg_file |
134 |
for pkg_file in ${pkg_files}; do |
135 |
pkg_file="${ROOT}/etc/entropy/packages/${pkg_file}" |
136 |
recursive="" |
137 |
if [ -d "${pkg_file}" ]; then |
138 |
recursive="-R" |
139 |
fi |
140 |
if [ -e "${pkg_file}" ]; then |
141 |
chown ${recursive} root:entropy "${pkg_file}" |
142 |
chmod ${recursive} go+r "${pkg_file}" |
143 |
fi |
144 |
done |
145 |
|
146 |
# Setup Entropy Library directories ownership |
147 |
chown -R root:entropy "${ROOT}/var/tmp/entropy" |
148 |
chown root:entropy "${ROOT}/var/lib/entropy" # no recursion |
149 |
chown root:entropy "${ROOT}/var/lib/entropy/client/packages" # no recursion |
150 |
chown root:entropy "${ROOT}/var/log/entropy" # no recursion |
151 |
|
152 |
python_mod_optimize "/usr/lib/entropy/lib/entropy" |
153 |
|
154 |
echo |
155 |
elog "If you want to enable Entropy packages delta download support, please" |
156 |
elog "install dev-util/bsdiff." |
157 |
echo |
158 |
} |
159 |
|
160 |
pkg_postrm() { |
161 |
python_mod_cleanup "/usr/lib/entropy/lib/entropy" |
162 |
} |