View | Details | Raw Unified
Collapse All | Expand All

(-) mailman-2.1.5-r4.ebuild (-19 / +11 lines)
 Lines 83-110    Link Here 
	dodoc contrib/virtusertable contrib/mailman.mc
	dodoc contrib/virtusertable contrib/mailman.mc
	cp build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
	cp build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
		contrib/mm-handler* ${D}/usr/local/mailman/bin
		contrib/mm-handler* ${ID}/bin
	# Save the old config into the new package as CONFIG_PROTECT
	# Save the old config into the new package as CONFIG_PROTECT
	# doesn't work for this package.
	# doesn't work for this package.
	if [ -f ${ROOT}/var/mailman/Mailman/mm_cfg.py ]; then
	for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \
		cp ${ROOT}/var/mailman/Mailman/mm_cfg.py \
		${ROOT}/usr/local/mailman ${INSTALLDIR} 
			${D}/usr/local/mailman/Mailman/mm_cfg.py
	do
		einfo "Your old config has been saved as mm_cfg.py"
		if [ -f ${i}/Mailman/mm_cfg.py ]; then
		einfo "A new config has been installed as mm_cfg.dist"
			cp ${i}/Mailman/mm_cfg.py \
	fi
				${ID}/Mailman/mm_cfg.py
	if [ -f ${ROOT}/home/mailman/Mailman/mm_cfg.py ]; then
			einfo "Your old config has been saved as mm_cfg.py"
		cp ${ROOT}/home/mailman/Mailman/mm_cfg.py \
			einfo "A new config has been installed as mm_cfg.dist"
			${D}/usr/local/mailman/Mailman/mm_cfg.py
		fi
		einfo "Your old config has been saved as mm_cfg.py"
	done
		einfo "A new config has been installed as mm_cfg.py.dist"
	fi
	if [ -f ${ROOT}/usr/local/mailman/Mailman/mm_cfg.py ]; then
		cp ${ROOT}/usr/local/mailman/Mailman/mm_cfg.py \
			${D}/usr/local/mailman/Mailman/mm_cfg.py
		einfo "Your old config has been saved as mm_cfg.py"
		einfo "A new config has been installed as mm_cfg.py.dist"
	fi
	exeinto /etc/init.d
	exeinto /etc/init.d
	newexe ${FILESDIR}/mailman.rc mailman
	newexe ${FILESDIR}/mailman.rc mailman