Lines 35-40
Link Here
|
35 |
ZGID=zope |
35 |
ZGID=zope |
36 |
#$(echo ${P} |sed -e "s:\.:_:g") |
36 |
#$(echo ${P} |sed -e "s:\.:_:g") |
37 |
|
37 |
|
|
|
38 |
REAL_DEST_DIR=/usr/lib/${PF} |
38 |
ZOPE_DIR=${D}usr/lib/${PF} |
39 |
ZOPE_DIR=${D}usr/lib/${PF} |
39 |
|
40 |
|
40 |
#ZS_DIR=${ROOT}/opt/${PF} |
41 |
#ZS_DIR=${ROOT}/opt/${PF} |
Lines 56-62
Link Here
|
56 |
# Parameters: |
57 |
# Parameters: |
57 |
# $1 = instance directory |
58 |
# $1 = instance directory |
58 |
# $2 = group |
59 |
# $2 = group |
59 |
|
|
|
60 |
setup_security() { |
60 |
setup_security() { |
61 |
chown -R ${ZUID}:${2} ${1} |
61 |
chown -R ${ZUID}:${2} ${1} |
62 |
chmod -R g+u ${1} |
62 |
chmod -R g+u ${1} |
Lines 71-89
Link Here
|
71 |
#} |
71 |
#} |
72 |
|
72 |
|
73 |
src_unpack() { |
73 |
src_unpack() { |
74 |
unpack ${A} |
74 |
unpack ${A} |
75 |
cd ${S} |
75 |
cd ${S} |
76 |
epatch ${FILESDIR}/${PV}/zdctl.patch |
76 |
epatch ${FILESDIR}/${PV}/zdctl.patch |
77 |
sed -i -e "s/# effective-user chrism/effective-user ${ZUID}/" skel/etc/zope.conf.in |
77 |
sed -i -e "s/# effective-user chrism/effective-user ${ZUID}/" skel/etc/zope.conf.in |
78 |
zuid=`grep ${ZUID} /etc/passwd | cut -d: -f3` |
78 |
zuid=`grep "^${ZUID}:" /etc/passwd | cut -d: -f3` |
79 |
zgid=`grep ${ZGID} /etc/group | cut -d: -f3` |
79 |
zgid=`grep "^${ZGID}:" /etc/group | cut -d: -f3` |
80 |
sed -i -e "s/None, None,/${zuid}, ${zgid},/" utilities/mkzopeinstance.py |
80 |
sed -i -e "s/None, None,/${zuid}, ${zgid},/" utilities/mkzopeinstance.py |
81 |
} |
81 |
} |
82 |
|
82 |
|
83 |
|
83 |
|
84 |
pkg_setup() { |
84 |
pkg_setup() { |
85 |
enewgroup ${ZGID} |
85 |
enewgroup ${ZGID} |
86 |
enewuser ${ZUID} 261 /bin/bash ${ZS_DIR} ${ZGID} |
86 |
#enewuser ${ZUID} 261 /bin/bash ${ZS_DIR} ${ZGID} |
|
|
87 |
#[cs] changed from bug report |
88 |
enewuser ${ZUID} 261 /bin/bash ${ZOPE_DIR} ${ZGID} |
87 |
} |
89 |
} |
88 |
|
90 |
|
89 |
src_compile() { |
91 |
src_compile() { |
Lines 158-165
Link Here
|
158 |
# .templates/zope.initd |
160 |
# .templates/zope.initd |
159 |
|
161 |
|
160 |
|
162 |
|
|
|
163 |
# if this were a normal init.d install, it would be: |
164 |
#exeinto /etc/init.d |
165 |
#newexe ${FILESDIR}/${PV}/zope.initd zope-${PV} |
166 |
|
167 |
dodir /etc/init.d |
168 |
mkdir -p .templates/ |
169 |
#echo current dir is `pwd` |
170 |
#echo cp ${FILESDIR}/${PV}/zope.initd .templates/zope.initd |
171 |
cp ${FILESDIR}/${PV}/zope.initd .templates/zope.initd |
172 |
|
173 |
dodir ${REAL_DEST_DIR} |
174 |
cp -a .templates ${ZOPE_DIR} |
161 |
|
175 |
|
162 |
|
|
|
163 |
#--test without this |
176 |
#--test without this |
164 |
#setup_security ${D}${ZSERVDIR} ${ZGID} |
177 |
#setup_security ${D}${ZSERVDIR} ${ZGID} |
165 |
einstall |
178 |
einstall |
Lines 192-204
Link Here
|
192 |
} |
205 |
} |
193 |
|
206 |
|
194 |
install_help() { |
207 |
install_help() { |
195 |
einfo "" |
208 |
#einfo "" |
196 |
einfo "To create a new Zope Instance use the following command:" |
209 |
#einfo "To create a new Zope Instance use the following command:" |
197 |
einfo "$ /usr/lib/${PV}/bin/mkzopeinstance.py" |
210 |
##einfo "$ /usr/lib/${PV}/bin/mkzopeinstance.py" |
198 |
einfo "" |
211 |
##[cs] changed from bug post |
199 |
einfo "A good instance location might be /var/zope or /var/lib/zope" |
212 |
#einfo "$ /usr/lib/${PF}/bin/mkzopeinstance.py" |
200 |
einfo "" |
213 |
#einfo " or better yet" |
201 |
einfo "Once your instance is setup you can start it with the following:" |
214 |
##[cs] suggestion from bug report |
202 |
einfo "$ /var[/lib]/zope/bin/zopectl start" |
215 |
#einfo "$ su zope -c /usr/lib/${PF}/bin/mkzopeinstance.py" |
203 |
einfo "" |
216 |
|
|
|
217 |
#einfo "" |
218 |
#einfo "A good instance location might be /var/zope or /var/lib/zope" |
219 |
#einfo "" |
220 |
#einfo "Once your instance is setup you can start it with the following:" |
221 |
#einfo "$ /var[/lib]/zope/bin/zopectl start" |
222 |
#einfo "" |
223 |
|
224 |
einfo "" |
225 |
einfo "You need to create a zope instance. Run:" |
226 |
einfo "\tzope-config" |
227 |
einfo "" |
204 |
} |
228 |
} |