Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70994
Collapse All | Expand All

(-)./apache-2.0.52-r1.ebuild.orig (-28 / +22 lines)
Lines 317-322 Link Here
317
	doins ${WORKDIR}/dynamic-vhosts.conf
317
	doins ${WORKDIR}/dynamic-vhosts.conf
318
	doins ${WORKDIR}/vhosts.conf
318
	doins ${WORKDIR}/vhosts.conf
319
319
320
	#empty dirs...
321
	keepdir /var/lib/dav
322
	fowners apache:apache /var/lib/dav
323
	fperms 755 /var/lib/dav
324
325
	keepdir /var/log/apache2
326
	fowners apache:apache /var/log/apache2
327
	fperms 755 /var/log/apache2
328
329
	keepdir /var/cache/apache2
330
	fowners apache:apache /var/cache/apache2
331
	fperms 755 /var/cache/apache2
332
333
	if use ssl; then
334
		keepdir /etc/apache2/conf/ssl
335
		cd ${D}/etc/apache2/conf/ssl
336
		einfo
337
		einfo "Generating self-signed test certificate in /etc/apache2/conf/ssl..."
338
		yes "" 2>/dev/null | ${ROOT}/usr/lib/ssl/apache2-mod_ssl/gentestcrt.sh >/dev/null 2>&1
339
		einfo
340
	fi
341
320
	# Added by Jason Wever <weeve@gentoo.org>
342
	# Added by Jason Wever <weeve@gentoo.org>
321
	# A little sedfu to fix bug #7172 for sparc64s
343
	# A little sedfu to fix bug #7172 for sparc64s
322
	if [ ${ARCH} = "sparc" ]
344
	if [ ${ARCH} = "sparc" ]
Lines 360-393 Link Here
360
}
382
}
361
383
362
pkg_postinst() {
384
pkg_postinst() {
363
	set_filter_flags
364
365
	# Fix for bug #65006 (urilith@gentoo.org)
366
	#empty dirs...
367
	keepdir /var/lib/dav
368
	fowners apache:apache /var/lib/dav
369
	fperms 755 /var/lib/dav
370
371
	keepdir /var/log/apache2
372
	fowners apache:apache /var/log/apache2
373
	fperms 755 /var/log/apache2
374
375
	keepdir /var/cache/apache2
376
	fowners apache:apache /var/cache/apache2
377
	fperms 755 /var/cache/apache2
378
379
	if use ssl; then
380
		keepdir /etc/apache2/conf/ssl
381
	fi
382
383
	if use ssl; then
384
		cd ${ROOT}/etc/apache2/conf/ssl
385
		einfo
386
		einfo "Generating self-signed test certificate in /etc/apache2/conf/ssl..."
387
		yes "" 2>/dev/null | ${ROOT}/usr/lib/ssl/apache2-mod_ssl/gentestcrt.sh >/dev/null 2>&1
388
		einfo
389
	fi
390
391
	if has_version '=net-www/apache-1*' ; then
385
	if has_version '=net-www/apache-1*' ; then
392
	ewarn
386
	ewarn
393
	ewarn "Please add the 'apache2' flag to your USE variable and (re)install"
387
	ewarn "Please add the 'apache2' flag to your USE variable and (re)install"

Return to bug 70994